CN106534083B - Brush machine Tool validation method and device - Google Patents
Brush machine Tool validation method and device Download PDFInfo
- Publication number
- CN106534083B CN106534083B CN201610930638.4A CN201610930638A CN106534083B CN 106534083 B CN106534083 B CN 106534083B CN 201610930638 A CN201610930638 A CN 201610930638A CN 106534083 B CN106534083 B CN 106534083B
- Authority
- CN
- China
- Prior art keywords
- password
- terminal device
- server
- correct
- determined
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域technical field
本公开涉及计算机技术,尤其涉及一种刷机工具验证方法及装置。The present disclosure relates to computer technology, and in particular, to a method and device for verifying a flashing tool.
背景技术Background technique
随着计算机技术的发展,终端设备的使用越来越广泛。用户在使用终端设备的过程中,随着使用时间的增加,终端设备的性能可能会下降,此时,可以通过刷机来恢复或者提升终端设备的性能。With the development of computer technology, the use of terminal equipment is becoming more and more extensive. In the process of using the terminal device, the performance of the terminal device may be degraded as the usage time increases. In this case, the performance of the terminal device can be restored or improved by flashing the device.
相关技术中,用户将刷机工具存储到终端设备上后,直接运行刷机工具进行刷机操作。In the related art, after the user stores the flashing tool on the terminal device, the user directly runs the flashing tool to perform the flashing operation.
发明内容SUMMARY OF THE INVENTION
为克服相关技术中存在的问题,本公开提供一种刷机工具验证方法及装置。In order to overcome the problems existing in the related art, the present disclosure provides a method and device for verifying a flashing tool.
根据本公开实施例的第一方面,提供一种刷机工具验证方法,包括:According to a first aspect of the embodiments of the present disclosure, a method for verifying a flashing tool is provided, including:
在获取到刷机工具启动触发指令时,根据所述刷机工具及检验算法生成校验值;When the flashing tool startup trigger instruction is obtained, a verification value is generated according to the flashing tool and the verification algorithm;
向服务器发送所述校验值,以使所述服务器根据所述校验值及预先存储的标准校验值判断所述刷机工具是否被非法修改,并在确定所述刷机工具没有被非法修改时,向终端设备发送启动指示指令;Send the check value to the server, so that the server judges whether the flashing tool is illegally modified according to the check value and the pre-stored standard check value, and when it is determined that the flashing tool has not been illegally modified , send a start instruction instruction to the terminal device;
若接收到所述服务器发送的所述启动指示指令,则启动所述刷机工具。If the startup instruction instruction sent by the server is received, the flashing tool is started.
结合第一方面,在第一方面的第一种可能的实现方式中,所述方法还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the method further includes:
获取用户输入的账号和密码;Obtain the account and password entered by the user;
向所述服务器发送所述账号和所述密码,以使所述服务器根据所述账号、所述密码及预先存储的密码校验信息判断所述密码是否正确,并在确定所述密码正确时,向所述终端设备发送参数配置信息;Send the account and the password to the server, so that the server judges whether the password is correct according to the account, the password and the pre-stored password verification information, and when determining that the password is correct, sending parameter configuration information to the terminal device;
若接收到所述服务器发送的所述参数配置信息,则根据所述参数配置信息运行所述刷机工具。If the parameter configuration information sent by the server is received, the flashing tool is run according to the parameter configuration information.
结合第一方面的第一种可能的实现方式,在第一方面的在第二种可能的实现方式中,所述密码包括:第一密码和第二密码;所述第一密码为用户注册所述刷机工具时设置的密码;In combination with the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the password includes: a first password and a second password; The password set when the flashing tool is described;
所述方法还包括:The method also includes:
接收所述服务器以与所述终端设备预先约定的频率发送的所述第二密码;receiving the second password sent by the server at a frequency pre-agreed with the terminal device;
相应地,所述获取用户输入的账号和密码,包括:Correspondingly, obtaining the account number and password input by the user includes:
获取所述用户输入的账号、所述第一密码和所述第二密码;Obtain the account number, the first password and the second password entered by the user;
相应地,所述向所述服务器发送所述账号和所述密码包括:Correspondingly, the sending the account and the password to the server includes:
向所述服务器发送所述账号、所述第一密码、所述第二密码及发送所述第二密码的时刻。Sending the account number, the first password, the second password and the time of sending the second password to the server.
结合第一方面的第一种可能的实现方式,在第一方面的在第三种可能的实现方式中,所述接收用户输入的账号和密码之后,所述方法还包括:With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, after receiving the account number and password input by the user, the method further includes:
根据与所述服务器预先约定的密钥对所述密码进行加密,形成加密后的密码;Encrypt the password according to the key pre-agreed with the server to form an encrypted password;
相应地,所述向所述服务器发送所述账号和所述密码包括:Correspondingly, the sending the account and the password to the server includes:
向所述服务器发送所述账号和所述加密后的密码。Send the account number and the encrypted password to the server.
结合第一方面及第一方面的第一种可能的实现方式至第一方面的第三种可能的实现方式中的任一种可能的实现方式,在第一方面的在第四种可能的实现方式中,所述校验算法为哈希算法,所述校验值为SHA1值或MD5值。Combining the first aspect and the first possible implementation of the first aspect to any one of the possible implementations of the third possible implementation of the first aspect, the fourth possible implementation of the first aspect In the method, the check algorithm is a hash algorithm, and the check value is a SHA1 value or an MD5 value.
根据本公开实施例的第二方面,提供一种刷机工具验证方法,包括:According to a second aspect of the embodiments of the present disclosure, a method for verifying a flashing tool is provided, including:
接收终端设备发送的校验值;其中,所述校验值为所述终端设备根据刷机工具及检验算法生成的;Receive the check value sent by the terminal device; wherein, the check value is generated by the terminal device according to the flashing tool and the check algorithm;
根据所述校验值及预先存储的标准校验值判断所述刷机工具是否被非法修改;Determine whether the flashing tool is illegally modified according to the verification value and the pre-stored standard verification value;
若确定所述刷机工具没有被非法修改,则向所述终端设备发送启动指示指令,以使所述终端设备启动所述刷机工具。If it is determined that the flashing tool has not been illegally modified, a start instruction instruction is sent to the terminal device, so that the terminal device starts the flashing tool.
结合第二方面,在第二方面的第一种可能的实现方式中,所述方法还包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes:
接收所述终端设备发送的账号和密码;其中,所述账号和密码为所述终端设备接收用户输入的;Receive the account number and password sent by the terminal device; wherein, the account number and password are input by the terminal device after receiving the user;
根据所述账号、所述密码及预先存储的密码校验信息判断所述密码是否正确;Determine whether the password is correct according to the account number, the password and the pre-stored password verification information;
若确定所述密码正确,则向所述终端设备发送参数配置信息。If it is determined that the password is correct, parameter configuration information is sent to the terminal device.
结合第二方面的第一种可能的实现方式,在第二方面的在第二种可能的实现方式中,所述密码包括:第一密码和第二密码;所述第一密码为用户注册所述刷机工具时设置的密码;In combination with the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the password includes: a first password and a second password; The password set when the flashing tool is described;
所述方法还包括:The method also includes:
向所述终端设备以与所述终端设备预先约定的频率发送所述第二密码;sending the second password to the terminal device at a frequency pre-agreed with the terminal device;
相应地,所述接收终端设备发送的账号和密码,包括:Correspondingly, the account and password sent by the receiving terminal device include:
接收所述终端设备发送的所述账号、所述第一密码、所述第二密码及发送所述第二密码的时刻;receiving the account number, the first password, the second password and the moment of sending the second password sent by the terminal device;
相应地,所述根据所述账号、所述密码及预先存储的密码校验信息判断所述密码是否正确,包括:Correspondingly, determining whether the password is correct according to the account number, the password and the pre-stored password verification information includes:
根据所述账号与预先存储的与所述账号对应的正确密码判断所述第一密码是否正确;Determine whether the first password is correct according to the account number and the pre-stored correct password corresponding to the account number;
若确定所述第一密码正确,则根据向所述终端设备发送所述第二密码的时刻及所述终端设备发送所述第二密码的时刻确定所述第二密码是否正确;If it is determined that the first password is correct, determining whether the second password is correct according to the moment when the second password is sent to the terminal device and the moment when the terminal device sends the second password;
若确定所述第二密码正确,则确定所述密码正确;If it is determined that the second password is correct, then determine that the password is correct;
若确定所述第一密码错误,则确定所述密码错误。If it is determined that the first password is incorrect, it is determined that the password is incorrect.
结合第二方面的第一种可能的实现方式,在第二方面的在第三种可能的实现方式中,所述接收终端设备发送的账号和密码,包括:With reference to the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the receiving account number and password sent by the terminal device include:
接收所述终端设备发送的所述账号和加密后的密码;其中,所述加密后的密码为所述终端设备根据与服务器预先约定的秘钥对所述密码进行加密形成的;receiving the account number and the encrypted password sent by the terminal device; wherein, the encrypted password is formed by the terminal device encrypting the password according to the secret key pre-agreed with the server;
相应地,所述根据所述账号、所述密码及预先存储的密码校验信息判断所述密码是否正确,包括:Correspondingly, determining whether the password is correct according to the account number, the password and the pre-stored password verification information includes:
根据所述密钥对所述加密后的密码进行解密,形成解密后的密码;Decrypt the encrypted password according to the key to form a decrypted password;
若确定所述解密后的密码与预先存储的与所述账号对应的正确密码一致,则确定所述密码正确;If it is determined that the decrypted password is consistent with the pre-stored correct password corresponding to the account, it is determined that the password is correct;
若确定所述解密后的密码与预先存储的与所述账号对应的正确密码不一致,则确定所述密码错误。If it is determined that the decrypted password is inconsistent with the pre-stored correct password corresponding to the account, it is determined that the password is incorrect.
结合第二方面及第二方面的第一种可能的实现方式至第二方面的第三种可能的实现方式中的任一种可能的实现方式,在第二方面的在第四种可能的实现方式中,所述校验算法为哈希算法,所述校验值为SHA1值或MD5值。Combining the second aspect and the first possible implementation manner of the second aspect to the third possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect In the method, the check algorithm is a hash algorithm, and the check value is a SHA1 value or an MD5 value.
结合第二方面,在第二方面的第五种可能的实现方式中,所述根据所述校验值及预先存储的标准校验值判断所述刷机工具是否被非法修改包括:With reference to the second aspect, in a fifth possible implementation manner of the second aspect, the determining whether the flashing tool is illegally modified according to the verification value and the pre-stored standard verification value includes:
若确定所述校验值与所述标准校验值相同,则确定所述刷机工具没有被非法修改;If it is determined that the verification value is the same as the standard verification value, it is determined that the flashing tool has not been illegally modified;
若确定所述校验值与所述标准校验值不相同,则确定所述刷机工具被非法修改。If it is determined that the verification value is different from the standard verification value, it is determined that the flashing tool is illegally modified.
根据本公开实施例的第三方面,提供一种终端设备,包括:According to a third aspect of the embodiments of the present disclosure, a terminal device is provided, including:
生成模块,被配置为在获取到刷机工具启动触发指令时,根据所述刷机工具及检验算法生成校验值;The generating module is configured to generate a verification value according to the flashing tool and the verification algorithm when the flashing tool start trigger instruction is obtained;
第一发送模块,被配置为向服务器发送所述校验值,以使所述服务器根据所述校验值及预先存储的标准校验值判断所述刷机工具是否被非法修改,并在确定所述刷机工具没有被非法修改时,向终端设备发送启动指示指令;The first sending module is configured to send the verification value to the server, so that the server judges whether the flashing tool is illegally modified according to the verification value and the pre-stored standard verification value, and determines whether the flashing tool is illegally modified. When the flashing tool has not been illegally modified, send a startup instruction to the terminal device;
启动模块,被配置为当接收到所述服务器发送的所述启动指示指令时,启动所述刷机工具。The startup module is configured to start the flashing tool when receiving the startup instruction instruction sent by the server.
结合第三方面,在第三方面的第一种可能的实现方式中,所述终端设备还包括:With reference to the third aspect, in a first possible implementation manner of the third aspect, the terminal device further includes:
获取模块,被配置为获取用户输入的账号和密码;The acquisition module is configured to acquire the account and password entered by the user;
第二发送模块,被配置为向所述服务器发送所述账号和所述密码,以使所述服务器根据所述账号、所述密码及预先存储的密码校验信息判断所述密码是否正确,并在确定所述密码正确时,向所述终端设备发送参数配置信息;The second sending module is configured to send the account and the password to the server, so that the server judges whether the password is correct according to the account, the password and the pre-stored password verification information, and When it is determined that the password is correct, send parameter configuration information to the terminal device;
运行模块,被配置为当接收到所述服务器发送的所述参数配置信息时,根据所述参数配置信息运行所述刷机工具。The running module is configured to run the flashing tool according to the parameter configuration information when receiving the parameter configuration information sent by the server.
结合第三方面的第一种可能的实现方式,在第三方面的在第二种可能的实现方式中,所述密码包括:第一密码和第二密码;所述第一密码为用户注册所述刷机工具时设置的密码;In combination with the first possible implementation manner of the third aspect, in the second possible implementation manner of the third aspect, the password includes: a first password and a second password; The password set when the flashing tool is described;
所述终端设备还包括:The terminal equipment also includes:
接收模块,被配置为接收所述服务器以与所述终端设备预先约定的频率发送的所述第二密码;a receiving module, configured to receive the second password sent by the server at a frequency pre-agreed with the terminal device;
相应地,所述获取模块包括:Correspondingly, the acquisition module includes:
获取子模块,被配置为获取所述用户输入的账号、所述第一密码和所述第二密码;an obtaining submodule, configured to obtain the account number, the first password and the second password input by the user;
相应地,所述第二发送模块包括:Correspondingly, the second sending module includes:
第一发送子模块,被配置为向所述服务器发送所述账号、所述第一密码、所述第二密码及发送所述第二密码的时刻。The first sending submodule is configured to send the account number, the first password, the second password and the time of sending the second password to the server.
结合第三方面的第一种可能的实现方式,在第三方面的在第三种可能的实现方式中,所述终端设备还包括:With reference to the first possible implementation manner of the third aspect, in the third possible implementation manner of the third aspect, the terminal device further includes:
加密模块,被配置为根据与所述服务器预先约定的密钥对所述密码进行加密,形成加密后的密码;an encryption module, configured to encrypt the password according to a key pre-agreed with the server to form an encrypted password;
相应地,所述第二发送模块包括:Correspondingly, the second sending module includes:
第二发送子模块,被配置为向所述服务器发送所述账号和所述加密后的密码。The second sending submodule is configured to send the account and the encrypted password to the server.
结合第三方面及第三方面的第一种可能的实现方式至第三方面的第三种可能的实现方式中的任一种可能的实现方式,在第三方面的在第四种可能的实现方式中,所述校验算法为哈希算法,所述校验值为SHA1值或MD5值。Combining the third aspect and the first possible implementation of the third aspect to any one of the possible implementations of the third possible implementation of the third aspect, the fourth possible implementation of the third aspect In the method, the check algorithm is a hash algorithm, and the check value is a SHA1 value or an MD5 value.
根据本公开实施例的第四方面,提供一种服务器,包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided a server, including:
第一接收模块,被配置为接收终端设备发送的校验值;其中,所述校验值为所述终端设备根据刷机工具及检验算法生成的;a first receiving module, configured to receive a check value sent by a terminal device; wherein, the check value is generated by the terminal device according to a flashing tool and a check algorithm;
第一判断模块,被配置为根据所述校验值及预先存储的标准校验值判断所述刷机工具是否被非法修改;a first judgment module, configured to judge whether the flashing tool is illegally modified according to the check value and the pre-stored standard check value;
第一发送模块,被配置为当确定所述刷机工具没有被非法修改时,向所述终端设备发送启动指示指令,以使所述终端设备启动所述刷机工具。The first sending module is configured to send an activation instruction instruction to the terminal device when it is determined that the flashing tool has not been illegally modified, so that the terminal device can activate the flashing tool.
结合第四方面,在第四方面的第一种可能的实现方式中,所述服务器还包括:With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the server further includes:
第二接收模块,被配置为接收所述终端设备发送的账号和密码;其中,所述账号和密码为所述终端设备接收用户输入的;The second receiving module is configured to receive the account number and password sent by the terminal device; wherein, the account number and password are received by the terminal device and input by the user;
第二判断模块,被配置为根据所述账号、所述密码及预先存储的密码校验信息判断所述密码是否正确;a second judging module, configured to judge whether the password is correct according to the account, the password and pre-stored password verification information;
第二发送模块,被配置为当确定所述密码正确时,向所述终端设备发送参数配置信息。The second sending module is configured to send parameter configuration information to the terminal device when it is determined that the password is correct.
结合第四方面的第一种可能的实现方式,在第四方面的在第二种可能的实现方式中,所述密码包括:第一密码和第二密码;所述第一密码为用户注册所述刷机工具时设置的密码;With reference to the first possible implementation manner of the fourth aspect, in the second possible implementation manner of the fourth aspect, the password includes: a first password and a second password; The password set when the flashing tool is described;
所述服务器还包括:The server also includes:
第三发送模块,被配置为向所述终端设备以与所述终端设备预先约定的频率发送所述第二密码;a third sending module, configured to send the second password to the terminal device at a frequency pre-agreed with the terminal device;
相应地,所述第二接收模块,包括:Correspondingly, the second receiving module includes:
第一接收子模块,被配置为接收所述终端设备发送的所述账号、所述第一密码、所述第二密码及发送所述第二密码的时刻;a first receiving sub-module, configured to receive the account number, the first password, the second password and the moment of sending the second password sent by the terminal device;
相应地,所述第二判断模块包括:Correspondingly, the second judgment module includes:
第一判断子模块,被配置为根据所述账号与预先存储的与所述账号对应的正确密码判断所述第一密码是否正确;当确定所述第一密码正确时,根据向所述终端设备发送所述第二密码的时刻及所述终端设备发送所述第二密码的时刻确定所述第二密码是否正确;当确定所述第二密码正确时,确定所述密码正确;当确定所述第一密码错误时,确定所述密码错误。The first judging submodule is configured to judge whether the first password is correct according to the account and the pre-stored correct password corresponding to the account; when it is determined that the first password is correct, according to the The moment when the second password is sent and the moment when the terminal device sends the second password to determine whether the second password is correct; when it is determined that the second password is correct, it is determined that the password is correct; when it is determined that the second password is correct When the first password is wrong, it is determined that the password is wrong.
结合第四方面的第一种可能的实现方式,在第四方面的在第三种可能的实现方式中,所述第二接收模块包括:With reference to the first possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the second receiving module includes:
第二接收子模块,被配置为接收所述终端设备发送的所述账号和加密后的密码;其中,所述加密后的密码为所述终端设备根据与服务器预先约定的秘钥对所述密码进行加密形成的;The second receiving sub-module is configured to receive the account number and the encrypted password sent by the terminal device; wherein, the encrypted password is the password paired by the terminal device according to the secret key pre-agreed with the server. encrypted;
相应地,所述第二判断模块包括:Correspondingly, the second judgment module includes:
解密子模块,被配置为根据所述密钥对所述加密后的密码进行解密,形成解密后的密码;a decryption submodule, configured to decrypt the encrypted password according to the key to form a decrypted password;
第二判断子模块,被配置为当确定所述解密后的密码与预先存储的与所述账号对应的正确密码一致时,确定所述密码正确;当确定所述解密后的密码与预先存储的与所述账号对应的正确密码不一致时,确定所述密码错误。The second judging submodule is configured to determine that the password is correct when it is determined that the decrypted password is consistent with the pre-stored correct password corresponding to the account; When the correct password corresponding to the account is inconsistent, it is determined that the password is incorrect.
结合第四方面及第四方面的第一种可能的实现方式至第二方面的第三种可能的实现方式中的任一种可能的实现方式,在第四方面的在第四种可能的实现方式中,所述校验算法为哈希算法,所述校验值为SHA1值或MD5值。Combining the fourth aspect and the first possible implementation of the fourth aspect to the third possible implementation of the second aspect, the fourth possible implementation of the fourth aspect In the method, the check algorithm is a hash algorithm, and the check value is a SHA1 value or an MD5 value.
结合第四方面,在第四方面的第五种可能的实现方式中,所述第一判断模块包括:With reference to the fourth aspect, in a fifth possible implementation manner of the fourth aspect, the first judgment module includes:
第三判断子模块,被配置为当确定所述校验值与所述标准校验值相同时,确定所述刷机工具没有被非法修改;当确定所述校验值与所述标准校验值不相同时,确定所述刷机工具被非法修改。The third judging submodule is configured to, when it is determined that the verification value is the same as the standard verification value, determine that the flashing tool has not been illegally modified; when it is determined that the verification value is the same as the standard verification value When they are not the same, it is determined that the flashing tool is illegally modified.
根据本公开实施例的第五方面,提供一种终端设备,包括:According to a fifth aspect of the embodiments of the present disclosure, a terminal device is provided, including:
处理器;processor;
用于存储所述处理器可执行指令的存储器;a memory for storing the processor-executable instructions;
其中,所述处理器被配置为:wherein the processor is configured to:
在获取到刷机工具启动触发指令时,根据所述刷机工具及检验算法生成校验值;When the flashing tool startup trigger instruction is obtained, a verification value is generated according to the flashing tool and the verification algorithm;
向服务器发送所述校验值,以使所述服务器根据所述校验值及预先存储的标准校验值判断所述刷机工具是否被非法修改,并在确定所述刷机工具没有被非法修改时,向终端设备发送启动指示指令;Send the check value to the server, so that the server judges whether the flashing tool is illegally modified according to the check value and the pre-stored standard check value, and when it is determined that the flashing tool has not been illegally modified , send a start instruction instruction to the terminal device;
若接收到所述服务器发送的所述启动指示指令,则启动所述刷机工具。If the startup instruction instruction sent by the server is received, the flashing tool is started.
根据本公开实施例的第六方面,提供一种服务器,包括:According to a sixth aspect of the embodiments of the present disclosure, there is provided a server, including:
处理器;processor;
用于存储所述处理器可执行指令的存储器;a memory for storing the processor-executable instructions;
其中,所述处理器被配置为:wherein the processor is configured to:
接收终端设备发送的校验值;其中,所述校验值为所述终端设备根据刷机工具及检验算法生成的;Receive the check value sent by the terminal device; wherein, the check value is generated by the terminal device according to the flashing tool and the check algorithm;
根据所述校验值及预先存储的标准校验值判断所述刷机工具是否被非法修改;Determine whether the flashing tool is illegally modified according to the verification value and the pre-stored standard verification value;
若确定所述刷机工具没有被非法修改,则向所述终端设备发送启动指示指令,以使所述终端设备启动所述刷机工具。If it is determined that the flashing tool has not been illegally modified, a start instruction instruction is sent to the terminal device, so that the terminal device starts the flashing tool.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
一个实施例中,通过在获取到刷机工具启动触发指令时,根据刷机工具及检验算法生成校验值,向服务器发送校验值,接收终端设备发送的校验值,根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改,若确定刷机工具没有被非法修改,则向终端设备发送启动指示指令,若接收到服务器发送的启动指示指令,则启动刷机工具,实现了终端设备在启动刷机工具之前,先向服务器发送根据刷机工具和校验算法生成的校验值,服务器在接收到该校验值后,进行校验,并在校验通过后向终端设备发送启动指示指令,终端设备只有在接收到该启动指示指令之后,才启动刷机工具,进行刷机操作,相较于相关技术中,直接运行刷机工具进行刷机操作的方式,本公开实施例可以在刷机工具进行刷机操作前进行校验,防止了被非法修改的刷机工具在终端设备上运行,从而,实现了进行刷机操作的刷机工具都是没有被非法修改的刷机工具,保护了用户的信息安全及提高了刷机成功率。In one embodiment, when the flashing tool startup trigger instruction is obtained, the verification value is generated according to the flashing tool and the verification algorithm, the verification value is sent to the server, and the verification value sent by the terminal device is received. If it is determined that the flashing tool has not been illegally modified, it will send a startup instruction to the terminal device. If it receives the startup instruction sent by the server, it will start the flashing tool, realizing the terminal device. Before starting the flashing tool, first send the verification value generated according to the flashing tool and the verification algorithm to the server. After receiving the verification value, the server will verify it, and send a startup instruction to the terminal device after the verification is passed. , the terminal device starts the flashing tool and performs the flashing operation only after receiving the start instruction instruction. Compared with the method of directly running the flashing tool to perform the flashing operation in the related art, the embodiment of the present disclosure can perform the flashing operation on the flashing tool. Before checking, it prevents the illegally modified flashing tools from running on the terminal device. Therefore, the flashing tools that realize the flashing operation are all flashing tools that have not been illegally modified, which protects the user's information security and improves the success of flashing. Rate.
另一个实施例中,通过获取用户输入的账号和密码,向服务器发送账号和密码,接收终端设备发送的账号和密码,根据账号、密码及预先存储的密码校验信息判断密码是否正确,若确定密码正确,则向终端设备发送参数配置信息,若接收到服务器发送的参数配置信息,则根据参数配置信息运行刷机工具,实现了可以根据用户输入的账号验证用户输入的密码,并在验证通过后,向终端设备发送刷机工具的参数配置信息,终端设备根据参数配置信息运行刷机工具,可以验证刷机账号的合法性,以及,使刷机工具根据参数配置信息运行,从而,进一步保护了用户的信息安全及提高了刷机成功率。In another embodiment, by obtaining the account number and password input by the user, sending the account number and password to the server, receiving the account number and password sent by the terminal device, and determining whether the password is correct according to the account number, password and pre-stored password verification information, if it is determined If the password is correct, the parameter configuration information will be sent to the terminal device. If the parameter configuration information sent by the server is received, the flashing tool will be run according to the parameter configuration information, so that the password entered by the user can be verified according to the account entered by the user. , send the parameter configuration information of the flashing tool to the terminal device, and the terminal device runs the flashing tool according to the parameter configuration information, which can verify the legitimacy of the flashing account, and make the flashing tool run according to the parameter configuration information, thereby further protecting the user's information security And improve the brushing success rate.
另一个实施例中,通过向终端设备以与终端设备预先约定的频率发送第二密码,接收服务器以与终端设备预先约定的频率发送的第二密码,获取用户输入的账号、第一密码和第二密码,向服务器发送账号、第一密码、第二密码及发送第二密码的时刻,接收终端设备发送的账号、第一密码、第二密码及发送第二密码的时刻,根据账号与预先存储的与账号对应的正确密码判断第一密码是否正确,若确定第一密码正确,则根据向终端设备发送第二密码的时刻及终端设备发送第二密码的时刻确定第二密码是否正确,若确定第二密码正确,则确定密码正确,若确定第一密码错误,则确定密码错误,若确定密码正确,则向终端设备发送参数配置信息,若接收到服务器发送的参数配置信息,则根据参数配置信息运行刷机工具,实现了在验证刷机账号的合法性时,采用了验证第一密码和第二密码的方式,从而,进一步保护了用户的信息安全及提高了刷机成功率。In another embodiment, by sending the second password to the terminal device at a frequency pre-agreed with the terminal device, and receiving the second password sent by the server at the frequency pre-agreed with the terminal device, the account number, the first password and the first password entered by the user are obtained. Two passwords, send the account number, first password, second password and the time of sending the second password to the server, receive the account number, first password, second password and the time of sending the second password sent by the terminal device, according to the account number and the pre-stored time The correct password corresponding to the account number is used to determine whether the first password is correct. If it is determined that the first password is correct, it is determined whether the second password is correct according to the moment when the second password is sent to the terminal device and the moment when the terminal device sends the second password. If the second password is correct, the password is determined to be correct. If the first password is determined to be incorrect, the password is determined to be incorrect. If the password is determined to be correct, the parameter configuration information is sent to the terminal device. The information operation flashing tool realizes the method of verifying the first password and the second password when verifying the legitimacy of the flashing account, thereby further protecting the user's information security and improving the flashing success rate.
另一个实施例中,通过在获取用户输入的账号和密码后,根据与服务器预先约定的密钥对密码进行加密,形成加密后的密码,向服务器发送账号和加密后的密码,接收终端设备发送的账号和加密后的密码,根据密钥对加密后的密码进行解密,形成解密后的密码,若确定解密后的密码与预先存储的与账号对应的正确密码一致,则确定密码正确,若确定解密后的密码与预先存储的与账号对应的正确密码不一致,则确定密码错误,若确定密码正确,则向终端设备发送参数配置信息,若接收到服务器发送的参数配置信息,则根据参数配置信息运行刷机工具,实现了在验证刷机账号的合法性时,采用了对密码以秘钥进行加密的形式进行验证,从而,进一步保护了用户的信息安全及提高了刷机成功率。In another embodiment, after obtaining the account number and password input by the user, encrypting the password according to the key pre-agreed with the server to form an encrypted password, sending the account number and the encrypted password to the server, and receiving the transmission from the terminal device. The encrypted account and encrypted password are decrypted according to the key to form the decrypted password. If it is determined that the decrypted password is consistent with the pre-stored correct password corresponding to the account, it is determined that the password is correct. If the decrypted password is inconsistent with the pre-stored correct password corresponding to the account, it is determined that the password is incorrect. If the password is determined to be correct, the parameter configuration information is sent to the terminal device. If the parameter configuration information sent by the server is received, the parameter configuration information Running the flashing tool realizes that when verifying the legitimacy of the flashing account, the password is verified by encrypting the secret key, thereby further protecting the user's information security and improving the flashing success rate.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that 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是根据一示例性实施例示出的一种刷机工具验证方法的流程图;1 is a flowchart of a method for verifying a flashing tool according to an exemplary embodiment;
图2是根据另一示例性实施例示出的一种刷机工具验证方法的流程图;2 is a flowchart of a method for verifying a flashing tool according to another exemplary embodiment;
图3是根据又一示例性实施例示出的一种刷机工具验证方法的流程图;3 is a flowchart of a method for verifying a flashing tool according to another exemplary embodiment;
图4是根据再一示例性实施例示出的一种刷机工具验证方法的流程图;4 is a flowchart of a method for verifying a flashing tool according to yet another exemplary embodiment;
图5是根据一示例性实施例示出的一种终端设备的框图;5 is a block diagram of a terminal device according to an exemplary embodiment;
图6是根据另一示例性实施例示出的一种终端设备的框图;6 is a block diagram of a terminal device according to another exemplary embodiment;
图7是根据又一示例性实施例示出的一种终端设备的框图;FIG. 7 is a block diagram of a terminal device according to another exemplary embodiment;
图8是根据再一示例性实施例示出的一种终端设备的框图;8 is a block diagram of a terminal device according to yet another exemplary embodiment;
图9是根据另一示例性实施例示出的一种终端设备的框图;FIG. 9 is a block diagram of a terminal device according to another exemplary embodiment;
图10是根据一示例性实施例示出的一种服务器的框图;Fig. 10 is a block diagram of a server according to an exemplary embodiment;
图11是根据另一示例性实施例示出的一种服务器的框图;Fig. 11 is a block diagram of a server according to another exemplary embodiment;
图12是根据又一示例性实施例示出的一种服务器的框图;Fig. 12 is a block diagram of a server according to another exemplary embodiment;
图13是根据再一示例性实施例示出的一种服务器的框图;Figure 13 is a block diagram of a server according to yet another exemplary embodiment;
图14是根据另一示例性实施例示出的一种服务器的框图;Fig. 14 is a block diagram of a server according to another exemplary embodiment;
图15是根据一示例性实施例示出的一种刷机工具验证装置的框图;15 is a block diagram of a device for verifying a flashing tool according to an exemplary embodiment;
图16是根据一示例性实施例示出的一种刷机工具验证装置的框图。Fig. 16 is a block diagram of a device for verifying a flashing tool according to an exemplary embodiment.
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。The above-mentioned drawings have shown clear embodiments of the present disclosure, and will be described in more detail hereinafter. These drawings and written descriptions are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by referring to specific embodiments.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
首先对本公开实施例所涉及的名词进行解释:First, the terms involved in the embodiments of the present disclosure are explained:
刷机:对终端设备进行软件升级、操作系统更新、完善操作系统补丁或者还原初始操作系统等的操作。Flashing: Performing software upgrades, operating system updates, improving operating system patches, or restoring the initial operating system to terminal devices.
刷机工具:完成刷机功能的代码。Flashing tool: The code to complete the flashing function.
图1是根据一示例性实施例示出的一种刷机工具验证方法的流程图。如图1所示,本公开实施例提供的刷机工具验证方法包括以下步骤:Fig. 1 is a flow chart of a method for verifying a flashing tool according to an exemplary embodiment. As shown in FIG. 1 , the method for verifying a flashing tool provided by an embodiment of the present disclosure includes the following steps:
在步骤101中,在获取到刷机工具启动触发指令时,根据刷机工具及检验算法生成校验值。In step 101, when a triggering instruction for starting the flashing tool is obtained, a verification value is generated according to the flashing tool and the verification algorithm.
本步骤可以由终端设备执行。本公开实施例中的终端设备可以是手持设备、车载设备、可穿戴设备、计算设备,以及各种形式的用户设备(User Equipment;简称:UE),移动台(Mobile Station;简称:MS)及终端(terminal)等。This step can be performed by a terminal device. The terminal device in the embodiment of the present disclosure may be a handheld device, a vehicle-mounted device, a wearable device, a computing device, and various forms of user equipment (User Equipment, referred to as: UE), mobile station (Mobile Station, referred to as: MS) and Terminal (terminal), etc.
用户可以预先在终端设备中存储刷机工具。该刷机工具可以是从服务器中获取的,也可以是从其他控制装置中获取的。可选的,该刷机工具可以是一个软件包。The user can store the flashing tool in the terminal device in advance. The flashing tool may be obtained from a server, or may be obtained from other control devices. Optionally, the flashing tool may be a software package.
刷机工具启动触发指令可以是由用户触发的,也可以是由服务器触发的。若该启动触发指令为用户触发的,则可以是用户在有刷机的需求时,通过显示屏或者按键等输入设备输入的指令;若该启动指令为服务器触发的,则可以是服务器以预设的周期通过网络向终端设备发送的指令。该预设周期可以是服务器和终端设备约定的周期,例如,半年时间。The triggering instruction to start the flashing tool may be triggered by the user, or may be triggered by the server. If the startup trigger instruction is triggered by the user, it may be an instruction input by the user through an input device such as a display screen or a key when there is a need to flash the computer; if the startup instruction is triggered by the server, it may be the server preset A command sent periodically to the terminal device over the network. The preset period may be a period agreed upon by the server and the terminal device, for example, half a year.
终端设备在获取到启动触发指令时,可以根据刷机工具及校验算法生成校验值。可选的,可以是刷机工具中的安全控制组件根据刷机工具及校验算法生成校验值。When the terminal device obtains the startup trigger instruction, it can generate a check value according to the flashing tool and the check algorithm. Optionally, the security control component in the flashing tool may generate the verification value according to the flashing tool and the verification algorithm.
在一种可能的实现方式中,该校验算法可以是哈希算法。刷机工具可以是以二进制序列的形式存储在终端设备中,终端设备根据哈希算法将二进制序列映射为校验值。该校验值也可以为二进制序列。当采用安全哈希算法(Secure Hash Algorithm)时,该校验值可以是SHA1值;当采用信息-摘要算法5(Message-Digest Algorithm 5;简称:MD5),该校验值可以是MD5值。可选的,为了提高效率,可以是根据刷机工具中的可执行文件及校验算法生成校验值。In a possible implementation manner, the verification algorithm may be a hash algorithm. The flashing tool may be stored in the terminal device in the form of a binary sequence, and the terminal device maps the binary sequence to a check value according to a hash algorithm. The check value can also be a binary sequence. When a Secure Hash Algorithm (Secure Hash Algorithm) is used, the check value may be a SHA1 value; when a Message-Digest Algorithm 5 (Message-Digest Algorithm 5; MD5 for short) is used, the check value may be an MD5 value. Optionally, in order to improve efficiency, the verification value may be generated according to the executable file and the verification algorithm in the flashing tool.
当然,该校验算法可以是其他的校验算法,本公开实施例对此不做限制。Certainly, the verification algorithm may be other verification algorithms, which is not limited in this embodiment of the present disclosure.
在步骤102中,向服务器发送校验值。In step 102, the check value is sent to the server.
终端设备在生成校验值后,将该校验值发送给服务器,以使服务器根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改,并在确定刷机工具没有被非法修改时,向终端设备发送启动指示指令。After the terminal device generates the verification value, it sends the verification value to the server, so that the server can judge whether the flashing tool has been illegally modified according to the verification value and the pre-stored standard verification value, and after confirming that the flashing tool has not been illegally modified , send a start instruction instruction to the terminal device.
终端设备可以通过移动通信网络向服务器发送校验值。The terminal device can send the check value to the server through the mobile communication network.
在步骤103中,接收终端设备发送的校验值。In step 103, the check value sent by the terminal device is received.
其中,校验值为终端设备根据刷机工具及检验算法生成的。The check value is generated by the terminal device according to the flashing tool and the checking algorithm.
在步骤104中,根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改。In step 104, it is determined whether the flashing tool is illegally modified according to the verification value and the pre-stored standard verification value.
服务器中预先存储有标准校验值。该标准校验值可以是服务器根据标准的刷机工具及校验算法生成的。这里的标准的刷机工具是存储在服务器上的刷机工具。可选的,标准校验值可以是服务器根据标准的刷机工具及哈希算法生成的。Standard check values are pre-stored in the server. The standard check value may be generated by the server according to a standard flashing tool and a check algorithm. The standard flashing tool here is the flashing tool stored on the server. Optionally, the standard check value may be generated by the server according to a standard flashing tool and a hash algorithm.
若确定校验值与标准校验值相同,则确定刷机工具没有被非法修改;若确定校验值与标准校验值不相同,则确定刷机工具被非法修改。在校验值与标准校验值相同时,说明该刷机工具与标准刷机工具是完全相同的,没有被不具有修改权限的人修改。在校验值与标准校验值不相同时,说明该刷机工具与标准刷机工具不一样,该刷机工具已经被不具有修改权限的人进行了修改。If it is determined that the verification value is the same as the standard verification value, it is determined that the flashing tool has not been illegally modified; if it is determined that the verification value is different from the standard verification value, it is determined that the flashing tool has been illegally modified. When the verification value is the same as the standard verification value, it means that the flashing tool is exactly the same as the standard flashing tool, and has not been modified by a person who does not have modification rights. When the verification value is different from the standard verification value, it means that the flashing tool is different from the standard flashing tool, and the flashing tool has been modified by a person who does not have modification authority.
在步骤105中,若确定刷机工具没有被非法修改,则向终端设备发送启动指示指令。In step 105, if it is determined that the flashing tool has not been illegally modified, a startup instruction instruction is sent to the terminal device.
在服务器确定该刷机工具没有被非法修改时,向终端设备发送启动指示指令,以使终端设备启动刷机工具。When the server determines that the flashing tool has not been illegally modified, it sends a start instruction instruction to the terminal device, so that the terminal device starts the flashing tool.
在步骤106中,若接收到服务器发送的启动指示指令,则启动刷机工具。In step 106, if the startup instruction instruction sent by the server is received, the flashing tool is started.
如果终端设备在接收到服务器发送的启动指示指令后,启动该刷机工具,以进行刷机操作。If the terminal device starts the flashing tool after receiving the starting instruction instruction sent by the server, so as to perform the flashing operation.
需要说明的是,一种实现方式中,服务器若确定刷机工具被非法修改了,则向终端设备发送禁止启示指示指令。终端设备在接收到服务器发送的禁止启示指示指令时,禁止启动刷机工具。另一种实现方式中,在终端设备和服务器之间的网络断开或者网络性能较差时,校验值无法成功发送给服务器,则终端设备在预设的时长内没有接收到服务器反馈的指令时,禁止启动该刷机工具。It should be noted that, in an implementation manner, if the server determines that the flashing tool has been illegally modified, it sends a prohibiting enlightenment instruction instruction to the terminal device. The terminal device is prohibited from starting the flashing tool when receiving the instruction of prohibiting enlightenment sent by the server. In another implementation manner, when the network between the terminal device and the server is disconnected or the network performance is poor, and the check value cannot be successfully sent to the server, the terminal device does not receive the instruction fed back by the server within a preset period of time. , it is forbidden to start the flashing tool.
本公开实施例提供的刷机工具验证方法,通过在获取到刷机工具启动触发指令时,根据刷机工具及检验算法生成校验值,向服务器发送校验值,接收终端设备发送的校验值,根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改,若确定刷机工具没有被非法修改,则向终端设备发送启动指示指令,若接收到服务器发送的启动指示指令,则启动刷机工具,实现了终端设备在启动刷机工具之前,先向服务器发送根据刷机工具和校验算法生成的校验值,服务器在接收到该校验值后,进行校验,并在校验通过后向终端设备发送启动指示指令,终端设备只有在接收到该启动指示指令之后,才启动刷机工具,进行刷机操作,相较于相关技术中,直接运行刷机工具进行刷机操作的方式,本公开实施例可以在刷机工具进行刷机操作前进行校验,防止了被非法修改的刷机工具在终端设备上运行,从而,实现了进行刷机操作的刷机工具都是没有被非法修改的刷机工具,保护了用户的信息安全及提高了刷机成功率。The flashing tool verification method provided by the embodiment of the present disclosure generates a verification value according to the flashing tool and a verification algorithm when the flashing tool startup trigger instruction is obtained, sends the verification value to the server, receives the verification value sent by the terminal device, and generates a verification value according to the The verification value and the pre-stored standard verification value determine whether the flashing tool has been illegally modified. If it is determined that the flashing tool has not been illegally modified, a startup instruction instruction is sent to the terminal device. The tool realizes that before the terminal device starts the flashing tool, it first sends the verification value generated according to the flashing tool and the verification algorithm to the server. The terminal device sends a startup instruction instruction, and the terminal device starts the flashing tool and performs the flashing operation only after receiving the booting instruction. Compared with the method of directly running the flashing tool to perform the flashing operation in the related art, the embodiment of the present disclosure can Before the flashing tool performs the flashing operation, the verification is performed to prevent the illegally modified flashing tool from running on the terminal device, so that the flashing tool for the flashing operation is all the flashing tool that has not been illegally modified, which protects the user's information. Safety and improve the success rate of flashing.
图2是根据另一示例性实施例示出的一种刷机工具验证方法的流程图。本公开实施例提供的刷机工具验证方法,在图1所示实施例的基础上,对启动刷机工具之后的步骤作一详细说明。如图2所示,本公开实施例提供的刷机工具验证方法包括如下步骤:Fig. 2 is a flow chart of a method for verifying a flashing tool according to another exemplary embodiment. The flashing tool verification method provided by the embodiment of the present disclosure, on the basis of the embodiment shown in FIG. 1 , provides a detailed description of the steps after the flashing tool is started. As shown in FIG. 2 , the method for verifying a flashing tool provided by an embodiment of the present disclosure includes the following steps:
在步骤201中,在获取到刷机工具启动触发指令时,根据刷机工具及检验算法生成校验值。In step 201, when the flashing tool startup trigger instruction is obtained, a verification value is generated according to the flashing tool and the verification algorithm.
在步骤202中,向服务器发送校验值。In step 202, the check value is sent to the server.
步骤202的目的为使服务器根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改,并在确定刷机工具没有被非法修改时,向终端设备发送启动指示指令。The purpose of step 202 is to enable the server to judge whether the flashing tool has been illegally modified according to the check value and the pre-stored standard check value, and send a start instruction instruction to the terminal device when it is determined that the flashing tool has not been illegally modified.
在步骤203中,接收终端设备发送的校验值。In step 203, the check value sent by the terminal device is received.
其中,校验值为终端设备根据刷机工具及检验算法生成的。The check value is generated by the terminal device according to the flashing tool and the checking algorithm.
在步骤204中,根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改。In step 204, it is determined whether the flashing tool has been illegally modified according to the verification value and the pre-stored standard verification value.
在步骤205中,若确定刷机工具没有被非法修改,则向终端设备发送启动指示指令。In step 205, if it is determined that the flashing tool has not been illegally modified, a startup instruction instruction is sent to the terminal device.
步骤205的目的为使终端设备启动刷机工具。The purpose of step 205 is to enable the terminal device to start the flashing tool.
在步骤206中,若接收到服务器发送的启动指示指令,则启动刷机工具。In step 206, if a startup instruction command sent by the server is received, the flashing tool is started.
步骤201-步骤206与步骤101-步骤106的实现过程和技术原理类似,此处不再赘述。The implementation process and technical principle of steps 201 to 206 are similar to those of steps 101 to 106, and are not repeated here.
在步骤207中,获取用户输入的账号和密码。In step 207, the account and password input by the user are obtained.
在启动刷机工具后,为了进一步确保刷机的安全性及成功率,需要用户输入账号和密码。刷机工具可以在启动后显示用户界面,以提示用户输入账号和密码。After starting the flashing tool, in order to further ensure the security and success rate of flashing, the user is required to enter the account number and password. The flashing tool can display a user interface after startup to prompt the user to enter an account and password.
可选的,为了确保密码的安全性,在获取到用户输入的账号和密码后,可以采用加密算法进行对密码进行加密,形成密文。Optionally, in order to ensure the security of the password, after obtaining the account number and password input by the user, an encryption algorithm may be used to encrypt the password to form a ciphertext.
在步骤208中,向服务器发送账号和密码。In step 208, the account and password are sent to the server.
步骤208的目的为使服务器根据账号、密码及预先存储的密码校验信息判断密码是否正确,并在确定密码正确时,向终端设备发送参数配置信息。The purpose of step 208 is to enable the server to judge whether the password is correct according to the account number, password and pre-stored password verification information, and to send parameter configuration information to the terminal device when the password is determined to be correct.
在步骤209中,接收终端设备发送的账号和密码。In step 209, the account number and password sent by the terminal device are received.
其中,账号和密码为终端设备接收用户输入的。Wherein, the account number and the password are received by the terminal device and input by the user.
在步骤210中,根据账号、密码及预先存储的密码校验信息判断密码是否正确。In step 210, it is determined whether the password is correct according to the account number, password and pre-stored password verification information.
可选的,如果步骤207中终端设备发送的是密文密码,则在步骤208中,服务器需要先采用解密算法将密文密码解密。Optionally, if the ciphertext password is sent by the terminal device in step 207, then in step 208, the server needs to use a decryption algorithm to decrypt the ciphertext password first.
这里的密码校验信息可以是账号和正确密码之间的映射关系。服务器中存储有不同的账号和正确密码之间的映射关系。在接收到账号和密码之后,可以根据账号确定与该账号对应的正确密码。若接收到的密码与该正确密码相同,则判断密码正确;若接收到的密码与该正确密码不相同,则判断密码错误。The password verification information here may be a mapping relationship between an account and a correct password. A mapping relationship between different accounts and correct passwords is stored in the server. After the account number and the password are received, the correct password corresponding to the account number can be determined according to the account number. If the received password is the same as the correct password, it is judged that the password is correct; if the received password is not the same as the correct password, it is judged that the password is wrong.
这里的密码可以是用户注册刷机工具时设置的密码,也可以是服务器发送给终端设备的动态密码,还可以是注册刷机工具时设置的密码与动态密码的结合。如果密码是用户注册刷机工具时设置的密码,则正确密码是用户注册时服务器存储的用户设置的密码。如果密码是动态密码,则正确密码是服务器发送给终端设备的密码。如果密码是上述两种密码的结合,则正确密码也是上述两种正确密码的结合。本公开实施例对此不做限制。The password here can be the password set by the user when registering the flashing tool, the dynamic password sent by the server to the terminal device, or the combination of the password set when registering the flashing tool and the dynamic password. If the password is the password set when the user registers the flashing tool, the correct password is the password set by the user stored on the server when the user registers. If the password is a dynamic password, the correct password is the password sent by the server to the terminal device. If the password is a combination of the above two passwords, the correct password is also a combination of the above two correct passwords. This embodiment of the present disclosure does not limit this.
在步骤211中,若确定密码正确,则向终端设备发送参数配置信息。In step 211, if it is determined that the password is correct, parameter configuration information is sent to the terminal device.
参数配置信息可以是服务器根据用户输入的账号配置给该刷机工具的。该参数配置信息可以是当天刷机的次数、可下载版本的种类以及能否对关联的终端设备执行内部指令等权限信息。The parameter configuration information may be configured by the server to the flashing tool according to the account entered by the user. The parameter configuration information may be the number of times of flashing the machine on the day, the type of the downloadable version, and permission information such as whether the associated terminal device can execute internal commands.
在步骤212中,若接收到服务器发送的参数配置信息,则根据参数配置信息运行刷机工具。In step 212, if the parameter configuration information sent by the server is received, the flashing tool is run according to the parameter configuration information.
终端设备在接收到参数配置信息后,根据参数配置信息中的具体参数运行刷机工具。After receiving the parameter configuration information, the terminal device runs the flashing tool according to the specific parameters in the parameter configuration information.
本公开实施例提供的刷机工具验证方法,通过获取用户输入的账号和密码,向服务器发送账号和密码,接收终端设备发送的账号和密码,根据账号、密码及预先存储的密码校验信息判断密码是否正确,若确定密码正确,则向终端设备发送参数配置信息,若接收到服务器发送的参数配置信息,则根据参数配置信息运行刷机工具,实现了可以根据用户输入的账号验证用户输入的密码,并在验证通过后,向终端设备发送刷机工具的参数配置信息,终端设备根据参数配置信息运行刷机工具,可以验证刷机账号的合法性,以及,使刷机工具根据参数配置信息运行,从而,进一步保护了用户的信息安全及提高了刷机成功率。The flashing tool verification method provided by the embodiment of the present disclosure, by acquiring the account number and password input by the user, sending the account number and password to the server, receiving the account number and password sent by the terminal device, and judging the password according to the account number, password and pre-stored password verification information Is it correct? If it is determined that the password is correct, the parameter configuration information is sent to the terminal device. If the parameter configuration information sent by the server is received, the flashing tool is run according to the parameter configuration information, so that the password entered by the user can be verified according to the account entered by the user. And after the verification is passed, the parameter configuration information of the flashing tool is sent to the terminal device, and the terminal device runs the flashing tool according to the parameter configuration information, which can verify the legitimacy of the flashing account, and make the flashing tool run according to the parameter configuration information, thereby further protecting It improves the user's information security and improves the success rate of flashing.
图3是根据又一示例性实施例示出的一种刷机工具验证方法的流程图。本公开实施例在图2所示实施例的技术上,对密码的具体形式作一详细说明。在本公开实施例中,密码包括:第一密码和第二密码。第一密码为用户注册刷机工具时设置的密码。如图3所示,本公开实施例提供的刷机工具验证方法包括以下步骤:Fig. 3 is a flowchart of a method for verifying a flashing tool according to yet another exemplary embodiment. Based on the technology of the embodiment shown in FIG. 2 , the embodiment of the present disclosure provides a detailed description of the specific form of the password. In the embodiment of the present disclosure, the password includes: a first password and a second password. The first password is the password set when the user registers the flashing tool. As shown in FIG. 3 , the method for verifying a flashing tool provided by an embodiment of the present disclosure includes the following steps:
在步骤301中,在获取到刷机工具启动触发指令时,根据刷机工具及检验算法生成校验值。In step 301, when the triggering instruction for starting the flashing tool is obtained, a verification value is generated according to the flashing tool and the verification algorithm.
在步骤302中,向服务器发送校验值。In step 302, the check value is sent to the server.
步骤302的目的为使服务器根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改,并在确定刷机工具没有被非法修改时,向终端设备发送启动指示指令。The purpose of step 302 is to enable the server to judge whether the flashing tool has been illegally modified according to the check value and the pre-stored standard check value, and send a start instruction instruction to the terminal device when it is determined that the flashing tool has not been illegally modified.
在步骤303中,接收终端设备发送的校验值。In step 303, the check value sent by the terminal device is received.
其中,校验值为终端设备根据刷机工具及检验算法生成的。The check value is generated by the terminal device according to the flashing tool and the checking algorithm.
在步骤304中,根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改。In step 304, it is determined whether the flashing tool is illegally modified according to the verification value and the pre-stored standard verification value.
在步骤305中,若确定刷机工具没有被非法修改,则向终端设备发送启动指示指令。In step 305, if it is determined that the flashing tool has not been illegally modified, a start instruction instruction is sent to the terminal device.
步骤305的目的为使终端设备启动刷机工具。The purpose of step 305 is to enable the terminal device to start the flashing tool.
在步骤306中,若接收到服务器发送的启动指示指令,则启动刷机工具。In step 306, if a startup instruction command sent by the server is received, the flashing tool is started.
步骤301-步骤306与步骤101-步骤106的实现过程和技术原理类似,此处不再赘述。The implementation process and technical principle of steps 301 to 306 are similar to those of steps 101 to 106, and details are not repeated here.
在步骤307中,向终端设备以与终端设备预先约定的频率发送第二密码。In step 307, the second password is sent to the terminal device at a frequency pre-agreed with the terminal device.
本公开实施例中,在验证用户的账号时,采用了验证第一密码和第二密码的方式。第一密码是用于注册刷机工具时设置的密码。第二密码是服务器向终端设备发送的动态密码。In the embodiment of the present disclosure, the method of verifying the first password and the second password is adopted when verifying the user's account. The first password is the password set when registering the flashing tool. The second password is a dynamic password sent by the server to the terminal device.
服务器在向服务器发送了启动指示指令之后,可以在预设的时间段后,向终端设备以与终端设备预先约定的频率发送第二密码。例如,该约定的频率可以是1/300,即,服务器每间隔300秒,向终端设备发送第二密码。每次发送的第二密码是不同的序列,即,第二密码是动态变化的。After the server sends the start instruction instruction to the server, after a preset time period, the server may send the second password to the terminal device at a frequency pre-agreed with the terminal device. For example, the agreed frequency may be 1/300, that is, the server sends the second password to the terminal device every 300 seconds. The second password sent each time is a different sequence, that is, the second password is dynamically changed.
需要说明的是,在步骤307之前,服务器和终端设备需要进行时钟对准操作。It should be noted that, before step 307, the server and the terminal device need to perform a clock alignment operation.
在步骤308中,接收服务器以与终端设备预先约定的频率发送的第二密码。In step 308, the second password sent by the server at a frequency pre-agreed with the terminal device is received.
在步骤309中,获取用户输入的账号、第一密码和第二密码。In step 309, the account number, the first password and the second password input by the user are obtained.
在终端设备接收到第二密码后,用户可以获知该第二密码,并将账号、第一密码和获知到的第二密码输入终端设备。After the terminal device receives the second password, the user can learn the second password, and input the account number, the first password, and the learned second password into the terminal device.
在步骤310中,向服务器发送账号、第一密码、第二密码及发送第二密码的时刻。In step 310, the account number, the first password, the second password and the time of sending the second password are sent to the server.
终端设备可以以时间戳的形式向服务器发送终端设备发送第二密码的时刻。The terminal device may send the time when the terminal device sends the second password to the server in the form of a timestamp.
在步骤311中,接收终端设备发送的账号、第一密码、第二密码及发送第二密码的时刻。In step 311, the account number, the first password, the second password and the time of sending the second password sent by the terminal device are received.
在步骤312中,根据账号与预先存储的与账号对应的正确密码判断第一密码是否正确。In step 312, it is determined whether the first password is correct according to the account number and the pre-stored correct password corresponding to the account number.
与步骤210类似,服务器可以根据账号确定与该账号对应的正确密码。当第一密码与正确密码相同时,确定第一密码正确;当第一密码与正确密码不相同时,确定第一密码错误。Similar to step 210, the server may determine the correct password corresponding to the account according to the account. When the first password is the same as the correct password, it is determined that the first password is correct; when the first password is different from the correct password, it is determined that the first password is incorrect.
在步骤313中,若确定第一密码正确,则根据向终端设备发送第二密码的时刻及终端设备发送第二密码的时刻确定第二密码是否正确。In step 313, if it is determined that the first password is correct, it is determined whether the second password is correct according to the moment when the second password is sent to the terminal device and the moment when the terminal device sends the second password.
只有在第一密码正确的前提下,服务器才判断第二密码是否正确。Only on the premise that the first password is correct, the server determines whether the second password is correct.
在判断过程中,服务器可以根据其向终端设备发送第二密码的时刻及终端设备向其发送第二密码的时刻确定第二密码是否正确。若服务器向终端设备发送第二密码的时刻与终端设备向服务器发送第二密码的时刻的差值在预设的范围内,且第二密码为服务器向终端设备发送的密码,即第二密码属于服务器的动态密码库,则确定第二密码正确。In the judgment process, the server may determine whether the second password is correct according to the moment when it sends the second password to the terminal device and the moment when the terminal device sends the second password to it. If the difference between the moment when the server sends the second password to the terminal device and the moment when the terminal device sends the second password to the server is within the preset range, and the second password is the password sent by the server to the terminal device, that is, the second password belongs to The dynamic password library of the server determines that the second password is correct.
在步骤314中,若确定第二密码正确,则确定密码正确。In step 314, if it is determined that the second password is correct, it is determined that the password is correct.
在确定第二密码正确时,确定由第一密码和第二密码组成的密码正确。When it is determined that the second password is correct, it is determined that the password composed of the first password and the second password is correct.
在步骤315中,若确定第一密码错误,则确定密码错误。In step 315, if it is determined that the first password is incorrect, it is determined that the password is incorrect.
在确定第一密码错误时,就可以确定由第一密码和第二密码组成的密码错误。When it is determined that the first password is wrong, it can be determined that the password composed of the first password and the second password is wrong.
在步骤316中,若确定密码正确,则向终端设备发送参数配置信息。In step 316, if it is determined that the password is correct, parameter configuration information is sent to the terminal device.
在步骤317中,若接收到服务器发送的参数配置信息,则根据参数配置信息运行刷机工具。In step 317, if the parameter configuration information sent by the server is received, the flashing tool is run according to the parameter configuration information.
步骤316与步骤211的实现过程和技术原理类似,步骤317与步骤212的实现过程和技术原理类似,此处不再赘述。The implementation process and technical principle of step 316 are similar to those of step 211 , and the implementation process and technical principle of step 317 are similar to that of step 212 , which will not be repeated here.
本公开实施例提供的刷机工具验证方法,通过向终端设备以与终端设备预先约定的频率发送第二密码,接收服务器以与终端设备预先约定的频率发送的第二密码,获取用户输入的账号、第一密码和第二密码,向服务器发送账号、第一密码、第二密码及发送第二密码的时刻,接收终端设备发送的账号、第一密码、第二密码及发送第二密码的时刻,根据账号与预先存储的与账号对应的正确密码判断第一密码是否正确,若确定第一密码正确,则根据向终端设备发送第二密码的时刻及终端设备发送第二密码的时刻确定第二密码是否正确,若确定第二密码正确,则确定密码正确,若确定第一密码错误,则确定密码错误,若确定密码正确,则向终端设备发送参数配置信息,若接收到服务器发送的参数配置信息,则根据参数配置信息运行刷机工具,实现了在验证刷机账号的合法性时,采用了验证第一密码和第二密码的方式,从而,进一步保护了用户的信息安全及提高了刷机成功率。The flashing tool verification method provided by the embodiment of the present disclosure, by sending the second password to the terminal device at a frequency pre-agreed with the terminal device, and receiving the second password sent by the server at the frequency pre-agreed with the terminal device, to obtain the account number entered by the user, The first password and the second password, sending the account number, the first password, the second password and the moment of sending the second password to the server, receiving the account number, the first password, the second password and the moment of sending the second password sent by the terminal device, Determine whether the first password is correct according to the account and the pre-stored correct password corresponding to the account. If the first password is determined to be correct, the second password is determined according to the moment when the second password is sent to the terminal device and the moment when the terminal device sends the second password Whether it is correct, if it is determined that the second password is correct, the password is determined to be correct; if the first password is determined to be incorrect, the password is determined to be incorrect; if the password is determined to be correct, the parameter configuration information is sent to the terminal device; if the parameter configuration information sent by the server is received , the flashing tool is run according to the parameter configuration information, and the method of verifying the first password and the second password is adopted when verifying the legitimacy of the flashing account, thereby further protecting the user's information security and improving the flashing success rate.
图4是根据再一示例性实施例示出的一种刷机工具验证方法的流程图。本公开实施例在图2所示实施例的技术上,对密码的具体形式作一详细说明。如图4所示,本公开实施例提供的刷机工具验证方法包括如下步骤:Fig. 4 is a flow chart of a method for verifying a flashing tool according to yet another exemplary embodiment. Based on the technology of the embodiment shown in FIG. 2 , the embodiment of the present disclosure provides a detailed description of the specific form of the password. As shown in FIG. 4 , the method for verifying a flashing tool provided by an embodiment of the present disclosure includes the following steps:
在步骤401中,在获取到刷机工具启动触发指令时,根据刷机工具及检验算法生成校验值。In step 401, when the triggering instruction for starting the flashing tool is obtained, a verification value is generated according to the flashing tool and the verification algorithm.
在步骤402中,向服务器发送校验值。In step 402, the check value is sent to the server.
步骤402的目的为使服务器根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改,并在确定刷机工具没有被非法修改时,向终端设备发送启动指示指令。The purpose of step 402 is to enable the server to judge whether the flashing tool has been illegally modified according to the check value and the pre-stored standard check value, and send a start instruction instruction to the terminal device when it is determined that the flashing tool has not been illegally modified.
在步骤403中,接收终端设备发送的校验值。In step 403, the check value sent by the terminal device is received.
其中,校验值为终端设备根据刷机工具及检验算法生成的。The check value is generated by the terminal device according to the flashing tool and the checking algorithm.
在步骤404中,根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改。In step 404, it is determined whether the flashing tool is illegally modified according to the verification value and the pre-stored standard verification value.
在步骤405中,若确定刷机工具没有被非法修改,则向终端设备发送启动指示指令。In step 405, if it is determined that the flashing tool has not been illegally modified, a start instruction instruction is sent to the terminal device.
步骤405的目的为使终端设备启动刷机工具。The purpose of step 405 is to enable the terminal device to start the flashing tool.
在步骤406中,若接收到服务器发送的启动指示指令,则启动刷机工具。In step 406, if a startup instruction instruction sent by the server is received, the flashing tool is started.
步骤401-步骤406与步骤101-步骤106的实现过程和技术原理类似,此处不再赘述。The implementation process and technical principle of steps 401 to 406 are similar to those of steps 101 to 106, and details are not repeated here.
在步骤407中,获取用户输入的账号和密码。In step 407, the account number and password input by the user are obtained.
在步骤408中,根据与服务器预先约定的密钥对密码进行加密,形成加密后的密码。In step 408, the password is encrypted according to the key pre-agreed with the server to form an encrypted password.
终端设备在获取到账号和密码后,可以根据预先约定的秘钥对密码进行加密。After obtaining the account number and password, the terminal device can encrypt the password according to the pre-agreed secret key.
在步骤409中,向服务器发送账号和加密后的密码。In step 409, the account number and the encrypted password are sent to the server.
在步骤410中,接收终端设备发送的账号和加密后的密码。In step 410, the account number and encrypted password sent by the terminal device are received.
其中,加密后的密码为终端设备根据与服务器预先约定的秘钥对密码进行加密形成的。The encrypted password is formed by the terminal device encrypting the password according to the secret key pre-agreed with the server.
在步骤411中,根据密钥对加密后的密码进行解密,形成解密后的密码。In step 411, the encrypted password is decrypted according to the key to form a decrypted password.
服务器在接收到账号和加密后的密码后,根据秘钥对加密后的密码进行解密,确定解密后的密码。After receiving the account number and the encrypted password, the server decrypts the encrypted password according to the secret key, and determines the decrypted password.
在步骤412中,若确定解密后的密码与预先存储的与账号对应的正确密码一致,则确定密码正确。In step 412, if it is determined that the decrypted password is consistent with the pre-stored correct password corresponding to the account, it is determined that the password is correct.
在步骤413中,若确定解密后的密码与预先存储的与账号对应的正确密码不一致,则确定密码错误。In step 413, if it is determined that the decrypted password is inconsistent with the pre-stored correct password corresponding to the account, it is determined that the password is incorrect.
在步骤412和步骤413中,服务器可以根据账号确定与该账号对应的正确密码,在确定解密后的密码后,确定解密后的密码与正确密码是否一致。若一致,则确定密码正确;若不一致,则确定密码错误。In step 412 and step 413, the server may determine the correct password corresponding to the account according to the account, and after determining the decrypted password, determine whether the decrypted password is consistent with the correct password. If they are consistent, it is determined that the password is correct; if they are inconsistent, it is determined that the password is incorrect.
在步骤414中,若确定密码正确,则向终端设备发送参数配置信息。In step 414, if it is determined that the password is correct, parameter configuration information is sent to the terminal device.
在步骤415中,若接收到服务器发送的参数配置信息,则根据参数配置信息运行刷机工具。In step 415, if the parameter configuration information sent by the server is received, the flashing tool is run according to the parameter configuration information.
步骤414与步骤211的实现过程和技术原理类似,步骤415与步骤212的实现过程和技术原理类似,此处不再赘述。The implementation process and technical principle of step 414 are similar to those of step 211 , and the implementation process and technical principle of step 415 are similar to those of step 212 , which will not be repeated here.
本公开实施例提供的刷机工具验证方法,通过在获取用户输入的账号和密码后,根据与服务器预先约定的密钥对密码进行加密,形成加密后的密码,向服务器发送账号和加密后的密码,接收终端设备发送的账号和加密后的密码,根据密钥对加密后的密码进行解密,形成解密后的密码,若确定解密后的密码与预先存储的与账号对应的正确密码一致,则确定密码正确,若确定解密后的密码与预先存储的与账号对应的正确密码不一致,则确定密码错误,若确定密码正确,则向终端设备发送参数配置信息,若接收到服务器发送的参数配置信息,则根据参数配置信息运行刷机工具,实现了在验证刷机账号的合法性时,采用了对密码以秘钥进行加密的形式进行验证,从而,进一步保护了用户的信息安全及提高了刷机成功率。The flashing tool verification method provided by the embodiment of the present disclosure, after obtaining the account and password input by the user, encrypting the password according to a key pre-agreed with the server to form an encrypted password, and sending the account and encrypted password to the server , receive the account number and encrypted password sent by the terminal device, and decrypt the encrypted password according to the key to form the decrypted password. If it is determined that the decrypted password is consistent with the pre-stored correct password corresponding to the account number, then determine The password is correct. If it is determined that the decrypted password is inconsistent with the pre-stored correct password corresponding to the account, the password is determined to be incorrect. If the password is determined to be correct, the parameter configuration information is sent to the terminal device. If the parameter configuration information sent by the server is received, Then, the flashing tool is run according to the parameter configuration information, so that when verifying the legitimacy of the flashing account, the password is verified by encrypting the secret key, thereby further protecting the user's information security and improving the flashing success rate.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are the apparatus embodiments of the present disclosure, which can be used to execute the method embodiments of the present disclosure. For details not disclosed in the apparatus embodiments of the present disclosure, please refer to the method embodiments of the present disclosure.
图5是根据一示例性实施例示出的一种终端设备的框图。如图5所示,本公开实施例提供的终端设备包括:生成模块51、第一发送模块52及启动模块53。Fig. 5 is a block diagram of a terminal device according to an exemplary embodiment. As shown in FIG. 5 , the terminal device provided by the embodiment of the present disclosure includes: a generating module 51 , a first sending module 52 , and a starting module 53 .
生成模块51,被配置为在获取到刷机工具启动触发指令时,根据刷机工具及检验算法生成校验值。The generating module 51 is configured to generate a verification value according to the flashing tool and the verification algorithm when the flashing tool startup trigger instruction is obtained.
可选的,校验算法为哈希算法,校验值为SHA1值或MD5值。Optionally, the check algorithm is a hash algorithm, and the check value is a SHA1 value or an MD5 value.
第一发送模块52,被配置为向服务器发送校验值,以使服务器根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改,并在确定刷机工具没有被非法修改时,向终端设备发送启动指示指令。The first sending module 52 is configured to send the verification value to the server, so that the server judges whether the flashing tool has been illegally modified according to the verification value and the pre-stored standard verification value, and when it is determined that the flashing tool has not been illegally modified, Send a start instruction instruction to the terminal device.
启动模块53,被配置为当接收到服务器发送的启动指示指令时,启动刷机工具。The starting module 53 is configured to start the flashing tool when receiving the starting instruction instruction sent by the server.
本公开实施例提供的终端设备,通过设置生成模块,被配置为在获取到刷机工具启动触发指令时,根据刷机工具及检验算法生成校验值,第一发送模块,被配置为向服务器发送校验值,以使服务器根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改,并在确定刷机工具没有被非法修改时,向终端设备发送启动指示指令,启动模块,被配置为当接收到服务器发送的启动指示指令时,启动刷机工具,实现了终端设备在启动刷机工具之前,先向服务器发送根据刷机工具和校验算法生成的校验值,服务器在接收到该校验值后,进行校验,并在校验通过后向终端设备发送启动指示指令,终端设备只有在接收到该启动指示指令之后,才启动刷机工具,进行刷机操作,相较于相关技术中,直接运行刷机工具进行刷机操作的方式,本公开实施例可以在刷机工具进行刷机操作前进行校验,防止了被非法修改的刷机工具在终端设备上运行,从而,实现了进行刷机操作的刷机工具都是没有被非法修改的刷机工具,保护了用户的信息安全及提高了刷机成功率。In the terminal device provided by the embodiment of the present disclosure, by setting the generating module, it is configured to generate a check value according to the flashing tool and the verification algorithm when the flashing tool startup trigger instruction is obtained, and the first sending module is configured to send the verification value to the server. Check the value, so that the server can judge whether the flashing tool has been illegally modified according to the verification value and the pre-stored standard verification value, and when it is determined that the flashing tool has not been illegally modified, it will send a start instruction instruction to the terminal device, start the module, and be configured In order to start the flashing tool when receiving the starting instruction command sent by the server, it is realized that the terminal device first sends the verification value generated according to the flashing tool and the verification algorithm to the server before starting the flashing tool, and the server receives the verification value after receiving the verification value. After the value is checked, it is verified, and after the verification is passed, a startup instruction instruction is sent to the terminal device. Only after the terminal device receives the startup instruction instruction, does the terminal device start the flashing tool and perform the flashing operation. Compared with the related art, the direct In the method of running the flashing tool to perform the flashing operation, the embodiment of the present disclosure can perform verification before the flashing tool performs the flashing operation, which prevents the illegally modified flashing tool from running on the terminal device, and thus realizes that all flashing tools for the flashing operation are implemented. It is a flashing tool that has not been illegally modified, which protects the user's information security and improves the success rate of flashing.
图6是根据另一示例性实施例示出的一种终端设备的框图。如图6所示,本公开实施例提供的终端设备在图5所示实施例的基础上,进一步包括:获取模块61、第二发送模块62及运行模块63。Fig. 6 is a block diagram of a terminal device according to another exemplary embodiment. As shown in FIG. 6 , on the basis of the embodiment shown in FIG. 5 , the terminal device provided by the embodiment of the present disclosure further includes: an obtaining module 61 , a second sending module 62 , and an operating module 63 .
获取模块61,被配置为获取用户输入的账号和密码。The obtaining module 61 is configured to obtain the account number and password input by the user.
第二发送模块62,被配置为向服务器发送账号和密码,以使服务器根据账号、密码及预先存储的密码校验信息判断密码是否正确,并在确定密码正确时,向终端设备发送参数配置信息。The second sending module 62 is configured to send the account and password to the server, so that the server judges whether the password is correct according to the account, the password and the pre-stored password verification information, and when it is determined that the password is correct, sends the parameter configuration information to the terminal device .
运行模块63,被配置为当接收到服务器发送的参数配置信息时,根据参数配置信息运行刷机工具。The running module 63 is configured to run the flashing tool according to the parameter configuration information when receiving the parameter configuration information sent by the server.
本公开实施例提供的终端设备,通过设置获取模块,被配置为获取用户输入的账号和密码,第二发送模块,被配置为向服务器发送账号和密码,以使服务器根据账号、密码及预先存储的密码校验信息判断密码是否正确,并在确定密码正确时,向终端设备发送参数配置信息,运行模块,被配置为当接收到服务器发送的参数配置信息时,根据参数配置信息运行刷机工具,实现了可以将用户输入的账号验证用户输入的密码,发送给服务器进行验证,并在验证通过后,接收服务发送的参数配置信息,根据参数配置信息运行刷机工具,可以验证刷机账号的合法性,以及,使刷机工具根据参数配置信息运行,从而,进一步保护了用户的信息安全及提高了刷机成功率。The terminal device provided by the embodiment of the present disclosure is configured to obtain the account number and password input by the user by setting the obtaining module, and the second sending module is configured to send the account number and password to the server, so that the server can store the account number and password in advance according to the account number and password. The password verification information of the server determines whether the password is correct, and when it is determined that the password is correct, it sends the parameter configuration information to the terminal device, and the running module is configured to run the flashing tool according to the parameter configuration information when receiving the parameter configuration information sent by the server. Realize that the account entered by the user can verify the password entered by the user, send it to the server for verification, and after the verification is passed, receive the parameter configuration information sent by the service, and run the flashing tool according to the parameter configuration information, which can verify the validity of the flashing account. And, the flashing tool is run according to the parameter configuration information, thereby further protecting the user's information security and improving the flashing success rate.
图7是根据又一示例性实施例示出的一种终端设备的框图。如图7所示,本公开实施例提供的终端设备在图6所示实施例的基础上,密码包括:第一密码和第二密码,第一密码为用户注册刷机工具时设置的密码。终端设备还包括接收模块71,以及,获取模块61包括获取子模块611,第二发送模块62包括第一发送子模块621。Fig. 7 is a block diagram of a terminal device according to yet another exemplary embodiment. As shown in FIG. 7 , on the basis of the embodiment shown in FIG. 6 , the terminal device provided by the embodiment of the present disclosure includes a first password and a second password. The first password is the password set by the user when registering the flashing tool. The terminal device further includes a receiving module 71 , and the obtaining module 61 includes an obtaining sub-module 611 , and the second sending module 62 includes a first sending sub-module 621 .
接收模块71,被配置为接收服务器以与终端设备预先约定的频率发送的第二密码。The receiving module 71 is configured to receive the second password sent by the server at a frequency pre-agreed with the terminal device.
获取子模块611,被配置为获取用户输入的账号、第一密码和第二密码。The obtaining sub-module 611 is configured to obtain the account number, the first password and the second password input by the user.
第一发送子模块621,被配置为向服务器发送账号、第一密码、第二密码及发送第二密码的时刻。The first sending sub-module 621 is configured to send the account number, the first password, the second password and the time of sending the second password to the server.
本公开实施例提供的终端设备,通过设置接收模块,被配置为接收服务器以与终端设备预先约定的频率发送的第二密码,获取模块包括获取子模块,被配置为获取用户输入的账号、第一密码和第二密码,第二发送模块包括第一发送子模块,被配置为向服务器发送账号、第一密码、第二密码及发送第二密码的时刻,实现了在验证刷机账号的合法性时,采用了验证第一密码和第二密码的方式,从而,进一步保护了用户的信息安全及提高了刷机成功率。The terminal device provided by the embodiment of the present disclosure is configured to receive a second password sent by the server at a frequency pre-agreed with the terminal device by setting a receiving module, and the obtaining module includes an obtaining sub-module, which is configured to obtain the account number, the first password input by the user, and the second password. A password and a second password, the second sending module includes a first sending sub-module, and is configured to send the account number, the first password, the second password and the moment of sending the second password to the server, so as to verify the legitimacy of the flashing account. When the first password and the second password are verified, the user's information security is further protected and the success rate of flashing is improved.
图8是根据再一示例性实施例示出的一种终端设备的框图。如图8所示,本公开实施例在图6所示实施例的基础上,终端设备还包括加密模块81,以及,第二发送模块62包括第二发送子模块622。Fig. 8 is a block diagram of a terminal device according to yet another exemplary embodiment. As shown in FIG. 8 , on the basis of the embodiment shown in FIG. 6 , in the embodiment of the present disclosure, the terminal device further includes an encryption module 81 , and the second sending module 62 includes a second sending sub-module 622 .
加密模块81,被配置为根据与服务器预先约定的密钥对密码进行加密,形成加密后的密码。The encryption module 81 is configured to encrypt the password according to a key pre-agreed with the server to form an encrypted password.
第二发送子模块622,被配置为向服务器发送账号和加密后的密码。The second sending sub-module 622 is configured to send the account number and the encrypted password to the server.
本公开实施例提供的终端设备,通过设置加密模块,被配置为根据与服务器预先约定的密钥对密码进行加密,形成加密后的密码,第二发送模块包括第二发送子模块,被配置为向服务器发送账号和加密后的密码,实现了在验证刷机账号的合法性时,采用了对密码以秘钥进行加密的形式进行验证,从而,进一步保护了用户的信息安全及提高了刷机成功率。In the terminal device provided by the embodiments of the present disclosure, by setting an encryption module, it is configured to encrypt a password according to a key pre-agreed with the server to form an encrypted password, and the second sending module includes a second sending sub-module, which is configured as Sending the account and encrypted password to the server realizes that when verifying the legitimacy of the flashing account, the password is verified by encrypting the secret key, thereby further protecting the user's information security and improving the flashing success rate. .
以上描述了终端设备的内部功能和结构。图9是根据另一示例性实施例示出的一种终端设备的框图。如图9所示,该终端设备包括:The internal functions and structures of the terminal equipment are described above. Fig. 9 is a block diagram of a terminal device according to another exemplary embodiment. As shown in Figure 9, the terminal device includes:
处理器91;processor 91;
用于存储处理器91可执行指令的存储器92;memory 92 for storing instructions executable by processor 91;
其中,处理器91被配置为:Wherein, the processor 91 is configured to:
在获取到刷机工具启动触发指令时,根据刷机工具及检验算法生成校验值;向服务器发送校验值,以使服务器根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改,并在确定刷机工具没有被非法修改时,向终端设备发送启动指示指令;若接收到服务器发送的启动指示指令,则启动刷机工具。When the flashing tool startup trigger instruction is obtained, a verification value is generated according to the flashing tool and the verification algorithm; the verification value is sent to the server, so that the server can judge whether the flashing tool has been illegally modified according to the verification value and the pre-stored standard verification value , and when it is determined that the flashing tool has not been illegally modified, a startup instruction instruction is sent to the terminal device; if the startup instruction instruction sent by the server is received, the flashing tool is started.
图10是根据一示例性实施例示出的一种服务器的框图。如图10所示,本公开实施例提供的服务器包括:第一接收模块111、第一判断模块112及第一发送模块113。Fig. 10 is a block diagram of a server according to an exemplary embodiment. As shown in FIG. 10 , the server provided by the embodiment of the present disclosure includes: a first receiving module 111 , a first judging module 112 , and a first sending module 113 .
第一接收模块111,被配置为接收终端设备发送的校验值。The first receiving module 111 is configured to receive the check value sent by the terminal device.
其中,校验值为终端设备根据刷机工具及检验算法生成的。The check value is generated by the terminal device according to the flashing tool and the checking algorithm.
可选的,校验算法为哈希算法,校验值为SHA1值或MD5值。Optionally, the check algorithm is a hash algorithm, and the check value is a SHA1 value or an MD5 value.
第一判断模块112,被配置为根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改。The first judgment module 112 is configured to judge whether the flashing tool is illegally modified according to the check value and the pre-stored standard check value.
可选的,第一判断模块112包括:第三判断子模块,被配置为当确定校验值与标准校验值相同时,确定刷机工具没有被非法修改;当确定校验值与标准校验值不相同时,确定刷机工具被非法修改。Optionally, the first judging module 112 includes: a third judging sub-module, configured to determine that the flashing tool has not been illegally modified when the verification value is determined to be the same as the standard verification value; When the values are not the same, it is determined that the flashing tool has been illegally modified.
第一发送模块113,被配置为当确定刷机工具没有被非法修改时,向终端设备发送启动指示指令,以使终端设备启动刷机工具。The first sending module 113 is configured to send a start instruction instruction to the terminal device when it is determined that the flashing tool has not been illegally modified, so that the terminal device can start the flashing tool.
本公开实施例提供的服务器,通过设置第一接收模块,被配置为接收终端设备发送的校验值;其中,校验值为终端设备根据刷机工具及检验算法生成的,第一判断模块,被配置为根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改,第一发送模块,被配置为当确定刷机工具没有被非法修改时,向终端设备发送启动指示指令,以使终端设备启动刷机工具,实现了终端设备在启动刷机工具之前,先向服务器发送根据刷机工具和校验算法生成的校验值,服务器在接收到该校验值后,进行校验,并在校验通过后向终端设备发送启动指示指令,终端设备只有在接收到该启动指示指令之后,才启动刷机工具,进行刷机操作,相较于相关技术中,直接运行刷机工具进行刷机操作的方式,本公开实施例可以在刷机工具进行刷机操作前进行校验,防止了被非法修改的刷机工具在终端设备上运行,从而,实现了进行刷机操作的刷机工具都是没有被非法修改的刷机工具,保护了用户的信息安全及提高了刷机成功率。The server provided by the embodiment of the present disclosure is configured to receive the check value sent by the terminal device by setting the first receiving module; wherein, the check value is generated by the terminal device according to the flashing tool and the check algorithm, and the first judgment module is configured by the terminal device. It is configured to judge whether the flashing tool has been illegally modified according to the verification value and the pre-stored standard verification value, and the first sending module is configured to send a start instruction instruction to the terminal device when it is determined that the flashing tool has not been illegally modified, so that the The terminal device starts the flashing tool, which realizes that before the terminal device starts the flashing tool, it first sends the verification value generated according to the flashing tool and the verification algorithm to the server. After passing the verification, a startup instruction instruction is sent to the terminal device. Only after receiving the startup instruction instruction, the terminal device starts the flashing tool and performs the flashing operation. Compared with the method of directly running the flashing tool to perform the flashing operation in the related art, this In the disclosed embodiment, verification can be performed before the flashing tool performs the flashing operation, which prevents the illegally modified flashing tool from running on the terminal device, thereby realizing that the flashing tool for the flashing operation is the flashing tool that has not been illegally modified, protecting the It improves the user's information security and improves the success rate of flashing.
图11是根据另一示例性实施例示出的一种服务器的框图。如图11所示,本公开实施例提供的服务器在图10所示实施例的基础上,还包括第二接收模块114、第二判断模块115及第二发送模块116。Fig. 11 is a block diagram of a server according to another exemplary embodiment. As shown in FIG. 11 , on the basis of the embodiment shown in FIG. 10 , the server provided by the embodiment of the present disclosure further includes a second receiving module 114 , a second determining module 115 , and a second sending module 116 .
第二接收模块114,被配置为接收终端设备发送的账号和密码;其中,账号和密码为终端设备接收用户输入的。The second receiving module 114 is configured to receive an account number and a password sent by the terminal device, wherein the account number and password are input by the terminal device after receiving the user.
第二判断模块115,被配置为根据账号、密码及预先存储的密码校验信息判断密码是否正确。The second judging module 115 is configured to judge whether the password is correct according to the account number, the password and the pre-stored password verification information.
第二发送模块116,被配置为当确定密码正确时,向终端设备发送参数配置信息。The second sending module 116 is configured to send parameter configuration information to the terminal device when it is determined that the password is correct.
本公开实施例提供的服务器,通过设置第二接收模块,被配置为接收终端设备发送的账号和密码;其中,账号和密码为终端设备接收用户输入的,第二判断模块,被配置为根据账号、密码及预先存储的密码校验信息判断密码是否正确,第二发送模块,被配置为当确定密码正确时,向终端设备发送参数配置信息,实现了可以根据用户输入的账号验证用户输入的密码,并在验证通过后,向终端设备发送刷机工具的参数配置信息,终端设备根据参数配置信息运行刷机工具,可以验证刷机账号的合法性,以及,使刷机工具根据参数配置信息运行,从而,进一步保护了用户的信息安全及提高了刷机成功率。The server provided by the embodiment of the present disclosure is configured to receive an account number and a password sent by a terminal device by setting a second receiving module; wherein the account number and password are received by the terminal device and input by a user, and the second judging module is configured to be based on the account number and password. , password and pre-stored password verification information to determine whether the password is correct, the second sending module is configured to send parameter configuration information to the terminal device when the password is determined to be correct, so that the password entered by the user can be verified according to the account entered by the user , and after the verification is passed, the parameter configuration information of the flashing tool is sent to the terminal device, and the terminal device runs the flashing tool according to the parameter configuration information, which can verify the legitimacy of the flashing account, and make the flashing tool run according to the parameter configuration information, thereby further It protects the user's information security and improves the success rate of flashing.
图12是根据又一示例性实施例示出的一种服务器的框图。如图12所示,本公开实施例提供的服务器在图11所示实施例的基础上,密码包括:第一密码和第二密码,第一密码为用户注册刷机工具时设置的密码。服务器还包括第三发送模块121,以及,第二接收模块114包括第一接收子模块1141,第二判断模块115包括第一判断子模块1151。Fig. 12 is a block diagram of a server according to yet another exemplary embodiment. As shown in FIG. 12 , on the basis of the embodiment shown in FIG. 11 , the server provided by the embodiment of the present disclosure includes a first password and a second password. The first password is the password set by the user when registering the flashing tool. The server further includes a third sending module 121 , and the second receiving module 114 includes a first receiving sub-module 1141 , and the second judging module 115 includes a first judging sub-module 1151 .
第三发送模块121,被配置为向终端设备以与终端设备预先约定的频率发送第二密码。The third sending module 121 is configured to send the second password to the terminal device at a frequency pre-agreed with the terminal device.
第一接收子模块1141,被配置为接收终端设备发送的账号、第一密码、第二密码及发送第二密码的时刻。The first receiving sub-module 1141 is configured to receive the account number, the first password, the second password and the time of sending the second password sent by the terminal device.
第一判断子模块1151,被配置为根据账号与预先存储的与账号对应的正确密码判断第一密码是否正确;当确定第一密码正确时,根据向终端设备发送第二密码的时刻及终端设备发送第二密码的时刻确定第二密码是否正确;当确定第二密码正确时,确定密码正确;当确定第一密码错误时,确定密码错误。The first judging submodule 1151 is configured to judge whether the first password is correct according to the account number and the pre-stored correct password corresponding to the account number; when it is determined that the first password is correct, according to the moment when the second password is sent to the terminal device and the terminal device When the second password is sent, it is determined whether the second password is correct; when it is determined that the second password is correct, it is determined that the password is correct; when it is determined that the first password is incorrect, it is determined that the password is incorrect.
本公开实施例提供的服务器,通过设置第三发送模块,被配置为向终端设备以与终端设备预先约定的频率发送第二密码,第二接收模块包括第一接收子模块,被配置为接收终端设备发送的账号、第一密码、第二密码及发送第二密码的时刻,第二判断模块包括第一判断子模块,被配置为根据账号与预先存储的与账号对应的正确密码判断第一密码是否正确;当确定第一密码正确时,根据向终端设备发送第二密码的时刻及终端设备发送第二密码的时刻确定第二密码是否正确;当确定第二密码正确时,确定密码正确;当确定第一密码错误时,确定密码错误,实现了在验证刷机账号的合法性时,采用了验证第一密码和第二密码的方式,从而,进一步保护了用户的信息安全及提高了刷机成功率。The server provided by the embodiment of the present disclosure is configured to send the second password to the terminal device at a frequency pre-agreed with the terminal device by setting a third sending module, and the second receiving module includes a first receiving sub-module and is configured to receive the terminal The account number, the first password, the second password and the moment of sending the second password sent by the device. The second judgment module includes a first judgment sub-module, which is configured to judge the first password according to the account number and the pre-stored correct password corresponding to the account number. Whether it is correct; when it is determined that the first password is correct, determine whether the second password is correct according to the moment when the second password is sent to the terminal device and the moment when the terminal device sends the second password; when it is determined that the second password is correct, it is determined that the password is correct; when When it is determined that the first password is wrong, it is determined that the password is wrong, and the method of verifying the first password and the second password is adopted when verifying the legitimacy of the flashing account, thereby further protecting the user's information security and improving the flashing success rate. .
图13是根据再一示例性实施例示出的一种服务器的框图。如图13所示,本公开实施例提供的服务器在图11所示实施例的基础上,第二接收模块114包括第二接收子模块1142,第二判断模块115包括解密子模块1152及第二判断子模块1153。Fig. 13 is a block diagram of a server according to yet another exemplary embodiment. As shown in FIG. 13 , on the basis of the embodiment shown in FIG. 11 , in the server provided by the embodiment of the present disclosure, the second receiving module 114 includes a second receiving sub-module 1142 , and the second determining module 115 includes a decrypting sub-module 1152 and a second receiving sub-module 1142 . Judgment sub-module 1153 .
第二接收子模块1142,被配置为接收终端设备发送的账号和加密后的密码。The second receiving sub-module 1142 is configured to receive the account number and the encrypted password sent by the terminal device.
其中,加密后的密码为终端设备根据与服务器预先约定的秘钥对密码进行加密形成的。The encrypted password is formed by the terminal device encrypting the password according to the secret key pre-agreed with the server.
解密子模块1152,被配置为根据密钥对加密后的密码进行解密,形成解密后的密码。The decryption sub-module 1152 is configured to decrypt the encrypted password according to the key to form the decrypted password.
第二判断子模块1153,被配置为当确定解密后的密码与预先存储的与账号对应的正确密码一致时,确定密码正确;当确定解密后的密码与预先存储的与账号对应的正确密码不一致时,确定密码错误。The second judgment submodule 1153 is configured to determine that the password is correct when it is determined that the decrypted password is consistent with the pre-stored correct password corresponding to the account; when it is determined that the decrypted password is inconsistent with the pre-stored correct password corresponding to the account When the password is determined to be incorrect.
本公开实施例提供的服务器,通过设置第二接收子模块,被配置为接收终端设备发送的账号和加密后的密码,其中,加密后的密码为终端设备根据与服务器预先约定的秘钥对密码进行加密形成的,解密子模块,被配置为根据密钥对加密后的密码进行解密,形成解密后的密码,第二判断子模块,被配置为当确定解密后的密码与预先存储的与账号对应的正确密码一致时,确定密码正确;当确定解密后的密码与预先存储的与账号对应的正确密码不一致时,确定密码错误,实现了在验证刷机账号的合法性时,采用了对密码以秘钥进行加密的形式进行验证,从而,进一步保护了用户的信息安全及提高了刷机成功率。The server provided by the embodiment of the present disclosure is configured to receive the account number and the encrypted password sent by the terminal device by setting the second receiving submodule, wherein the encrypted password is the password of the terminal device according to the secret key pre-agreed with the server. Formed by encryption, the decryption sub-module is configured to decrypt the encrypted password according to the key to form the decrypted password, and the second judgment sub-module is configured to determine the decrypted password and the pre-stored and account number when the decrypted password is determined. When the corresponding correct passwords are consistent, it is determined that the password is correct; when it is determined that the decrypted password is inconsistent with the pre-stored correct password corresponding to the account, it is determined that the password is incorrect. The secret key is verified in the form of encryption, thereby further protecting the user's information security and improving the success rate of flashing.
以上描述了终端设备的内部功能和结构。图14是根据另一示例性实施例示出的一种服务器的框图。如图14所示,本公开实施例提供的服务器包括:The internal functions and structures of the terminal equipment are described above. Fig. 14 is a block diagram of a server according to another exemplary embodiment. As shown in FIG. 14 , the server provided by the embodiment of the present disclosure includes:
处理器141;processor 141;
用于存储处理器141可执行指令的存储器142;memory 142 for storing instructions executable by processor 141;
其中,处理器141被配置为:Wherein, the processor 141 is configured to:
接收终端设备发送的校验值;其中,校验值为终端设备根据刷机工具及检验算法生成的;根据校验值及预先存储的标准校验值判断刷机工具是否被非法修改;若确定刷机工具没有被非法修改,则向终端设备发送启动指示指令,以使终端设备启动刷机工具。Receive the verification value sent by the terminal device; the verification value is generated by the terminal device according to the flashing tool and the verification algorithm; judge whether the flashing tool has been illegally modified according to the verification value and the pre-stored standard verification value; if it is determined that the flashing tool is If it has not been illegally modified, a startup instruction instruction is sent to the terminal device, so that the terminal device starts the flashing tool.
图15是根据一示例性实施例示出的一种刷机工具验证装置的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 15 is a block diagram of a device for verifying a flashing tool according to an exemplary embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
参照图15,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)接口812,传感器组件814,以及通信组件816。15, apparatus 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and Communication component 816.
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above. 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),磁存储器,快闪存储器,磁盘或光盘。Memory 804 is configured to store various types of data to support operations at 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. Memory 804 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, 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 supply assembly 806 provides power to the 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处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。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 touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the apparatus 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。Audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when device 800 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or transmitted via communication component 816 . In some embodiments, 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, or the like. These buttons may include, but are not limited to: 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 assessment of various aspects of device 800 . For example, the sensor assembly 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, and the sensor assembly 814 can also detect a change in the position of the device 800 or a component of the device 800 , the presence or absence of user contact with the device 800 , the orientation or acceleration/deceleration of the device 800 and the temperature change of the 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 a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 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)技术和其他技术来实现。Communication component 816 is configured to facilitate wired or wireless communication between apparatus 800 and other devices. Device 800 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one 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-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 800 may be implemented 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 is used to perform the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器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 a memory 804 including instructions, executable by the processor 820 of the apparatus 800 to perform the method described above. 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.
图16是根据一示例性实施例示出的一种刷机工具验证装置的框图。例如,刷机工具验证装置1900可以被提供为一服务器。参照图16,装置1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述网页前端调试方法。Fig. 16 is a block diagram of a device for verifying a flashing tool according to an exemplary embodiment. For example, the flash tool verification apparatus 1900 may be provided as a server. 16, apparatus 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource, represented by memory 1932, for storing instructions executable by processing component 1922, such as applications. An application program stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above-described web front-end debugging method.
装置1900还可以包括一个电源组件1926被配置为执行装置1900的电源管理,一个有线或无线网络接口1950被配置为将装置1900连接到网络,和一个输入输出(I/O)接口1958。装置1900可以操作基于存储在存储器1932的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The device 1900 may also include a power supply assembly 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input output (I/O) interface 1958. Device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™ or the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由刷机工具验证装置的处理器执行时,使得刷机工具验证装置能够执行上述刷机工具验证方法。A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a device for verifying a device for flashing a computer, enabling the device for verifying a device for flashing a device to execute the above-mentioned method for verifying a device for flashing a device.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由刷机工具验证装置的处理器执行时,使得刷机工具验证装置能够执行上述刷机工具验证方法。A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a device for verifying a device for flashing a computer, enabling the device for verifying a device for flashing a device to execute the above-mentioned method for verifying a device for flashing a device.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求书指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求书来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that 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 (16)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610930638.4A CN106534083B (en) | 2016-10-31 | 2016-10-31 | Brush machine Tool validation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610930638.4A CN106534083B (en) | 2016-10-31 | 2016-10-31 | Brush machine Tool validation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106534083A CN106534083A (en) | 2017-03-22 |
CN106534083B true CN106534083B (en) | 2019-07-23 |
Family
ID=58292844
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610930638.4A Active CN106534083B (en) | 2016-10-31 | 2016-10-31 | Brush machine Tool validation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106534083B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106992857B (en) * | 2017-03-30 | 2020-11-10 | 义乌国信土地规划咨询有限公司 | A brushing verification method and device |
CN107360165B (en) * | 2017-07-13 | 2021-02-12 | 北京元心科技有限公司 | Terminal device, cloud server and method and device for managing and controlling operating system |
CN110659477A (en) * | 2019-09-23 | 2020-01-07 | 深圳市网心科技有限公司 | Anti-brush protection method and system for Android device, and Android device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102694920A (en) * | 2012-05-28 | 2012-09-26 | 广东欧珀移动通信有限公司 | Mobile phone antitheft method |
CN104123505A (en) * | 2014-07-24 | 2014-10-29 | 丹阳市广播电视台 | Android intelligent device anti-getroot system and calibration method thereof |
CN104506515A (en) * | 2014-12-17 | 2015-04-08 | 北京极科极客科技有限公司 | Firmware protection method and firmware protection device |
CN105183499A (en) * | 2015-08-04 | 2015-12-23 | 上海青橙实业有限公司 | ROM flashing method, mobile terminal and terminal system |
CN105373747A (en) * | 2015-12-09 | 2016-03-02 | 上海斐讯数据通信技术有限公司 | File generation method, file verification method and systems for preventing system from being tampered |
-
2016
- 2016-10-31 CN CN201610930638.4A patent/CN106534083B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102694920A (en) * | 2012-05-28 | 2012-09-26 | 广东欧珀移动通信有限公司 | Mobile phone antitheft method |
CN104123505A (en) * | 2014-07-24 | 2014-10-29 | 丹阳市广播电视台 | Android intelligent device anti-getroot system and calibration method thereof |
CN104506515A (en) * | 2014-12-17 | 2015-04-08 | 北京极科极客科技有限公司 | Firmware protection method and firmware protection device |
CN105183499A (en) * | 2015-08-04 | 2015-12-23 | 上海青橙实业有限公司 | ROM flashing method, mobile terminal and terminal system |
CN105373747A (en) * | 2015-12-09 | 2016-03-02 | 上海斐讯数据通信技术有限公司 | File generation method, file verification method and systems for preventing system from being tampered |
Also Published As
Publication number | Publication date |
---|---|
CN106534083A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10498723B2 (en) | Method, and apparatus for authenticating access | |
EP3416082A1 (en) | Method and apparatus for signing and verifying application installation package, and storage medium | |
CN109146470B (en) | Method and device for generating payment code | |
CN107819572B (en) | Command transmission method and device and electronic equipment | |
CN113242224B (en) | Authorization method and device, electronic equipment and storage medium | |
EP3016349B1 (en) | Method and apparatus for verifying terminal and computer program product | |
EP2961128A1 (en) | Method, apparatus, computer program and computer program product for binding a token key to an account | |
CN107766701B (en) | Electronic equipment, dynamic library file protection method and device | |
CN106060098B (en) | Processing method, processing unit and the processing system of identifying code | |
CN113055169A (en) | Data encryption method and device, electronic equipment and storage medium | |
CN107169320A (en) | Method of calibration and device | |
CN106909827A (en) | Using account management method and device | |
CN114221764A (en) | Public key updating method, device and equipment based on block chain | |
CN113343212A (en) | Device registration method and apparatus, electronic device, and storage medium | |
CN106534083B (en) | Brush machine Tool validation method and device | |
CN104852800B (en) | Data transmission method and device | |
CN106709284A (en) | Root package validation method and device | |
CN104331672A (en) | Method and device for performing confidential treatment on pictures upon bracelet | |
EP3249566B1 (en) | Method and device for encrypting application | |
CN114221788A (en) | Login method, login device, electronic equipment and storage medium | |
CN108712384B (en) | Terminal authentication method and device, terminal and server | |
CN106485151B (en) | Method and device for controlling flashing | |
CN107302519B (en) | Identity authentication method and device for terminal equipment, terminal equipment and server | |
CN114139134A (en) | Program upgrade method, device and device for terminal equipment | |
CN114386008A (en) | Information processing method and device, equipment, storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |