CN103067909B - Realize method and the device of pintle hook lock - Google Patents

Realize method and the device of pintle hook lock Download PDF

Info

Publication number
CN103067909B
CN103067909B CN201210587476.0A CN201210587476A CN103067909B CN 103067909 B CN103067909 B CN 103067909B CN 201210587476 A CN201210587476 A CN 201210587476A CN 103067909 B CN103067909 B CN 103067909B
Authority
CN
China
Prior art keywords
hook lock
pintle hook
scope
sim card
mcc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210587476.0A
Other languages
Chinese (zh)
Other versions
CN103067909A (en
Inventor
卢定权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201210587476.0A priority Critical patent/CN103067909B/en
Publication of CN103067909A publication Critical patent/CN103067909A/en
Application granted granted Critical
Publication of CN103067909B publication Critical patent/CN103067909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of method and the device that realize pintle hook lock, belong to areas of information technology.Described method comprises: obtain the pintle hook lock information in terminal, and pintle hook lock information at least comprises list mark and pintle hook lock scope, and whether list mark is the scope allowing the user identification module SIM card used for identifying pintle hook lock scope; Mobile Country Code MCC MCC in reading SIM card and the list in pintle hook lock information identify 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.The present invention 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.

Description

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.

Claims (8)

1. realize a method for pintle hook lock, it is characterized in that, 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 user identification module SIM card used for identifying described pintle hook lock scope;
List mark in Mobile Country Code MCC 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.
2. method according to claim 1, is characterized in that, describedly carries out pintle hook lock operation according to described list mark, pintle hook lock scope and described MCC 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.
3. method according to claim 1, is characterized in that, describedly carries out pintle hook lock operation according to described list mark, pintle hook lock scope, described MCC and described MNC 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.
4. according to the method in claim 2 or 3, it is characterized in that, 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.
5. realize a device for pintle hook lock, it is characterized in that, 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 user identification module SIM card used for identifying described pintle hook lock scope;
First read module, for the list mark in the Mobile Country Code MCC 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.
6. device according to claim 5, is characterized in that, 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.
7. device according to claim 5, is characterized in that, 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.
8. the device according to claim 6 or 7, is characterized in that, 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.
CN201210587476.0A 2012-12-28 2012-12-28 Realize method and the device of pintle hook lock Active CN103067909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210587476.0A CN103067909B (en) 2012-12-28 2012-12-28 Realize method and the device of pintle hook lock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210587476.0A CN103067909B (en) 2012-12-28 2012-12-28 Realize method and the device of pintle hook lock

Publications (2)

Publication Number Publication Date
CN103067909A CN103067909A (en) 2013-04-24
CN103067909B true CN103067909B (en) 2016-03-09

Family

ID=48110337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210587476.0A Active CN103067909B (en) 2012-12-28 2012-12-28 Realize method and the device of pintle hook lock

Country Status (1)

Country Link
CN (1) CN103067909B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101157A (en) * 2014-05-16 2015-11-25 中兴通讯股份有限公司 Mobile terminal SIM control method and apparatus
CN106034298B (en) * 2015-03-11 2019-12-17 青岛海信移动通信技术股份有限公司 mobile terminal card locking method and terminal
CN105430738B (en) * 2015-12-29 2019-01-29 魅族科技(中国)有限公司 A kind of method and device for initiating registration
CN107124711A (en) * 2017-04-13 2017-09-01 青岛海信移动通信技术股份有限公司 The locking processing method and terminal of terminal
CN107222863A (en) * 2017-07-03 2017-09-29 上海与德科技有限公司 A kind of method and device of network locked
CN112383913B (en) * 2020-11-12 2024-05-14 深圳市锐尔觅移动通信有限公司 Terminal card locking control method and device, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478748A (en) * 2009-01-24 2009-07-08 深圳华为通信技术有限公司 Method and user equipment for SIM card unlocking prevention method
CN101568115A (en) * 2008-04-23 2009-10-28 联发科技股份有限公司 Method and system for performing personal identification number verification
CN102137389A (en) * 2011-03-18 2011-07-27 惠州Tcl移动通信有限公司 Multi-card mobile terminal and method for transferring data of SIM card
WO2011091658A1 (en) * 2010-01-28 2011-08-04 中兴通讯股份有限公司 Terminal and method for binding sim card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568115A (en) * 2008-04-23 2009-10-28 联发科技股份有限公司 Method and system for performing personal identification number verification
CN101478748A (en) * 2009-01-24 2009-07-08 深圳华为通信技术有限公司 Method and user equipment for SIM card unlocking prevention method
WO2011091658A1 (en) * 2010-01-28 2011-08-04 中兴通讯股份有限公司 Terminal and method for binding sim card
CN102137389A (en) * 2011-03-18 2011-07-27 惠州Tcl移动通信有限公司 Multi-card mobile terminal and method for transferring data of SIM card

Also Published As

Publication number Publication date
CN103067909A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
CN103067909B (en) Realize method and the device of pintle hook lock
CN107889178B (en) Network system switching method of acquisition terminal and terminal equipment
CN105338515B (en) Data service transmission method and mobile communication equipment
CN108476391A (en) Activating method, wireless router and the user terminal of ESIM cards
CN106358181A (en) Method and device for loading MBN document
CN105578590B (en) A kind of the whole network leads to the network registering method and terminal of terminal
CN103906272B (en) WLAN collocation method and wireless terminal
CN109842886B (en) Frequency-reducing network-quitting method and device for communication network
CN112312378B (en) Sharing method and device of operator network and core network equipment
CN107094305A (en) A kind of cut-in method of wireless network, device and user terminal
CN110290024B (en) Method, device and equipment for testing strategy before online
CN204012075U (en) A kind of data card connector and terminal
CN103942054A (en) Data evidence obtaining system based on Android
CN105101162A (en) Method and device for automatically loading MBN (ModemConfiguration Binary File)
CN105430738B (en) A kind of method and device for initiating registration
CN110012455A (en) A kind of management method of account information, device and electronic equipment
CN103813439A (en) Method for terminal register and terminal
CN105530625A (en) Information processing method and electronic device
CN106303031A (en) The processing method of a kind of terminal, system and terminal
KR102037556B1 (en) Method and device for upgrading telephone number in wireless terminal self-adaptive network upgrade
CN102984330A (en) Contact person data management method of communication device
CN101365198B (en) Multiple card information sharing method and mobile terminal
CN106792698A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN102752753B (en) A kind of method and mobile radio terminal of control ZigBee-network
CN106341810B (en) A kind of method and mobile terminal of double-card mobile terminal card selection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20171108

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: Huawei terminal (Dongguan) Co.,Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: Huawei terminal (Dongguan) Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20210420

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right