The invention relates to a method for proventing a software version in the mobile terminals from pirate edition. The hardware serial numbers are set on the mobile terminals when they are out of the factory. The mobile terminals encrypt the original binary codes according to the hardware serial numbers. The original binary codes are firstly decoded when the mobile terminals are launched, if the decryptions are correct, then the mobile terminals are switched into the normal state. The hardware serial numbers are lack of access to be obtained for its user-definition and not publication as for the third part. For the lack of the necessary decryption key i.e. hardware serial number and the corresponding decryption algorithm, the third part can not get the correct software codes and copy to use again, even if the codes are copied in some way from the flash memory. |