[go: up one dir, main page]

CN102946489B - Password recovery method and device for mobile phone - Google Patents

Password recovery method and device for mobile phone Download PDF

Info

Publication number
CN102946489B
CN102946489B CN201210484843.4A CN201210484843A CN102946489B CN 102946489 B CN102946489 B CN 102946489B CN 201210484843 A CN201210484843 A CN 201210484843A CN 102946489 B CN102946489 B CN 102946489B
Authority
CN
China
Prior art keywords
apk file
mobile phone
decryption
module
encrypted
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.)
Expired - Fee Related
Application number
CN201210484843.4A
Other languages
Chinese (zh)
Other versions
CN102946489A (en
Inventor
王映理
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201210484843.4A priority Critical patent/CN102946489B/en
Publication of CN102946489A publication Critical patent/CN102946489A/en
Application granted granted Critical
Publication of CN102946489B publication Critical patent/CN102946489B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开一种手机密码恢复方法和装置,其方法包括以下步骤:A.在手机上安装用于解密的APK文件,所述APK文件是一种动态加密的APK文件(S20);B.自动运行所述APK文件以广播的方式向手机的各个被加密的程序模块发送加密数据(S30);C.所述各个被加密的程序模块根据收到的加密数据通过预定解密算法进行解密(S40);D.判断所述各个被加密的程序模块得出的解密结果是否正确(S50);E.所述解密结果正确则清除各自模块的密码设置(S60),所述解密结果错误则提示机型不正确或为非法解密工具(S80)。本发明通过一种动态加密的APK来清除设置的密码而不会清除自身数据,不会导致用户个人数据的丢失。同时,这种APK文件只由手机制造商提供,加大了文件的安全性。

Figure 201210484843

The invention discloses a mobile phone password recovery method and device, the method comprising the following steps: A. installing an APK file for decryption on the mobile phone, the APK file is a dynamically encrypted APK file (S20); B. automatically Run the APK file to send encrypted data (S30) to each encrypted program module of the mobile phone in a broadcast manner; C. each encrypted program module is decrypted by a predetermined decryption algorithm according to the received encrypted data (S40) D. judge whether the deciphering result obtained by each encrypted program module is correct (S50); E. the deciphering result is correct and then clear the password setting (S60) of each module, and the deciphering result is wrong and then prompt the model Incorrect or illegal decryption tool (S80). The present invention clears the set password through a dynamically encrypted APK without clearing its own data and causing loss of user's personal data. At the same time, this APK file is only provided by the mobile phone manufacturer, which increases the security of the file.

Figure 201210484843

Description

A kind of cell phone password restoration methods and device
Technical field
The utility model relates to the communication technology, is specifically related to the method and apparatus that a kind of cell phone password recovers, and relates in particular to the password recovery method and apparatus of the mobile phone that Android operating system is installed.
Background technology
From function, mobile phone can simply be divided into conventional mobile phone and smart mobile phone.From current development trend, mobile phone moves towards the intelligence epoch just step by step.From strength to strength, its personal data that comprise also will be more and more abundanter for the function of smart mobile phone, and cellie is these personal data safeties of protection, and cell phone password is frequently set.Therefore, once user forgets the password oneself arranging, and while needing to continue to use mobile phone or some personal data, conventional means are exactly to remove the setting of whole system by updating system version, this,, by causing the loss of a large amount of personal data, causes very large trouble and loss to user.
Summary of the invention
Main purpose of the present invention, the method that refreshes cell phone system version for current use recovers that mobile phone uses function and the defect that causes a large amount of personal data losings has proposed a kind of cell phone password restoration methods and device, said method comprising the steps of:
A., APK file for deciphering, the APK file that described APK file is a kind of dynamic encryption are installed on mobile phone;
B. automatically the described APK file of operation sends enciphered data in the mode of broadcast to each encrypted program module of mobile phone;
C. described each encrypted program module is decrypted by predetermined decipherment algorithm according to the enciphered data of receiving;
D. described each the encrypted program module of judgement show that whether decrypted result is correct;
E. the decrypted result of described each encrypted program module is correctly removed the password setting of module separately, and the decrypted result mistake of described each encrypted program module points out type incorrect or be illegal decoding tool.
Described in above-mentioned cell phone password restoration methods, steps A comprises: the step that downloads and installs the APK file for deciphering from mobile-phone manufacturers client.
In above-mentioned cell phone password restoration methods, be also included in described step e and carry out the step of restarting mobile phone after the step of removing password setting separately.
A kind of cell phone password recovery device comprises:
Installation module, for installing the APK file for deciphering, the APK file that described APK file is a kind of dynamic encryption on mobile phone;
Operation module, sends enciphered data in the mode of broadcast to each encrypted program module of mobile phone for the automatic described APK file of operation;
Computing module, for being decrypted by predetermined decipherment algorithm according to the enciphered data of receiving in described each encrypted program module;
Judge module, for judging that described each encrypted program module show that whether decrypted result is correct;
Executive Module, for as described in each encrypted program module decrypted result remove the password setting of module separately when correct; As described in point out during each encrypted program module decrypted result mistake type incorrect or be illegal decoding tool.
Above-mentioned cell phone password recovery device also comprises download module, for download and install the APK file for deciphering from mobile-phone manufacturers client.
Above-mentioned cell phone password recovery device also comprises restarts module, for remove the password of module separately in execution, after arranging, restarts mobile phone.
The beneficial effect of a kind of cell phone password restoration methods of the present invention and device is, by a kind of APK file of dynamic encryption, is removed the password of setting and can not removed its data, can not cause the loss of users personal data.Meanwhile, this APK file is only provided by mobile-phone manufacturers, has strengthened the fail safe of file.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, a kind of cell phone password restoration methods of the present invention and device are described further, in accompanying drawing:
Fig. 1 is the system construction drawing of a kind of cell phone password restoration methods of the present invention and device;
Fig. 2 is the flow chart of a kind of cell phone password restoration methods of the present invention;
Fig. 3 is the schematic diagram of a kind of cell phone password recovery device of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.
Fig. 1 shows the system configuration of a kind of cell phone password restoration methods of the present invention and device, and system of the present invention comprises provides the mobile-phone manufacturers client 1 of the APK file of free download for deciphering, for connecting client 1 and mobile phone 3 and transmitting data wire 2, the mobile phone 3 of data.The cellphone subscriber who forgets Password, is connected mobile phone 3 respectively with mobile-phone manufacturers client 1 with the data-interface at data wire 2 two ends, download the free APK file for deciphering, and transfer on mobile phone 3 by data wire 2 from mobile-phone manufacturers client 1.
Fig. 2 shows the flow process of a kind of cell phone password restoration methods of the present invention.
In step S20, the cellphone subscriber who forgets Password downloads the free APK file for deciphering from mobile-phone manufacturers client 1, is transferred on the SD card of mobile phone 3 by data wire 2.The APK file that described APK file is a kind of dynamic encryption, is stored on SD card, by built-in APK erector, automatically carries out the installation of file.
In step S30, operation automatically after the installation of described APK file, in the mode of system broadcasts, outwards sending enciphered data is message, each the encrypted program module in the mobile phone 3 of the described system broadcasts of every registration can receive this broadcast.
In step S40, every encrypted program module that receives this broadcast starts to discharge the value in encipheror, described APK file receives after these numerical value according to the algorithm of reaching an agreement on encipheror and calculates, and the result of calculation obtaining is mated with decrypted result default in encrypted program module.For example, suppose that decipherment algorithm is f(x)=x*x/2, in encrypted program module, default decrypted result is 18, if the numerical value that described APK file receives is 6, the result of calculating by decipherment algorithm is 6*6/2=18, consistent with decrypted result default in encrypted program module, think the decryption instructions that correct deciphering APK file is sent out.
In step S50, according to the result of above-mentioned coupling, determine whether the decryption instructions that the correct APK file for deciphering sends.If the result of coupling is consistent, the known decryption instructions of being sent by the correct APK mobile phone for deciphering, discharges password after each encrypted module receives decryption instructions, and password is reset, and enters step S60; If the result of coupling is inconsistent, the decryption instructions of sending for wrong APK file, each encrypted module is not carried out any operation after receiving this decryption instructions, and cell phone system can point out type incorrect or illegal decoding tool simultaneously, enters step S80.
In step S70, restart after mobile phone 3, because password setting is removed, user can directly enter mobile phone without accessing to your password.
The password that described deciphering APK file has just been removed mobile phone 3 arranges data, and other data still can normally be used, and have reduced the risk of user data loss.
In another embodiment of the present invention, a kind of cell phone password restoration methods and device are also provided, as shown in Figure 3, comprise download module 10, installation module 20, operation module 30, computing module 40, judge module 50, Executive Module 60, restart module 70, between modules, can adopt the mode of software, hardware or software and hardware combining to realize.Wherein, download module 10, for downloading and installing the APK file for deciphering from mobile-phone manufacturers client; Installation module 20, for installing the APK file for deciphering, the APK file that described APK file is a kind of dynamic encryption on mobile phone; Operation module 30, sends enciphered data in the mode of broadcast to each encrypted program module of mobile phone for the automatic described APK file of operation; Computing module 40, for being decrypted by predetermined decipherment algorithm according to the enciphered data of receiving in described each encrypted program module; Judge module 50, for judging that described each encrypted program module show that whether decrypted result is correct; Executive Module 60, for as described in each encrypted program module decrypted result remove the password setting of module separately when correct; As described in point out during each encrypted program module decrypted result mistake type incorrect or be illegal decoding tool; Restart module 70, for remove the password of module separately in execution, after arranging, restart mobile phone.
These are only embodiments of the invention, not in order to limit the present invention, all any modifications of doing in the spirit and principles in the present invention, be equal to and replace or improvement etc., all should be included in protection scope of the present invention.

Claims (6)

1.一种手机密码恢复方法,其特征在于,包括以下步骤:1. A mobile phone password recovery method is characterized in that, comprising the following steps: A.在手机上安装用于解密的APK文件,所述APK文件是一种动态加密的APK文件;A. Install the APK file for decryption on the mobile phone, and the APK file is a dynamically encrypted APK file; B.自动运行所述APK文件以广播的方式向手机的各个被加密的程序模块发送加密数据;B. Automatically run the APK file to send encrypted data to each encrypted program module of the mobile phone in a broadcast manner; C.收到所述加密数据的各个被加密的程序模块释放加密程序中的值,所述APK文件接收到所述值后按照与所述加密程序协定好的算法进行计算,得到的计算结果与所述被加密的程序模块中预设的解密结果进行匹配;C. Each encrypted program module that receives the encrypted data releases the value in the encryption program. After the APK file receives the value, it calculates according to the algorithm agreed with the encryption program, and the calculation result obtained is the same as matching the preset decryption result in the encrypted program module; D.根据上述匹配的结果判断是否为正确的用于解密的APK文件发出的解密指令;D. Judging whether it is the correct decryption instruction sent by the APK file for decryption according to the above matching result; E.上述匹配结果一致,为正确的用于解密的APK文件发出的解密指令,则清除各自模块的密码设置;上述匹配结果不一致,则为不正确的用于解密的APK文件发出的解密指令,则提示机型不正确或为非法解密工具。E. The above matching results are consistent, and it is the decryption command issued by the correct APK file for decryption, then clear the password settings of the respective modules; if the above matching results are inconsistent, it is the decryption command issued by the incorrect APK file, It will prompt that the model is incorrect or it is an illegal decryption tool. 2.根据权利要求1所述手机密码恢复方法,其特征在于,所述步骤A包括:从手机制造商客户端处下载安装用于解密的APK文件的步骤。2. The mobile phone password recovery method according to claim 1, wherein said step A comprises: downloading and installing an APK file for decryption from a mobile phone manufacturer client. 3.根据权利要求1所述手机密码恢复方法,其特征在于,还包括在所述步骤E中执行清除各自的密码设置的步骤后重启手机的步骤。3. The mobile phone password recovery method according to claim 1, further comprising the step of restarting the mobile phone after performing the step of clearing respective password settings in the step E. 4.一种手机密码恢复装置,其特征在于,包括:4. A mobile phone password recovery device, characterized in that it comprises: 安装模块,用于在手机上安装用于解密的APK文件,所述APK文件是一种动态加密的APK文件;The installation module is used to install an APK file for decryption on the mobile phone, and the APK file is a dynamically encrypted APK file; 运行模块,用于自动运行所述APK文件以广播的方式向手机的各个被加密的程序模块发送加密数据;The running module is used to automatically run the APK file to send encrypted data to each encrypted program module of the mobile phone by broadcasting; 运算模块,用于收到加密数据的各个被加密的程序模块释放加密程序中的值,所述APK文件接收到所述值后按照与所述加密程序协定好的算法进行计算,得到的计算结果与所述被加密的程序模块中预设的解密结果进行匹配;The calculation module is used to release the value in the encryption program from each encrypted program module that receives the encrypted data. After the APK file receives the value, it calculates according to the algorithm agreed with the encryption program to obtain the calculation result Matching with the preset decryption result in the encrypted program module; 判断模块,用于根据上述匹配的结果判断是否为正确的用于解密的APK文件发出的解密指令;A judging module, configured to judge whether it is a correct decryption instruction sent by the APK file for decryption according to the result of the above-mentioned matching; 执行模块,上述匹配结果一致,为正确的用于解密的APK文件发出的解密指令,则清除各自模块的密码设置,上述匹配结果不一致,则为不正确的用于解密的APK文件发出的解密指令,则提示机型不正确或为非法解密工具。Execute the module, if the above matching results are consistent, it is the decryption command issued by the correct APK file for decryption, then clear the password settings of the respective modules, if the above matching results are inconsistent, then it is the decryption command issued by the incorrect APK file for decryption , it indicates that the model is incorrect or it is an illegal decryption tool. 5.根据权利要求4所述一种手机密码恢复装置,其特征在于,包括下载模块,用于从手机制造商客户端处下载安装用于解密的APK文件。5. A kind of mobile phone password recovery device according to claim 4, is characterized in that, comprises downloading module, is used for downloading and installing the APK file that is used for decryption from mobile phone manufacturer client place. 6.根据权利要求4所述一种手机密码恢复装置,其特征在于,还包括重启模块,用于在执行清除各自模块的密码设置后重启手机。6. A mobile phone password recovery device according to claim 4, further comprising a restart module for restarting the mobile phone after clearing the password settings of the respective modules.
CN201210484843.4A 2012-11-23 2012-11-23 Password recovery method and device for mobile phone Expired - Fee Related CN102946489B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210484843.4A CN102946489B (en) 2012-11-23 2012-11-23 Password recovery method and device for mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210484843.4A CN102946489B (en) 2012-11-23 2012-11-23 Password recovery method and device for mobile phone

Publications (2)

Publication Number Publication Date
CN102946489A CN102946489A (en) 2013-02-27
CN102946489B true CN102946489B (en) 2014-04-16

Family

ID=47729394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210484843.4A Expired - Fee Related CN102946489B (en) 2012-11-23 2012-11-23 Password recovery method and device for mobile phone

Country Status (1)

Country Link
CN (1) CN102946489B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461587A (en) * 2013-09-13 2015-03-25 卓望数码技术(深圳)有限公司 Method and device for installing application package in Android terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1752937A1 (en) * 2005-07-29 2007-02-14 Research In Motion Limited System and method for encrypted smart card PIN entry
CN102087605A (en) * 2011-01-28 2011-06-08 宇龙计算机通信科技(深圳)有限公司 Android-based platform application installation control method and system
CN102236757A (en) * 2011-06-30 2011-11-09 北京邮电大学 Software protection method and system applicable to Android system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7949355B2 (en) * 2007-09-04 2011-05-24 Research In Motion Limited System and method for processing attachments to messages sent to a mobile device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1752937A1 (en) * 2005-07-29 2007-02-14 Research In Motion Limited System and method for encrypted smart card PIN entry
CN102087605A (en) * 2011-01-28 2011-06-08 宇龙计算机通信科技(深圳)有限公司 Android-based platform application installation control method and system
CN102236757A (en) * 2011-06-30 2011-11-09 北京邮电大学 Software protection method and system applicable to Android system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Android平台的软件保护技术研究;杨勇义等;《中国科技论文在线》;20120731;全文 *
杨勇义等.基于Android平台的软件保护技术研究.《中国科技论文在线》.2012,全文.

Also Published As

Publication number Publication date
CN102946489A (en) 2013-02-27

Similar Documents

Publication Publication Date Title
EP2549678B1 (en) Method and apparatus for protecting software of mobile terminal
WO2018045958A1 (en) Method and system for upgrading wireless fidelity (wi-fi) device
TWI518595B (en) Method and system of software update and mobile device
CN102646043B (en) Mobile terminal software upgrading method, upgrading device and mobile terminal
WO2013182155A1 (en) Firmware version upgrade method and system
CN103019755B (en) The wireless program method for down loading of multi-CPU in embedded system
CN104484592A (en) Method and system for starting factory mode of mobile equipment
CN104298915A (en) Installation package tampering preventing method
US20170068585A1 (en) Method and Apparatus for Recovering System Software of Intelligent Terminal
CN112788579A (en) Method and device for quickly pairing dual-mode Bluetooth equipment
CN102033771A (en) Method and device for applying patch program in Java Card
WO2016173174A1 (en) Network locking data upgrading method and device
CN102946489B (en) Password recovery method and device for mobile phone
CN113572861B (en) Configuration file management method, device, equipment and storage medium
CN111405550A (en) WhatsApp key file extraction method and device
CN101739530B (en) Encryption method of advanced reduced instruction-set computer (RISC) machine (ARM) system in starting process
CN105813006B (en) A kind of information upgrade method, terminal device, network management device and system
CN107491669B (en) Super user permission obtaining method and device
CN106933637A (en) The restorative procedure and device of a kind of system partitioning
CN103634398A (en) MOST network-based software upgrading method
CN107770210A (en) Licence plate side's control method, set top box and family's open platform
WO2015188639A1 (en) Authentication method, network side device and terminal
CN106656581A (en) Router configuration method and device
CN106843922A (en) A program update method and device
US10484861B2 (en) Electronic device comprising a secure module supporting a mode for the local management of the configuration of a subscriber profile

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140416

CF01 Termination of patent right due to non-payment of annual fee