CN106022160A - Method and apparatuses for deleting user data - Google Patents

Method and apparatuses for deleting user data Download PDF

Info

Publication number
CN106022160A
CN106022160A CN201610320175.XA CN201610320175A CN106022160A CN 106022160 A CN106022160 A CN 106022160A CN 201610320175 A CN201610320175 A CN 201610320175A CN 106022160 A CN106022160 A CN 106022160A
Authority
CN
China
Prior art keywords
sim
sim card
user data
mark
bound
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
CN201610320175.XA
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610320175.XA priority Critical patent/CN106022160A/en
Publication of CN106022160A publication Critical patent/CN106022160A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to a method and apparatuses for deleting user data, which are used for deleting user data timely, so as to improve security. The method includes the steps of after a cellphone is booted, outputting a request to input verification information; receiving input verification information; verifying the verification information; and if the verification information fails to pass verification, deleting local user data.

Description

删除用户数据的方法及装置Method and device for deleting user data

技术领域technical field

本公开涉及通信及计算机处理领域,尤其涉及删除用户数据的方法及装置。The disclosure relates to the fields of communication and computer processing, and in particular to a method and device for deleting user data.

背景技术Background technique

随着电子技术的发展,移动终端已经普遍应用,并且更新换代非常快。移动终端不仅是通信工具,还是用户的私人助手。移动终端中存储了很多用户的私人信息。这些私人信息的安全性非常重要。With the development of electronic technology, mobile terminals have been widely used, and the replacement is very fast. Mobile terminals are not only communication tools, but also users' personal assistants. Many private information of users are stored in the mobile terminal. The security of this private information is very important.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种删除用户数据的方法及装置。In order to overcome the problems existing in related technologies, the present disclosure provides a method and device for deleting user data.

根据本公开实施例的第一方面,提供一种删除用户数据的方法,包括:According to a first aspect of an embodiment of the present disclosure, a method for deleting user data is provided, including:

在开机后,输出要求输入验证信息的请求;After booting, output a request for inputting authentication information;

接收输入的验证信息;Receive input verification information;

对所述验证信息进行验证;verifying the verification information;

在验证不通过时,删除本地的用户数据。When the verification fails, delete the local user data.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例在开机后对用户进行验证,在验证不通过时及时删除用户数据,以提高用户数据的安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: this embodiment verifies the user after booting up, and deletes user data in time when the verification fails, so as to improve the security of user data.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

在开机后,检测是否有SIM卡;After starting up, check whether there is a SIM card;

在检测出有SIM卡时,将当前SIM卡标识与预先绑定的SIM卡标识进行匹配;When a SIM card is detected, match the current SIM card identification with the pre-bound SIM card identification;

所述输出要求输入验证信息的请求,包括:The output asks for a request to enter authentication information, including:

在检测出没有SIM卡时,输出要求输入验证信息的请求;When detecting that there is no SIM card, output a request for inputting verification information;

在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,输出要求输入验证信息的请求。When the current SIM card ID does not match the pre-bound SIM card ID, a request for inputting verification information is output.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例中在没有SIM卡以及当前SIM卡标识与预先绑定的SIM卡标识不匹配时,均对用户进行验证,以提高安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: In this embodiment, when there is no SIM card and the current SIM card ID does not match the pre-bound SIM card ID, the user is verified to improve security .

在一个实施例中,在检测出有SIM卡时,所述验证信息包括预先绑定的SIM卡标识和验证码;In one embodiment, when a SIM card is detected, the verification information includes a pre-bound SIM card identification and a verification code;

在检测出没有SIM卡时,所述验证信息包括验证码。When it is detected that there is no SIM card, the verification information includes a verification code.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例中在有SIM卡时,验证SIM卡标识和验证码两项信息,进一步提高安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: In this embodiment, when there is a SIM card, two pieces of information, the SIM card identification and the verification code, are verified to further improve security.

在一个实施例中,所述预先绑定的SIM卡标识为对预先绑定的SIM卡标识加密后得到的SIM卡标识;In one embodiment, the pre-bound SIM card ID is a SIM card ID obtained after encrypting the pre-bound SIM card ID;

所述将当前SIM卡标识与预先绑定的SIM卡标识进行匹配,包括:The matching of the current SIM card identification with the pre-bound SIM card identification includes:

对当前SIM卡标识进行加密,得到加密后的当前SIM卡标识;Encrypt the current SIM card identification to obtain the encrypted current SIM card identification;

将加密后的当前SIM卡标识与预先绑定的SIM卡标识进行匹配。Match the encrypted current SIM card ID with the pre-bound SIM card ID.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例对SIM卡标识进行加密,提高了获取预先绑定的SIM卡标识的难度,进而提高了验证的可靠性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: this embodiment encrypts the SIM card ID, which increases the difficulty of obtaining the pre-bound SIM card ID, thereby improving the reliability of verification.

在一个实施例中,对SIM卡标识进行加密,包括:In one embodiment, encrypting the SIM card identification includes:

将预设的序列号与SIM卡标识结合并加密,得到加密后的SIM卡标识;其中,序列号为加密芯片生成的唯一标识设备的标识。Combining and encrypting the preset serial number and the SIM card identifier to obtain the encrypted SIM card identifier; wherein, the serial number is an identifier uniquely identifying the device generated by the encryption chip.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例利用序列号进行加密,提高了加密后的SIM卡标识的可靠性,进而提高了验证的可靠性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: this embodiment uses the serial number for encryption, which improves the reliability of the encrypted SIM card identification, thereby improving the reliability of verification.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

在验证不通过时,恢复出厂设置。When the verification fails, restore the factory settings.

本公开的实施例提供的技术方案可以包括以下有益效果:本实施例在验证不通过时不仅可以删除用户数据,还可以恢复出厂设置,进一步提高了安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: this embodiment can not only delete user data when verification fails, but also restore factory settings, further improving security.

根据本公开实施例的第二方面,提供一种删除用户数据的装置,包括:According to a second aspect of an embodiment of the present disclosure, there is provided an apparatus for deleting user data, including:

输出模块,用于在开机后,输出要求输入验证信息的请求;The output module is used for outputting a request for inputting verification information after starting up;

接收模块,用于接收输入的验证信息;A receiving module, configured to receive input verification information;

验证模块,用于对所述验证信息进行验证;A verification module, configured to verify the verification information;

删除模块,用于在验证不通过时,删除本地的用户数据。The delete module is used to delete local user data when the authentication fails.

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

卡检测模块,用于在开机后,检测是否有SIM卡;The card detection module is used to detect whether there is a SIM card after the power is turned on;

匹配模块,用于在检测出有SIM卡时,将当前SIM卡标识与预先绑定的SIM卡标识进行匹配;A matching module, configured to match the current SIM card identification with the pre-bound SIM card identification when a SIM card is detected;

所述输出模块包括:The output modules include:

第一输出子模块,用于在检测出没有SIM卡时,输出要求输入验证信息的请求;The first output submodule is used to output a request for inputting verification information when no SIM card is detected;

第二输出子模块,用于在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,输出要求输入验证信息的请求。The second output submodule is configured to output a request for inputting verification information when the current SIM card ID does not match the pre-bound SIM card ID.

在一个实施例中,在检测出有SIM卡时,所述验证信息包括预先绑定的SIM卡标识和验证码;In one embodiment, when a SIM card is detected, the verification information includes a pre-bound SIM card identification and a verification code;

在检测出没有SIM卡时,所述验证信息包括验证码。When it is detected that there is no SIM card, the verification information includes a verification code.

在一个实施例中,所述预先绑定的SIM卡标识为对预先绑定的SIM卡标识加密后得到的SIM卡标识;In one embodiment, the pre-bound SIM card ID is a SIM card ID obtained after encrypting the pre-bound SIM card ID;

所述匹配模块包括:The matching module includes:

加密子模块,用于对当前SIM卡标识进行加密,得到加密后的当前SIM卡标识;The encryption submodule is used to encrypt the current SIM card identification to obtain the encrypted current SIM card identification;

匹配子模块,用于将加密后的当前SIM卡标识与预先绑定的SIM卡标识进行匹配。The matching submodule is used to match the encrypted current SIM card ID with the pre-bound SIM card ID.

在一个实施例中,加密子模块将预设的序列号与SIM卡标识结合并加密,得到加密后的SIM卡标识;其中,序列号为加密芯片生成的唯一标识设备的标识。In one embodiment, the encryption sub-module combines and encrypts the preset serial number and the SIM card ID to obtain the encrypted SIM card ID; wherein, the serial number is an ID uniquely identifying the device generated by the encryption chip.

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

恢复模块,用于在验证不通过时,恢复出厂设置。The recovery module is used to restore the factory settings when the verification fails.

根据本公开实施例的第三方面,提供一种删除用户数据的装置,包括:According to a third aspect of an embodiment of the present disclosure, there is provided an apparatus for deleting user data, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

在开机后,输出要求输入验证信息的请求;After booting, output a request for inputting verification information;

接收输入的验证信息;Receive input verification information;

对所述验证信息进行验证;verifying the verification information;

在验证不通过时,删除本地的用户数据。When the verification fails, delete the local user data.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种删除用户数据的方法的流程图。Fig. 1 is a flowchart showing a method for deleting user data according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种删除用户数据的方法的流程图。Fig. 2 is a flow chart showing a method for deleting user data according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种删除用户数据的方法的流程图。Fig. 3 is a flow chart showing a method for deleting user data according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种删除用户数据的方法的流程图。Fig. 4 is a flowchart showing a method for deleting user data according to an exemplary embodiment.

图5是根据一示例性实施例示出的一种删除用户数据的装置的框图。Fig. 5 is a block diagram of an apparatus for deleting user data according to an exemplary embodiment.

图6是根据一示例性实施例示出的一种删除用户数据的装置的框图。Fig. 6 is a block diagram of an apparatus for deleting user data according to an exemplary embodiment.

图7是根据一示例性实施例示出的一种删除用户数据的装置的框图。Fig. 7 is a block diagram of an apparatus for deleting user data according to an exemplary embodiment.

图8是根据一示例性实施例示出的一种装置的框图。Fig. 8 is a block diagram of a device according to an exemplary embodiment.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

相关技术中,点亮移动终端的屏幕时,屏幕一般会显示锁屏界面,用户输入正确的解锁密码后,解锁界面。如果解锁密码错误,则一直停留在锁屏界面,不会对用户数据做任何处理。但是如果移动终端丢失,移动终端中的用户数据就处于潜在危险中。In related technologies, when the screen of a mobile terminal is turned on, the screen generally displays a lock screen interface, and the user inputs a correct unlock password to unlock the interface. If the unlock password is wrong, it will stay on the lock screen interface without any processing of user data. But if the mobile terminal is lost, the user data in the mobile terminal is in potential danger.

为解决该问题,本实施例在开机后对用户进行验证,如果验证不通过,则删除用户数据,以提高用户数据的安全性。To solve this problem, this embodiment verifies the user after booting up, and if the verification fails, the user data is deleted, so as to improve the security of the user data.

图1是根据一示例性实施例示出的一种删除用户数据的方法的流程图,如图1所示,该方法可以由移动终端实现,包括以下步骤:Fig. 1 is a flowchart of a method for deleting user data according to an exemplary embodiment. As shown in Fig. 1, the method can be implemented by a mobile terminal, and includes the following steps:

在步骤101中,在开机后,输出要求输入验证信息的请求。In step 101, after starting up, output a request for inputting authentication information.

在步骤102中,接收输入的验证信息。In step 102, input verification information is received.

在步骤103中,对验证信息进行验证。In step 103, the verification information is verified.

在步骤104中,在验证不通过时,删除本地的用户数据。In step 104, when the verification fails, the local user data is deleted.

本实施例中,在开机后,对接收到的验证信息进行验证,当验证不通过时删除本地的用户数据,提高了用户数据的安全性。In this embodiment, after starting up, the received verification information is verified, and when the verification fails, the local user data is deleted, which improves the security of the user data.

在一个实施例中,在步骤104中的用户数据包括:各个应用中的用户数据,如通讯录中的数据、通话记录、即时通讯应用中的好友资料和聊天记录等。In one embodiment, the user data in step 104 includes: user data in various applications, such as data in the address book, call records, friend information and chat records in instant messaging applications, and the like.

移动终端保存了在各个应用中的用户数据,都是用户日常生活中需要用到的数据,有的可能为用户隐秘资料,如支付密码等,所以在用户输入的验证信息不通过时,确定该移动终端为非用户本人使用,为了保护用户数据的安全而删除用户数据,可以更好的保证用户数据不会外漏。The mobile terminal saves user data in various applications, which are data that users need to use in their daily life, and some may be user secret information, such as payment passwords, so when the verification information entered by the user fails, it is determined The mobile terminal is not used by the user himself, and deleting the user data in order to protect the security of the user data can better ensure that the user data will not leak out.

另外,一般在移动终端丢失或被偷后,他人往往会关机然后拿掉SIM(Subscriber Identity Module,客户识别模块)卡,可能安装新的SIM卡。这种场景很可能重新开机。本公开的发明人发现这一特点后,设计出本方案。所以本实施例在开机后进行安全验证,在验证不通过时删除用户数据。以提高用户数据的安全性。不同于点亮屏幕时的安全验证。如果移动终端是从待机状态转为点亮屏幕的状态,此时如果验证不通过,可以不删除用户数据。当然也可以删除用户数据。In addition, generally after the mobile terminal is lost or stolen, others will often shut down the mobile terminal and then remove the SIM (Subscriber Identity Module, customer identification module) card, and may install a new SIM card. This scenario is likely to reboot. After discovering this feature, the inventors of the present disclosure designed this solution. Therefore, in this embodiment, security verification is performed after booting, and user data is deleted when the verification fails. To improve the security of user data. It is different from the security verification when the screen is turned on. If the mobile terminal changes from the standby state to the state of turning on the screen, if the verification fails at this time, the user data may not be deleted. Of course user data can also be deleted.

在一个实施例中,该方法还可实施为:步骤A1至步骤A2。In an embodiment, the method can also be implemented as: step A1 to step A2.

在步骤A1中,在开机后,检测是否有SIM卡。In step A1, after starting up, it is detected whether there is a SIM card.

在步骤A2中,在检测出有SIM卡时,将当前SIM卡标识与预先绑定的SIM卡标识进行匹配。In step A2, when a SIM card is detected, the current SIM card ID is matched with the pre-bound SIM card ID.

步骤101还可实施为:步骤A3或步骤A4。Step 101 can also be implemented as: step A3 or step A4.

在步骤A3中,在检测出没有SIM卡时,输出要求输入验证信息的请求。In step A3, when it is detected that there is no SIM card, a request to input authentication information is output.

在步骤A4中,在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,输出要求输入验证信息的请求。In step A4, when the current SIM card ID does not match the pre-bound SIM card ID, a request for inputting verification information is output.

本实施例中,在没有SIM卡或当前SIM卡标识与预先绑定的SIM卡标识不匹配时,说明移动终端有可能被除用户外的其他人使用,因此为了更好的保护用户的数据,均对用户进行验证,以提高安全性。In this embodiment, when there is no SIM card or the current SIM card identification does not match the pre-bound SIM card identification, it means that the mobile terminal may be used by other people except the user. Therefore, in order to better protect the user's data, Both authenticate users for increased security.

在一个实施例中,在检测出有SIM卡时,验证信息包括预先绑定的SIM卡标识和验证码;In one embodiment, when a SIM card is detected, the verification information includes a pre-bound SIM card identification and a verification code;

在检测出没有SIM卡时,验证信息包括验证码。When it is detected that there is no SIM card, the verification information includes a verification code.

本实施例中,在有SIM卡时,验证SIM卡标识和验证码两项信息,进一步提高安全性。SIM卡在出厂时,SIM标识是唯一的,因此两个不同的SIM卡标识代表着两张不同的SIM卡,所以通过验证SIM卡标识可以判断当前使用的SIM卡与预先绑定的SIM卡是否为同一张SIM卡。如果不是同一张SIM卡,则确定移动终端可能被用户以外的他人使用,此时增加对验证码的验证,以最终确定是否是用户本人。如果验证码正确,则确定是用户本人,使用安全。否则确定不是用户本人,删除用户数据。而验证码是运营商向预设的号码发送的,而号码与SIM也是一一对应的,因此,如果未收到运营商发送的验证码则确定当前使用的SIM卡与预先绑定的SIM卡不是同一张SIM卡。验证码也可以是用户预先设置的密码。In this embodiment, when there is a SIM card, two pieces of information, the SIM card identification and the verification code, are verified to further improve security. When the SIM card leaves the factory, the SIM ID is unique, so two different SIM card IDs represent two different SIM cards. Therefore, by verifying the SIM card ID, you can determine whether the currently used SIM card is compatible with the pre-bound SIM card. for the same SIM card. If it is not the same SIM card, it is determined that the mobile terminal may be used by someone other than the user. At this time, the verification code is added to finally determine whether it is the user himself. If the verification code is correct, it is determined to be the user himself, and it is safe to use. Otherwise, if it is determined that it is not the user himself, delete the user data. The verification code is sent by the operator to the preset number, and the number corresponds to the SIM one by one. Therefore, if the verification code sent by the operator is not received, it is determined that the currently used SIM card is the same as the pre-bound SIM card. Not the same SIM card. The verification code may also be a password preset by the user.

在SIM卡标识匹配一致时,可以确定没有更换SIM卡,仍然是用户本人使用,使用安全。本实施例中在确定未更换SIM卡时,仍然可以进行是否解锁屏幕的验证。When the IDs of the SIM cards are consistent, it can be determined that the SIM card has not been replaced, and the SIM card is still used by the user himself, which is safe to use. In this embodiment, when it is determined that the SIM card has not been replaced, the verification of whether to unlock the screen can still be performed.

在一个实施例中,预先绑定的SIM卡标识为对预先绑定的SIM卡标识加密后得到的SIM卡标识;In one embodiment, the pre-bound SIM card identification is the SIM card identification obtained after encrypting the pre-bound SIM card identification;

步骤A2还可实施为:步骤B1至步骤B2。Step A2 can also be implemented as: Step B1 to Step B2.

在步骤B1中,对当前SIM卡标识进行加密,得到加密后的当前SIM卡标识。In step B1, the current SIM card ID is encrypted to obtain the encrypted current SIM card ID.

在步骤B2中,将加密后的当前SIM卡标识与预先绑定的SIM卡标识进行匹配。In step B2, match the encrypted current SIM card ID with the pre-bound SIM card ID.

本实施例中,对SIM卡标识进行加密,提高了获取预先绑定的SIM卡标识的难度,进而提高了验证的可靠性。In this embodiment, the SIM card identifier is encrypted, which increases the difficulty of obtaining the pre-bound SIM card identifier, thereby improving the reliability of verification.

在一个实施例中,步骤B1还可实施为:步骤C1。In one embodiment, step B1 can also be implemented as: step C1.

在步骤C1中,将预设的序列号与SIM卡标识结合并加密,得到加密后的SIM卡标识;其中,序列号为加密芯片生成的唯一标识设备的标识。In step C1, the preset serial number and the SIM card ID are combined and encrypted to obtain the encrypted SIM card ID; wherein, the serial number is an ID uniquely identifying the device generated by the encryption chip.

本实施例中,序列号是加密芯片生成的唯一标识设备的标识,也就是说序列号是唯一的,而将预设的序列号与SIM卡标识结合加密,得到的加密后的SIM卡标识也是唯一的,所以利用序列号进行加密,提高了加密后的SIM卡标识的可靠性,进而提高了验证的可靠性。并且,序列号是由加密芯片生成,采用了硬件加密,相比于软件算法加密的方式,安全性更高。另外,加密后的SIM卡标识可以存储在特定位置,如加密芯片中或固定内存中,该特定位置可以是刷机也不会修改的位置。In this embodiment, the serial number is the identification of the unique identification device generated by the encryption chip, that is to say, the serial number is unique, and the preset serial number and the SIM card identification are combined and encrypted, and the encrypted SIM card identification obtained is also Unique, so the serial number is used for encryption, which improves the reliability of the encrypted SIM card identification, thereby improving the reliability of verification. Moreover, the serial number is generated by an encryption chip, using hardware encryption, which is more secure than software algorithm encryption. In addition, the encrypted SIM card identification can be stored in a specific location, such as in an encrypted chip or in a fixed memory, and the specific location can be a location that will not be modified even when the phone is flashed.

在一个实施例中,该方法还可实施为:步骤D1。In an embodiment, the method can also be implemented as: step D1.

在步骤D1中,在验证不通过时,恢复出厂设置。In step D1, when the verification fails, the factory settings are restored.

本实施例中,在验证不通过时不仅可以删除用户数据,还可以恢复出厂设置,恢复出厂设置即将用户数据彻底删除,从而进一步提高了安全性。In this embodiment, when the verification fails, not only the user data can be deleted, but also the factory settings can be restored. Restoring the factory settings means completely deleting the user data, thereby further improving security.

在一个实施例中,出厂设置包括:对操作系统和各个应用的设置,如设置的铃声、桌面图案等。In one embodiment, the factory settings include: settings for the operating system and various applications, such as set ringtones, desktop patterns, and the like.

移动终端在出厂时,厂商往往会对移动终端做一些基础设置,如移动终端中已安装应用的设置,使用户在获得移动终端后可以正常使用移动终端,而此时的数据均为厂商设置,并没有用户数据,所以恢复出厂设置即恢复到终端在保存用户数据之前。When the mobile terminal leaves the factory, the manufacturer often makes some basic settings on the mobile terminal, such as the settings of the installed applications in the mobile terminal, so that the user can use the mobile terminal normally after obtaining the mobile terminal, and the data at this time are all set by the manufacturer. There is no user data, so restoring to factory settings means restoring to the terminal before saving user data.

如图2所示,本公开实施例提供了一种删除用户数据的方法,移动终端为手机,具体实施步骤如下:As shown in Figure 2, the embodiment of the present disclosure provides a method for deleting user data, the mobile terminal is a mobile phone, and the specific implementation steps are as follows:

在步骤201中,在开机后,检测是否有SIM卡。在检测出没有SIM卡时,执行步骤202,在检测出有SIM卡时,执行步骤203。In step 201, after starting up, it is detected whether there is a SIM card. When it is detected that there is no SIM card, execute step 202, and when it is detected that there is a SIM card, execute step 203.

在步骤202中,在检测出没有SIM卡时,输出要求输入验证信息的请求。验证信息包括验证码。In step 202, when it is detected that there is no SIM card, a request for inputting verification information is output. The verification information includes a verification code.

例如,在检测出没有SIM卡时,在手机界面中输出需要用户输入的用户信息,即用户预设的验证码。For example, when it is detected that there is no SIM card, the user information that needs to be input by the user, that is, the verification code preset by the user, is output on the interface of the mobile phone.

在步骤203中,在检测出有SIM卡时,将当前SIM卡标识与预先绑定的SIM卡标识进行匹配。在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,执行步骤S204;在当前SIM卡标识与预先绑定的SIM卡标识匹配时,结束流程。In step 203, when a SIM card is detected, the current SIM card ID is matched with the pre-bound SIM card ID. When the current SIM card ID does not match the pre-bound SIM card ID, step S204 is executed; when the current SIM card ID matches the pre-bound SIM card ID, the process ends.

例如,用户在获得新手机后,会在手机中插入SIM卡,此时手机提示用户绑定SIM卡或者自动绑定当前的SIM卡,而运营商发放的SIM卡都具有唯一标识,方便分辨不同的SIM卡对应的电话号码,在检测出有SIM卡时,可以通过SIM卡标识,判断当前的SIM卡与预先绑定的SIM卡是否为同一张SIM卡。For example, after a user gets a new mobile phone, he will insert a SIM card into the mobile phone. At this time, the mobile phone prompts the user to bind the SIM card or automatically binds the current SIM card. When the phone number corresponding to the SIM card is detected, the SIM card identification can be used to determine whether the current SIM card and the pre-bound SIM card are the same SIM card.

在步骤204中,在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,输出要求输入验证信息的请求。其中,在检测出有SIM卡时,验证信息包括预先绑定的SIM卡标识和验证码;在检测出没有SIM卡时,验证信息包括验证码。验证信息包括预先绑定的SIM卡标识和验证码。In step 204, when the current SIM card ID does not match the pre-bound SIM card ID, a request for inputting verification information is output. Wherein, when it is detected that there is a SIM card, the verification information includes a pre-bound SIM card identification and a verification code; when it is detected that there is no SIM card, the verification information includes a verification code. The verification information includes the pre-bound SIM card identification and verification code.

例如,在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,在手机界面中输出需要用户输入的验证信息,即预先绑定的SIM卡标识和用户预设的验证码。For example, when the current SIM card identification does not match the pre-bound SIM card identification, the verification information that needs to be input by the user is output on the mobile phone interface, that is, the pre-bound SIM card identification and the verification code preset by the user.

在步骤205中,接收输入的验证信息。In step 205, input verification information is received.

例如,手机接收到用户输入的验证信息。For example, the mobile phone receives verification information input by the user.

在步骤206中,对验证信息进行验证。In step 206, the verification information is verified.

例如,对用户输入的验证信息进行验证,即对比用户输入的验证信息与原有存储的验证信息是否匹配。For example, verifying the verification information input by the user is to compare whether the verification information input by the user matches the original stored verification information.

在步骤207中,在验证不通过时,删除本地的用户数据。In step 207, when the verification fails, the local user data is deleted.

例如,当用户输入的验证信息与原有存储的验证信息不匹配时,则验证不通过,当验证不通过时,则可以确定当前使用手机的用户不是手机的原有主人,因此将本地的用户数据删除以保护用户的隐私及财产安全。For example, when the verification information entered by the user does not match the original stored verification information, the verification fails. When the verification fails, it can be determined that the user currently using the mobile phone is not the original owner of the mobile phone. Data deletion to protect user privacy and property security.

本实施例提供了一种删除用户数据的方法。在开机后,通过判断SIM卡的情况确定需要输出何种验证信息,并根据验证用户输入的验证信息的结果,确定是否需要删除本地的用户数据。提高了用户使用终端后终端中的用户数据的安全性。This embodiment provides a method for deleting user data. After starting up, determine what kind of verification information needs to be output by judging the situation of the SIM card, and determine whether to delete the local user data according to the result of verifying the verification information input by the user. The security of user data in the terminal after the user uses the terminal is improved.

如图3所示,本公开实施例提供了一种删除用户数据的方法,终端为手机,具体实施步骤如下:As shown in Figure 3, the embodiment of the present disclosure provides a method for deleting user data, the terminal is a mobile phone, and the specific implementation steps are as follows:

在步骤301中,在开机后,检测是否有SIM卡。在检测出没有SIM卡时,执行步骤302至步骤304;在检测出有SIM卡时,执行步骤305。In step 301, after starting up, it is detected whether there is a SIM card. When it is detected that there is no SIM card, execute step 302 to step 304; when it is detected that there is a SIM card, execute step 305.

在步骤302中,在检测出有SIM卡时,对当前SIM卡标识进行加密,得到加密后的当前SIM卡标识。In step 302, when a SIM card is detected, the current SIM card ID is encrypted to obtain the encrypted current SIM card ID.

其中,对SIM卡标识进行加密,包括:将预设的序列号与SIM卡标识结合并加密,得到加密后的SIM卡标识;其中,序列号为加密芯片生成的唯一标识设备的标识。Wherein, encrypting the SIM card identification includes: combining and encrypting the preset serial number and the SIM card identification to obtain the encrypted SIM card identification; wherein, the serial number is the unique identification device identification generated by the encryption chip.

例如,在检测出手机中插有SIM卡时,将预设的序列号与当前SIM卡标识结合并加密,得到加密后的SIM卡标识。For example, when it is detected that a SIM card is inserted in the mobile phone, the preset serial number is combined with the current SIM card identification and encrypted to obtain the encrypted SIM card identification.

在步骤303中,将加密后的当前SIM卡标识与预先绑定的SIM卡标识进行匹配。预先绑定的SIM卡标识为对预先绑定的SIM卡标识加密后得到的SIM卡标识。在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,执行步骤304;在当前SIM卡标识与预先绑定的SIM卡标识匹配时,结束流程。In step 303, match the encrypted current SIM card ID with the pre-bound SIM card ID. The pre-bound SIM card ID is the SIM card ID obtained by encrypting the pre-bound SIM card ID. When the current SIM card ID does not match the pre-bound SIM card ID, step 304 is executed; when the current SIM card ID matches the pre-bound SIM card ID, the process ends.

例如,将加密后的当前SIM卡标识与对预设绑定的SIM卡标识加密后得到的SIM卡标识进行匹配。用户在获得新手机后,会在手机中插入SIM卡,此时手机提示用户绑定SIM卡或者自动绑定当前的SIM卡,而运营商发放的SIM卡都具有唯一标识,方便分辨不同的SIM卡对应的电话号码,在检测出有SIM卡时,可以通过对SIM卡标识进行加密,得到的加密后的SIM卡标识,判断当前的SIM卡与预先绑定的SIM卡是否为同一张SIM卡,避免了伪造相同SIM卡标识从而验证成功,进一步提高了用户数据的安全性。For example, match the encrypted current SIM card ID with the SIM card ID obtained after encrypting the preset bound SIM card ID. After the user gets a new mobile phone, he will insert a SIM card into the mobile phone. At this time, the mobile phone prompts the user to bind the SIM card or automatically binds the current SIM card. The SIM cards issued by the operator have a unique identifier, which is convenient for distinguishing different SIM cards. For the phone number corresponding to the card, when a SIM card is detected, the SIM card ID can be encrypted to obtain the encrypted SIM card ID to determine whether the current SIM card and the pre-bound SIM card are the same SIM card , to avoid forging the identity of the same SIM card so that the verification is successful, and further improve the security of user data.

在步骤304中,在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,输出要求输入验证信息的请求。In step 304, when the current SIM card ID does not match the pre-bound SIM card ID, a request for inputting verification information is output.

在步骤305中,在检测出没有SIM卡时,输出要求输入验证信息的请求。In step 305, when it is detected that there is no SIM card, a request for inputting verification information is output.

在步骤306中,接收输入的验证信息。In step 306, input verification information is received.

例如,手机接收到用户输入的验证信息。For example, the mobile phone receives verification information input by the user.

在步骤307中,对验证信息进行验证。In step 307, verify the verification information.

例如,对用户输入的验证信息进行验证,即对比用户输入的验证信息与原有存储的验证信息是否匹配。For example, verifying the verification information input by the user is to compare whether the verification information input by the user matches the original stored verification information.

在步骤308中,在验证不通过时,删除本地的用户数据;并恢复出厂设置。In step 308, when the verification fails, delete the local user data; and restore the factory settings.

例如,当用户输入的验证信息与原有存储的验证信息不匹配时,则验证不通过,当验证不通过时,则可以确定当前使用手机的用户不是手机的原有主人,因此将本地的用户数据删除并将手机恢复出厂设置,此时手机中仅有的数据为手机在出厂时厂家预先设置的基本数据,而没有用户使用时所保留或保存的数据,从而保护了用户的隐私及财产安全。For example, when the verification information entered by the user does not match the original stored verification information, the verification fails. When the verification fails, it can be determined that the user currently using the mobile phone is not the original owner of the mobile phone. Delete the data and restore the mobile phone to factory settings. At this time, the only data in the mobile phone is the basic data preset by the manufacturer when the mobile phone leaves the factory, and there is no data retained or saved by the user when using it, thus protecting the user's privacy and property safety .

本公开实施例提供了一种删除用户数据的方法。在开机后,通过判断SIM卡的情况及加密后的SIM卡标识与预先绑定的SIM卡标识的匹配性确定需要输出何种验证信息,并根据验证用户输入的验证信息的结果,确定是否需要删除本地的用户数据,由于加密后SIM卡标识是通过唯一的序列号与SIM卡标识结合后加密得到的,更加保证了加密后的SIM卡标识的唯一性,从而进一步提高了用户使用终端后终端中的用户数据的安全性。An embodiment of the present disclosure provides a method for deleting user data. After starting up, determine what kind of verification information needs to be output by judging the situation of the SIM card and the match between the encrypted SIM card ID and the pre-bound SIM card ID, and determine whether it needs to be output according to the result of verifying the verification information input by the user Delete the local user data, because the encrypted SIM card ID is encrypted by combining the unique serial number and the SIM card ID, which further ensures the uniqueness of the encrypted SIM card ID, thereby further improving the terminal security after the user uses the terminal. Security of user data in .

通过以上介绍了解了传输截屏图片的实现过程,该过程由移动终端和计算机实现,下面分别针对两个设备的内部结构和功能进行介绍。Through the above introduction, we understand the implementation process of transmitting screenshots. This process is realized by the mobile terminal and the computer. The internal structure and functions of the two devices are introduced below.

图4是根据一示例性实施例示出的一种删除用户数据的装置示意图。参照图4,该装置包括:Fig. 4 is a schematic diagram of an apparatus for deleting user data according to an exemplary embodiment. Referring to Figure 4, the device includes:

输出模块401被配置为在开机后,输出要求输入验证信息的请求。The output module 401 is configured to output a request for inputting verification information after power-on.

接收模块402被配置为接收输入的验证信息。The receiving module 402 is configured to receive input verification information.

验证模块403被配置为对验证信息进行验证。The verification module 403 is configured to verify the verification information.

删除模块404被配置为在验证不通过时,删除本地的用户数据。The deletion module 404 is configured to delete the local user data when the verification fails.

如图5所示,该装置还包括:As shown in Figure 5, the device also includes:

卡检测模块501被配置为在开机后,检测是否有SIM卡。The card detection module 501 is configured to detect whether there is a SIM card after booting.

匹配模块502被配置为在检测出有SIM卡时,将当前SIM卡标识与预先绑定的SIM卡标识进行匹配。The matching module 502 is configured to match the current SIM card identifier with the pre-bound SIM card identifier when a SIM card is detected.

输出模块401包括:The output module 401 includes:

第一输出子模块503被配置为在检测出没有SIM卡时,输出要求输入验证信息的请求。The first output submodule 503 is configured to output a request for inputting verification information when no SIM card is detected.

第二输出子模块504被配置为在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,输出要求输入验证信息的请求。The second output submodule 504 is configured to output a request for inputting verification information when the current SIM card ID does not match the pre-bound SIM card ID.

如图6所示,预先绑定的SIM卡标识为对预先绑定的SIM卡标识加密后得到的SIM卡标识;As shown in Figure 6, the pre-bound SIM card identification is the SIM card identification obtained after encrypting the pre-bound SIM card identification;

匹配模块502包括:Matching module 502 includes:

加密子模块601被配置为对当前SIM卡标识进行加密,得到加密后的当前SIM卡标识。加密子模块将预设的序列号与SIM卡标识结合并加密,得到加密后的SIM卡标识;其中,序列号为加密芯片生成的唯一标识设备的标识。The encryption submodule 601 is configured to encrypt the current SIM card ID to obtain the encrypted current SIM card ID. The encryption sub-module combines and encrypts the preset serial number and the SIM card identification to obtain the encrypted SIM card identification; wherein, the serial number is an identification uniquely identifying the device generated by the encryption chip.

匹配子模块602被配置为将加密后的当前SIM卡标识与预先绑定的SIM卡标识进行匹配。The matching submodule 602 is configured to match the encrypted current SIM card ID with the pre-bound SIM card ID.

如图7所示,该装置还包括:As shown in Figure 7, the device also includes:

恢复模块701被配置为在验证不通过时,恢复出厂设置。The recovery module 701 is configured to restore the factory settings when the verification fails.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

图8是根据一示例性实施例示出的一种用于删除用户数据的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 8 is a block diagram of an apparatus 800 for deleting user data according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图8,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。8, device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and communication component 816 .

处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .

存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件806为装置800的各种组件提供电源。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电源相关联的组件。Power component 806 provides power to various components of device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 800 .

多媒体组件808包括在该装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC) configured to receive external audio signals when the device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800的一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, the sensor component 814 can also detect a change in the position of the device 800 or a component of the device 800, Presence or absence of user contact with device 800 , device 800 orientation or acceleration/deceleration and temperature changes of device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the apparatus 800 and other devices. The device 800 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 800 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the device 800 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种删除用户数据的装置,包括:A device for deleting user data, comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,该处理器被配置为:Among them, the processor is configured as:

在开机后,输出要求输入验证信息的请求;After booting, output a request for inputting authentication information;

接收输入的验证信息;Receive input verification information;

对验证信息进行验证;Verify the verification information;

在验证不通过时,删除本地的用户数据。When the verification fails, delete the local user data.

该处理器还可以被配置为:The processor can also be configured to:

该方法还包括:The method also includes:

在开机后,检测是否有SIM卡;After starting up, check whether there is a SIM card;

在检测出有SIM卡时,将当前SIM卡标识与预先绑定的SIM卡标识进行匹配;When a SIM card is detected, match the current SIM card identification with the pre-bound SIM card identification;

输出要求输入验证信息的请求,包括:Outputs a request to enter authentication information, including:

在检测出没有SIM卡时,输出要求输入验证信息的请求;When detecting that there is no SIM card, output a request for inputting verification information;

在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,输出要求输入验证信息的请求。When the current SIM card ID does not match the pre-bound SIM card ID, a request for inputting verification information is output.

该处理器还可以被配置为:The processor can also be configured to:

在检测出有SIM卡时,验证信息包括预先绑定的SIM卡标识和验证码;When a SIM card is detected, the verification information includes a pre-bound SIM card identification and a verification code;

在检测出没有SIM卡时,验证信息包括验证码。When it is detected that there is no SIM card, the verification information includes a verification code.

该处理器还可以被配置为:The processor can also be configured to:

预先绑定的SIM卡标识为对预先绑定的SIM卡标识加密后得到的SIM卡标识;The pre-bound SIM card identification is the SIM card identification obtained after encrypting the pre-bound SIM card identification;

将当前SIM卡标识与预先绑定的SIM卡标识进行匹配,包括:Match the current SIM card ID with the pre-bound SIM card ID, including:

对当前SIM卡标识进行加密,得到加密后的当前SIM卡标识;Encrypt the current SIM card identification to obtain the encrypted current SIM card identification;

将加密后的当前SIM卡标识与预先绑定的SIM卡标识进行匹配。Match the encrypted current SIM card ID with the pre-bound SIM card ID.

该处理器还可以被配置为:The processor can also be configured to:

对SIM卡标识进行加密,包括:Encrypt SIM card identification, including:

将预设的序列号与SIM卡标识结合并加密,得到加密后的SIM卡标识;其中,序列号为加密芯片生成的唯一标识设备的标识。Combining and encrypting the preset serial number and the SIM card identifier to obtain the encrypted SIM card identifier; wherein, the serial number is an identifier uniquely identifying the device generated by the encryption chip.

该处理器还可以被配置为:The processor can also be configured to:

该方法还包括:The method also includes:

在验证不通过时,恢复出厂设置。When the verification fails, restore the factory settings.

一种非临时性计算机可读存储介质,当该存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种删除用户数据的方法,该方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute a method for deleting user data, the method comprising:

在开机后,输出要求输入验证信息的请求;After booting, output a request for inputting authentication information;

接收输入的验证信息;Receive input verification information;

对验证信息进行验证;Verify the verification information;

在验证不通过时,删除本地的用户数据。When the verification fails, delete the local user data.

该存储介质中的指令还可以包括:The instructions in the storage medium may also include:

该方法还包括:The method also includes:

在开机后,检测是否有SIM卡;After starting up, check whether there is a SIM card;

在检测出有SIM卡时,将当前SIM卡标识与预先绑定的SIM卡标识进行匹配;When a SIM card is detected, match the current SIM card identification with the pre-bound SIM card identification;

输出要求输入验证信息的请求,包括:Outputs a request to enter authentication information, including:

在检测出没有SIM卡时,输出要求输入验证信息的请求;When detecting that there is no SIM card, output a request for inputting verification information;

在当前SIM卡标识与预先绑定的SIM卡标识不匹配时,输出要求输入验证信息的请求。When the current SIM card ID does not match the pre-bound SIM card ID, a request for inputting verification information is output.

该存储介质中的指令还可以包括:The instructions in the storage medium may also include:

在检测出有SIM卡时,验证信息包括预先绑定的SIM卡标识和验证码;When a SIM card is detected, the verification information includes a pre-bound SIM card identification and a verification code;

在检测出没有SIM卡时,验证信息包括验证码。When it is detected that there is no SIM card, the verification information includes a verification code.

该存储介质中的指令还可以包括:The instructions in the storage medium may also include:

预先绑定的SIM卡标识为对预先绑定的SIM卡标识加密后得到的SIM卡标识;The pre-bound SIM card identification is the SIM card identification obtained after encrypting the pre-bound SIM card identification;

将当前SIM卡标识与预先绑定的SIM卡标识进行匹配,包括:Match the current SIM card ID with the pre-bound SIM card ID, including:

对当前SIM卡标识进行加密,得到加密后的当前SIM卡标识;Encrypt the current SIM card identification to obtain the encrypted current SIM card identification;

将加密后的当前SIM卡标识与预先绑定的SIM卡标识进行匹配。Match the encrypted current SIM card ID with the pre-bound SIM card ID.

该存储介质中的指令还可以包括:The instructions in the storage medium may also include:

对SIM卡标识进行加密,包括:Encrypt SIM card identification, including:

将预设的序列号与SIM卡标识结合并加密,得到加密后的SIM卡标识;其中,序列号为加密芯片生成的唯一标识设备的标识。Combining and encrypting the preset serial number and the SIM card identifier to obtain the encrypted SIM card identifier; wherein, the serial number is an identifier uniquely identifying the device generated by the encryption chip.

该存储介质中的指令还可以包括:The instructions in the storage medium may also include:

该方法还包括:The method also includes:

在验证不通过时,恢复出厂设置。When the verification fails, restore the factory settings.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. the method deleting user data, it is characterised in that including:
After powering, output requires the request of input validation information;
Receive the checking information of input;
Described checking information is verified;
Obstructed out-of-date in checking, delete local user data.
The method of deletion user data the most according to claim 1, it is characterised in that described method Also include:
After powering, SIM has been detected whether;
When being tested with SIM, by current SIM card mark and the SIM bound in advance identify into Row coupling;
Described output requires the request of input validation information, including:
Detect there is no SIM time, output requires the request of input validation information;
When current SIM card mark is not mated with the SIM mark bound in advance, output requires input The request of checking information.
The method of deletion user data the most according to claim 2, it is characterised in that detecting When having SIM, described checking information includes SIM mark and the identifying code bound in advance;
Detect there is no SIM time, described checking information includes identifying code.
The method of deletion user data the most according to claim 2, it is characterised in that described in advance The SIM of binding is designated the SIM mark obtained after the SIM mark encryption bound in advance;
Described current SIM card mark mark with the SIM bound in advance is mated, including:
Current SIM card mark is encrypted, the current SIM card mark after being encrypted;
Current SIM card mark after encryption is mated with the SIM mark bound in advance.
The method of deletion user data the most according to claim 4, it is characterised in that to SIM Mark is encrypted, including:
Default serial number is combined with SIM mark and encrypts, the SIM mark after being encrypted; Wherein, unique mark identifying equipment that Serial No. encryption chip generates.
The method of deletion user data the most according to claim 1, it is characterised in that described method Also include:
Obstructed out-of-date in checking, factory reset.
7. the device deleting user data, it is characterised in that including:
Output module, for after powering, output requires the request of input validation information;
Receiver module, for receiving the checking information of input;
Authentication module, for verifying described checking information;
Removing module, for obstructed out-of-date in checking, deletes local user data.
The device of deletion user data the most according to claim 7, it is characterised in that described device Also include:
Card detection module, for after powering, has detected whether SIM;
Matching module, for when being tested with SIM, identifies current SIM card and binds in advance SIM mark mate;
Described output module includes:
First output sub-module, for detect there is no SIM time, output require input validation information Request;
Second output sub-module, for identifying not with the SIM bound in advance in current SIM card mark During coupling, output requires the request of input validation information.
The device of deletion user data the most according to claim 8, it is characterised in that detecting When having SIM, described checking information includes SIM mark and the identifying code bound in advance;
Detect there is no SIM time, described checking information includes identifying code.
The device of deletion user data the most according to claim 8, it is characterised in that described pre- The SIM first bound is designated the SIM mark obtained after the SIM mark encryption bound in advance;
Described matching module includes:
Encryption submodule, for current SIM card mark is encrypted, the current SIM after being encrypted Card mark;
Matched sub-block, for by the current SIM card mark after encryption and the SIM mark bound in advance Know and mate.
The device of 11. deletion user data according to claim 10, it is characterised in that encryption Default serial number is combined with SIM mark and encrypts by module, the SIM mark after being encrypted; Wherein, unique mark identifying equipment that Serial No. encryption chip generates.
The device of 12. deletion user data according to claim 7, it is characterised in that described dress Put and also include:
Recover module, for obstructed out-of-date in checking, factory reset.
13. 1 kinds of devices deleting user data, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
After powering, output requires the request of input validation information;
Receive the checking information of input;
Described checking information is verified;
Obstructed out-of-date in checking, delete local user data.
CN201610320175.XA 2016-05-13 2016-05-13 Method and apparatuses for deleting user data Pending CN106022160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610320175.XA CN106022160A (en) 2016-05-13 2016-05-13 Method and apparatuses for deleting user data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610320175.XA CN106022160A (en) 2016-05-13 2016-05-13 Method and apparatuses for deleting user data

Publications (1)

Publication Number Publication Date
CN106022160A true CN106022160A (en) 2016-10-12

Family

ID=57096913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610320175.XA Pending CN106022160A (en) 2016-05-13 2016-05-13 Method and apparatuses for deleting user data

Country Status (1)

Country Link
CN (1) CN106022160A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453402A (en) * 2016-11-18 2017-02-22 广东欧珀移动通信有限公司 Data processing method and device
CN106529319A (en) * 2016-11-30 2017-03-22 广东欧珀移动通信有限公司 File protection method and device, and terminal
CN106529262A (en) * 2016-10-31 2017-03-22 维沃移动通信有限公司 Data protection method for mobile terminal and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801731A (en) * 2012-08-15 2012-11-28 北京小米科技有限责任公司 Method and device for protecting data
CN104346579A (en) * 2014-10-29 2015-02-11 北京数字天域科技股份有限公司 Method, device and system for protecting private information of mobile terminal
CN104506491A (en) * 2014-11-28 2015-04-08 小米科技有限责任公司 Personal data account management method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801731A (en) * 2012-08-15 2012-11-28 北京小米科技有限责任公司 Method and device for protecting data
CN104346579A (en) * 2014-10-29 2015-02-11 北京数字天域科技股份有限公司 Method, device and system for protecting private information of mobile terminal
CN104506491A (en) * 2014-11-28 2015-04-08 小米科技有限责任公司 Personal data account management method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106529262A (en) * 2016-10-31 2017-03-22 维沃移动通信有限公司 Data protection method for mobile terminal and mobile terminal
CN106453402A (en) * 2016-11-18 2017-02-22 广东欧珀移动通信有限公司 Data processing method and device
CN106453402B (en) * 2016-11-18 2019-08-13 Oppo广东移动通信有限公司 A kind of data processing method and equipment
CN106529319A (en) * 2016-11-30 2017-03-22 广东欧珀移动通信有限公司 File protection method and device, and terminal

Similar Documents

Publication Publication Date Title
CN104639533B (en) Method of controlling security based on terminal and device
CN106453052B (en) Message interaction method and device
CN105844470A (en) Payment method and device
CN104484593B (en) terminal verification method and device
CN106210238B (en) Short message storage method and device
CN109039860B (en) Method and device for sending and displaying messages, and method and device for identity authentication
CN105678549A (en) Payment method and device
CN104820805B (en) A kind of method and device of subscriber identification card information theft-preventing
CN106909827A (en) Using account management method and device
EP3367286A1 (en) Methods, apparatuses, computer program and recording medium for protecting information
CN106529277A (en) Message preview method and device
CN106446653A (en) Application authority management method and device and electronic equipment
CN106126986B (en) Unlocking processing method and device for locked data partition
CN106600768A (en) Intelligent door lock authentication method, device and terminal
CN106022160A (en) Method and apparatuses for deleting user data
CN105912922A (en) Information management method and device, and terminal
CN106250743B (en) Account switching method and device
CN106453257A (en) Security verification method, apparatus and system, terminal device and network server
CN105975283A (en) Starting method and device for operating system
CN106845199A (en) Object authentication method and device
CN106372943A (en) Message processing method and device
CN105894281A (en) Payment method and device
JP2020004424A (en) Method and device for protecting privacy of mobile terminal and mobile terminal
CN106791145A (en) Short message management method and device
CN106062762A (en) Application encryption method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161012

RJ01 Rejection of invention patent application after publication