Realize method and the device of pintle hook lock
Technical field
The present invention relates to areas of information technology, particularly a kind of method and device realizing pintle hook lock.
Background technology
Along with the development of information technology, the appearance of mobile phone has brought great facility.Meanwhile, the surge of mobile phone quantity, makes the competition between each operator constantly aggravate.In order to enhance the competitiveness, pintle hook lock be carried out to mobile phone and is subject to increasing attention.
In prior art, when realizing pintle hook lock, first by the specific file of the pintle hook lock information of customization write mobile phone, wherein, pintle hook lock packets of information is containing pintle hook lock scope.When a handset is turned on, read the pintle hook lock information in specific file on the one hand, read SIM (SubscriberIdentityModule on the other hand, user identification module) card in MCC (MobileCountryCode, Mobile Country Code MCC) and MNC (MobileNetworkCode, Mobile Network Code), after reading, judge MCC and MNC in SIM card whether within the scope of pintle hook lock.If within the scope of pintle hook lock, then allow to use this SIM card; If not within the scope of pintle hook lock, then prohibit the use this SIM card.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Because prior art needs to judge that MCC and MNC of SIM card is whether within the scope of pintle hook lock, and the representative of pintle hook lock scope is only the scope allowing to use SIM card, thus whether pintle hook lock only according to MCC and MNC of SIM card whether within the scope of the pintle hook lock of the pintle hook lock information of customization, cause pintle hook lock Method compare single, flexibility is not high.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and the device that realize pintle hook lock.Described technical scheme is as follows:
First aspect, provide a kind of method realizing pintle hook lock, described method comprises:
Obtain the pintle hook lock information in terminal, described pintle hook lock information at least comprises list mark, the length value of public land mobile network PLMN and pintle hook lock scope, and whether described list mark is the scope allowing the SIM card used for identifying described pintle hook lock scope;
List mark in MCC in reading SIM card, Mobile Network Code MNC and described pintle hook lock information, the length value of PLMN and pintle hook lock scope;
If the length value of described PLMN equals first threshold, then according to described list mark, pintle hook lock scope, described MCC, pintle hook lock operation is carried out to described SIM card;
If the length value of described PLMN equals Second Threshold, then according to described list mark, pintle hook lock scope, described MCC and described MNC, pintle hook lock operation is carried out to described SIM card.
In conjunction with first aspect, in the first possible implementation of first aspect, describedly according to described list mark, pintle hook lock scope and described MCC, pintle hook lock operation is carried out to described SIM card, comprise following at least one:
If described list is designated blacklist mark, and described MCC is within the scope of described pintle hook lock, then prohibit the use described SIM card;
If described list is designated blacklist mark, and described MCC is not within the scope of described pintle hook lock, then allow to use described SIM card;
If described list is designated white list mark, and described MCC is within the scope of described pintle hook lock, then allow to use described SIM card;
If described list is designated white list mark, and described MCC is not within the scope of described pintle hook lock, then prohibit the use described SIM card;
Wherein, described blacklist mark is the scope not allowing the SIM card used for identifying described pintle hook lock scope, and described white list mark is the scope allowing the SIM card used for identifying described pintle hook lock scope.
In conjunction with first aspect, in the implementation that the second is possible, describedly according to described list mark, pintle hook lock scope, described MCC and described MNC, pintle hook lock operation is carried out to described SIM card, comprise following at least one:
If described list is designated blacklist mark, and described MCC and MNC is within the scope of described pintle hook lock, then prohibit the use described SIM card;
If described list is designated blacklist mark, and described MCC and MNC be not within the scope of described pintle hook lock, then allow to use described SIM card;
If described list is designated white list mark, and described MCC and MNC is within the scope of described pintle hook lock, then allow to use described SIM card;
If described list is designated white list mark, and described MCC and MNC be not within the scope of described pintle hook lock, then prohibit the use described SIM card;
Wherein, described blacklist mark is the scope not allowing the SIM card used for identifying described pintle hook lock scope, and described white list mark is the scope allowing the SIM card used for identifying described pintle hook lock scope.
In conjunction with the first possible implementation of first aspect or the possible implementation of the second of first aspect, in the implementation that the third is possible, described in prohibit the use described SIM card after, also comprise:
Receive the PUK of user's input, and judge that whether the PUK received is consistent with the PUK prestored, if unanimously, then allow to use described SIM card.
Second aspect, provide a kind of device realizing pintle hook lock, described device comprises:
Acquisition module, for obtaining the pintle hook lock information in terminal, described pintle hook lock information at least comprises list mark, the length value of public land mobile network PLMN and pintle hook lock scope, and whether described list mark is the scope allowing the SIM card used for identifying described pintle hook lock scope;
First read module, for the list mark in the MCC in reading SIM card, Mobile Network Code MNC and described pintle hook lock information and pintle hook lock scope;
Operational module, at least carrying out pintle hook lock operation according to described list mark, pintle hook lock scope and described MCC to described SIM card;
Second read module, for reading the length value of the PLMN in pintle hook lock information that acquisition module gets;
Wherein, described operational module, comprising:
First operating unit, if equal first threshold for the length value of described PLMN, then carries out pintle hook lock operation according to described list mark, pintle hook lock scope, described MCC to described SIM card; Second operating unit, if equal Second Threshold for the length value of described PLMN, then carries out pintle hook lock operation according to described list mark, pintle hook lock scope, described MCC and described MNC to described SIM card.
In conjunction with second aspect, in the first possible implementation of second aspect, described operational module, if be designated blacklist mark specifically for described list, and described MCC is within the scope of described pintle hook lock, then prohibit the use described SIM card; And/or,
If be designated blacklist mark specifically for described list, and described MCC is not within the scope of described pintle hook lock, then allow to use described SIM card; And/or,
If be designated white list mark specifically for described list, and described MCC is within the scope of described pintle hook lock, then allow to use described SIM card; And/or,
If be designated white list mark specifically for described list, and described MCC is not within the scope of described pintle hook lock, then prohibit the use described SIM card;
Wherein, described blacklist mark is the scope not allowing the SIM card used for identifying described pintle hook lock scope, and described white list mark is the scope allowing the SIM card used for identifying described pintle hook lock scope.
In conjunction with second aspect, in the implementation that the second is possible, described operational module, if be designated blacklist mark specifically for described list, and described MCC and MNC is within the scope of described pintle hook lock, then prohibit the use described SIM card; And/or,
If be designated blacklist mark specifically for described list, and described MCC and MNC be not within the scope of described pintle hook lock, then allow to use described SIM card; And/or,
If be designated white list mark specifically for described list, and described MCC and MNC is within the scope of described pintle hook lock, then allow to use described SIM card; And/or,
If be designated white list mark specifically for described list, and described MCC and MNC be not within the scope of described pintle hook lock, then prohibit the use described SIM card;
Wherein, described blacklist mark is the scope not allowing the SIM card used for identifying described pintle hook lock scope, and described white list mark is the scope allowing the SIM card used for identifying described pintle hook lock scope.
In conjunction with the first possible implementation of second aspect or the possible implementation of the second of second aspect, in the implementation that the third is possible, described device, also comprises:
Unlocked state, for receiving the PUK of user's input, and judges that whether the PUK received is consistent with the PUK prestored, if unanimously, then allows to use described SIM card.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By adding list mark in pintle hook lock information, and whether this list mark is the scope allowing to use SIM card for identifying pintle hook lock scope, make pintle hook lock scope not only can represent the scope allowing use SIM card, also the scope prohibitting the use SIM card can be represented, thus provide new pintle hook lock foundation, extend pintle hook lock mode, and then improve the flexibility of pintle hook lock.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram realizing pintle hook lock that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram realizing pintle hook lock that the embodiment of the present invention two provides;
Fig. 3 is a kind of apparatus structure schematic diagram realizing pintle hook lock that the embodiment of the present invention three provides;
Fig. 4 is the apparatus structure schematic diagram that another kind that the embodiment of the present invention three provides realizes pintle hook lock;
Fig. 5 is the internal structure schematic diagram of a kind of operational module that the embodiment of the present invention three provides;
Fig. 6 be the embodiment of the present invention three provide another realize the apparatus structure schematic diagram of pintle hook lock;
Fig. 7 is a kind of apparatus structure schematic diagram realizing pintle hook lock that the embodiment of the present invention four provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of method realizing pintle hook lock, see Fig. 1, method flow comprises:
Step 101: obtain the pintle hook lock information in terminal, pintle hook lock information at least comprises list mark and pintle hook lock scope, and whether list mark is the scope allowing the SIM card used for identifying pintle hook lock scope;
Step 102: the list mark in the MCC in reading SIM card and pintle hook lock information and pintle hook lock scope;
Step 103: at least according to list mark, pintle hook lock scope and MCC, pintle hook lock operation is carried out to SIM card.
Further, method also comprises: the MNC in reading SIM card;
At least carry out pintle hook lock operation according to list mark, pintle hook lock scope and MCC to SIM card to comprise:
According to list mark, pintle hook lock scope, MCC and MNC, pintle hook lock operation is carried out to SIM card.
Further, the length value of PLMN can also be comprised in pintle hook lock information;
After obtaining the pintle hook lock information in terminal, also comprise:
Read the length value of the PLMN in pintle hook lock information, perform according to the length value of PLMN and at least according to list mark, pintle hook lock scope and MCC, the step of pintle hook lock operation is carried out to SIM card.
Further, perform according to the length value of PLMN and at least according to list mark, pintle hook lock scope and MCC, the step that SIM card carries out pintle hook lock operation comprised:
If the length value of PLMN equals first threshold, then according to list mark, pintle hook lock scope and MCC, pintle hook lock operation is carried out to SIM card;
If the length value of PLMN equals Second Threshold, then according to list mark, pintle hook lock scope, MCC and MNC, pintle hook lock operation is carried out to SIM card.
Further, according to list mark, pintle hook lock scope and MCC, pintle hook lock operation is carried out to SIM card, includes but not limited to:
If list is designated blacklist mark, and MCC is within the scope of pintle hook lock, then prohibit the use SIM card;
If list is designated blacklist mark, and MCC is not within the scope of pintle hook lock, then allow to use SIM card;
If list is designated white list mark, and MCC is within the scope of pintle hook lock, then allow to use SIM card;
If list is designated white list mark, and MCC is not within the scope of pintle hook lock, then prohibit the use SIM card;
Wherein, blacklist mark is the scope not allowing the SIM card used for identifying pintle hook lock scope, and white list mark is the scope allowing the SIM card used for identifying pintle hook lock scope.
Further, according to list mark, pintle hook lock scope, MCC and MNC, pintle hook lock operation is carried out to SIM card, includes but not limited to:
If list is designated blacklist mark, and MCC and MNC is within the scope of pintle hook lock, then prohibit the use SIM card;
If list is designated blacklist mark, and MCC and MNC be not within the scope of pintle hook lock, then allow to use SIM card;
If list is designated white list mark, and MCC and MNC is within the scope of pintle hook lock, then allow to use SIM card;
If list is designated white list mark, and MCC and MNC be not within the scope of pintle hook lock, then prohibit the use SIM card;
Wherein, blacklist mark is the scope not allowing the SIM card used for identifying pintle hook lock scope, and white list mark is the scope allowing the SIM card used for identifying pintle hook lock scope.
Further, after prohibitting the use SIM card, can also comprise:
Receive the PUK of user's input, and judge that whether the PUK received is consistent with the PUK prestored, if unanimously, then allow to use SIM card, if inconsistent, then prohibit the use SIM card.
The method that the embodiment of the present invention provides, by adding the length value of list mark and PLMN in pintle hook lock information, thus be MCC or MCC for SIM card and MNC according to the length value of PLMN mark pintle hook lock scope, and whether this list mark is the scope allowing to use SIM card for identifying pintle hook lock scope, make pintle hook lock scope not only can represent the scope allowing use SIM card, also the scope prohibitting the use SIM card can be represented, therefore pintle hook lock kind is not only added, additionally provide new pintle hook lock foundation, extend pintle hook lock mode, and then improve diversity and the flexibility of pintle hook lock.
Embodiment two
Embodiments provide a kind of method realizing pintle hook lock, the method is by obtaining the pintle hook lock information of write, pintle hook lock information comprises the length value of list mark, pintle hook lock scope and PLMN, whether list mark is the scope allowing to use SIM card for identifying pintle hook lock scope, and then the length value of PLMN is judged, to realize carrying out pintle hook lock operation according to MCC and MNC of list mark, pintle hook lock scope and SIM card to SIM card, or, to realize carrying out pintle hook lock operation according to the MCC of list mark, pintle hook lock scope and SIM card to SIM card.In conjunction with the content of above-described embodiment one, below the method that the present embodiment provides is described in detail.See Fig. 2, the method flow that the present embodiment provides comprises:
Step 201: obtain the pintle hook lock information in terminal, pintle hook lock information comprises the length value of list mark, pintle hook lock scope and PLMN, and whether list mark is the scope allowing the SIM card used for identifying pintle hook lock scope;
For this step, pintle hook lock information is except the length value of list mark, pintle hook lock scope and PLMN, and can also comprise other information, the present embodiment is not construed as limiting the specifying information in pintle hook lock information.When obtaining the pintle hook lock information of write, concrete obtain manner can realize according to existing obtain manner, and the present embodiment does not do concrete restriction equally to this.
Wherein, the network that PLMN sets up for providing land mobile business purpose and manages, this network and PSTN (PublicSwitchedTelephoneNetwork, public switched telephone network) interconnect, and form the communication network of whole distract or Country Scale.PLMN=MCC+MNC, MCC represent national code, and the national code of every country is different, and its length is 3, and such as, the MCC of China is 460.MNC is network code, and the network code of heterogeneous networks is different, and such as, the MNC of China Mobile network is 00, and the MNC of CHINAUNICOM's network is 01, then according to above formula, the PLMN that China Mobile network is corresponding is 46000, and the PLMN that CHINAUNICOM's network is corresponding is 46001.In pintle hook lock information, why add the length value of PLMN, be for MCC or MCC+MNC for identifying pintle hook lock scope by the length value of this PLMN.Such as, if carry out pintle hook lock for MCC, the length value of the PLMN in pintle hook lock information can be set to 3, then pintle hook lock scope to be one or more groups length be 3 number; If carry out pintle hook lock for MCC+MNC, the length value of the PLMN in pintle hook lock information can be set to 5, then pintle hook lock scope to be one or more groups length be 5 number.
Further, whether be allow to use the scope of SIM card still not allow to use the scope of SIM card to identify pintle hook lock scope, in pintle hook lock information, with the addition of list mark, be the scope allowing to use SIM card by this list mark for marking pintle hook lock scope.For convenience of description, also can white list is divided into identify list mark and blacklist mark, white list mark be the scope allowing to use SIM card for identifying pintle hook lock scope, and blacklist mark is the scope prohibitting the use SIM card for identifying pintle hook lock scope.Such as, if list is designated blacklist mark, be do not allow to use the scope of SIM card for identifying pintle hook lock scope, namely the scope of SIM card is prohibitted the use, the SIM card be then within the scope of pintle hook lock is prohibited from using, if list is designated white list mark, is the scope allowing to use SIM card for identifying pintle hook lock scope, the SIM card be then within the scope of pintle hook lock is supported by operator, can normally use.
Step 202: the length value reading the PLMN in pintle hook lock information, and judge that the length value of PLMN equals first threshold or Second Threshold, if equal first threshold, then perform step 205, if equal Second Threshold, then perform step 203;
Wherein, the present embodiment is with first threshold for 3, and Second Threshold is 5 for example, then get pintle hook lock information executing above-mentioned steps 201, after reading the length value of the PLMN in pintle hook lock information, can judge that the length value of the PLMN read equals first threshold or Second Threshold.If the length value of PLMN read equals first threshold, the length value of the PLMN namely read is 3, and the length of MCC is 3, then mean to carry out pintle hook lock operation for MCC; If the length value of PLMN read equals Second Threshold, the length value of the PLMN namely read is 5, and the length of MCC+MNC is 5, then mean to carry out pintle hook lock for MCC+MNC.
Alternatively, first threshold can also be 5, and Second Threshold is 3, if the length value of the PLMN then read equals first threshold, then performs step 203 and 204, if the length value of the PLMN read equals Second Threshold, then performs step 205 and 206.In addition, the size of the size of first threshold and Second Threshold and the length value of PLMN is except above-mentioned numerical value, and can also be other numerical value, the present embodiment do concrete restriction to this, and concrete large I is determined according to concrete condition.
Step 203: the list mark in MCC and MNC in reading SIM card, pintle hook lock information and pintle hook lock scope;
For this step, the length value of the PLMN judged in pintle hook lock information due to above-mentioned steps 202 equals Second Threshold, namely mean and carry out pintle hook lock for MCC+MNC, therefore, MCC and MNC in this step reading SIM card and the mark of the list in pintle hook lock information and pintle hook lock scope.Concrete reading manner can realize according to existing information reading manner, and the present embodiment does not do concrete restriction to this.
Step 204: pintle hook lock operation is carried out to SIM card according to list mark, pintle hook lock scope, MCC and MNC.
Particularly, above-mentioned steps 203 read MCC and MNC in SIM card and the list in pintle hook lock information mark and pintle hook lock scope after, just can carry out pintle hook lock operation according to the list mark in MCC and MNC in above-mentioned SIM card and pintle hook lock information and pintle hook lock scope to SIM card, concrete pintle hook lock operation includes but not limited to:
If list is designated blacklist mark, and MCC and MNC is within the scope of pintle hook lock, then prohibit the use SIM card;
If list is designated blacklist mark, and MCC and MNC be not within the scope of pintle hook lock, then allow to use SIM card;
If list is designated white list mark, and MCC and MNC is within the scope of pintle hook lock, then allow to use SIM card;
If list is designated white list mark, and MCC and MNC be not within the scope of pintle hook lock, then prohibit the use SIM card.
Step 205: the list mark in the MCC in reading SIM card, pintle hook lock information and pintle hook lock scope;
For this step, after above-mentioned steps 202 reads the length value of the PLMN in pintle hook lock information, judge that the length value of PLMN equals first threshold, namely carry out pintle hook lock for MCC, therefore, the MCC in this step reading SIM card, in pintle hook lock information list mark and pintle hook lock scope.Concrete reading manner can realize according to existing information reading manner, and the present embodiment does not do concrete restriction to this.
Step 206: pintle hook lock operation is carried out to SIM card according to list mark, pintle hook lock scope and MCC.
Particularly, above-mentioned steps 205 read the MCC in SIM card and the list in pintle hook lock information mark and pintle hook lock scope after, just can carry out pintle hook lock operation according to the list mark in the MCC in above-mentioned SIM card and pintle hook lock information and pintle hook lock scope to SIM card, concrete pintle hook lock operation includes but not limited to:
If list is designated blacklist mark, and MCC is within the scope of pintle hook lock, then prohibit the use SIM card;
If list is designated blacklist mark, and MCC is not within the scope of pintle hook lock, then allow to use SIM card;
If list is designated white list mark, and MCC is within the scope of pintle hook lock, then allow to use SIM card;
If list is designated white list mark, and MCC is not within the scope of pintle hook lock, then prohibit the use SIM card.
Further, for the pintle hook lock operation carried out in above-mentioned steps 204 and this step 206, for the situation prohibitting the use SIM card, the method that the present embodiment provides also supports unlocked step, and detailed process refers to following steps 207.
Step 207: the PUK receiving user's input, and judge that whether the PUK received is consistent with the PUK prestored, if unanimously, then allow to use SIM card, if inconsistent, then prohibit the use this SIM card.
For this step, for in above-mentioned steps 204 and step 206, if list is designated blacklist mark, and MCC or MCC/MNC of SIM card is within the scope of pintle hook lock, if or list is designated white list mark, and MCC or MCC/MNC of SIM card is not within the scope of pintle hook lock, then prohibit the use the situation of this SIM card, in order to normally use this SIM card, unlocking operation can be realized by following method:
First, receive the PUK of user's input, then judge that whether the PUK received is consistent with the PUK prestored, if unanimously, then allow normal this SIM card of use, if inconsistent, then this SIM card continues disabled.
Wherein, the PUK prestored can be written in corresponding file by corresponding equipment software in advance, certainly, also the PUK prestored can be written to other positions, or adopting other storage modes, the present embodiment does not specifically limit the storage mode of PUK and position.
The method that the embodiment of the present invention provides, by adding the length value of list mark and PLMN in pintle hook lock information, thus be MCC or MCC for SIM card and MNC according to the length value of PLMN mark pintle hook lock scope, and whether this list mark is the scope allowing to use SIM card for identifying pintle hook lock scope, make pintle hook lock scope not only can represent the scope allowing use SIM card, also the scope prohibitting the use SIM card can be represented, therefore pintle hook lock kind is not only added, additionally provide new pintle hook lock foundation, extend pintle hook lock mode, and then improve diversity and the flexibility of pintle hook lock.
Embodiment three
Present embodiments provide a kind of device realizing pintle hook lock, the method realizing pintle hook lock that this device provides for performing above-described embodiment one or embodiment two.See Fig. 3, device 30 comprises:
Acquisition module 31, for obtaining the pintle hook lock information in terminal, pintle hook lock information at least comprises list mark and pintle hook lock scope, and whether list mark is the scope allowing the SIM card used for identifying pintle hook lock scope;
First read module 32, for the list mark in the MCC in reading SIM card and pintle hook lock information and pintle hook lock scope;
Operational module 33, carries out pintle hook lock operation for list mark, pintle hook lock scope and the MCC at least read according to the first read module 32 to SIM card.
Further, the first read module 32, also for the MNC in reading SIM card;
Operational module 33, carries out pintle hook lock operation specifically for the list mark according to the first read module 32 reading, pintle hook lock scope, MCC and MNC to SIM card.
Further, the length value of PLMN is also comprised in the pintle hook lock information that acquisition module 31 gets;
See Fig. 4, device 30, also comprises:
Second read module 34, for reading the length value of the PLMN in pintle hook lock information that acquisition module 31 gets;
Operational module 33, at least carries out the step of pintle hook lock operation according to list mark, pintle hook lock scope and MCC to SIM card for performing according to the length value of PLMN.
Further, see Fig. 5, operational module 33, comprising:
First operating unit 331, if equal first threshold for the length value of PLMN, then carries out pintle hook lock operation according to list mark, pintle hook lock scope, MCC to SIM card;
Second operating unit 332, if equal Second Threshold for the length value of PLMN, then carries out pintle hook lock operation according to list mark, pintle hook lock scope, MCC and MNC to SIM card.
Further, the first operating unit 331, if be designated blacklist mark specifically for list, and MCC is within the scope of pintle hook lock, then prohibit the use SIM card; And/or,
If be designated blacklist mark specifically for list, and MCC is not within the scope of pintle hook lock, then allow to use SIM card; And/or,
If be designated white list mark specifically for list, and MCC is within the scope of pintle hook lock, then allow to use SIM card; And/or,
If be designated white list mark specifically for list, and MCC is not within the scope of pintle hook lock, then prohibit the use SIM card;
Wherein, blacklist mark is the scope not allowing the SIM card used for identifying pintle hook lock scope, and white list mark is the scope allowing the SIM card used for identifying pintle hook lock scope.
Further, the second operating unit 332, if be designated blacklist mark specifically for list, and MCC and MNC is within the scope of pintle hook lock, then prohibit the use SIM card; And/or,
If be designated blacklist mark specifically for list, and MCC and MNC be not within the scope of pintle hook lock, then allow to use SIM card; And/or,
If be designated white list mark specifically for list, and MCC and MNC is within the scope of pintle hook lock, then allow to use SIM card; And/or,
If be designated white list mark specifically for list, and MCC and MNC be not within the scope of pintle hook lock, then prohibit the use SIM card;
Wherein, blacklist mark is the scope not allowing the SIM card used for identifying pintle hook lock scope, and white list mark is the scope allowing the SIM card used for identifying pintle hook lock scope.
Further, see Fig. 6, device 30, also comprises:
Unlocked state 35, for receiving the PUK of user's input, and judges that whether the PUK received is consistent with the PUK prestored, if unanimously, then allows to use SIM card, if inconsistent, then prohibits the use SIM card.
In sum, the device that the embodiment of the present invention provides by adding the length value of list mark and PLMN in pintle hook lock information, thus be MCC or MCC for SIM card and MNC according to the length value of PLMN mark pintle hook lock scope, and whether this list mark is the scope allowing to use SIM card for identifying pintle hook lock scope, make pintle hook lock scope not only can represent the scope allowing use SIM card, also the scope prohibitting the use SIM card can be represented, therefore pintle hook lock kind is not only added, additionally provide new pintle hook lock foundation, extend pintle hook lock mode, and then improve diversity and the flexibility of pintle hook lock.
Embodiment four
Fig. 7 is the structural representation realizing the device of pintle hook lock in an execution mode, this device realizing pintle hook lock comprises at least one processor (601), such as CPU, at least one network interface 604 or other user interfaces 603, memory 605, and at least one communication bus 602.Communication bus 602 is for realizing the connection communication between these devices.User interface 603 can be display, keyboard or pointing device.Memory 605 may comprise high speed Ram memory, still may comprise nonvolatile memory (non-volatilememory), such as at least one magnetic disc store.Memory 605 optionally can comprise at least one and be positioned at storage device away from aforementioned CPU601.
The program that processor 601 is deposited for execute store 605, to realize following method: obtain the pintle hook lock information in terminal, pintle hook lock information at least comprises list mark and pintle hook lock scope, and whether list mark is the scope allowing the SIM card used for identifying pintle hook lock scope; List mark in MCC in reading SIM card and pintle hook lock information and pintle hook lock scope; At least according to list mark, pintle hook lock scope and MCC, pintle hook lock operation is carried out to SIM card.
Further, processor 601, also for the MNC in reading SIM card; According to list mark, pintle hook lock scope, MCC and MNC, pintle hook lock operation is carried out to SIM card.
Further, processor 601, also for reading the length value of the PLMN in pintle hook lock information, performing according to the length value of PLMN and at least carrying out the step of pintle hook lock operation according to list mark, pintle hook lock scope and MCC to SIM card; Wherein, the length value of PLMN is also comprised in pintle hook lock information.
Further, processor 601, if equal first threshold specifically for the length value of PLMN, then carries out pintle hook lock operation according to list mark, pintle hook lock scope, MCC to SIM card; If the length value of PLMN equals Second Threshold, then according to list mark, pintle hook lock scope, MCC and MNC, pintle hook lock operation is carried out to SIM card.
Further, processor 601, if be designated blacklist mark specifically for list, and MCC is within the scope of pintle hook lock, then prohibit the use SIM card; And/or if list is designated blacklist mark, and MCC is not within the scope of pintle hook lock, then allow to use SIM card; And/or if list is designated white list mark, and MCC is within the scope of pintle hook lock, then allow to use SIM card; And/or if list is designated white list mark, and MCC is not within the scope of pintle hook lock, then prohibit the use SIM card; Wherein, blacklist mark is the scope not allowing the SIM card used for identifying pintle hook lock scope, and white list mark is the scope allowing the SIM card used for identifying pintle hook lock scope.
Further alternatively, processor 601, if be designated blacklist mark specifically for list, and MCC and MNC is within the scope of pintle hook lock, then prohibit the use SIM card; And/or if list is designated blacklist mark, and MCC and MNC be not within the scope of pintle hook lock, then allow to use SIM card; And/or if list is designated white list mark, and MCC and MNC is within the scope of pintle hook lock, then allow to use SIM card; And/or if list is designated white list mark, and MCC and MNC be not within the scope of pintle hook lock, then prohibit the use SIM card; Wherein, blacklist mark is the scope not allowing the SIM card used for identifying pintle hook lock scope, and white list mark is the scope allowing the SIM card used for identifying pintle hook lock scope.
Further, processor 601, also for receiving the PUK of user's input, and judges that whether the PUK received is consistent with the PUK prestored, if unanimously, then allows to use SIM card.
In some embodiments, memory 605 stores following element, module or data structure, or their subset, or their superset:
Operating system 606, comprises various program, for realizing various basic business and processing hardware based task;
Application module 607, comprises acquisition module 31, first read module 32, operational module 33, second read module 34, unlocked state 35.The function of above-mentioned module can the declaratives of fundamental diagram of reference diagram 5, repeat no more herein.
The device that the present embodiment provides, by adding the length value of list mark and PLMN in pintle hook lock information, thus be MCC or MCC for SIM card and MNC according to the length value of PLMN mark pintle hook lock scope, and whether this list mark is the scope allowing to use SIM card for identifying pintle hook lock scope, make pintle hook lock scope not only can represent the scope allowing use SIM card, also the scope prohibitting the use SIM card can be represented, therefore pintle hook lock kind is not only added, additionally provide new pintle hook lock foundation, extend pintle hook lock mode, and then improve diversity and the flexibility of pintle hook lock.
It should be noted that: what above-described embodiment provided realizes the device of pintle hook lock when realizing pintle hook lock, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the device of what above-described embodiment provided realize pintle hook lock belongs to same design with the embodiment of the method realizing pintle hook lock, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.