A kind of method of unlocking mobile terminal and device
Technical field
The embodiment of the present invention relates to field of mobile terminals, particularly relates to a kind of method and device of unlocking mobile terminal.
Background technology
Under normal circumstances, by reading client identification module (the SubscriberIdentity Module of mobile phone current operator, SIM) Mobile Country Code MCC (the Mobile Country Code blocked, MCC), mobile network code (Mobile Network Code, MNC) determines whether to unlock mobile phone.If what insert on mobile phone is the SIM card of other operators, then cannot unlock mobile phone, thus cause restricted too strong, larger restriction is had to the sale of mobile phone.
Generally a fixing initial password can be set for mobile phone, if insert on mobile phone be the SIM card of other operators time, mobile phone is locked, could unlock after the initial password only having input to arrange and enter cell phone system.But current same series-produced every platform cell phone password is all the same, and easily cause cell phone password to reveal, fail safe is bad.
Summary of the invention
The object of the embodiment of the present invention is a kind of method proposing unlocking mobile terminal, is intended to solve the safety how ensureing to unlock every platform mobile phone.
For reaching this object, the embodiment of the present invention by the following technical solutions:
A method for unlocking mobile terminal, described method comprises:
International Mobile Station Equipment Identification IMEI number according to described mobile terminal generates the SimLock password unlocking described mobile terminal, and is stored in by the password of described unlocking mobile terminal in the store path pre-set;
Detect the SIM card whether having the operator pre-set on mobile terminals;
If so, then first automatic unlocking, then in the described store path pre-set, obtain the SimLock password unlocking described mobile terminal;
Mobile terminal according to the unlock password of described unlocking mobile terminal.
Preferably, described method also comprises:
The SIM card of other operators beyond the operator pre-set if detect on the mobile terminal, then exit the flow process unlocking described mobile terminal.
Preferably, the store path pre-set described in be stored in described mobile terminal file is set under.
Preferably, the described International Mobile Station Equipment Identification IMEI number according to described mobile terminal generates the SimLock password unlocking described mobile terminal, comprising:
The number of the length pre-set in described IMEI number is intercepted according to the algorithm pre-set;
Number according to the length pre-set described in being truncated to generates the SimLock password unlocking described mobile terminal.
A device for unlocking mobile terminal, described device comprises:
Generation unit, generates for the International Mobile Station Equipment Identification IMEI number according to described mobile terminal the SimLock password unlocking described mobile terminal, and is stored in by the password of described unlocking mobile terminal in the store path pre-set;
Detecting unit, for detecting the SIM card whether having the operator pre-set on mobile terminals;
Acquiring unit, for if so, then first automatic unlocking, then obtains the SimLock password unlocking described mobile terminal in the described store path pre-set;
Separate lock unit, for mobile terminal according to the unlock password of described unlocking mobile terminal.
Preferably, described device also comprises:
Exiting unit, if the SIM card for other operators beyond the operator that pre-sets being detected on the mobile terminal, then exiting the flow process unlocking described mobile terminal.
Preferably, the store path pre-set described in be stored in described mobile terminal file is set under.
Preferably, described generation unit, for:
The number of the length pre-set in described IMEI number is intercepted according to the algorithm pre-set;
Number according to the length pre-set described in being truncated to generates the SimLock password unlocking described mobile terminal.
The embodiment of the present invention generates by the International Mobile Station Equipment Identification IMEI number according to described mobile terminal the SimLock password unlocking described mobile terminal, and is stored in by the password of described unlocking mobile terminal in the store path pre-set; Detect the SIM card whether having the operator pre-set on mobile terminals; If so, then first automatic unlocking, then in the described store path pre-set, obtain the SimLock password unlocking described mobile terminal; Mobile terminal according to the unlock password of described unlocking mobile terminal, because the IMEI number of every platform mobile terminal is different, thus ensures that the SimLock password of every platform mobile terminal is each different, ensures the fail safe of unlocking mobile terminal.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method first embodiment of embodiment of the present invention unlocking mobile terminal;
Fig. 2 is the schematic flow sheet of method second embodiment of embodiment of the present invention unlocking mobile terminal;
Fig. 3 is the high-level schematic functional block diagram of the device of embodiment of the present invention unlocking mobile terminal;
Fig. 4 is the high-level schematic functional block diagram of the device of embodiment of the present invention unlocking mobile terminal.
Embodiment
Below in conjunction with drawings and Examples, the embodiment of the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the embodiment of the present invention, but not the restriction to the embodiment of the present invention.It also should be noted that, for convenience of description, illustrate only the part relevant to the embodiment of the present invention in accompanying drawing but not entire infrastructure.
Embodiment one
With reference to the schematic flow sheet that Fig. 1, Fig. 1 are method first embodiment of embodiment of the present invention unlocking mobile terminal.
In a first embodiment, the method for this unlocking mobile terminal comprises:
Step 101, the International Mobile Station Equipment Identification IMEI number according to described mobile terminal generates the SimLock password unlocking described mobile terminal, and is stored in by the password of described unlocking mobile terminal in the store path pre-set;
Preferably, the described International Mobile Station Equipment Identification IMEI number according to described mobile terminal generates the SimLock password unlocking described mobile terminal, comprising:
The number of the length pre-set in described IMEI number is intercepted according to the algorithm pre-set;
Number according to the length pre-set described in being truncated to generates the SimLock password unlocking described mobile terminal.
Wherein, the store path pre-set described in be stored in described mobile terminal file is set under.
Concrete, standard I MEI length is 15, and as 123456789012345, after equipment reads, after intercepting, 6 is 9012345 as SimLock password, also can intercept more long number as password, as long as be no more than IMEI number length.Password is stored into: arrange-increase a SimLock password menu about in equipment, as the SimLock password of telling user.
Step 102, detects the SIM card whether having the operator pre-set on mobile terminals;
Concrete, if the operator that mobile phone is specified is mobile operator, then detect the SIM card whether SIM card that user inserts mobile phone is mobile operator.
Step 103, if so, then first automatic unlocking, then in the described store path pre-set, obtain the SimLock password unlocking described mobile terminal;
Concrete, the SIM card that user inserts mobile phone if detect is the SIM card of mobile operator, then increase in a SimLock password menu in setting-about equipment and obtain SimLock password.
Step 104, mobile terminal according to the unlock password of described unlocking mobile terminal.
The embodiment of the present invention generates by the International Mobile Station Equipment Identification IMEI number according to described mobile terminal the SimLock password unlocking described mobile terminal, and is stored in by the password of described unlocking mobile terminal in the store path pre-set; Detect the SIM card whether having the operator pre-set on mobile terminals; If so, then first automatic unlocking, then in the described store path pre-set, obtain the SimLock password unlocking described mobile terminal; Mobile terminal according to the unlock password of described unlocking mobile terminal, because the IMEI number of every platform mobile terminal is different, thus ensures that the SimLock password of every platform mobile terminal is each different, ensures the fail safe of unlocking mobile terminal.
Embodiment two
With reference to the schematic flow sheet that Fig. 2, Fig. 2 are method second embodiment of embodiment of the present invention unlocking mobile terminal.
On the basis of the first embodiment, the method for this unlocking mobile terminal also comprises:
Step 105, the SIM card of other operators beyond the operator pre-set if detect on the mobile terminal, then exit the flow process unlocking described mobile terminal.
Concrete, the user of mobile terminal, when not knowing SimLcok password, uses the SIM card of other operators to be cannot be unlocked by password.The user of mobile terminal only has first with after specifying the SIM card of operator to enter cell phone system, could arranging-about equipment in find corresponding SimLcok password, thus reach the object of SimLock pintle hook lock.
Embodiment three
With reference to the high-level schematic functional block diagram that Fig. 3, Fig. 3 are the device of embodiment of the present invention unlocking mobile terminal.
In the third embodiment, the device of this unlocking mobile terminal comprises:
Generation unit 301, generates for the International Mobile Station Equipment Identification IMEI number according to described mobile terminal the SimLock password unlocking described mobile terminal, and is stored in by the password of described unlocking mobile terminal in the store path pre-set;
Preferably, described generation unit 301, for:
The number of the length pre-set in described IMEI number is intercepted according to the algorithm pre-set;
Number according to the length pre-set described in being truncated to generates the SimLock password unlocking described mobile terminal.
Wherein, the store path pre-set described in be stored in described mobile terminal file is set under.
Concrete, standard I MEI length is 15, and as 123456789012345, after equipment reads, after intercepting, 6 is 9012345 as SimLock password, also can intercept more long number as password, as long as be no more than IMEI number length.Password is stored into: arrange-increase a SimLock password menu about in equipment, as the SimLock password of telling user.
Detecting unit 302, for detecting the SIM card whether having the operator pre-set on mobile terminals;
Concrete, if the operator that mobile phone is specified is mobile operator, then detect the SIM card whether SIM card that user inserts mobile phone is mobile operator.
Acquiring unit 303, for if so, then first automatic unlocking, then obtains the SimLock password unlocking described mobile terminal in the described store path pre-set;
Concrete, the SIM card that user inserts mobile phone if detect is the SIM card of mobile operator, then increase in a SimLock password menu in setting-about equipment and obtain SimLock password.
Separate lock unit 304, for mobile terminal according to the unlock password of described unlocking mobile terminal.
The embodiment of the present invention generates by the International Mobile Station Equipment Identification IMEI number according to described mobile terminal the SimLock password unlocking described mobile terminal, and is stored in by the password of described unlocking mobile terminal in the store path pre-set; Detect the SIM card whether having the operator pre-set on mobile terminals; If so, then first automatic unlocking, then in the described store path pre-set, obtain the SimLock password unlocking described mobile terminal; Mobile terminal according to the unlock password of described unlocking mobile terminal, because the IMEI number of every platform mobile terminal is different, thus ensures that the SimLock password of every platform mobile terminal is each different, ensures the fail safe of unlocking mobile terminal.
Embodiment four
With reference to the high-level schematic functional block diagram that Fig. 4, Fig. 4 are the device of embodiment of the present invention unlocking mobile terminal.
On the basis of the 3rd embodiment, the device of this unlocking mobile terminal also comprises:
Exiting unit 305, if the SIM card for other operators beyond the operator that pre-sets being detected on the mobile terminal, then exiting the flow process unlocking described mobile terminal.
Concrete, the user of mobile terminal, when not knowing SimLcok password, uses the SIM card of other operators to be cannot be unlocked by password.The user of mobile terminal only has first with after specifying the SIM card of operator to enter cell phone system, could arranging-about equipment in find corresponding SimLcok password, thus reach the object of SimLock pintle hook lock.
Embodiment of the present invention embodiment also provides a kind of mobile terminal, and this mobile terminal comprises the device of the unlocking mobile terminal in embodiment three or embodiment four.
Below the know-why of the embodiment of the present invention is described in conjunction with specific embodiments.These describe the principle just in order to explain the embodiment of the present invention, and can not be interpreted as the restriction to embodiment of the present invention protection range by any way.Based on explanation herein, those skilled in the art does not need to pay other embodiment that performing creative labour can associate the embodiment of the present invention, these modes all by fall into the embodiment of the present invention protection range within.