Specific embodiment
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below
Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
To explain the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Please refer to Fig. 1.The embodiment of the present invention provides a kind of SIM card locking means, including:
S1, judge whether SIM card meets carrier network condition according to SIM card information;
S2, terminal modifications meet PIN (the Personal Identification of the SIM card of carrier network condition
Number, personal recognition code) code, and the enabled new PIN code of SIM card, and modified new PIN code is saved in terminal NV (NV
The abbreviation of RAM, Nonvolatile Random Access Memory, nonvolatile random access memory).
Further, in step sl, described to judge whether SIM card meets carrier network condition according to SIM card information;
Including:
S11, terminal are resident during network, reading SIM card relevant information, wherein the SIM card relevant information includes
PLMN (Pubilc Land Mobile Network, public land mobile network) information specifically, including reads PLMN information
Middle MCC (Mobile Country Code, mobile country code)/MNC (Mobile Network Code, mobile network code, MNC)
Information.
Terminal is resident during network, and when normal condition reaches preparation (READY), the PLMN of terminal reading SIM card believes
Breath, the MCC/MNC information of specific reading SIM card.
S12, by the SIM card relevant information, judge whether SIM card meets carrier network condition.
Operator presets the PLMN information comprising the operator in custom terminal in the custom terminal, wherein
The PLMN information includes the specified range of the MCC/MNC of the operator.The MCC/MNC information and terminal that terminal will be read
Preset MCC/MNC information is compared, according to comparison result, if the MCC/MNC of SIM card is in the specified range of operator
Interior, the terminal can work normally;If the MCC/MNC of SIM card is not in the specified range of operator, the terminal will not
It can work normally.So as to ensure that the terminal customized can only operate in the network of operator oneself.
Further, in step s 2, the terminal modifications meet the PIN code of the SIM card of carrier network condition, and make
The new PIN code of energy SIM card, and modified new PIN code is saved in terminal NV;Including:
S21, the SIM card for meeting carrier network condition, the PIN code of SIM card described in terminal modifications;Including:
Terminal prestores operator's SIM card initial p IN code, and operator's SIM card initial p IN code is all for the operator
The identical initial p IN password of SIM card;
For meeting the SIM card of carrier network condition, terminal by the operator's SIM card initial p IN code prestored with
SIM card initial p IN code is compared, and if the comparison results are consistent, according to the initial of default PIN code modification strategy modification SIM card
PIN code makes SIM card have new PIN code;Wherein, the default PIN code modification strategy includes random generation strategy, by certain rule
Generation strategy etc.;
S22, terminal enable the new PIN code of SIM card;
Modified new PIN code is saved in terminal NV by S23, terminal.
By above operation, the terminal is repaired for meeting the SIM card of carrier network condition according to default PIN code
Change strategy modification PIN code and keep modified new PIN code enabled, and new PIN code is only stored in the terminal NV, Qi Tashe
It is standby to be not aware that the modified new PIN code information of the SIM card.In this way, to reach the terminal and the SIM card
The purpose of locking.
Further, the method also includes:Automatic Verification PIN code when the terminal starting up.
Due to after carrying out PIN modification, having reached the purpose of SIM card and terminal locking, and new PIN code generated and
It is enabled, and new PIN code is only stored in the NV of the terminal.
In each starting up, meeting automatic Verification PIN code will obtain automatically during startup and be stored in NV terminal
In PIN code, compare verification with the PIN code of SIM card, verification is worked normally by rear terminal, is not passed through if verified, institute
Stating terminal can not work normally, and have SIM PIN prompt.
Further, the method also includes:The SIM card and the terminal locking are released according to default unlocking mechanism;
Including:
The default unlocking mechanism is the SIM card PIN code to be reverted to initial p IN code, and the terminal is made to go to enable
PIN code.
By above default unlocking mechanism operation, SIM card can be allow to use in other terminals, can be made
Custom terminal uses other SIM cards.
Please refer to Fig. 2.The embodiment of the present invention provides a kind of SIM card locking device, and the SIM card locking device 20 includes:
Judgment module 201, modified module 202, enabled module 203, preserving module 204, wherein:
The judgment module 201, for judging whether SIM card meets carrier network condition according to SIM card information;
The modified module 202 meets the SIM card PIN code of carrier network condition for terminal modifications;
The enabled module 203 enables the new PIN code of SIM card for terminal;
The preserving module 204, for saving modified new PIN code into terminal NV.
Further, the judgment module 201, for judging whether SIM card meets carrier network according to SIM card information
Condition;Including:
Terminal is resident during network, reading SIM card relevant information, wherein the SIM card relevant information includes PLMN letter
Breath specifically, including reads MCC/MNC information in PLMN information;
The MCC/MNC information for reading SIM card is compared with the preset MCC/MNC information of terminal, judges that SIM card is
It is no to meet carrier network condition, if the MCC/MNC of SIM card, in the specified range of operator, the terminal can be normal
Work;If the MCC/MNC of SIM card is not in the specified range of operator, the terminal will not be worked normally.So as to
Ensure that the terminal customized can only operate in the network of operator oneself.
Further, the modified module 202 meets the SIM card PIN code of carrier network condition for terminal modifications;
Including:
For meeting the SIM card of carrier network condition, the operator's SIM card initial p IN code and SIM card that will prestore
Initial p IN code is compared, and if the comparison results are consistent, and the initial p IN code of strategy modification SIM card is modified according to default PIN code,
SIM card is set to have new PIN code;Wherein, the default PIN code modification strategy generates plan including random generation strategy, by certain rule
Slightly etc..
Further, the SIM card locking device 20 further includes correction verification module 205, and the correction verification module 205 is used for terminal
Automatic Verification PIN code when starting up, including:
In each starting up, automatic Verification PIN code will be obtained automatically during startup and will be stored in NV terminal
PIN code, compare verification with the PIN code of SIM card, verification is worked normally by rear terminal, is not passed through if verified, described
Terminal can not work normally, and have SIM PIN prompt.
Further, the modified module 202 is also used to when releasing the SIM card and the terminal locking, will be described
SIM card PIN code reverts to initial p IN code.
Further, the enabled module 203 is also used to when releasing the SIM card and the terminal locking, is made described
Terminal removes enabled PIN code.
Please refer to Fig. 2.The embodiment of the present invention provides a kind of terminal, and the terminal 300 includes:SIM card device 10, SIM card
Locking device 20, wherein:
The SIM card device 10 is connect, for installing SIM card with the SIM card locking device 20;
The SIM card locking device 20, for judging whether SIM card meets carrier network condition according to SIM card information,
Modification meets the SIM card PIN code of carrier network condition, and the enabled new PIN code of SIM card, and modified new PIN code is saved
Into terminal NV;Including:Judgment module 201, modified module 202, enabled module 203, preserving module 204, wherein:
The judgment module 201, for judging whether SIM card meets carrier network condition according to SIM card information;
The modified module 202 meets the SIM card PIN code of carrier network condition for terminal modifications;
The enabled module 203 enables the new PIN code of SIM card for terminal;
The preserving module 204, for saving modified new PIN code into terminal NV.
Further, the judgment module 201, for judging whether SIM card meets carrier network according to SIM card information
Condition;Including:
Terminal is resident during network, reading SIM card relevant information, wherein the SIM card relevant information includes PLMN letter
Breath specifically, including reads MCC/MNC information in PLMN information;
The MCC/MNC information for reading SIM card is compared with the preset MCC/MNC information of terminal, judges that SIM card is
It is no to meet carrier network condition, if the MCC/MNC of SIM card, in the specified range of operator, the terminal can be normal
Work;If the MCC/MNC of SIM card is not in the specified range of operator, the terminal will not be worked normally.So as to
Ensure that the terminal customized can only operate in the network of operator oneself.
Further, the modified module 202 meets the SIM card PIN code of carrier network condition for terminal modifications;
Including:
For meeting the SIM card of carrier network condition, the operator's SIM card initial p IN code and SIM card that will prestore
Initial p IN code is compared, and if the comparison results are consistent, and the initial p IN code of strategy modification SIM card is modified according to default PIN code,
SIM card is set to have new PIN code;Wherein, the default PIN code modification strategy generates plan including random generation strategy, by certain rule
Slightly etc.
Further, the SIM card locking device 20 further includes correction verification module 205, and the correction verification module 205 is used for terminal
Automatic Verification PIN code when starting up, including:
In each starting up, automatic Verification PIN code will be obtained automatically during startup and will be stored in NV terminal
PIN code, compare verification with the PIN code of SIM card, verification is worked normally by rear terminal, is not passed through if verified, described
Terminal can not work normally, and have SIM PIN prompt.
Further, the modified module 202 is also used to when releasing the SIM card and the terminal locking, will be described
SIM card PIN code reverts to initial p IN code.
Further, the enabled module 203 is also used to when releasing the SIM card and the terminal locking, is made described
Terminal removes enabled PIN code.
Based on a kind of above-mentioned SIM card locking means scheme, the method for the present invention following embodiment is proposed.
Please refer to Fig. 4.The embodiment of the invention provides a kind of SIM card locking means, including:
S101, terminal starting up.
S102, terminal obtain PIN code, obtain the PIN of the PIN code being stored in NV and SIM card automatically during startup
Code.
S103, client checks PIN code, the PIN code that will acquire the PIN code and SIM card that are stored in NV compare verification,
Verification is worked normally by rear terminal, is transferred to S104, if verification does not pass through, the terminal be can not work normally, and is transferred to S111,
Process terminates.
S104, terminal further judge whether the PIN code passed through is SIM card initial p IN code, if so, it is transferred to S105, it is no
It is then transferred to S110, terminal enters normal operating conditions.
S105, terminal are resident during network, reading SIM card relevant information, wherein the SIM card relevant information includes
PLMN information specifically, including reads MCC/MNC information in PLMN information.
S106, by the SIM card relevant information, judge whether SIM card meets carrier network condition, if met,
It is transferred to S107;If do not met, it is transferred to S111, process terminates.
The MCC/MNC information read is compared terminal with the preset MCC/MNC information of terminal, ties according to comparing
Fruit, if the MCC/MNC of SIM card, in the specified range of operator, the terminal can work normally;If SIM card
Not in the specified range of operator, the terminal will not work normally MCC/MNC.
S107, the SIM card for meeting carrier network condition, the PIN code of SIM card described in terminal modifications;Including:For
The SIM card for meeting carrier network condition, by the operator's SIM card initial p IN code prestored and SIM card initial p IN code into
Row compares, and if the comparison results are consistent, according to the initial p IN code of default PIN code modification strategy modification SIM card, there is SIM card newly
PIN code;Wherein, the default PIN code modification strategy includes random generation strategy, by certain regular generation strategy etc..
S108, terminal enable the new PIN code of SIM card;
Modified new PIN code is saved in terminal NV by S109, terminal.
S110, terminal enter normal operating conditions.
S111, process terminate.
In addition, the embodiment of the present invention also provides a kind of terminal, including:Memory, processor and it is stored in the memory
In and one or more computer program that can run on the processor, one or more of computer program quilts
The following steps of SIM card locking means provided in an embodiment of the present invention are realized when the processor executes:
S1, judge whether SIM card meets carrier network condition according to SIM card information;
S2, terminal modifications meet the PIN code of the SIM card of carrier network condition, and the new PIN code of enabled SIM card, and will
Modified new PIN code is saved in terminal NV.
Further, in step sl, described to judge whether SIM card meets carrier network condition according to SIM card information;
Including:
S11, terminal are resident during network, reading SIM card relevant information, wherein the SIM card relevant information includes
PLMN information specifically, including reads MCC/MNC information in PLMN information.
S12, by the SIM card relevant information, judge whether SIM card meets carrier network condition.
The MCC/MNC information read is compared terminal with the preset MCC/MNC information of terminal, ties according to comparing
Fruit, if the MCC/MNC of SIM card, in the specified range of operator, the terminal can work normally;If SIM card
Not in the specified range of operator, the terminal will not work normally MCC/MNC.So as to the terminal for ensuring to customize
It can work in the network of operator oneself.
Further, in step s 2, the terminal modifications meet the PIN code of the SIM card of carrier network condition, and make
The new PIN code of energy SIM card, and modified new PIN code is saved in terminal NV;Including:
S21, the SIM card for meeting carrier network condition, the PIN code of SIM card described in terminal modifications;Including:
For meeting the SIM card of carrier network condition, terminal by the operator's SIM card initial p IN code prestored with
SIM card initial p IN code is compared, and if the comparison results are consistent, according to the initial of default PIN code modification strategy modification SIM card
PIN code makes SIM card have new PIN code;Wherein, the default PIN code modification strategy includes random generation strategy, by certain rule
Generation strategy etc.;
S22, terminal enable the new PIN code of SIM card;
Modified new PIN code is saved in terminal NV by S23, terminal.
By above operation, the terminal is repaired for meeting the SIM card of carrier network condition according to default PIN code
Change strategy modification PIN code and keep modified new PIN code enabled, and new PIN code is only stored in the terminal NV, Qi Tashe
It is standby to be not aware that the modified new PIN code information of the SIM card.In this way, to reach the terminal and the SIM card
The purpose of locking.
Further, the method also includes:Automatic Verification PIN code when the terminal starting up.
In each starting up, meeting automatic Verification PIN code will obtain automatically during startup and be stored in NV terminal
In PIN code, compare verification with the PIN code of SIM card, verification is worked normally by rear terminal, is not passed through if verified, institute
Stating terminal can not work normally, and have SIM PIN prompt.
Further, the method also includes:The SIM card and the terminal locking are released according to default unlocking mechanism;
Including:
The default unlocking mechanism is the SIM card PIN code to be reverted to initial p IN code, and the terminal is made to go to enable
PIN code.
It should be noted that above-mentioned terminal embodiment and embodiment of the method belong to same design, specific implementation process is detailed
See embodiment of the method, and the technical characteristic in embodiment of the method is corresponding applicable in terminal embodiment, which is not described herein again.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium, the computer readable storage medium
On be stored with one or more programs of SIM card locking means, one or more program quilt of the SIM card locking means
The following steps of SIM card locking means provided in an embodiment of the present invention are realized when processor executes.
S1, judge whether SIM card meets carrier network condition according to SIM card information;
S2, terminal modifications meet the PIN code of the SIM card of carrier network condition, and the new PIN code of enabled SIM card, and will
Modified new PIN code is saved in terminal NV.
Further, in step sl, described to judge whether SIM card meets carrier network condition according to SIM card information;
Including:
S11, terminal are resident during network, reading SIM card relevant information, wherein the SIM card relevant information includes
PLMN information specifically, including reads MCC/MNC information in PLMN information.
S12, by the SIM card relevant information, judge whether SIM card meets carrier network condition.
The MCC/MNC information read is compared terminal with the preset MCC/MNC information of terminal, ties according to comparing
Fruit, if the MCC/MNC of SIM card, in the specified range of operator, the terminal can work normally;If SIM card
Not in the specified range of operator, the terminal will not work normally MCC/MNC.So as to the terminal for ensuring to customize
It can work in the network of operator oneself.
Further, in step s 2, the terminal modifications meet the PIN code of the SIM card of carrier network condition, and make
The new PIN code of energy SIM card, and modified new PIN code is saved in terminal NV;Including:
S21, the SIM card for meeting carrier network condition, the PIN code of SIM card described in terminal modifications;Including:
For meeting the SIM card of carrier network condition, terminal by the operator's SIM card initial p IN code prestored with
SIM card initial p IN code is compared, and if the comparison results are consistent, according to the initial of default PIN code modification strategy modification SIM card
PIN code makes SIM card have new PIN code;Wherein, the default PIN code modification strategy includes random generation strategy, by certain rule
Generation strategy etc.;
S22, terminal enable the new PIN code of SIM card;
Modified new PIN code is saved in terminal NV by S23, terminal.
By above operation, the terminal is repaired for meeting the SIM card of carrier network condition according to default PIN code
Change strategy modification PIN code and keep modified new PIN code enabled, and new PIN code is only stored in the terminal NV, Qi Tashe
It is standby to be not aware that the modified new PIN code information of the SIM card.In this way, to reach the terminal and the SIM card
The purpose of locking.
Further, the method also includes:Automatic Verification PIN code when the terminal starting up.
In each starting up, meeting automatic Verification PIN code will obtain automatically during startup and be stored in NV terminal
In PIN code, compare verification with the PIN code of SIM card, verification is worked normally by rear terminal, is not passed through if verified, institute
Stating terminal can not work normally, and have SIM PIN prompt.
Further, the method also includes:The SIM card and the terminal locking are released according to default unlocking mechanism;
Including:
The default unlocking mechanism is the SIM card PIN code to be reverted to initial p IN code, and the terminal is made to go to enable
PIN code.
It should be noted that SIM card locking means program embodiment and method on above-mentioned computer readable storage medium
Embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, and the technical characteristic in embodiment of the method is upper
It states to correspond in the embodiment of computer readable storage medium and be applicable in, which is not described herein again.
The present invention provides a kind of car networking terminal SIM card locking means, device, terminal and computer-readable storage mediums
Matter, by judging whether SIM card meets carrier network condition according to SIM card information, modification meets carrier network condition
The personal recognition code PIN code of SIM card, and the enabled new PIN code of SIM card, and save new PIN code and visited to terminal non-volatile random
Ask memory NV, other equipment are not aware that the technical solution of the modified new PIN code information of SIM card, reach the terminal with
The purpose of the SIM card locking, not only may insure the number of users under the carrier network, but also custom terminal can be made normal
Networking work, it is ensured that the migration efficiency of operator can normally be implemented, so that it is guaranteed that operator's interests.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.