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.