CN112738789A - SIM card locking method and device, storage medium and electronic equipment - Google Patents

SIM card locking method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112738789A
CN112738789A CN202011544177.XA CN202011544177A CN112738789A CN 112738789 A CN112738789 A CN 112738789A CN 202011544177 A CN202011544177 A CN 202011544177A CN 112738789 A CN112738789 A CN 112738789A
Authority
CN
China
Prior art keywords
operator
type
locking
configuration file
unlocking
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
Application number
CN202011544177.XA
Other languages
Chinese (zh)
Other versions
CN112738789B (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.)
Shenzhen Coolpad Technology Co ltd
Original Assignee
Shenzhen Coolpad Technology 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 Shenzhen Coolpad Technology Co ltd filed Critical Shenzhen Coolpad Technology Co ltd
Priority to CN202011544177.XA priority Critical patent/CN112738789B/en
Publication of CN112738789A publication Critical patent/CN112738789A/en
Application granted granted Critical
Publication of CN112738789B publication Critical patent/CN112738789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a method and a device for locking an SIM card, a storage medium and electronic equipment, and belongs to the technical field of communication. The SIM card locking method comprises the following steps: the method comprises the steps of obtaining pre-stored operator logo information on the terminal equipment, determining the type of an operator according to the operator logo information, loading a corresponding locking configuration file based on the type of the operator, and locking the terminal equipment according to the locking configuration file. Therefore, the terminal equipment loads different configuration files according to different operator types, the efficiency of the card locking processing and the SIM card unlocking processing of the terminal equipment can be improved, and the maintenance cost is reduced.

Description

SIM card locking method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for locking an SIM card, a storage medium and electronic equipment.
Background
At present, with the continuous development of information technology, the appearance of communication equipment such as mobile phones brings great convenience to people. Meanwhile, the proliferation of communication devices such as mobile phones and the like makes competition among operators increasingly severe. In order to enhance competitiveness, more and more attention is paid to card locking of communication equipment such as mobile phones. In the prior art, when an operator locks a card, firstly, customized card locking information is written into a specific file of a communication device such as a mobile phone, where the card locking information includes a card locking range. When a terminal device such as a Mobile phone is started, on one hand, card locking information in a specific file is read, on the other hand, a Mobile Country Code (MCC) and a Mobile Network Code (MNC) in a Subscriber Identity Module (SIM) card are read, and after the reading is finished, the card locking mode of the SIM card is judged. Because different operators adopt different reading and locking modes, when the unnecessary requirements of a large number of terminal devices such as mobile phones and the like need to be processed, the prior art can cause low efficiency and overhigh maintenance cost, and can not meet the current requirements.
Disclosure of Invention
The embodiment of the application provides a method and a device for locking an SIM card, a storage medium and an electronic device, which can improve the card locking efficiency of a terminal device and reduce the maintenance cost. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a SIM card locking method, including:
acquiring operator mark information prestored on terminal equipment;
determining the type of an operator according to the operator mark information;
loading a corresponding locking configuration file based on the operator type;
and locking the card of the terminal equipment according to the locking configuration file.
In a second aspect, an embodiment of the present application provides a SIM card locking apparatus, where the apparatus includes:
the acquisition module is used for acquiring operator mark information prestored on the terminal equipment;
the determining module is used for determining the type of the operator according to the operator mark information;
a loading module for loading a corresponding locking configuration file based on the operator type;
and the processing module is used for carrying out card locking processing on the terminal equipment according to the locking configuration file.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
when the SIM card locking method, the SIM card locking device, the storage medium and the electronic equipment work, operation mark information pre-stored on the terminal equipment is obtained, the type of an operator is determined according to the operation mark information, a corresponding locking configuration file is loaded based on the type of the operator, and card locking processing is carried out on the terminal equipment according to the locking configuration file. The terminal equipment can improve the efficiency of the card locking processing and the SIM card unlocking processing of the terminal equipment by loading different configuration files according to different operator types, and the maintenance cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a communication system architecture provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a SIM card locking method according to an embodiment of the present application;
fig. 3 is another schematic flow chart of a SIM card locking method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a SIM card locking apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following description refers to the accompanying drawings in which like numerals refer to the same or similar elements throughout the different views, unless otherwise specified. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The embodiment of the present application can be applied to a wireless communication system, and it should be noted that the wireless communication system mentioned in the embodiment of the present application includes, but is not limited to, a fourth generation Mobile communication (4G) Mobile communication system and an Enhanced Mobile broadband (eMBB) of a next generation Mobile communication system, a URLLC (Massive Machine-Type Communications, mtc).
Fig. 1 is a schematic diagram of a communication system architecture provided in the present application.
Referring to fig. 1, a communication system 01 includes a network device 101, a terminal device 102, an Access Point (AP) device 103, and a configuration server 104; when the communication system 01 includes a core network, the network device 101 may also be connected to the core network. The network device 101 may also communicate with an Internet Protocol (IP) network 200, such as the Internet (Internet), a private IP network, or other data network. The network device 101 provides services to the terminal devices 102 and the configuration server 104 within the coverage area. For example, referring to fig. 1, a network device 101 provides wireless access to a configuration server 104 and a terminal device 102 within the coverage of the network device 101. In addition, the terminal device 102 and the AP device 103 may also communicate with each other.
The network device 101 may be a device for communicating with a terminal device and a tracker. The network device may be a relay station, an access point, a vehicle-mounted device, etc. In a terminal-to-terminal (D2D) communication system, the network Device may also be a terminal Device that functions as a base station.
The Terminal device 102 may include, but is not limited to, a Mobile Station (MS), a Mobile Terminal device (Mobile Terminal), a Mobile phone (Mobile Telephone), a handset (handset), a portable device (portable equipment), etc., and the Terminal device may communicate with one or more core networks via a Radio Access Network (RAN), for example, the Terminal device may be a Mobile phone (or referred to as a "cellular" phone), a computer with a wireless communication function, etc., and the Terminal device may also be a Mobile device or a device that is portable, pocket-sized, hand-held, computer-built, or vehicle-mounted and can be inserted with a SIM card.
The AP device 103 may be used as a wireless switch of a wireless network, also called a wireless access node, which is a bridge for communication between the wireless network and a wired network, and is a core device for establishing a wireless local area network, through which the terminal device 102 and the configuration server 104 within the AP signal coverage area may communicate with each other.
The configuration server 104 may be a device such as a server that stores various data such as locking and unlocking profiles.
In the following method embodiments, for convenience of description, only the main body of execution of each step is described as the terminal device.
The SIM card locking method provided in the embodiment of the present application will be described in detail below with reference to fig. 2 to 3.
Please refer to fig. 2, which is a flowchart illustrating a method for locking a SIM card according to an embodiment of the present application. The method may comprise the steps of:
s201, obtaining operator mark information pre-stored in the terminal equipment.
Generally, the operator logo information refers to logo information for determining a type of an operator. The terminal device searches for a logo file in the terminal device, and analyzes the logo file to obtain operator logo information, for example: the operator flag information acquired by the terminal device is Mode (Mode) a, Mode B, Mode C, Mode D, or the like.
S202, determining the type of the operator according to the operator mark information.
Generally, after acquiring operator log information pre-stored in a terminal device, the terminal device determines an operator type according to the operator log information, for example: and if the operator mark information acquired by the terminal equipment is Mode A, determining that the operator type is a feature phone (feature phone) of a mobile phone (TMO), and if the acquired operator mark information is Mode B, determining that the operator type is Sprint (spring) and the like. And then the terminal equipment receives frame signal information broadcast by a wireless Access Point (AP), sends a wireless fidelity (WiFi) connection request responding to the frame signal information to the AP, and establishes WiFi connection with the AP based on the WiFi connection request.
S203, loading a corresponding locking configuration file based on the operator type.
Typically, a locking profile is a profile that the terminal device uses to prohibit the use of a certain operator type, such as: after the terminal device loads the mobile locking configuration file, the terminal device cannot use the mobile SIM card for communication. After the terminal equipment establishes WiFi connection with the AP, all operator types are counted, loading configuration file types corresponding to all the operator types are determined, and the corresponding relation between the operator types and the loading configuration file types is established. Then the terminal equipment determines the locking configuration file type corresponding to the operator type based on the corresponding relation, generates a locking request message according to the locking configuration file type, sends the locking request message to a configuration server through the WiFi connection, and receives the locking configuration file from the configuration server through the WiFi connection.
And S204, carrying out card locking processing on the terminal equipment according to the locking configuration file.
Generally, after a terminal device loads a corresponding locking configuration file, the terminal device is locked according to the locking configuration file, and locking of an SIM card is completed. In one embodiment, after a terminal device locks a card of the terminal device, when the terminal device inserts a subscriber identity module SIM card, an operator type of the SIM card is detected, where a white list is used to record all operator types supported by the terminal device, and when the operator type of the SIM card does not exist in the white list, a corresponding unlocking profile type is determined based on the operator type of the SIM card, an unlocking request message is generated based on the unlocking profile type, the unlocking request message is sent to the configuration server, and an unlocking profile sent by the configuration server in response to the unlocking request message is received, where the unlocking profile includes: and a terminal Management (OMADM) unlocking file and a Personal Identification Number (PIN) unlocking file, and unlocking the SIM card according to the unlocking configuration file. The purpose of oma dm, the open mobile alliance, is to collect market requirements, specify the interface between the service application layer and the network function layer, and define an open standard framework to provide seamless end-to-end services to users.
According to the above content, the operator logo information pre-stored on the terminal device is obtained, the operator type is determined according to the operator logo information, the corresponding locking configuration file is loaded based on the operator type, and the terminal device is locked according to the locking configuration file. The terminal equipment can improve the efficiency of the card locking processing and the SIM card unlocking processing of the terminal equipment by loading different configuration files according to different operator types, and the maintenance cost is reduced.
Referring to fig. 3, another flow chart of a SIM card locking method is provided in the present embodiment. The SIM card locking method can comprise the following steps:
s301, searching the mark file in the terminal equipment, and analyzing the mark file to obtain the operator mark information.
Generally, a tag file refers to a file carrying tag information of an operator, and a corresponding tag file is written in a corresponding storage location when a terminal device leaves a factory. The terminal device searches the mark file in the terminal device, if the mark file cannot be searched in the corresponding storage location, the search failure result is displayed, and if the mark file can be searched, the mark file is analyzed to obtain the operator mark information, for example: the operator mark information obtained by the terminal device is Mode a, Mode B, Mode C, Mode D, or Mode E.
S302, determining the type of the operator according to the operator mark information.
Generally, after obtaining the operator identifier information, the terminal device determines the operator type according to the operator identifier information, for example: determining that the operator type is a feature phone (feature phone) of a mobile phone (TMO) if the operator mark information acquired by the terminal device is Mode a, determining that the operator type is a Sprint (Sprint) if the operator information acquired is Mode B, determining that the operator type is a Mode C, determining that the operator type is a wilson Wireless (VZW), determining that the operator mark information acquired is Mode D, determining that the operator type is a Smart phone (Smart phone) of a mobile phone (TMO), determining that the operator mark information acquired is Mode E, and determining that the operator type is a united states telephone telegraph AT & T.
S303, receiving frame signal information broadcast by a wireless Access Point (AP), and sending a wireless fidelity (WiFi) connection request responding to the frame signal information to the AP.
Generally, the frame signal information may include information of a management frame Bescon packet, which carries broadcast address information of the AP. After determining the type of an operator, the terminal device receives frame signal information broadcast by an AP, and sends a WiFi connection request responding to the frame signal information to the AP, for example: the terminal equipment responds to the frame signal information and sends an authentication request to the AP through a determined channel, wherein the authentication request carries the WiFi account password, then the AP is waited for authentication, the terminal equipment receives the authentication response from the AP, then the terminal equipment analyzes the authentication response, sends an association request to the AP, waits for the AP to analyze the association request to determine the WiFi connection state of the terminal equipment, then the terminal equipment receives the association response from the AP, analyzes the association response, determines that connection can be carried out, and finally the terminal equipment sends the WiFi connection request to the AP.
S304, establishing WiFi connection with the AP based on the WiFi connection request.
Generally, after sending a WiFi connection request in response to the frame signal information to the AP, the terminal device establishes a WiFi connection with the AP based on the WiFi connection request, and then the terminal device may perform data transmission based on the WiFi connection.
S305, counting all the operator types, determining the loading configuration file type corresponding to each operator type, and establishing the corresponding relation between the operator type and the loading configuration file type.
Generally, after the terminal device establishes WiFi connection with the AP, all operator types are counted, and a loaded configuration file type corresponding to each operator type is determined, for example: the terminal device determines that the type of the loading configuration file corresponding to the operator TMO is an a file, the type of the loading configuration file corresponding to the operator Sprint is a b file, the type of the loading configuration file corresponding to the operator VZW is a c file, the type of the loading configuration file corresponding to the operator AT & T is a d file, and the type of the loading configuration file corresponding to the operator TFW is an e file. The terminal device can then establish a correspondence between the operator type and the loaded profile type.
S306, determining the locking configuration file type corresponding to the operator type based on the corresponding relation, and generating a locking request message according to the locking configuration file type.
Generally, after the terminal device establishes a corresponding relationship between the operator type and the loaded configuration file type, the terminal device determines, based on the corresponding relationship, a locked configuration file type corresponding to the operator type, for example: and the terminal equipment determines that the operator type is AT & T, and the corresponding locking configuration file type is d file. And then the terminal equipment generates a locking request message according to the type of the locking configuration file, wherein the locking request message carries the d file type information.
S307, the locking request message is sent to a configuration server through the WiFi connection, and the locking configuration file from the configuration server is received through the WiFi connection.
Generally, after generating a locking request message, a terminal device packages the locking request message into a data packet and sends the data packet to a configuration server through the WiFi connection, and the terminal device may store an Internet Protocol (IP) address of the configuration server in advance, or may be connected to the configuration server through a direct input by a user. Then the terminal device receives a corresponding locking configuration file from the configuration server through the WiFi connection, for example: and if the locking request message sent by the terminal equipment carries the b file type information, the b file is received.
S308, locking the terminal equipment according to the locking configuration file, and detecting the operator type of the SIM card when the terminal equipment is inserted into the SIM card of the subscriber identity module.
Generally, after receiving a locking configuration file from the configuration server, the terminal device parses the locking configuration file to obtain a configuration instruction, and performs configuration operation according to the configuration instruction to complete card locking processing. Then, when the terminal device inserts a subscriber identity module SIM card into the terminal device, the terminal device detects an operator type of the SIM card, for example: after the terminal equipment inserts the two SIM cards, the operator of the SIM card No. 1 is detected to be Sprint, and the operator of the SIM card No. 1 is AT & T. And the terminal equipment updates the operator type information processed by locking the card each time to a white list, wherein the white list is used for recording all the operator types supported by the terminal equipment.
S309, when the operator type of the SIM card does not exist in the white list, determining a corresponding unlocking configuration file type based on the operator type of the SIM card, and generating an unlocking request message based on the unlocking configuration file type.
Generally, after detecting the operator type of the SIM card, the terminal device traverses the white list to determine whether the operator type of the SIM card exists, and when the operator type of the SIM card does not exist in the white list, determines a corresponding unlocking configuration file type based on the operator type of the SIM card, for example: and the terminal equipment detects that the operator of the SIM card is Sprint, traverses the white list to determine that the SIM card cannot exist, namely the terminal equipment does not support the SIM card with the operator type of Sprint, then the terminal equipment determines that the unlocking configuration file type corresponding to the operator Sprint is a file D, and generates an unlocking request message carrying file D type information.
S310, the unlocking request message is sent to the configuration server, the unlocking configuration file sent by the configuration server responding to the unlocking request message is received, and the SIM card is unlocked according to the unlocking configuration file.
Generally, the unlocking profile includes: the terminal manages an oma dm unlocking file and a personal identification number PIN unlocking file, for example: and the operator needs to use an OMADM to unlock the file when the operator is Sprint, and needs to use a PIN to unlock the file when the operator is TMO. After the terminal device generates the unlocking request message, the terminal device may send the unlocking request message to the configuration server based on the WiFi connection, and receive an unlocking configuration file sent by the configuration server in response to the unlocking request message, for example: if an unlocking request message sent by the terminal device carries information of the operator Sprint file type, receiving an OMADM unlocking file, analyzing the unlocking configuration file, namely the OMADM unlocking file, acquiring a corresponding configuration instruction, and executing configuration operation according to the configuration instruction, for example: and carrying out operations such as authentication and the like with an operator server to complete the unlocking processing of the SIM card with the operator being Sprint, continuously updating the white list by the terminal equipment, and then carrying out data transmission by using the SIM card with the operator being Sprint.
When the scheme of the embodiment of the application is executed, a mark file is searched in terminal equipment, the mark file is analyzed to obtain operator mark information, the operator type is determined according to the operator mark information, frame signal information broadcasted by a wireless Access Point (AP) is received, a wireless fidelity (WiFi) connection request responding to the frame signal information is sent to the AP, WiFi connection is established with the AP based on the WiFi connection request, all the operator types are counted, loading configuration file types corresponding to all the operator types are determined, the corresponding relation between the operator types and the loading configuration file types is established, the locking configuration file types corresponding to the operator types are determined based on the corresponding relation, a locking request message is generated according to the locking configuration file types, and the locking request message is sent to a configuration server through the WiFi connection, receiving a locking configuration file from the configuration server through the WiFi connection, locking the terminal equipment according to the locking configuration file, detecting the operator type of an SIM card when the terminal equipment is inserted into the SIM card, determining the corresponding unlocking configuration file type based on the operator type of the SIM card when the operator type of the SIM card does not exist in the white list, generating an unlocking request message based on the unlocking configuration file type, sending the unlocking request message to the configuration server, receiving the unlocking configuration file sent by the configuration server in response to the unlocking request message, and unlocking the SIM card according to the unlocking configuration file. The terminal equipment can improve the efficiency of the card locking processing and the SIM card unlocking processing of the terminal equipment by loading different configuration files according to different operator types, and the maintenance cost is reduced.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 4, a schematic structural diagram of a SIM card locking apparatus according to an exemplary embodiment of the present application is shown, which is hereinafter referred to as a locking apparatus 4. The locking means 4 may be implemented in software, hardware or a combination of both as all or part of the terminal. The method comprises the following steps:
an obtaining module 401, configured to obtain operator identifier information pre-stored in a terminal device;
a determining module 402, configured to determine an operator type according to the operator identifier information;
a loading module 403, configured to load a corresponding locking configuration file based on the operator type;
and the processing module 404 is configured to perform card locking processing on the terminal device according to the locking configuration file.
Optionally, the obtaining module 401 further includes:
a search unit for searching for a markup file in a terminal device; and analyzing the mark file to obtain the mark information of the operator.
Optionally, the determining module 402 further includes:
the connection unit is used for receiving frame signal information broadcast by the wireless access point AP; transmitting a wireless fidelity (WiFi) connection request to the AP in response to the frame signal information; establishing a WiFi connection with the AP based on the WiFi connection request.
Optionally, the loading module 403 further includes:
the statistical unit is used for counting all operator types; determining the type of a loading configuration file corresponding to each operator type; and establishing a corresponding relation between the operator type and the loading configuration file type.
A sending unit, configured to determine, based on the correspondence, a locking configuration file type corresponding to the operator type; generating a locking request message according to the type of the locking configuration file; sending the locking request message to a configuration server through the WiFi connection; receiving a locking configuration file from the configuration server through the WiFi connection.
Optionally, the processing module 404 further includes:
the judging unit is used for detecting the operator type of the SIM card when the terminal equipment is inserted into the SIM card of the subscriber identity module; the white list is used for recording all operator types supported by the terminal equipment; and when the operator type of the SIM card does not exist in the white list, unlocking the SIM card.
The generation unit is used for determining the type of a corresponding unlocking configuration file based on the type of an operator of the SIM card; generating an unlocking request message based on the unlocking configuration file type; sending the unlocking request message to the configuration server; receiving an unlocking configuration file sent by the configuration server in response to the unlocking request message; wherein the unlocking profile comprises: the terminal manages an OMADM unlocking file and a personal identification number PIN unlocking file; and unlocking the SIM card according to the unlocking configuration file.
The embodiment of the present application and the method embodiments of fig. 2 to 3 are based on the same concept, and the technical effects brought by the embodiment are also the same, and the specific process may refer to the description of the method embodiments of fig. 2 to 3, and will not be described again here.
The device 4 may be a field-programmable gate array (FPGA), an application-specific integrated chip, a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit, a Micro Controller Unit (MCU), or a Programmable Logic Device (PLD) or other integrated chips.
When the scheme of the embodiment of the application is executed, a mark file is searched in terminal equipment, the mark file is analyzed to obtain operator mark information, the operator type is determined according to the operator mark information, frame signal information broadcasted by a wireless Access Point (AP) is received, a wireless fidelity (WiFi) connection request responding to the frame signal information is sent to the AP, WiFi connection is established with the AP based on the WiFi connection request, all the operator types are counted, loading configuration file types corresponding to all the operator types are determined, the corresponding relation between the operator types and the loading configuration file types is established, the locking configuration file types corresponding to the operator types are determined based on the corresponding relation, a locking request message is generated according to the locking configuration file types, and the locking request message is sent to a configuration server through the WiFi connection, receiving a locking configuration file from the configuration server through the WiFi connection, locking the terminal equipment according to the locking configuration file, detecting the operator type of an SIM card when the terminal equipment is inserted into the SIM card, determining the corresponding unlocking configuration file type based on the operator type of the SIM card when the operator type of the SIM card does not exist in the white list, generating an unlocking request message based on the unlocking configuration file type, sending the unlocking request message to the configuration server, receiving the unlocking configuration file sent by the configuration server in response to the unlocking request message, and unlocking the SIM card according to the unlocking configuration file. The terminal equipment can improve the efficiency of the card locking processing and the SIM card unlocking processing of the terminal equipment by loading different configuration files according to different operator types, and the maintenance cost is reduced.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the above method steps, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 2 or fig. 3, which is not described herein again.
The present application further provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the template control method according to the above embodiments.
Please refer to fig. 5, which is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 5, the electronic device 5 may include: at least one processor 501, at least one network interface 504, a user interface 503, memory 505, at least one communication bus 502.
Wherein a communication bus 502 is used to enable connective communication between these components.
The user interface 503 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 503 may also include a standard wired interface and a wireless interface.
The network interface 504 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 501 may include one or more processing cores, among other things. The processor 501 connects various parts throughout the terminal 500 using various interfaces and lines, and performs various functions of the terminal 500 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 501 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 501, but may be implemented by a single chip.
The Memory 505 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable medium. The memory 505 may be used to store instructions, programs, code sets, or instruction sets. The memory 505 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 505 may alternatively be at least one memory device located remotely from the processor 501. As shown in fig. 5, the memory 505, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a SIM card locking application.
In the electronic device 500 shown in fig. 5, the user interface 503 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 501 may be configured to call the SIM card locking application stored in the memory 505, and specifically perform the following operations:
acquiring operator mark information prestored on terminal equipment;
determining the type of an operator according to the operator mark information;
loading a corresponding locking configuration file based on the operator type;
and locking the card of the terminal equipment according to the locking configuration file.
In one embodiment, the processor 501 performs the acquiring of the operator log information pre-stored on the terminal device, including:
searching the mark file in the terminal equipment;
and analyzing the mark file to obtain the mark information of the operator.
In one embodiment, after the processor 501 performs the determining of the carrier type according to the carrier identifier information, the method further includes:
receiving frame signal information broadcast by a wireless Access Point (AP);
transmitting a wireless fidelity (WiFi) connection request to the AP in response to the frame signal information;
establishing a WiFi connection with the AP based on the WiFi connection request.
In one embodiment, before the processor 501 executes the loading of the corresponding locking configuration file based on the operator type, the method further includes:
counting all operator types;
determining the type of a loading configuration file corresponding to each operator type;
and establishing a corresponding relation between the operator type and the loading configuration file type.
In one embodiment, processor 501 performs the loading of the corresponding locking configuration file based on the carrier type, including:
determining a locking configuration file type corresponding to the operator type based on the corresponding relation;
generating a locking request message according to the type of the locking configuration file;
sending the locking request message to a configuration server through the WiFi connection;
receiving a locking configuration file from the configuration server through the WiFi connection.
In an embodiment, after the processor 501 executes the card locking process on the terminal device according to the locking configuration file, the method further includes:
when the terminal equipment is inserted into a Subscriber Identity Module (SIM) card, detecting the type of an operator of the SIM card; the white list is used for recording all operator types supported by the terminal equipment;
and when the operator type of the SIM card does not exist in the white list, unlocking the SIM card.
In one embodiment, the processor 501 performs the unlocking process for the SIM card, including:
determining a corresponding unlocking configuration file type based on the operator type of the SIM card;
generating an unlocking request message based on the unlocking configuration file type;
sending the unlocking request message to the configuration server;
receiving an unlocking configuration file sent by the configuration server in response to the unlocking request message; wherein the unlocking profile comprises: the terminal manages an OMADM unlocking file and a personal identification number PIN unlocking file;
and unlocking the SIM card according to the unlocking configuration file.
The technical concept of the embodiment of the present application is the same as that of fig. 2 or fig. 3, and the specific process may refer to the method embodiment of fig. 2 or fig. 3, which is not described herein again.
In the embodiment of the application, operation mark information pre-stored on terminal equipment is acquired, an operation provider type is determined according to the operation mark information, a corresponding locking configuration file is loaded based on the operation provider type, and card locking processing is performed on the terminal equipment according to the locking configuration file. The terminal equipment can improve the efficiency of the card locking processing and the SIM card unlocking processing of the terminal equipment by loading different configuration files according to different operator types, and the maintenance cost is reduced. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A method for locking a SIM card, the method comprising:
acquiring operator mark information prestored on terminal equipment;
determining the type of an operator according to the operator mark information;
loading a corresponding locking configuration file based on the operator type;
and locking the card of the terminal equipment according to the locking configuration file.
2. The method of claim 1, wherein the obtaining of operator mark information pre-stored on the terminal device comprises:
searching the mark file in the terminal equipment;
and analyzing the mark file to obtain the mark information of the operator.
3. The method of claim 1, wherein after determining the carrier type according to the carrier identity information, further comprising:
receiving frame signal information broadcast by a wireless Access Point (AP);
transmitting a wireless fidelity (WiFi) connection request to the AP in response to the frame signal information;
establishing a WiFi connection with the AP based on the WiFi connection request.
4. The method of claim 3, wherein before loading the corresponding locking configuration file based on the operator type, further comprising:
counting all operator types;
determining the type of a loading configuration file corresponding to each operator type;
and establishing a corresponding relation between the operator type and the loading configuration file type.
5. The method of claim 4, wherein loading the corresponding locking configuration file based on the carrier type comprises:
determining a locking configuration file type corresponding to the operator type based on the corresponding relation;
generating a locking request message according to the type of the locking configuration file;
sending the locking request message to a configuration server through the WiFi connection;
receiving a locking configuration file from the configuration server through the WiFi connection.
6. The method according to claim 5, wherein after the card locking process is performed on the terminal device according to the locking configuration file, the method further comprises:
when the terminal equipment is inserted into a Subscriber Identity Module (SIM) card, detecting the type of an operator of the SIM card; the white list is used for recording all operator types supported by the terminal equipment;
and when the operator type of the SIM card does not exist in the white list, unlocking the SIM card.
7. The method according to claim 6, wherein the unlocking the SIM card comprises:
determining a corresponding unlocking configuration file type based on the operator type of the SIM card;
generating an unlocking request message based on the unlocking configuration file type;
sending the unlocking request message to the configuration server;
receiving an unlocking configuration file sent by the configuration server in response to the unlocking request message; wherein the unlocking profile comprises: the terminal manages an OMADM unlocking file and a personal identification number PIN unlocking file;
and unlocking the SIM card according to the unlocking configuration file.
8. A SIM card locking apparatus, comprising:
the acquisition module is used for acquiring operator mark information prestored on the terminal equipment;
the determining module is used for determining the type of the operator according to the operator mark information;
a loading module for loading a corresponding locking configuration file based on the operator type;
and the processing module is used for carrying out card locking processing on the terminal equipment according to the locking configuration file.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
10. An electronic device, comprising: a memory and a processor; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN202011544177.XA 2020-12-21 2020-12-21 SIM card locking method and device, storage medium and electronic equipment Active CN112738789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011544177.XA CN112738789B (en) 2020-12-21 2020-12-21 SIM card locking method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011544177.XA CN112738789B (en) 2020-12-21 2020-12-21 SIM card locking method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112738789A true CN112738789A (en) 2021-04-30
CN112738789B CN112738789B (en) 2024-01-05

Family

ID=75605245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011544177.XA Active CN112738789B (en) 2020-12-21 2020-12-21 SIM card locking method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112738789B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416204A (en) * 2022-01-19 2022-04-29 上海龙旗科技股份有限公司 Method and equipment for reading PLMN configuration file by terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765240A (en) * 2009-12-29 2010-06-30 中兴通讯股份有限公司 Method and system for locking/unlocking mobile terminal, and mobile terminal
US20120289197A1 (en) * 2011-05-09 2012-11-15 Nokia Corporation SIM Lock For Multi-SIM Environment
CN104270741A (en) * 2014-09-23 2015-01-07 广东欧珀移动通信有限公司 Terminal locking method and device
US20180324672A1 (en) * 2017-05-02 2018-11-08 Samsung Electronics Co., Ltd Apparatus and method for providing operator specific service
CN109587252A (en) * 2018-12-10 2019-04-05 上海闻泰电子科技有限公司 Loading method, device, electronic equipment and the storage medium of operator parameter
CN110505225A (en) * 2019-08-21 2019-11-26 Oppo(重庆)智能科技有限公司 A kind of terminal card-locking method, apparatus and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765240A (en) * 2009-12-29 2010-06-30 中兴通讯股份有限公司 Method and system for locking/unlocking mobile terminal, and mobile terminal
US20120289197A1 (en) * 2011-05-09 2012-11-15 Nokia Corporation SIM Lock For Multi-SIM Environment
CN104270741A (en) * 2014-09-23 2015-01-07 广东欧珀移动通信有限公司 Terminal locking method and device
US20180324672A1 (en) * 2017-05-02 2018-11-08 Samsung Electronics Co., Ltd Apparatus and method for providing operator specific service
CN109587252A (en) * 2018-12-10 2019-04-05 上海闻泰电子科技有限公司 Loading method, device, electronic equipment and the storage medium of operator parameter
CN110505225A (en) * 2019-08-21 2019-11-26 Oppo(重庆)智能科技有限公司 A kind of terminal card-locking method, apparatus and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416204A (en) * 2022-01-19 2022-04-29 上海龙旗科技股份有限公司 Method and equipment for reading PLMN configuration file by terminal equipment
CN114416204B (en) * 2022-01-19 2023-10-03 上海龙旗科技股份有限公司 Method and equipment for terminal equipment to read PLMN configuration file

Also Published As

Publication number Publication date
CN112738789B (en) 2024-01-05

Similar Documents

Publication Publication Date Title
US11032858B2 (en) Network access method, terminal, access network, and core network
US10117163B2 (en) Network access method and mobile communication terminal
CN104980997B (en) Network access method and mobile communication terminal
US10292094B2 (en) Network access method and mobile communication terminal
EP3197213B1 (en) Network access method and mobile communication terminal
WO2016173337A1 (en) Network access method and mobile communications terminal
CN102625001A (en) System and method for acquiring weather situation of home location of calling/called party based on cell phone communication
CN108966331B (en) Cell registration method, cell registration device, wireless routing equipment, terminal and storage medium
CN108093404B (en) Information processing method and device
US20230127814A1 (en) Method and apparatus for manually selecting a network
CN111246451A (en) Function setting method and device of SIM card, storage medium and terminal
CN112738789B (en) SIM card locking method and device, storage medium and electronic equipment
CN112256335B (en) Method and device for loading drive file, storage medium and electronic equipment
CN114189581B (en) Card locking method and device of embedded card, storage medium and terminal
CN105574453A (en) Two-dimensional code processing method and mobile terminal
CN104113837A (en) Method and device for access authentication of wireless local area network
CN115729585A (en) Software upgrading method, device, equipment and readable storage medium
CN114710830B (en) Network registration method and related device
CN101835257A (en) Home information machine and registration method applied to same
CN114553952B (en) Device management method and device, electronic device and storage medium
CN112492575B (en) Execution path setting method and device, storage medium and mobile terminal
CN113766435B (en) Method, device and storage medium for establishing communication group
WO2024120353A1 (en) Communication method, and terminal and core network function
KR100727096B1 (en) Method and system for call send/receive service in mobile station
CN115546950A (en) Intelligent access control system, method and device and storage medium

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