CN114553999A - Locking processing method, unlocking method, device, storage medium and electronic equipment - Google Patents

Locking processing method, unlocking method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114553999A
CN114553999A CN202210157951.4A CN202210157951A CN114553999A CN 114553999 A CN114553999 A CN 114553999A CN 202210157951 A CN202210157951 A CN 202210157951A CN 114553999 A CN114553999 A CN 114553999A
Authority
CN
China
Prior art keywords
mobile terminal
unlocking
data
offline
locking
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.)
Pending
Application number
CN202210157951.4A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210157951.4A priority Critical patent/CN114553999A/en
Publication of CN114553999A publication Critical patent/CN114553999A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • H04M1/673Preventing unauthorised calls from a telephone set by electronic means the user being required to key in a code
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application discloses a locking processing method, an unlocking method, a device, a storage medium and electronic equipment, wherein when detecting that a mobile terminal is connected with a server, the embodiment of the application acquires state information of the mobile terminal; when the state information indicates that the mobile terminal is in a locking state, acquiring an offline unlocking code corresponding to the mobile terminal; generating locking data and offline unlocking data based on the offline unlocking code; and sending the locking data and the offline unlocking data to the mobile terminal, wherein the locking data is used for locking the mobile terminal, and the offline unlocking data is used for unlocking the mobile terminal by combining an offline unlocking code input by a user in the unlocking operation.

Description

Locking processing method, unlocking method, device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of mobile terminals, in particular to a locking processing method, an unlocking method, a locking processing device, an unlocking device, a storage medium and electronic equipment.
Background
With the development of technology, mobile terminals including smart phones, tablet computers or wearable devices become indispensable assistants in people's lives, existing mobile terminals generally select calls and network services provided by operators so as to bind the mobile terminals with the calls and network services provided by the operators, and some mobile terminals also support sim (subscriber Identity module) cards provided by the operators, so as to avoid that the mobile terminals are used under the condition of not obtaining authorization, and for the condition that the mobile terminals do not obtain authorization, the operators can perform card locking service on the mobile terminals.
Disclosure of Invention
The embodiment of the application provides a locking processing method, an unlocking device, a storage medium and electronic equipment, which can realize unlocking processing on a mobile terminal under the condition of no networking and improve the unlocking efficiency of the mobile terminal.
In a first aspect, an embodiment of the present application provides a lock processing method for a mobile terminal, including:
when detecting that the mobile terminal establishes connection with a server, acquiring state information of the mobile terminal;
when the state information indicates that the mobile terminal is in a locked state, acquiring an offline unlocking code corresponding to the mobile terminal;
generating locking data and offline unlocking data based on the offline unlocking code;
and sending the locking data and the offline unlocking data to the mobile terminal, wherein the locking data is used for locking the mobile terminal, and the offline unlocking data is used for unlocking the mobile terminal by combining the offline unlocking code input by a user in unlocking operation.
In a second aspect, an embodiment of the present application provides an unlocking processing method for a mobile terminal, including:
when locking data and offline unlocking data sent by a server are received, storing the offline unlocking data, and locking the mobile terminal based on the locking data;
responding to the unlocking instruction, and outputting prompt information for indicating input of an unlocking code;
and receiving an offline unlocking code input based on the prompt message, and unlocking the mobile terminal based on the offline unlocking code and the offline unlocking data.
In a third aspect, an embodiment of the present application further provides a lock processing apparatus for a mobile terminal, including:
the state acquisition module is used for acquiring the state information of the mobile terminal when detecting that the mobile terminal is connected with the server;
the unlocking code management module is used for acquiring an offline unlocking code corresponding to the mobile terminal when the state information indicates that the mobile terminal is in a locking state;
the data generation module is used for generating locking data and offline unlocking data based on the offline unlocking code;
and the data sending module is used for sending the locking data and the offline unlocking data to the mobile terminal, the locking data is used for locking the mobile terminal, and the offline unlocking data is used for unlocking the mobile terminal by combining the offline unlocking code input by a user in the unlocking operation.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the method for locking processing of a mobile terminal according to any embodiment of the present application, or execute the method for unlocking processing of a mobile terminal according to any embodiment of the present application.
In a fifth aspect, an embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the method for locking the mobile terminal according to any embodiment of the present application, or execute the method for unlocking the mobile terminal according to any embodiment of the present application, by calling the computer program.
According to the technical scheme, when the mobile terminal is connected with the server and is in a locked state, corresponding locking data are generated according to the offline unlocking code of the mobile terminal, corresponding offline unlocking data are generated in advance, and the locking data and the offline unlocking data are sent to the mobile terminal together.
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 flowchart illustrating a lock processing method of a mobile terminal according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating an unlocking method of a mobile terminal according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a lock processing apparatus of a mobile terminal according to an embodiment of the present application.
Fig. 4 is a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 5 is a second structural schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the lock processing method of the mobile terminal may be the lock processing device of the mobile terminal provided in the embodiment of the present application, or an electronic device integrated with the lock processing device of the mobile terminal, where the lock processing device of the mobile terminal may be implemented in a hardware or software manner. The mobile terminal may be an electronic device into which a Subscriber Identity Module (SIM) card can be inserted, including but not limited to a smart phone, a tablet computer, a smart watch, and the like. The electronic device may be a server, for example the electronic device may be an operator server establishing a network connection with the mobile terminal.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a lock processing method of a mobile terminal according to an embodiment of the present disclosure. The specific process of the locking processing method of the mobile terminal provided by the embodiment of the application may be as follows:
101. and when the connection between the mobile terminal and the server is detected, acquiring the state information of the mobile terminal.
When using the mobile terminal, the user may interact with the server through the network, such as receiving or sending information. After establishing network connection with the server, the mobile terminal reads an ICCID (Integrated Circuit card identity) of the SIM card and sends the read ICCID to the server. And after detecting that the connection with the mobile terminal is established, the server receives the ICCID sent by the mobile terminal and inquires the state information of the mobile terminal from the database based on the ICCID. Wherein, the state information includes that the SIM card currently inserted into the mobile terminal is in a locked state or an unlocked state.
The SIM card is an identification card held by a Mobile subscriber of GSM (Global System for Mobile Communications), the GSM System identifies the GSM subscriber by the SIM card, the same SIM card can be used in different Mobile phones, and the GSM Mobile terminal can only access the network after the SIM card is inserted. The ICCID is the card number of the SIM card and is the unique identification number of the SIM card.
If the mobile terminal is in a locked state, the mobile terminal cannot acquire network services provided by an operator, and the currently inserted SIM card can be used to register to the operator network after unlocking processing is needed so as to normally use the mobile terminal. The operator or the operator server may determine whether the mobile terminal needs to be locked according to a preset locking condition. For example, when the operator server detects that the SIM card currently inserted by the mobile terminal is not the designated SIM card, a locking instruction may be triggered to mark the mobile terminal in a locked state.
For the server, after detecting that the mobile terminal establishes communication connection with the server, the server inquires the state information of the mobile terminal from a database based on the ICCID sent by the mobile terminal. Alternatively, in another embodiment, the status information of the Mobile terminal device is marked by an International Mobile Equipment Identity (IMEI). Specifically, after establishing communication connection with the server, the mobile terminal reads the IMEI of the mobile terminal and sends the read IMEI to the server. The server receives the IMEI sent by the mobile terminal after detecting that the server is connected with the mobile terminal, and inquires the state information of the mobile terminal from a database based on the IMEI.
102. And when the state information indicates that the mobile terminal is in a locking state, acquiring an offline unlocking code corresponding to the mobile terminal.
In the embodiment of the present application, a database may be set in the server, and is used to store the offline unlocking codes of all terminals using the service of the operator. For the mobile terminals which the operator has the authority to lock, a unique offline unlocking code is generated for each mobile terminal in advance, and the offline unlocking code is associated with the identification information of the mobile terminal and then stored in the database. In addition to using database storage, in other embodiments, the operator may store the offline unlocking code in other manners as needed. The offline unlocking code may be set and stored after receiving the locking instruction to the mobile terminal, or may be set at any time before receiving the locking instruction.
And when the server determines that the mobile terminal is in a locking state according to the acquired state information, reading an offline unlocking code corresponding to the mobile terminal from a database based on the identification information of the mobile terminal.
In an embodiment, when it is detected that the mobile terminal establishes a connection with the server, before the state information of the mobile terminal is acquired, the method further includes: and in response to a locking instruction to the mobile terminal, marking the mobile terminal in a locking state.
The operator or the operator server may determine whether the mobile terminal needs to be locked according to a preset locking condition. And when the mobile terminal is judged to meet the preset locking condition currently, triggering a locking instruction. The locking instruction can be triggered automatically by the server or manually by an operator. After triggering the locking instruction, the server responds to the locking instruction and marks the mobile terminal in a locking state.
For example, the server is provided with a database for managing status information of all terminals using the service of the operator. The server responds to a locking instruction of the mobile terminal, and modifies the state information corresponding to the identification information (such as ICCID and IMEI) of the mobile terminal equipment into a locking state in the database.
In one embodiment, marking the mobile terminal in a locked state in response to a locking instruction to the mobile terminal includes: responding to a locking instruction of the mobile terminal, and inquiring an offline unlocking code matched with the identification information of the mobile terminal from a preset database; and when the offline unlocking code matched with the identification information of the mobile terminal is inquired, marking the mobile terminal in a locking state.
In this embodiment, before the status of the mobile terminal is marked, the database is queried to determine whether the mobile terminal has a valid offline unlock code. The offline unlocking data and the offline unlocking data are matched and used for activating the corresponding offline unlocking data; the offline unlocking data is used for unlocking the mobile terminal in the locked state. The server can inquire an offline unlocking code matched with the identification information of the mobile terminal from a preset database, and when the offline unlocking code matched with the identification information of the mobile terminal is inquired, the server determines that an effective available offline unlocking code currently exists in the mobile terminal, and directly marks the offline unlocking code in a locking state.
On the contrary, when the off-line unlocking code matched with the identification information of the mobile terminal cannot be inquired from the database, various processing modes can be provided. For example, in an embodiment, a prompt that the mobile terminal does not have a valid available offline unlocking code may be output to the operator, and the current state information of the mobile terminal may be kept unchanged until the operator sets a valid available offline unlocking code for the mobile terminal. Or, in another embodiment, after querying an offline unlocking code matched with the identification information of the mobile terminal from a preset database in response to a locking instruction for the mobile terminal, marking the mobile terminal in a locked state in response to the locking instruction for the mobile terminal, further includes: and when the offline unlocking code matched with the identification information of the mobile terminal cannot be inquired, generating the offline unlocking code of the mobile terminal, and marking the mobile terminal in a locking state.
In this embodiment, an unlock code generator may be provided at the server, and the unlock code generator may generate one non-repeating offline unlock code at a time. The number of bits and the form of the off-line unlocking code can be preset by an operator according to needs. For example, in one embodiment, the offline unlocking code may be comprised of six-digit numbers. And when the server cannot inquire the off-line unlocking code of the mobile terminal from the database, generating a new off-line unlocking code based on the off-line unlocking code generator, associating the off-line unlocking code with the identification information corresponding to the mobile terminal, and storing the associated off-line unlocking code and the identification information in the database.
103. And generating locking data and offline unlocking data based on the offline unlocking code.
After the server acquires the offline unlocking code, locking data and offline unlocking data are generated, and the offline unlocking data are generated based on the offline unlocking code. The generated offline unlocking data is matched with the offline unlocking code, that is, the offline unlocking data activated based on the offline unlocking code can be used for unlocking the mobile terminal locked by the locking data.
In an embodiment, generating the locking data and the offline unlocking data based on the offline unlocking code includes: acquiring equipment information and package information of a mobile terminal; and generating locking data according to the equipment information and the package information, and generating locking data and offline unlocking data according to the equipment information, the package information and the offline unlocking code.
In this embodiment, in order to more accurately lock the mobile terminal, device information of the mobile terminal and package information of the SIM card are acquired, where the device information includes, but is not limited to, a device manufacturer, a device model, an IMEI of the device, and the like. After the information is obtained, the server generates locking data based on the equipment information, the package information and the offline unlocking code, and the locking data is used for locking the mobile terminal. In addition, the server generates a copy of offline unlocking data at the same time as generating locking data. And the server generates locking data and offline unlocking data according to the equipment information, the package information and the offline unlocking code. The generated offline unlocking data is matched with the offline unlocking code, and the offline unlocking data cannot be directly used for unlocking the locked mobile terminal, and the unlocking processing of the mobile terminal can be realized only by being matched with the offline unlocking code.
104. And sending the locking data and the offline unlocking data to the mobile terminal, wherein the locking data is used for locking the mobile terminal, and the offline unlocking data is used for unlocking the mobile terminal by combining an offline unlocking code input by a user in the unlocking operation.
And the server sends the generated locking data and the generated offline unlocking data to the mobile terminal. For the mobile terminal, the locking data and the offline unlocking data can be received at the same time, and after the data are received, a locking program preset in the mobile terminal locks the mobile terminal according to the received locking data. Meanwhile, since the received offline unlocking data is not activated, the mobile terminal cannot unlock the mobile terminal by using the offline unlocking data, and only stores the offline unlocking data into the memory.
In addition, for the user, after the terminal is locked, the offline unlocking code can be inquired through some offline channels under the condition that the terminal cannot be connected with the network. For example, the user may query an offline unlocking code for an operator of the SIM card by calling, or query and obtain the offline unlocking code from a business hall of the operator, and the like, where after confirming that the current SIM card of the mobile terminal can be unlocked, the operator of the operator may notify the user of the corresponding offline unlocking code. After obtaining the offline unlocking code, a user enters an unlocking interface through an entrance of a self-service unlocking service provided by the mobile terminal and inputs the offline unlocking code, the mobile terminal receives the offline unlocking code input by the user and then uses the offline unlocking code to unlock the offline unlocking data stored in the mobile terminal, if the offline unlocking code input by the user is matched with the offline unlocking code corresponding to the offline unlocking data stored in the mobile terminal, activation is successful, the mobile terminal can use the successfully activated offline unlocking data to unlock the mobile terminal, and after unlocking is successful, prompt information of successful unlocking is output. Otherwise, if the offline unlocking code input by the user is not matched with the offline unlocking code corresponding to the offline unlocking data stored in the mobile terminal, the mobile terminal cannot successfully activate the offline unlocking data, and a prompt message that the offline unlocking code is wrong is output to prompt the user to input a correct offline unlocking code again.
After the mobile terminal is locked, the mobile terminal cannot acquire network services based on the current SIM card, and the user can register to the corresponding operator network through the SIM card after unlocking the mobile terminal by using the offline unlocking code. The mobile terminal after the unlocking process can normally use the currently inserted SIM card, and all functions of the mobile terminal are not limited because the mobile terminal is locked.
For the server, after the locking data and the offline unlocking data are sent to the mobile terminal, the method further comprises the following steps: receiving an unlocking result sent by the mobile terminal; and when the mobile terminal is successfully unlocked according to the unlocking result, deleting the off-line unlocking code of the mobile terminal.
For the mobile terminal, after the mobile terminal is successfully unlocked by using the offline unlocking code and the offline unlocking data input by the user and network connection with the server is established, the unlocking result is automatically uploaded to the server. After the server receives the unlocking result uploaded by the mobile terminal, if the mobile terminal is determined to be successfully unlocked according to the unlocking result, the server deletes the offline unlocking code of the mobile terminal so as to ensure that the offline unlocking code is not reused, thereby ensuring the safety of data.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, in the lock processing method of the mobile terminal provided in the embodiment of the present application, when the mobile terminal is connected to the server and is in a locked state, the corresponding locking data is generated according to the offline unlocking code of the mobile terminal, the corresponding offline unlocking data is generated in advance, and the locking data and the offline unlocking data are sent to the mobile terminal together, where the locking data is used to lock the mobile terminal.
An unlocking method of a mobile terminal is further provided in the embodiment of the present application, as shown in fig. 2, fig. 2 is a schematic flow chart of the unlocking method of the mobile terminal provided in the embodiment of the present application. The method comprises the following steps:
201. storing the offline unlocking data when the locking data and the offline unlocking data sent by the server are received, and locking the mobile terminal based on the locking data;
202. responding to the unlocking instruction, and outputting prompt information for indicating input of an unlocking code;
203. and receiving an offline unlocking code input based on the prompt message, and unlocking the mobile terminal based on the offline unlocking code and the offline unlocking data.
In this embodiment, after an operator or an operator server marks the mobile terminal in a locked state, if it is detected that the mobile terminal establishes network connection with the server, locking data and offline unlocking data generated based on a unique offline unlocking code corresponding to the mobile terminal are sent to the mobile terminal. For the mobile terminal, the locking data and the offline unlocking data can be received at the same time, and after the data are received, a locking program preset in the mobile terminal locks the mobile terminal according to the received locking data. Meanwhile, since the received offline unlocking data is not activated, the mobile terminal cannot unlock the mobile terminal by using the offline unlocking data, and only stores the offline unlocking data in the memory.
For the user, after the terminal is locked, the off-line unlocking code can be inquired through some off-line channels under the condition that the terminal cannot be connected with the network. For example, the user may query an offline unlocking code for an operator of the SIM card by calling, or query and obtain the offline unlocking code from a business hall of the operator, and the like, where after confirming that the current SIM card of the mobile terminal can be unlocked, the operator of the operator may notify the user of the corresponding offline unlocking code. The method comprises the steps that after a user obtains an offline unlocking code, the user enters an unlocking interface through an entrance of self-service unlocking service provided by the mobile terminal and inputs the offline unlocking code, the mobile terminal receives the offline unlocking code input by the user and then uses the offline unlocking code to unlock offline unlocking data stored in the mobile terminal, if the offline unlocking code input by the user is matched with the offline unlocking code corresponding to the offline unlocking data stored in the mobile terminal, activation is successful, the mobile terminal can use the successfully activated offline unlocking data to unlock the mobile terminal, and after unlocking is successful, prompt information of successful unlocking is output. Otherwise, if the offline unlocking code input by the user is not matched with the offline unlocking code corresponding to the offline unlocking data stored in the mobile terminal, the mobile terminal cannot successfully activate the offline unlocking data, and a prompt message that the offline unlocking code is wrong is output to prompt the user to input a correct offline unlocking code again.
After the mobile terminal is locked, the mobile terminal cannot acquire network services based on the current SIM card, and the user can register to the corresponding operator network through the SIM card after unlocking the mobile terminal by using the offline unlocking code. The mobile terminal after the unlocking process can normally use the currently inserted SIM card, and all functions of the mobile terminal are not limited because the mobile terminal is locked.
In addition, in some embodiments, after the mobile terminal is successfully unlocked by using the offline unlocking code and the offline unlocking data input by the user and a network connection with the server is established, the unlocking result is automatically uploaded to the server. After the server receives the unlocking result uploaded by the mobile terminal, if the mobile terminal is determined to be successfully unlocked according to the unlocking result, the server deletes the offline unlocking code of the mobile terminal so as to ensure that the offline unlocking code is not reused, thereby ensuring the safety of data.
Therefore, according to the unlocking method of the mobile terminal provided by the embodiment of the application, the mobile terminal can simultaneously obtain the locking data and the inactivated offline unlocking data before being locked, when the mobile terminal is unlocked, the offline unlocking code can be obtained according to an offline mode even if the terminal is not networked, the offline unlocking code is used for unlocking the mobile terminal locally in combination with the offline unlocking data, the unlocking processing is not required to be carried out until the mobile terminal is networked, and the terminal unlocking efficiency is improved.
In one embodiment, a lock processing apparatus of a mobile terminal is also provided. Referring to fig. 3, fig. 3 is a schematic structural diagram of a lock processing apparatus 300 of a mobile terminal according to an embodiment of the present disclosure. The locking processing apparatus 300 of the mobile terminal includes a state obtaining module 301, an unlocking code management module 302, a data generating module 303, and a data sending module 304, as follows:
a state obtaining module 301, configured to obtain state information of the mobile terminal when it is detected that the mobile terminal establishes a connection with a server;
an unlock code management module 302, configured to obtain an offline unlock code corresponding to the mobile terminal when the state information indicates that the mobile terminal is in a locked state;
a data generating module 303, configured to generate locking data and offline unlocking data based on the offline unlocking code;
a data sending module 304, configured to send the locking data and the offline unlocking data to the mobile terminal, where the locking data is used to lock the mobile terminal, and the offline unlocking data is used to unlock the mobile terminal by using the offline unlocking code input by the user in an unlocking operation.
In some embodiments, the lock processing apparatus 300 further includes:
and the state marking module is used for responding to a locking instruction of the mobile terminal and marking the mobile terminal as a locking state.
In some embodiments, the state marking module is configured to query, in response to a locking instruction for the mobile terminal, an offline unlocking code matched with the identification information of the mobile terminal from a preset database; and when the offline unlocking code matched with the identification information of the mobile terminal is inquired, marking the mobile terminal in a locking state.
In some embodiments, the state marking module is configured to generate an offline unlocking code of the mobile terminal when the offline unlocking code matched with the identification information of the mobile terminal is not queried, and mark the mobile terminal in a locked state.
In some embodiments, the data generating module 303 is configured to obtain device information and package information of the mobile terminal; and generating locking data and offline unlocking data according to the equipment information, the package information and the offline unlocking code.
In some embodiments, the unlocking code management module 302 is configured to receive an unlocking result sent by the mobile terminal; and deleting the off-line unlocking code of the mobile terminal when the mobile terminal is determined to be successfully unlocked according to the unlocking result.
It should be noted that the locking processing device of the mobile terminal provided in the embodiment of the present application and the locking processing method of the mobile terminal in the foregoing embodiments belong to the same concept, and any method provided in the locking processing method embodiment of the mobile terminal can be implemented by the locking processing device of the mobile terminal, and a specific implementation process thereof is described in detail in the locking processing method embodiment of the mobile terminal, and is not described herein again.
As can be seen from the above, according to the locking processing device of the mobile terminal provided in the embodiment of the present application, when the mobile terminal is connected to the server and is in a locked state, the corresponding locking data is generated according to the offline unlocking code of the mobile terminal, the corresponding offline unlocking data is generated in advance, and the locking data and the offline unlocking data are sent to the mobile terminal together, where the locking data is used to lock the mobile terminal.
There is also provided in some embodiments an unlocking apparatus of a mobile terminal, including:
the locking module is used for storing the offline unlocking data when locking data and offline unlocking data sent by the server are received, and locking the mobile terminal based on the locking data;
the output module is used for responding to the unlocking instruction and outputting prompt information for indicating input of the unlocking code;
and the unlocking module is used for receiving an offline unlocking code input based on the prompt message and unlocking the mobile terminal based on the offline unlocking code and the offline unlocking data.
The unlocking device of the mobile terminal provided in the embodiment of the present application and the unlocking method of the mobile terminal in the above embodiments belong to the same concept, and any method provided in the unlocking method of the mobile terminal can be implemented by the unlocking device of the mobile terminal, and the specific implementation process thereof is described in detail in the unlocking method embodiment of the mobile terminal, and is not described herein again.
The embodiment of the application also provides the electronic equipment. The electronic device may be a server. Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 401 includes a processor 4011 and a memory 4012. The processor 4011 is electrically connected to the memory 4012.
The processor 4011 is a control center of the electronic equipment 401, connects various parts of the whole electronic equipment using various interfaces and lines, and executes various functions of the electronic equipment and processes data by running or calling a computer program stored in the memory 4012 and calling data stored in the memory 4012.
The memory 4012 can be used to store computer programs and data. The memory 4012 stores a computer program containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 4011 executes various functional applications and data processing by calling a computer program stored in the memory 4012.
In this embodiment, the processor 4011 in the electronic device 401 loads instructions corresponding to processes of one or more computer programs into the memory 4012 according to the following steps, and the processor 4011 runs the computer programs stored in the memory 4012, so as to implement various functions:
when detecting that the mobile terminal establishes connection with a server, acquiring state information of the mobile terminal;
when the state information indicates that the mobile terminal is in a locking state, acquiring an offline unlocking code corresponding to the mobile terminal;
generating locking data and offline unlocking data based on the offline unlocking code;
and sending the locking data and the offline unlocking data to the mobile terminal, wherein the locking data is used for locking the mobile terminal, and the offline unlocking data is used for unlocking the mobile terminal by combining the offline unlocking code input by a user in unlocking operation.
When the mobile terminal and the server are connected and are in a locked state, the electronic device provided by the embodiment generates corresponding locking data according to the offline unlocking code of the mobile terminal, generates corresponding offline unlocking data in advance, and sends the locking data and the offline unlocking data to the mobile terminal together, wherein the locking data is used for locking the mobile terminal, and when the mobile terminal is unlocked, the mobile terminal can be unlocked by combining the offline unlocking data acquired in advance and the offline unlocking code input by the user in real time even though the mobile terminal is not networked, so that the mobile terminal is unlocked without being networked, and the unlocking efficiency of the mobile terminal is improved.
The embodiment of the application also provides the electronic equipment. The electronic device may be a mobile terminal. Referring to fig. 5, fig. 5 is a schematic view of a second structure of an electronic device according to an embodiment of the present disclosure. The electronic device 402 includes a processor 4021 and a memory 4022. The processor 4021 is electrically connected to the memory 4022.
The processor 4021 is a control center of the electronic device 402, connects various parts of the entire electronic device by various interfaces and lines, and executes various functions of the electronic device and processes data by running or calling a computer program stored in the memory 4022 and calling data stored in the memory 4022.
The memory 4022 may be used to store computer programs and data. The memory 4022 stores a computer program containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 4021 executes various functional applications and data processing by calling a computer program stored in the memory 4022.
In this embodiment, the processor 4021 in the electronic device 402 loads instructions corresponding to processes of one or more computer programs into the memory 4022 according to the following steps, and the processor 4021 runs the computer programs stored in the memory 4022, thereby implementing various functions:
when locking data and offline unlocking data sent by a server are received, storing the offline unlocking data, and locking the mobile terminal based on the locking data;
responding to the unlocking instruction, and outputting prompt information for indicating input of an unlocking code;
and receiving an offline unlocking code input based on the prompt message, and unlocking the mobile terminal based on the offline unlocking code and the offline unlocking data.
As shown in fig. 5, the electronic device 402 further includes: a radio frequency circuit 4023, a display screen 4024, a control circuit 4025, an input unit 4026, an audio circuit 4027, a sensor 4028, and a power supply 4029. The processor 4021 is electrically connected to the rf circuit 4023, the display screen 4024, the control circuit 4025, the input unit 4026, the audio circuit 4027, the sensor 4028, and the power supply 4029.
The radio frequency circuit 4023 is configured to transmit and receive radio frequency signals to communicate with a network device or other electronic devices by wireless communication.
The display screen 4024 may be used to display information input by or provided to the user as well as various graphical user interfaces of the electronic device, which may be composed of images, text, icons, video, and any combination thereof.
The control circuit 4025 is electrically connected to the display screen 4024 and is configured to control the display screen 4024 to display information.
The input unit 4026 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 4026 may include a fingerprint recognition module.
The audio circuitry 4027 may provide an audio interface between a user and the electronic device through a speaker, microphone. The audio circuit 4027 includes a microphone, among others. The microphone is electrically connected to the processor 4021. The microphone is used for receiving voice information input by a user.
The sensor 4028 is used to collect external environmental information. The sensor 4028 may include one or more of an ambient light sensor, an acceleration sensor, a gyroscope, and the like.
The power supply 4029 is used to supply power to various components of the electronic device 402. In some embodiments, the power supply 4029 may be logically connected to the processor 4021 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
Although not shown in the drawings, the electronic device 402 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In this embodiment, the processor 4021 in the electronic device 402 loads instructions corresponding to one or more computer program processes into the memory 4022, and the processor 4021 runs the computer program stored in the memory 4022, according to the following steps, so as to implement various functions:
when locking data and offline unlocking data sent by a server are received, storing the offline unlocking data, and locking the mobile terminal based on the locking data;
responding to the unlocking instruction, and outputting prompt information for indicating input of an unlocking code;
and receiving an offline unlocking code input based on the prompt message, and unlocking the mobile terminal based on the offline unlocking code and the offline unlocking data.
Therefore, the electronic device provided by the embodiment of the application can be used for simultaneously acquiring the locking data and the inactivated offline unlocking data before the mobile terminal is locked, acquiring the offline unlocking code according to an offline mode even if the terminal is not networked when the mobile terminal is unlocked, and unlocking the mobile terminal locally by combining the offline unlocking code with the offline unlocking data without waiting for the mobile terminal to be networked, so that the terminal unlocking efficiency is improved.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer executes the lock processing method of the mobile terminal according to any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Furthermore, the terms "first", "second", and "third", etc. in this application are used to distinguish different objects, and are not used to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
The locking processing method, the unlocking method, the device, the storage medium and the mobile terminal provided by the embodiment of the application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments 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 (11)

1. A locking processing method of a mobile terminal is characterized by comprising the following steps:
when detecting that the mobile terminal establishes connection with a server, acquiring state information of the mobile terminal;
when the state information indicates that the mobile terminal is in a locked state, acquiring an offline unlocking code corresponding to the mobile terminal;
generating locking data and offline unlocking data based on the offline unlocking code;
and sending the locking data and the offline unlocking data to the mobile terminal, wherein the locking data is used for locking the mobile terminal, and the offline unlocking data is used for unlocking the mobile terminal by combining the offline unlocking code input by a user in unlocking operation.
2. The method according to claim 1, wherein before the obtaining the state information of the mobile terminal when detecting that the mobile terminal establishes the connection with the server, the method further comprises:
and responding to a locking instruction of the mobile terminal, and marking the mobile terminal in a locking state.
3. The method of claim 2, wherein said marking a mobile terminal in a locked state in response to a lock instruction to the mobile terminal comprises:
responding to a locking instruction of the mobile terminal, and inquiring an offline unlocking code matched with the identification information of the mobile terminal from a preset database;
and when the offline unlocking code matched with the identification information of the mobile terminal is inquired, marking the mobile terminal in a locking state.
4. The method according to claim 3, wherein after the offline unlocking code matching with the identification information of the mobile terminal is inquired from a preset database in response to the locking instruction to the mobile terminal, the mobile terminal is marked as the locked state in response to the locking instruction to the mobile terminal, further comprising:
and when the offline unlocking code matched with the identification information of the mobile terminal cannot be inquired, generating the offline unlocking code of the mobile terminal, and marking the mobile terminal in a locking state.
5. The method of claim 1, wherein generating locking data and offline unlocking data based on the offline unlocking code comprises:
acquiring equipment information and package information of the mobile terminal;
and generating locking data and offline unlocking data according to the equipment information, the package information and the offline unlocking code.
6. The method according to any of claims 1 to 5, wherein after sending the locking data and the offline unlocking data to the mobile terminal, the method further comprises:
receiving an unlocking result sent by the mobile terminal;
and deleting the off-line unlocking code of the mobile terminal when the mobile terminal is determined to be successfully unlocked according to the unlocking result.
7. An unlocking processing method of a mobile terminal is characterized by comprising the following steps:
when locking data and offline unlocking data sent by a server are received, storing the offline unlocking data, and locking the mobile terminal based on the locking data;
responding to the unlocking instruction, and outputting prompt information for indicating input of an unlocking code;
and receiving an offline unlocking code input based on the prompt message, and unlocking the mobile terminal based on the offline unlocking code and the offline unlocking data.
8. The method of claim 7, wherein the unlocking the mobile terminal based on the offline unlocking code and the offline unlocking data comprises:
activating the off-line unlocking data according to the off-line unlocking code;
and unlocking the mobile terminal based on the activated offline unlocking data.
9. A lock processing apparatus of a mobile terminal, comprising:
the state acquisition module is used for acquiring the state information of the mobile terminal when detecting that the mobile terminal is connected with the server;
the unlocking code management module is used for acquiring an offline unlocking code corresponding to the mobile terminal when the state information indicates that the mobile terminal is in a locking state;
the data generation module is used for generating locking data and offline unlocking data based on the offline unlocking code;
and the data sending module is used for sending the locking data and the offline unlocking data to the mobile terminal, the locking data is used for locking the mobile terminal, and the offline unlocking data is used for unlocking the mobile terminal by combining the offline unlocking code input by a user in the unlocking operation.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, when the computer program runs on a computer, causes the computer to execute a lock processing method of a mobile terminal according to any one of claims 1 to 6 or an unlock processing method of a mobile terminal according to any one of claims 7 to 8.
11. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor is configured to execute the method for locking processing of a mobile terminal according to any one of claims 1 to 6 or the method for unlocking processing of a mobile terminal according to any one of claims 7 to 8 by calling the computer program.
CN202210157951.4A 2022-02-21 2022-02-21 Locking processing method, unlocking method, device, storage medium and electronic equipment Pending CN114553999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210157951.4A CN114553999A (en) 2022-02-21 2022-02-21 Locking processing method, unlocking method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210157951.4A CN114553999A (en) 2022-02-21 2022-02-21 Locking processing method, unlocking method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114553999A true CN114553999A (en) 2022-05-27

Family

ID=81676010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210157951.4A Pending CN114553999A (en) 2022-02-21 2022-02-21 Locking processing method, unlocking method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114553999A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278647A (en) * 2022-07-28 2022-11-01 深圳市广和通无线股份有限公司 SIMLOCK unlocking method and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519479A (en) * 2013-09-27 2015-04-15 中兴通讯股份有限公司 Methods for terminal to lock net and unlock net
US20170265077A1 (en) * 2016-03-14 2017-09-14 Le Holdings (Beijing) Co., Ltd. Method for locking mobile terminal and mobile terminal
US20180084106A1 (en) * 2015-04-20 2018-03-22 Alibaba Group Holding Limited Mobile terminal unlocking method and device
CN110708364A (en) * 2019-09-19 2020-01-17 RealMe重庆移动通信有限公司 Electronic equipment unlocking method and device, electronic equipment and storage medium
US20210174619A1 (en) * 2018-07-25 2021-06-10 Yunding Network Technology (Beijing) Co., Ltd. Methods and systems for controlling an intelligent device
CN113938873A (en) * 2020-07-14 2022-01-14 宇龙计算机通信科技(深圳)有限公司 Network card locking method and device, storage medium and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519479A (en) * 2013-09-27 2015-04-15 中兴通讯股份有限公司 Methods for terminal to lock net and unlock net
US20180084106A1 (en) * 2015-04-20 2018-03-22 Alibaba Group Holding Limited Mobile terminal unlocking method and device
US20170265077A1 (en) * 2016-03-14 2017-09-14 Le Holdings (Beijing) Co., Ltd. Method for locking mobile terminal and mobile terminal
US20210174619A1 (en) * 2018-07-25 2021-06-10 Yunding Network Technology (Beijing) Co., Ltd. Methods and systems for controlling an intelligent device
CN110708364A (en) * 2019-09-19 2020-01-17 RealMe重庆移动通信有限公司 Electronic equipment unlocking method and device, electronic equipment and storage medium
CN113938873A (en) * 2020-07-14 2022-01-14 宇龙计算机通信科技(深圳)有限公司 Network card locking method and device, storage medium and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278647A (en) * 2022-07-28 2022-11-01 深圳市广和通无线股份有限公司 SIMLOCK unlocking method and related equipment

Similar Documents

Publication Publication Date Title
CN100504900C (en) Image formation instruction apparatus, image formation instruction method, image formation server, processing method and image formation control apparatus
CN108293181A (en) A kind of processing method and terminal of communication identifier binding
CN103701503A (en) Bluetooth pairing method and system, and Bluetooth KEY
CN101163290A (en) Method of limiting use of mobile terminal through machine-card mutual authentication
CN105631254B (en) Unlocking method and tripper
US8112064B2 (en) Function lock information notification method and mobile communication terminal
CN104010094A (en) Information sending method and device in voice services
CN111246451A (en) Function setting method and device of SIM card, storage medium and terminal
CN114553999A (en) Locking processing method, unlocking method, device, storage medium and electronic equipment
KR20200017180A (en) Electronic device, external electronic device and method for managing embedded subscriber identity module of the external electronic device
JP5584479B2 (en) Terminal line opening system and terminal line opening method
CN104951678B (en) Unlocking method and a device
CN113259942B (en) Connection method, connection device, electronic equipment, connection system and computer-readable storage medium
CN112288425B (en) Payment function opening method, terminal equipment, server, system and storage medium
JP2007281861A (en) Terminal authentication method and mobile terminal device
CN114756849B (en) Method and device for verifying personal identification number PIN code
US20040030761A1 (en) Apparatus control system
CN107071008A (en) Localization method, device and the equipment of terminal device
CN106487924A (en) Virtual resource sharing method and device
US8050654B2 (en) Method for locking function and mobile communication terminal
JP2010034912A (en) Mobile terminal, control apparatus, ic card, and function limiting method
CN101163289A (en) Method of limiting use region of mobile terminal
CN107147633B (en) Password input method and device
CN113938873A (en) Network card locking method and device, storage medium and terminal
CN113688374B (en) Verification method and electronic equipment

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