CN110944318A - Lock card setting method and device, storage medium and terminal - Google Patents
Lock card setting method and device, storage medium and terminal Download PDFInfo
- Publication number
- CN110944318A CN110944318A CN201911206479.3A CN201911206479A CN110944318A CN 110944318 A CN110944318 A CN 110944318A CN 201911206479 A CN201911206479 A CN 201911206479A CN 110944318 A CN110944318 A CN 110944318A
- Authority
- CN
- China
- Prior art keywords
- sim card
- terminal
- information
- model
- model information
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/02—Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the application discloses a card locking setting method, a device, a storage medium and a terminal, wherein when the SIM card is detected to exist in the terminal, the model information of the SIM card is obtained; judging whether the SIM card is an SIM card of which the terminal can support the operator type or not based on the model information; if yes, acquiring storage information of the designated storage area; and when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area. In this embodiment, by obtaining the model information of the SIM card inserted by the user, and according to the model information and the SIM card setting in the specified storage area of the terminal, it is further determined whether the terminal can support the SIM card based on the model information of the SIM card, so that the user can lock the terminal supportable SIM card information according to the SIM card inserted for the first time, thereby implementing the function of dynamically locking the SIM card by the terminal.
Description
Technical Field
The application relates to the field of mobile terminal application, in particular to a lock card setting method and device, a storage medium and a terminal.
Background
SIM (Subscriber Identity Module) cards, also called Subscriber Identity cards, smart cards, GSM (Global System For Mobile Communications) digital Mobile phones (GSM) must be equipped with the card For use. The information of the digital mobile phone client, the encrypted key, the telephone book of the user and other contents are stored on the computer chip, so that the identity of the GSM network client can be identified, and the voice information of the client during communication can be encrypted. SIM locking is to limit the use of some SIM cards on a mobile terminal, and the limitation is to prohibit the use of SIM cards of other operators on terminals issued by the mobile terminal while protecting the benefits of the mobile terminal, so as to achieve the purpose of limiting competitors.
In the related art, the design of SIM locking and the specific locking of which operator's card are configured already when the mobile terminal leaves the factory, and the user can only lock the card according to the configuration of leaving the factory.
Disclosure of Invention
The embodiment of the application provides a card locking setting method and device, a storage medium and a terminal, and the dynamic card locking function of the terminal can be realized.
The embodiment of the application provides a lock card setting, include:
when the SIM card is detected to exist in the terminal, the model information of the SIM card is obtained;
judging whether the SIM card is an SIM card of which the terminal can support the operator type or not based on the model information;
if yes, acquiring storage information of the designated storage area;
and when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area.
Correspondingly, this application embodiment still provides a lock card setting device, includes:
the terminal comprises a detection unit, a judging unit and a judging unit, wherein the detection unit is used for acquiring the model information of an SIM card when detecting that the SIM card exists in the terminal;
a judging unit, configured to judge whether the SIM card is an operator-supportable SIM card for the terminal based on the model information;
an acquisition unit configured to acquire storage information specifying a storage area;
and the storage unit is used for storing the model information to the specified storage area when the storage information does not contain the model configuration information of the terminal SIM card.
Correspondingly, an embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the lock card setting method described above.
Correspondingly, an embodiment of the present application further provides a terminal, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the lock setting method described above.
The embodiment of the application discloses a card locking setting method, a device, a storage medium and a terminal, wherein when the SIM card is detected to exist in the terminal, the model information of the SIM card is obtained; judging whether the SIM card is an SIM card of which the terminal can support the operator type or not based on the model information; if yes, acquiring storage information of the designated storage area; and when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area. In this embodiment, by obtaining the model information of the SIM card inserted by the user, and according to the model information and the SIM card setting in the specified storage area of the terminal, it is further determined whether the terminal can support the SIM card based on the model information of the SIM card, so that the user can lock the terminal supportable SIM card information according to the SIM card inserted for the first time, thereby implementing the function of dynamically locking the SIM card by the terminal.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a first method for setting a lock card according to an embodiment of the present disclosure.
Fig. 2 is a schematic flowchart of a second method for setting a card lock according to an embodiment of the present disclosure.
Fig. 3 is a block diagram of a structure of a card locking setting device according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the above problems, embodiments of the present application provide a first method, an apparatus, a storage medium, and a terminal for setting a card lock, which can improve the efficiency of setting the card lock of the terminal. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a card locking setting method according to an embodiment of the present disclosure. The lock card setting method can be applied to mobile terminals such as mobile phones, tablet computers, notebook computers, palmtop computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the lock card setting method can be as follows:
101. and when the SIM card is detected to exist in the terminal, obtaining the model information of the SIM card.
In this embodiment, the inserting the SIM card into the terminal may include various situations, for example, the user may insert the SIM card when the terminal is powered on, or insert the SIM card when the terminal is powered off, and so on.
The SIM card may be classified into multiple operator types of SIM cards, for example, the SIM card may belong to operator a, operator B, or operator C, and so on. Further, each carrier type of SIM card may include multiple models, for example, carrier a may include carrier a100, carrier a200, carrier a300, and so on.
Specifically, when the presence of a SIM card is detected, all data information of the SIM card may be read. The data information may include model information of the SIM card, and the model information may indicate an operator type of the SIM card and a specific model of the SIM card corresponding to the operator type.
For example, the obtained model information of the SIM card may be operator a100, and then the operator a100 may indicate that the SIM card belongs to an operator a type SIM card and has a model of 100.
102. And judging whether the SIM card is an operator type SIM card which can be supported by the terminal or not based on the model information.
Specifically, whether the SIM card is the SIM card of which the terminal can support the operator type is determined based on the model information, the operator type of the SIM card can be matched with the operator type of which the terminal can support, and the determination is performed according to the matching result.
In some embodiments, the step of "determining whether the SIM card is an operator-supportable SIM card of the terminal based on the model information" may include the following steps:
determining the information of an operator to which the SIM card belongs according to the model information;
matching the operator information to which the SIM card belongs with the operator information supported by the terminal;
if the matching is successful, the SIM card is judged to be the SIM card of which the terminal can support the operator type;
and if the matching fails, judging that the SIM card is not an SIM card which can support the operator type by the terminal.
Specifically, the information of the operator to which the SIM card belongs is determined according to the model information, and the model information of the SIM card may include the information of the operator to which the SIM card belongs, for example, the information of the model number of the SIM card may be operator B100, where the signal information includes that the operator to which the SIM card belongs is operator B.
After determining the operator type of the SIM card, the operator type of the SIM card may be matched with the operator types supported by the terminal. The operator type supported by the terminal may be set when the terminal is not shipped from a factory.
For example, in manufacturing a terminal, the type of operator that the terminal can support may be set to one or more of operator a, operator B, or operator C, and the like. The operator types supported by the terminal may then be stored in a terminal operator profile, from which the terminal may obtain when it obtains the native operator type. In this embodiment, for the convenience of the user, the terminal used may be an operator type.
The operator type of the SIM card is matched with the operator type supported by the terminal, for example, the obtained operator type of the SIM card is operator B, and the operator type supported by the terminal may be operator a, operator B, operator C, or the like.
When the operator type supported by the terminal is operator B, which may indicate that the operator type of the SIM card is successfully matched with the operator type supported by the terminal, it may be determined that the SIM card is an SIM card that can support the operator type of the terminal, and step 103 is performed; when the operator type supported by the terminal is operator a, operator C, or another type, which may indicate that matching between the operator type of the SIM card and the operator type supported by the terminal fails, it may be determined that the SIM card is not a SIM card of an operator type supportable by the terminal, and step 104 is executed.
103. And if so, acquiring the storage information of the specified storage area.
And when the SIM card is determined to be the SIM card which can support the operator type, acquiring the storage information of the appointed storage area of the terminal. The specified storage area may be used to store setting information of the terminal for the SIM card, the storage information includes all stored contents of the specified storage area, and may include a terminal supportable operator type, multiple models of supportable operator type, model configuration information of the terminal SIM card (setting information of the terminal for setting the inserted SIM card), and the like.
The designated memory area may implement a function of information locking, for example, a function similar to OTP (ONE time programmable), allowing a user to lock the memory area after data is stored, and then not allow the memory area to be modified.
104. And finishing the operation.
In some embodiments, the following steps may also be included;
and when the SIM card is not the SIM card which can support the operator type, stopping reading the network information of the SIM card.
Specifically, when the SIM card is not a SIM card of a type that the terminal can support the operator, the reading of the network information of the SIM card may be stopped, that is, the SIM card may not be used on the terminal.
105. And when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area.
After the storage information of the appointed storage area is acquired, whether the storage information comprises model configuration information of the terminal SIM card is detected. The model configuration information of the terminal SIM card may refer to the terminal performing model configuration information setting according to the inserted SIM card.
For example, when the storage information includes model configuration information, it may indicate that the terminal has previously inserted a SIM card and performs setting of the model configuration information; when the storage information does not include the model configuration information, it may indicate that the SIM card currently inserted into the terminal is the initially inserted SIM card.
Specifically, when the storage information does not include the model configuration information of the terminal SIM card, the model information of the SIM card may be stored in the terminal-specified storage area. For example, the model information of the SIM card may be stored in a terminal-specific storage area, and the model information may be used as the model configuration information of the terminal SIM card.
In some embodiments, the step of "storing the model information to the designated storage area" may include the following procedures:
carrying out encryption operation on the model information to obtain encrypted data;
and writing the encrypted data into the specified storage area and locking.
Specifically, the encryption operation for the model information may be performed by the terminal processor, and may be performed by converting the content of the model information into model data, for example, the model data may be a combination of numbers consisting of 0 and 1. The encrypted model data can be obtained by encrypting the signal data. For example, the model information may be the operator a100, and by performing an encryption operation, the encrypted model data may be represented as 0101 (data write format acceptable by the register), and so on.
The encrypted model data is written into the designated storage area and stored, and because the designated area can realize the OTP function, the model configuration information of the designated storage area can be locked after the model information is stored in the designated storage area.
When the storage information does not include the model configuration information of the terminal SIM card, corresponding operations may be performed according to the signal configuration information, that is, in some embodiments, the method may further include the following steps:
when the storage information contains the model configuration information of the terminal SIM card, matching the model information with the model configuration information;
and if the matching is successful, performing network registration according to the model information.
Specifically, when the storage information includes model configuration information of the SIM card of the terminal, it indicates that the terminal has previously inserted the SIM card and performs setting of the model configuration information. The model information of the SIM card can be matched with the model configuration information of the terminal SIM card.
For example, the model information may be operator a100, the model configuration information may be operator a100, and if it is determined that the model information and the model configuration information are successfully matched, network registration may be performed according to signal information of the SIM card, that is, the terminal may support use of the SIM card.
After the model information is stored in the designated storage area, the method further comprises the following steps:
and performing network registration according to the model information.
Specifically, the step of performing network registration according to the model information may include the following steps:
acquiring the network type of the SIM card based on the model information;
and performing network registration according to the network type.
Specifically, based on the network type of the model information acquiring SIM card, the network type may include multiple types, such as 2G (2th-Generation, second Generation mobile communication technology), 3G, 4G, or 5G, and so on.
For example, if the network type of the SIM card is determined to be 4G according to the model information of the SIM card, network registration may be performed according to the operator type corresponding to the SIM card and the acquired 4G network type, and after the registration is successful, the terminal may perform network connection through the 4G network type.
According to the scheme, when the SIM card is detected to exist in the terminal, the model information of the SIM card is acquired; judging whether the SIM card is an SIM card of which the terminal can support the operator type or not based on the model information; if yes, acquiring storage information of the designated storage area; and when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area. In the embodiment, the model information of the SIM card is acquired, the type of the operator is determined according to the model information, whether the terminal can support the type of the operator is judged, then the model information is matched with the SIM card setting information in the specified storage area of the terminal, whether the terminal can support the SIM card can be further judged based on the model information of the SIM card, and the SIM card of the specified model can be locked according to the information of the SIM card inserted by the user, so that the function of dynamically locking the SIM card by the terminal can be realized.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a second card locking setting method according to an embodiment of the present application. In this embodiment, the specific application scenarios of the lock card setting method may be as follows:
201. and the terminal executes the starting operation and initializes.
In this embodiment, the user inserts the SIM card into the terminal and triggers the power-on command, for example, the user may trigger the power-on command by turning on a power switch of the terminal. Further, after the user triggers the power-on command, the terminal performs the power-on operation for initialization. The initialization operation of the terminal may be to initialize information such as data stored in the terminal.
202. And the terminal detects that the SIM card exists and acquires the model information of the SIM card.
Specifically, the terminal detects the presence of the SIM card, and may read the model information of the SIM card. The model information may include MCC (Mobile Country Code), MNC (Mobile Network Code), SIM card type number, and the like.
The MCC resources are uniformly distributed and managed by the International Telecommunication Union (ITU), the country to which the mobile subscriber belongs is uniquely identified, the number of the countries is 3, and the number of the countries is 460; the MNC is 2 in total, the China Mobile TD system uses 00, the China Unicom GSM system uses 01, the China Mobile GSM system uses 02, and the China telecom CDMA system uses 03.
For example, the acquired model information may include: MCC is 460, MNC is 02, SIM card type number may be 100, and so on.
203. And the terminal judges whether the SIM card belongs to an operator SIM card preset by the terminal according to the model information.
Specifically, the terminal obtains the type of the preset operator SIM card, that is, the MNC, for example, the terminal MNC may be 00, 01, 02, or 03, and so on. When the MNC of the terminal is 02, the MNC of the SIM card is the same as the MNC of the terminal, and if it can be determined that the SIM card belongs to an operator SIM card preset by the terminal, step 204 may be executed; when the MNC of the terminal is not 02, that is, 00 or 01, and the MNC of the SIM card is different from the MNC of the terminal, it may be determined that the SIM card does not belong to an operator SIM card preset by the terminal, and then step 205 may be executed.
204. The terminal acquires the model configuration information of the terminal SIM card in the appointed storage area and judges whether the signal configuration information is empty.
Specifically, when the SIM card belongs to an operator SIM card preset by the terminal, the terminal obtains model configuration information of the terminal SIM card in the designated storage area. The definition of the model configuration information of the terminal SIM card may refer to the above embodiments, which are not described herein in detail.
After the terminal acquires the model configuration information, reading a database corresponding to the model configuration information, if no data is acquired when the database is read, determining that the signal configuration information is empty, and executing step 206; if data is acquired while reading the database, it may be determined that the signal configuration information is not empty, and step 207 is performed.
205. And finishing the operation.
Specifically, the SIM card inserted by the user does not match the SIM card supported by the terminal, and the terminal stops reading the inserted SIM card if the inserted SIM card cannot be used.
206. And the terminal carries out network registration according to the model information.
Specifically, when the MNC of the inserted SIM card is successfully matched with the MNC of the terminal and the model information of the SIM card meets the condition of the model configuration information of the terminal, the terminal may perform network registration according to the model information.
The terminal performs network registration according to the model information, which is not described herein in detail with reference to the above embodiments.
207. And the terminal matches the model information with the model configuration information and judges whether the matching is successful.
When the terminal model configuration information is not empty, the model information of the SIM card may be matched with the signal configuration information of the terminal SIM card. The matching of the model information of the SIM card and the signal configuration information of the terminal SIM card may match the SIM card type included in the model information with the SIM card type included in the model configuration information.
For example, the SIM card type included in the model information may be 100, and if the SIM card type included in the model configuration information is 100, it may be determined that the SIM card type matches the SIM card type included in the model configuration information successfully, step 206 may be performed; the SIM card type included in the model information may be 100, the SIM card type 200 included in the model configuration information, and if it is determined that the SIM card type fails to match the SIM card type included in the model configuration information, step 205 may be performed.
According to the scheme, when the SIM card is detected to exist in the terminal, the model information of the SIM card is acquired; judging whether the SIM card is an SIM card of which the terminal can support the operator type or not based on the model information; if yes, acquiring storage information of the designated storage area; and when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area. In this embodiment, the model information of the SIM card is obtained, the type of the operator is determined according to the model information, whether the terminal can support the type of the operator is determined, then the model information is matched with the SIM card setting information in the specified storage area of the terminal, whether the terminal can support the SIM card can be further determined based on the model information of the SIM card, the SIM card of the specified model can be locked according to the information of the SIM card inserted by the user, and the function of dynamically locking the SIM card by the terminal can be realized.
In order to better implement the method for setting the lock card provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the method for setting the lock card. The meaning of the terms is the same as that in the above-mentioned lock card setting method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram of a card locking device according to an embodiment of the present disclosure, including:
the detection unit 301 is configured to, when it is detected that an SIM card exists in the terminal, obtain model information of the SIM card;
a determining unit 302, configured to determine, based on the model information, whether the SIM card is an operator-supportable SIM card of a terminal;
an acquisition unit 303 configured to acquire storage information specifying a storage area;
a storage unit 304, configured to store the model information to the specified storage area when the storage information does not include model configuration information of a terminal SIM card.
In some embodiments, the determining unit 302 may include:
the determining subunit is used for determining the information of the operator to which the SIM card belongs according to the model information;
the matching subunit is used for matching the operator information to which the SIM card belongs with the operator information supported by the terminal;
the first judging subunit is used for judging that the SIM card is an SIM card of which the terminal can support the operator type;
and the second judging subunit is used for judging that the SIM card is not a SIM card of which the terminal can support the operator type.
In some embodiments, the storage unit 304 may include:
the encryption subunit is used for carrying out encryption operation on the model information to obtain encrypted data;
and the writing subunit is used for writing the encrypted data into the specified storage area and locking the encrypted data.
In some embodiments, the latch setting device further includes:
and the stopping unit is used for stopping reading the network information of the SIM card when the SIM card is not the SIM card which can support the operator type.
In some embodiments, the latch setting device further includes:
the matching unit is used for matching the model information with the model configuration information when the storage information contains the model configuration information of the terminal SIM card;
and the registration unit is used for performing network registration according to the model information.
In some embodiments, the registration unit further comprises:
an obtaining subunit, configured to obtain a network type of the SIM card based on the model information;
and the registration subunit is used for performing network registration according to the network type.
According to the scheme, when the SIM card is detected to exist in the terminal, the model information of the SIM card is acquired; judging whether the SIM card is an SIM card of which the terminal can support the operator type or not based on the model information; if yes, acquiring storage information of the designated storage area; and when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area. In the embodiment, the model information of the SIM card is acquired, the type of the operator is determined according to the model information, whether the terminal can support the type of the operator is judged, then the model information is matched with the SIM card setting information in the specified storage area of the terminal, whether the terminal can support the SIM card can be further judged based on the model information of the SIM card, and the SIM card of the specified model can be locked according to the information of the SIM card inserted by the user, so that the function of dynamically locking the SIM card by the terminal can be realized.
The embodiment of the application also provides a terminal. As shown in fig. 4, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, and optionally, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
when the SIM card is detected to exist in the terminal, the model information of the SIM card is obtained;
judging whether the SIM card is an SIM card of which the terminal can support the operator type or not based on the model information;
if yes, acquiring storage information of the designated storage area;
and when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area.
According to the scheme, when the SIM card is detected to exist in the terminal, the model information of the SIM card is acquired; judging whether the SIM card is an SIM card of which the terminal can support the operator type or not based on the model information; if yes, acquiring storage information of the designated storage area; and when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area. In this embodiment, the model information of the SIM card is obtained, the type of the operator is determined according to the model information, whether the terminal can support the type of the operator is determined, then the model information is matched with the SIM card setting information in the specified storage area of the terminal, whether the terminal can support the SIM card can be further determined based on the model information of the SIM card, the SIM card of the specified model can be locked according to the information of the SIM card inserted by the user, and the function of dynamically locking the SIM card by the terminal can be realized.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute steps in any one of the methods for setting a lock card provided in embodiments of the present application. For example, the instructions may perform the steps of:
when the SIM card is detected to exist in the terminal, the model information of the SIM card is obtained; judging whether the SIM card is an SIM card of which the terminal can support the operator type or not based on the model information; if yes, acquiring storage information of the designated storage area; and when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any of the lock card setting methods provided in the embodiments of the present application, beneficial effects that can be achieved by any of the lock card setting methods provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The method, the device, the storage medium, and the terminal for setting the lock card provided by the embodiment of the present application are described in detail above, a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A card locking setting method is applied to a terminal and is characterized by comprising the following steps:
when the SIM card is detected to exist in the terminal, the model information of the SIM card is obtained;
judging whether the SIM card is an SIM card of which the terminal can support the operator type or not based on the model information;
if yes, acquiring storage information of the designated storage area;
and when the storage information does not contain the model configuration information of the terminal SIM card, storing the model information into the specified storage area.
2. The method of claim 1, wherein the determining whether the SIM card is an operator-supportable type of SIM card for the terminal based on the model information comprises:
determining the information of an operator to which the SIM card belongs according to the model information;
matching the operator information to which the SIM card belongs with the operator information supported by the terminal;
if the matching is successful, the SIM card is judged to be the SIM card of which the terminal can support the operator type;
and if the matching fails, judging that the SIM card is not an SIM card which can support the operator type by the terminal.
3. The method of claim 1, wherein storing the model information to the designated storage area comprises:
carrying out encryption operation on the model information to obtain encrypted data;
and writing the encrypted data into the specified storage area and locking.
4. The method of claim 1, further comprising:
and when the SIM card is not the SIM card which can support the operator type, stopping reading the network information of the SIM card.
5. The method of claim 1, further comprising:
when the storage information contains the model configuration information of the terminal SIM card, matching the model information with the model configuration information;
and if the matching is successful, performing network registration according to the model information.
6. The method according to claim 1, further comprising, after storing the model information to the specified storage area:
and performing network registration according to the model information.
7. The method according to claim 5 or 6, wherein the network registration according to the model information comprises:
acquiring the network type of the SIM card based on the model information;
and performing network registration according to the network type.
8. A lock card setting device, comprising:
the terminal comprises a detection unit, a judging unit and a judging unit, wherein the detection unit is used for acquiring the model information of an SIM card when detecting that the SIM card exists in the terminal;
a judging unit, configured to judge whether the SIM card is an operator-supportable SIM card for the terminal based on the model information;
an acquisition unit configured to acquire storage information specifying a storage area;
and the storage unit is used for storing the model information to the specified storage area when the storage information does not contain the model configuration information of the terminal SIM card.
9. A storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the steps of the method of any one of claims 1 to 7.
10. A terminal, comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps of the card lock setting method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206479.3A CN110944318B (en) | 2019-11-29 | 2019-11-29 | Lock card setting method and device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206479.3A CN110944318B (en) | 2019-11-29 | 2019-11-29 | Lock card setting method and device, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110944318A true CN110944318A (en) | 2020-03-31 |
CN110944318B CN110944318B (en) | 2022-11-04 |
Family
ID=69909462
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911206479.3A Active CN110944318B (en) | 2019-11-29 | 2019-11-29 | Lock card setting method and device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110944318B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112685084A (en) * | 2020-12-21 | 2021-04-20 | Oppo广东移动通信有限公司 | Resource allocation method, device, terminal and storage medium |
CN113721980A (en) * | 2020-05-26 | 2021-11-30 | 阿里巴巴集团控股有限公司 | Instruction execution method, control device, electronic device, and computer-readable storage medium |
CN114040044A (en) * | 2021-09-29 | 2022-02-11 | 深圳鑫想科技有限责任公司 | Method, system and storage medium for dynamically switching and locking SIM card of high-pass platform |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070164099A1 (en) * | 2006-01-19 | 2007-07-19 | Wow! Technologies, Inc. | Integrated card system and method |
WO2009081570A1 (en) * | 2007-12-21 | 2009-07-02 | R & D Associates, Inc. | Authentication system and electronic lock |
CN101489225A (en) * | 2009-01-19 | 2009-07-22 | 深圳华为通信技术有限公司 | Unlocking method, apparatus and system for user recognition module card |
CN102104864A (en) * | 2009-12-22 | 2011-06-22 | 中兴通讯股份有限公司 | Method for realizing network and card locking function of terminal and terminal |
CN104270741A (en) * | 2014-09-23 | 2015-01-07 | 广东欧珀移动通信有限公司 | Terminal locking method and device |
CN104735265A (en) * | 2015-04-15 | 2015-06-24 | 上海鼎讯电子有限公司 | Dual SIM mobile phone unlocking control method |
CN104980999A (en) * | 2015-06-19 | 2015-10-14 | 广东欧珀移动通信有限公司 | Network access method and mobile terminal |
CN105050112A (en) * | 2015-06-19 | 2015-11-11 | 广东欧珀移动通信有限公司 | Network access method and mobile terminal |
CN108989536A (en) * | 2017-05-31 | 2018-12-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of user terminal locking means, device and user terminal |
-
2019
- 2019-11-29 CN CN201911206479.3A patent/CN110944318B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070164099A1 (en) * | 2006-01-19 | 2007-07-19 | Wow! Technologies, Inc. | Integrated card system and method |
WO2009081570A1 (en) * | 2007-12-21 | 2009-07-02 | R & D Associates, Inc. | Authentication system and electronic lock |
CN101489225A (en) * | 2009-01-19 | 2009-07-22 | 深圳华为通信技术有限公司 | Unlocking method, apparatus and system for user recognition module card |
CN102104864A (en) * | 2009-12-22 | 2011-06-22 | 中兴通讯股份有限公司 | Method for realizing network and card locking function of terminal and terminal |
CN104270741A (en) * | 2014-09-23 | 2015-01-07 | 广东欧珀移动通信有限公司 | Terminal locking method and device |
CN104735265A (en) * | 2015-04-15 | 2015-06-24 | 上海鼎讯电子有限公司 | Dual SIM mobile phone unlocking control method |
CN104980999A (en) * | 2015-06-19 | 2015-10-14 | 广东欧珀移动通信有限公司 | Network access method and mobile terminal |
CN105050112A (en) * | 2015-06-19 | 2015-11-11 | 广东欧珀移动通信有限公司 | Network access method and mobile terminal |
CN108989536A (en) * | 2017-05-31 | 2018-12-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of user terminal locking means, device and user terminal |
Non-Patent Citations (3)
Title |
---|
FAITH G.MILLER: "Initial development and evaluation of the student intervention matching (SIM) form", 《SCIENCEDIRECT》 * |
徐科军: "《TMS320X281XDSP原理与应用 第2版》", 31 October 2011, 北京航空航天大学出版社 * |
高杰: "双卡双待移动终端锁网方案研究", 《现代电子技术》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113721980A (en) * | 2020-05-26 | 2021-11-30 | 阿里巴巴集团控股有限公司 | Instruction execution method, control device, electronic device, and computer-readable storage medium |
CN112685084A (en) * | 2020-12-21 | 2021-04-20 | Oppo广东移动通信有限公司 | Resource allocation method, device, terminal and storage medium |
CN114040044A (en) * | 2021-09-29 | 2022-02-11 | 深圳鑫想科技有限责任公司 | Method, system and storage medium for dynamically switching and locking SIM card of high-pass platform |
Also Published As
Publication number | Publication date |
---|---|
CN110944318B (en) | 2022-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10069818B2 (en) | Method, system, device, and terminal for network initialization of multimedia playback device | |
CN106658489B (en) | Terminal application processing method and device and mobile terminal | |
CN106778175B (en) | Interface locking method and device and terminal equipment | |
CN104852885B (en) | Method, device and system for verifying verification code | |
CN103458124B (en) | A kind of shutdown processing method of terminal, device and terminal equipment | |
CN110944318B (en) | Lock card setting method and device, storage medium and terminal | |
CN103298163B (en) | The methods for interface management and device of a kind of multi-card terminal | |
CN104978176A (en) | Application program interface calling method and device | |
CN104426963A (en) | Terminal associating method and terminal | |
CN104142868A (en) | Connection establishment method and device | |
CN103491525A (en) | Method for achieving card-free mobile phone, mobile phone and server | |
CN103279272B (en) | A kind of method and device starting application program in an electronic | |
CN103631580A (en) | Method and device for generating theme icon | |
CN106445743A (en) | Data backup transmission method and mobile terminal | |
CN103607431A (en) | Mobile terminal resource processing method, apparatus and equipment thereof | |
CN106484563B (en) | Data migration method and terminal equipment | |
CN105553718A (en) | Method and device for displaying guidance information | |
CN106303616B (en) | Play control method, device and terminal | |
CN111026457B (en) | Hardware configuration method and device, storage medium and terminal equipment | |
CN111897916A (en) | Voice instruction recognition method and device, terminal equipment and storage medium | |
CN105302589A (en) | Method and apparatus for acquiring uninstallation information | |
CN110582079B (en) | Bluetooth connection setting method and device, computer readable storage medium and terminal | |
WO2022021534A1 (en) | Data reading method, storage medium, and mobile terminal | |
CN112261634A (en) | Bluetooth transmission control method, device, terminal equipment and storage medium | |
CN106487649A (en) | The prompting control method of group message and terminal unit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |