WO2020097863A1 - Flashing control method, flashing control apparatus and terminal device - Google Patents

Flashing control method, flashing control apparatus and terminal device Download PDF

Info

Publication number
WO2020097863A1
WO2020097863A1 PCT/CN2018/115685 CN2018115685W WO2020097863A1 WO 2020097863 A1 WO2020097863 A1 WO 2020097863A1 CN 2018115685 W CN2018115685 W CN 2018115685W WO 2020097863 A1 WO2020097863 A1 WO 2020097863A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
flashing
command
mode
information
Prior art date
Application number
PCT/CN2018/115685
Other languages
French (fr)
Chinese (zh)
Inventor
陈伊春
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201880097136.5A priority Critical patent/CN112654964A/en
Priority to PCT/CN2018/115685 priority patent/WO2020097863A1/en
Publication of WO2020097863A1 publication Critical patent/WO2020097863A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present application belongs to the field of electronic technology, and particularly relates to a brush control method, a brush control device, a terminal device, and a computer-readable storage medium.
  • Flashing is a method to change some languages, pictures, ringtones, software, or operating systems that originally exist in the terminal device. Flashing can improve the functions of the terminal device and allow users to personalize the terminal device settings. Therefore, at present, many users will flash their terminal devices.
  • the present application provides a brushing machine control method, a brushing machine control device, a terminal device, and a computer-readable storage medium, which can ensure the safety and stability of the system to a certain extent when the user performs the brushing machine.
  • the first aspect of the present application provides a brush control method, which is applied to a terminal device and includes:
  • the authority information of the terminal device is used to instruct the terminal device to support the operation of the flashing command in the flashing mode
  • the authority information determine whether the above-mentioned flashing command to be executed is a flashing command supported by the terminal device in the above-mentioned flashing mode;
  • the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above flashing mode, the above-mentioned flashing command to be executed is executed.
  • a second aspect of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program, the following steps are implemented:
  • the authority information of the terminal device is used to instruct the terminal device to support the operation of the flashing command in the flashing mode
  • the authority information determine whether the above-mentioned flashing command to be executed is a flashing command supported by the terminal device in the above-mentioned flashing mode;
  • the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above flashing mode, the above-mentioned flashing command to be executed is executed.
  • a third aspect of the present application provides a brush machine control device, which is applied to terminal equipment.
  • the brush machine control device includes:
  • the flashing command receiving module is used to receive the flashing command to be run which is input by the user in the flashing mode of the above terminal device;
  • a permission information obtaining module configured to obtain the permission information of the terminal device, and the permission information is used to instruct the terminal device to support a flash command in the flash mode;
  • the flashing command judging module is used to determine whether the flashing command to be executed is a flashing command supported by the terminal device in the flashing mode according to the authority information;
  • the flashing command execution module is configured to execute the flashing command to be executed if the flashing command to be run is a flashing command supported by the terminal device in the flashing mode.
  • a fourth aspect of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect described above are implemented.
  • a fifth aspect of the present application provides a computer program product.
  • the computer program product includes a computer program.
  • the computer program is executed by one or more processors, the steps of the method of the first aspect described above are implemented.
  • FIG. 1 is a schematic diagram of an implementation process of a brush control method provided in Embodiment 1 of the present application;
  • FIG. 2 is a schematic diagram of a method for representing permission information provided in Embodiment 1 of the present application;
  • FIG. 3 is a schematic diagram of an implementation process of another brush control method provided in Embodiment 2 of the present application.
  • FIG. 4 is a schematic diagram of another method for representing permission information provided in Embodiment 2 of the present application.
  • FIG. 5 is a schematic diagram of an implementation process of another brush control method provided in Embodiment 3 of the present application.
  • FIG. 6 is a schematic diagram of another method for representing permission information provided in Embodiment 3 of the present application.
  • FIG. 7 is a schematic structural diagram of a brush control device provided in Embodiment 4 of the present application.
  • FIG. 8 is a schematic structural diagram of a terminal device according to Embodiment 5 of the present application.
  • the brush control method provided in the embodiment of the present application is applicable to a terminal device.
  • the terminal device includes but is not limited to: a smart phone, a tablet computer, a notebook, a desktop computer, a smart wearable device, a cloud server, and the like.
  • the term “if” may be interpreted as “when” or “once” or “in response to determination” or “in response to detection” depending on the context.
  • the phrase “if determined” or “if [described condition or event] is detected” can be interpreted in the context to mean “once determined” or “in response to a determination” or “once detected [described condition or event ] “Or” In response to detection of [the described condition or event] ".
  • the brush control method provided in Embodiment 1 of the present application includes:
  • step S101 receive a brushing command to be executed by the user in the brushing mode of the terminal device
  • the brushing machine control method provided in the first embodiment of the present application is applied to a terminal device.
  • this step S101 first, a user-to-be-run brushing machine command input in the brushing mode of the terminal device is received.
  • the flash mode described in step S101 may be a fast boot mode or a recovery mode, etc .; if the operating system of the terminal device For the IOS system, the flash mode described in step S101 may be a DFU (Device Firmware Upgrade) mode, etc.
  • the subsequent application of this application uses the flashing mode described in step S101 as the fastboot mode to illustrate the technical solutions of this application.
  • the technical solution is not limited to fastboot mode.
  • the input method of the above-mentioned flashing command to be run may be: the user enters the code corresponding to the above-mentioned flashing command to be run on the operation interface, for example, the user enters "reboot" on the operation interface (reboot command is commonly used in fastboot mode Flashing command) to instruct the terminal device to restart in the flashing mode; or, the input method of the above-mentioned flashing command to be run can also be: the user clicks the control corresponding to the above-mentioned flashing command to be run in the operation interface, for example, the user clicks to operate "Restart" control in the interface to instruct the terminal device to restart in the flash mode.
  • the embodiment of the present application does not limit the input method of the above-mentioned flashing command to be executed.
  • step S102 the authority information of the terminal device is obtained, and the authority information is used to instruct the terminal device to support the operation of the flashing command in the flashing mode;
  • the above permission information may be a single binary number, or may also be a binary digital string composed of more than two binary numbers. As shown in FIG. 2, the above authority information may be 1110100, that is, a 7-bit binary digit string.
  • the digital size of the permission information can be used to represent the flashing command supported by the terminal device. For example, if the permission information is 0, it means that the flash device commands supported by the terminal device are flash, flashhall, getvar, boot, and erase (flash, flashall, getvar, boot, and erase are all commonly used flash commands in fastoboot mode), If the permission information is 1, it means that the terminal device supports running the flash command only for getvar.
  • the brush command corresponding to each binary digit can be defined in advance, and then the size of each binary digit can be used to indicate the Whether the terminal device supports the corresponding flashing command in the flashing mode, for example, if the binary number is 1, it indicates that the corresponding flashing command is supported, and if it is 0, it indicates that the corresponding flashing command is not supported. As shown in FIG.
  • the flashing command corresponding to the 0th bit of the authority information is flashall
  • the flashing command corresponding to the 1st bit is devices
  • the flashing command corresponding to the 2nd bit is boot
  • the flashing command corresponding to the 3rd bit is getvar
  • the flashing command corresponding to 4 digits is reboot
  • the flashing command corresponding to bit 5 is erase
  • the flashing command corresponding to bit 6 is flash. If a binary number is 1, it means that the corresponding flashing command is supported. If it is 0,
  • the permission information 1110100 shown in FIG. 2 indicates that the flashing commands supported by the terminal device in the flashing mode are flash, erase, reboot, and boot.
  • the permission information described in step S102 may be obtained through user information input by the user, for example, according to the ID number, fingerprint, facial image, age, work unit, academic background, Information such as graduation colleges and / or job positions to determine the authority information of the terminal device; or, the authority information described in step S102 may also be obtained through the identification information of the terminal device, for example, according to the terminal device ’s CPU serial number, IMEI (International Mobile Equipment Identity) code, MAC (Media Access Control) address or SN (Serial Number, serial number) and other information to determine the authority information of the terminal device.
  • the terminal device for example, according to the terminal device ’s CPU serial number, IMEI (International Mobile Equipment Identity) code, MAC (Media Access Control) address or SN (Serial Number, serial number) and other information to determine the authority information of the terminal device.
  • the method for determining the permission information of the terminal device through the user information input by the user can be: pre-training a neural network model, where the input of the neural network model can be academic qualifications and job positions, and the output is permission information, and the neural network model can The corresponding authority information is determined through the education degree and job position input by the user. For example, when the degree entered by the user is a graduate student and the job position is a software engineer, the user can be considered to have a certain ability to flash, and the authority information of the terminal device can be set to indicate that the terminal device supports the operation of more flash commands Information, for example, as shown in FIG. 2, the permission information of the terminal device can be set to all 1, indicating that the terminal device can support running flash commands in the flash mode: flash, erase, reboot, getvar, boot , Devices and flashall.
  • the way to determine the corresponding authority information through the user information input by the user may also be: the terminal device (or the preset first server) pre-stores authority information corresponding to each ID number, such as an ID The number is: 40040019831010XXXX, the corresponding authority information is 1111111, and the ID number is 41142219900202YYYY, the corresponding authority information is 1001000 ..., then the authority information of the terminal device can be determined by the ID number entered by the user.
  • the authority information of the terminal device may be set to the authority information indicating that the terminal device supports running less flash commands, For example, as shown in FIG.
  • the permission information of the terminal device can be set to the state of 0010000, indicating that the terminal device only supports the reboot command in the flash mode; or, if it is in the terminal device (or the above-mentioned first server) If the ID number entered by the user cannot be found, the permission information of the terminal device is directly set as preset permission information, wherein the preset permission information is used to indicate that the terminal device does not support running any flash command in the flash mode .
  • determining the corresponding authority information through the identification information of the terminal device may be: the terminal device (or a preset second server) pre-stores a preset correspondence table, and the correspondence table Correspondence between different identification information and each authority information is recorded in the, where each identification information corresponds to one authority information, for example, the correspondence relationship table records: the authority information corresponding to the CPU serial number 0000000000000000 is 1111111, the CPU sequence The authorization information corresponding to the number 0000000000001111 is 0001111 ..., you can search for the identification information of the terminal device in the correspondence table, and if the identification information of the terminal device is found, the terminal device recorded in the correspondence table The permission information corresponding to the identification information of is determined to be the permission information of the terminal device.
  • the permission information of the terminal device can be Set the permission information indicating that the terminal device supports running less flash commands, or directly set the permission information of the terminal device as preset permission information, where the preset permission information is used to indicate that the terminal device is in the flash mode It does not support running any flash commands.
  • step S103 according to the authority information, it is determined whether the above-mentioned flashing command to be executed is a flashing command supported by the terminal device in the above-mentioned flashing mode;
  • step S102 it is determined whether the flashing command to be run input by the user in step S101 is a flashing command supported by the terminal device in the flashing mode. For example, if the authority information obtained in step S102 indicates that the terminal device supports running flash commands including a flash command and a reboot command, and the flash command to be executed obtained in step S101 is a reboot command, then in step S103, the obtained from step S101 can be obtained
  • the flashing command to be run is a flashing command supported by the terminal device. If the flashing command to be run obtained in step S101 is a devices command, then in step S103, the flashing command to be executed obtained in step S101 may be a flashing device that is not supported by the terminal command.
  • step S104 if the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above-mentioned flashing mode, the above-mentioned flashing command to be executed is executed;
  • step S103 If the judgment result of step S103 is that the to-be-operated flashing command acquired in step S101 is a flashing command supported by the terminal device in the flashing mode, the terminal device runs the pending flashing command in the flashing mode. In addition, in the embodiment of the present application, if the judgment result of step S103 is that the flashing command to be run obtained in step S101 is not a flashing command supported by the terminal device, the terminal device does not execute the flashing command to be run in the flashing mode , And can prompt the user that the pending brush command cannot be executed.
  • the terminal device needs to determine whether to execute the user-swipe command based on its permission information, only when its permission information indicates that the terminal device can execute the user-swipe command
  • the technical solution provided by the present application limits the flash commands that can be used by the user. Therefore, the user can avoid the user's use of the flash command when the device is flash
  • the problem of damage caused by the system of the device can ensure the safety and stability of the system to a certain extent when the user brushes the machine.
  • the brushing machine control method is applied to a terminal device, please refer to FIG. 3, and the brushing machine control method provided in Embodiment 2 of the present application includes:
  • step S201 receive a command to be executed by the user in the brush mode of the above terminal device to be run;
  • the brush control method provided in the second embodiment of the present application is still applied to the terminal device.
  • This step S201 is performed in the same manner as the step S101 in the first embodiment.
  • step S202 receiving the to-be-operated partition of the to-be-run brush command input by the user in the to-brush mode
  • the second embodiment of the present application is different from the first embodiment in that, in addition to receiving the user-to-be-operated flashing command input, the user-to-be-operated partition of the to-be-operating flashing command is also received, such as the flash command in fastboot mode Need to specify the operation partition of the flash command (for example, boot partition, system partition or userdata partition, etc.).
  • the user is not required to input the corresponding to-be-operated partition for all to-be-run brush commands.
  • the first embodiment of the present application can only limit the various brush commands that can be used by the user.
  • the technical solution provided by the second embodiment of the present application can not only limit the various brush commands that can be used by the user, but can also further define the various supported brush machines.
  • the operation partition of the command is limited. Therefore, the technical solution provided by Embodiment 2 of the present application has stronger flexibility than Embodiment 1.
  • step S203 the authority information of the terminal device is obtained, the authority information is used to indicate the operation of the flashing command supported by the terminal device in the flashing mode, and is also used to indicate the operation supported by the flashing command supported by the terminal device Partition
  • the authority information in step S203 may be a binary digit string composed of two or more binary digits, and so on. As shown in FIG. 4, the permission information in step S203 may be 111010011001010, that is, a 15-bit binary digit string.
  • the flashing command corresponding to the 8th bit of the authority information is flashall
  • the flashing command corresponding to the 9th bit is devices
  • the flashing command corresponding to the 10th bit is boot
  • the flashing command corresponding to the 11th bit is getvar
  • the flash command corresponding to 12 bits is reboot
  • the flash command corresponding to bit 13 is erase
  • the flash command corresponding to bit 14 is flash, which is the same as the first embodiment.
  • bits 4 to 7 of the authority information correspond to the operation partition of the flash command
  • bits 0 to 3 correspond to the operation partition of the erase command.
  • the size of the binary number can be used to indicate the partition supported by the flash command.
  • the size of the binary number can be used. To indicate the partitions supported by the erase command.
  • the permission information is 111010011001010, which can indicate that the flash commands supported by the terminal device in the flash mode are flash, erase, reboot, and boot.
  • the partitions supported by the flash command include the boot partition and the system partition.
  • the partitions supported by the erase command include the boot partition and the recovery partition.
  • step S204 according to the authority information, it is determined whether the above-mentioned flashing command to be executed is a flashing command supported by the terminal device in the above-mentioned flashing mode;
  • step S204 is performed in exactly the same manner as step S103 in the first embodiment.
  • step S204 please refer to the description of the first embodiment, which will not be repeated here.
  • step S205 if the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above-mentioned flashing mode, it is determined whether the partition to be operated is a partition supported by the above-mentioned flashing command according to the authority information;
  • step S204 determines that the flashing command to be executed obtained in step S201 is a flashing command supported by the terminal device in the flashing mode
  • the partition to be operated obtained in step S202 is the flashing command support operation obtained in step S201 Partition.
  • the authority information obtained in step S203 is 111010011001010 shown in FIG. 4, which means that the flash commands supported by the terminal device in the flash mode are flash, erase, reboot, and boot.
  • the partition supported by the flash command is the boot partition.
  • the system partition, the partitions supported by the erase command include the boot partition and the recovery partition.
  • the flashing command obtained in step S201 is the flash command
  • the partition obtained in step S202 is the boot partition.
  • step S205 you can obtain Out, the to-be-operated partition obtained in step S202 is the one to be operated supported by the flashing command obtained in step S201. If the to-be-operated partition obtained in step S202 is a userdata partition, in step S205, it can be obtained that the obtained in step S202 The to-be-operated partition is not a partition to be operated supported by the flashing command acquired in step S201.
  • step S206 if the to-be-operated partition is a partition supported by the to-be-run brush command to support operation, the to-be-run brush command is used to process the to-be-operated partition;
  • step S205 If the judgment result in step S205 is that the to-be-operated partition obtained in step S202 is a partition supported by the to-be-run brush command obtained in step S201, the terminal device uses the to-be-run brush command obtained in step S201 to obtain step S202 in the brush mode To be processed.
  • the terminal device if the result of the judgment in step S205 is that the partition to be operated obtained in step S202 is not the partition obtained by step S201 that supports the operation of the flashing command to be executed, the terminal device does not execute the pending Run the flashing command and can prompt the user that the pending flashing command cannot be used to process the partition to be operated.
  • the technical solution provided by the second embodiment of the present application can not only define the various brush commands that can be used by the user, but also further limit the operation partition of each supported brush command, so the technology provided by the second embodiment of the present application Compared with the first embodiment, the solution has greater flexibility.
  • the second embodiment of the present application is the same as the first embodiment, which can avoid the problem of damage to the system of the terminal device due to the arbitrary use of the brush command when the user is brushing the machine, and can guarantee the system to a certain extent when the user brushes Security and stability.
  • the brush control method is applied to a terminal device. Please refer to FIG. 5.
  • the brush control method provided in Embodiment 3 of the present application includes:
  • step S301 the authority information of the terminal device is obtained, the authority information is used to indicate the operation of the flashing command supported by the terminal device in the flashing mode, and is also used to indicate the operation supported by the flashing command supported by the terminal device Is also used to indicate whether the terminal device is allowed to start the flash mode;
  • the brush control method provided in Embodiment 3 of the present application is still applied to a terminal device, and the authority information described in step S301 may be a binary digit string composed of two or more binary digits, and so on. As shown in FIG. 6, the permission information in step S301 may be 1111010011001010, that is, a 16-bit binary digit string.
  • the fifteenth bit of the permission information is the “brush mode permission bit”, and the size of the bit can be used to determine whether the terminal device is allowed to start the flash mode.
  • the permission information may include multiple bits of "brush mode permission bits", for example, including two bits of "brush mode permission bits", respectively used to indicate whether the terminal device is allowed to start fastboot mode and recovery mode .
  • the “brush mode permission bit” when the “brush mode permission bit” is 1, it can indicate that the corresponding brush mode is enabled, and when it is 0, it can indicate that the corresponding brush mode is disabled.
  • the flashing command corresponding to the 8th bit of the authority information is flashall
  • the flashing command corresponding to the 9th bit is devices
  • the flashing command corresponding to the 10th bit is boot
  • the flashing command corresponding to the 11th bit is getvar
  • the flash command corresponding to 12 bits is reboot
  • the flash command corresponding to bit 13 is erase
  • the flash command corresponding to bit 14 is flash, which is the same as the first embodiment.
  • bits 4 to 7 of the authority information correspond to the operation partition of the flash command
  • bits 0 to 3 correspond to the operation partition of the erase command.
  • the size of the binary number can be used to indicate the partition supported by the flash command.
  • the size of the binary number can be used. To indicate the partitions supported by the erase command.
  • the permission information is 1111010011001010, which can indicate that the terminal device is allowed to start the flashing mode, and the flashing commands supported by the terminal device in the flashing mode are flash, erase, reboot, and boot, and operations supported by the flash command
  • the partitions are boot partition and system partition, and the partitions supported by the erase command are boot partition and recovery partition.
  • step S302 when it is detected that the user starts the flashing mode of the terminal device, based on the permission information, it is determined whether the permission information indicates that the terminal device is allowed to start the flashing mode;
  • the terminal device when it is detected that the user wants to enter a certain flash mode of the terminal device, for example, for a terminal device of the Android system, when the user is turned off, simultaneously hold down the "volume-" and When the "power" button is pressed, it means that you want to enter fastboot mode.
  • the terminal device can obtain the permission information of the terminal device, and determine whether to allow the terminal device to start the fastboot mode according to the permission information.
  • step S303 if the permission information indicates that the terminal device is allowed to start the flashing mode, the flashing mode is started, and the pending flashing command input by the user in the flashing mode of the terminal device is received;
  • step S303 is executed in the same manner as step S201 in the second embodiment. For details, please refer to the description of the second embodiment, which will not be repeated here.
  • step S304 receiving the to-be-operated partition of the to-be-run brushing command input by the user in the to-braking mode
  • step S305 based on the authority information, it is determined whether the flashing command to be executed is a flashing command supported by the terminal device in the flashing mode;
  • step S306 if the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above-mentioned flashing mode, it is determined whether the partition to be operated is a partition supported by the above-mentioned flashing command according to the authority information;
  • step S307 if the to-be-operated partition is a partition supported by the to-be-run brush command to operate, the to-be-run brush command is used to process the to-be-operated partition;
  • the flashing machine control method provided in Embodiment 3 of the present application may further include: if the permission information obtained in step S301 indicates that the terminal device is not allowed to start the flashing mode, the flashing mode is not started, and the user is prompted Enter the flash mode.
  • the method for obtaining the authority information described in Embodiment 3 of the present application can be specifically referred to the description of Embodiment 1, and can be obtained according to user information input by a user or identification information of a terminal device.
  • the terminal device pre-stores a preset correspondence table in which a correspondence relationship between different identification information and each authority information is recorded, in which each If the information corresponds to a piece of authority information, you can search for the identification information of the terminal device in the correspondence table. If the identification information of the terminal device is found, the corresponding information of the identification information of the terminal device recorded in the correspondence table The authority information is determined to be the authority information of the terminal device.
  • the authority information of the terminal device may be set as the preset authority information, where, in this application, the preset permission information is used to indicate that the terminal device does not support running any flashing commands in the flashing mode, and / or is used to indicate that the terminal device is not allowed to start the flashing mode.
  • the technical solution provided in the third embodiment of the present application is based on the second embodiment, and a new step for judging whether to allow the user to enter the brush mode is added.
  • a new step for judging whether to allow the user to enter the brush mode is added.
  • the user's attempts to pass special means or systems can be reduced to some extent The probability that the loophole enters the flashing mode. Therefore, compared with the second embodiment, the security and stability of the system can be further improved.
  • Embodiment 4 of the present application provides a brush control device, which is applied to a terminal device.
  • the brush control device 400 includes:
  • the flashing command receiving module 401 is used to receive the flashing command to be run which is input by the user in the flashing mode of the above terminal device;
  • the authority information acquiring module 402 is used to acquire authority information of the terminal device, and the authority information is used to indicate a brush command that the terminal device supports to run in the brush mode;
  • the flashing command judgment module 403 is used to determine whether the flashing command to be executed is a flashing command supported by the terminal device in the flashing mode according to the authority information;
  • the flashing command execution module 404 is configured to execute the flashing command to be executed if the flashing command to be run is a flashing command supported by the terminal device in the flashing mode.
  • the above permission information is also used to indicate a partition supported by the above-mentioned terminal device to support the operation of the flashing command;
  • the above brush control device also includes:
  • the operation partition receiving module is used to receive the operation-to-be-operated partition to be operated by the user in the above-mentioned flashing mode;
  • the above brush command execution module 404 includes:
  • the operation partition judging unit is used to determine whether the partition to be operated is a partition supported by the above-mentioned flashing command according to the authority information if the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the flashing mode. ;
  • the flashing command execution unit is used to process the partition to be operated using the flashing command to be operated if the partition to be operated is a partition supported by the flashing command to be run.
  • the permission information is also used to indicate whether the terminal device is allowed to start the flashing mode
  • the above-mentioned brush control device 400 further includes:
  • the flashing mode judgment module is used to determine whether the permission information indicates that the terminal device is allowed to start the flashing mode according to the permission information when it is detected that the user starts the flashing mode of the terminal device;
  • the above brush command receiving module 401 is specifically used to:
  • the flashing mode is activated, and a user-to-be-operated flashing command input by the user in the flashing mode of the terminal device is received.
  • the aforementioned brush control device 400 further includes:
  • the module for prohibiting the flashing mode is used for not starting the flashing mode if the authority information indicates that the terminal device is not allowed to start the flashing mode, and prompting the user that the flashing mode cannot be entered.
  • the aforementioned brush control device 400 further includes:
  • the prohibition of the flashing command module is used for not executing the flashing command to be executed if the flashing command to be run is not a flashing command supported by the terminal device in the flashing mode, and prompting the user that the flashing command cannot be executed.
  • the above permission information acquisition module 402 includes:
  • a user information obtaining unit configured to obtain the user information input by the user
  • the first authority determining unit is configured to determine authority information of the terminal device according to the user information.
  • the above permission information acquisition module 402 includes:
  • An identification information acquiring unit configured to acquire the identification information of the above terminal device
  • the second authority determining unit is configured to determine authority information of the terminal device according to the identification information.
  • a preset correspondence table is stored in the terminal device, and the correspondence relationship between each different identification information and each authority information is recorded in the correspondence relationship table, wherein each identification information corresponds to one authority information;
  • the above-mentioned second authority determination unit includes:
  • the search and judgment subunit is used to determine whether the identification information of the terminal device is found in the corresponding relationship table
  • the first authority determination subunit is configured to determine the authority information corresponding to the identification information of the terminal device recorded in the correspondence table as the authority information of the terminal device if the identification information of the terminal device is found.
  • the above second authority determination unit further includes:
  • the second authority determination subunit is configured to set the authority information of the terminal device as preset authority information if the identification information of the terminal device is not found, wherein the preset authority information is used to indicate that the terminal device is in the above
  • the flashing mode does not support any flashing commands, and / or is used to indicate that the above terminal device is not allowed to start the above flashing mode.
  • FIG. 8 is a schematic diagram of a terminal device provided in Embodiment 5 of the present application.
  • the terminal device 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50.
  • the processor 50 executes the computer program 52, the steps in the above method embodiments are implemented, for example, steps 101 to 104 shown in FIG. 1.
  • the processor 50 executes the computer program 52
  • the functions of the modules / units in the foregoing device embodiments are realized, for example, the functions of the modules 401 to 404 shown in FIG. 7.
  • the computer program 52 may be divided into one or more modules / units.
  • the one or more modules / units are stored in the memory 51 and executed by the processor 50 to complete the application.
  • the one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the terminal device 5.
  • the above-mentioned computer program 52 may be divided into a brush command receiving module, a permission information acquisition module, a brush command judgment module, and a brush command execution module.
  • the specific functions of each module are as follows:
  • the authority information of the terminal device is used to instruct the terminal device to support the operation of the flashing command in the flashing mode
  • the authority information determine whether the above-mentioned flashing command to be executed is a flashing command supported by the terminal device in the above-mentioned flashing mode;
  • the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above flashing mode, the above-mentioned flashing command to be executed is executed.
  • the above terminal device may include, but is not limited to, the processor 50 and the memory 51.
  • FIG. 8 is only an example of the terminal device 5 and does not constitute a limitation on the terminal device 5, and may include more or fewer components than the illustration, or a combination of certain components or different components.
  • the above terminal device may further include an input and output device, a network access device, a bus, and the like.
  • the so-called processor 50 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the above-mentioned memory 51 may be an internal storage unit of the above-mentioned terminal device 5, such as a hard disk or a memory of the terminal device 5.
  • the memory 51 may also be an external storage device of the terminal device 5, for example, a plug-in hard disk equipped on the terminal device 5, a smart memory card (Smart) Media (SMC), a secure digital (SD) card, a flash memory Card (Flash), etc.
  • the memory 51 may include both the internal storage unit of the terminal device 5 and the external storage device.
  • the memory 51 is used to store the computer program and other programs and data required by the terminal device.
  • the above-mentioned memory 51 may also be used to temporarily store data that has been output or will be output.
  • each functional unit and module is used as an example for illustration.
  • the above-mentioned functions may be allocated by different functional units
  • Module completion means that the internal structure of the above device is divided into different functional units or modules to complete all or part of the functions described above.
  • the functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may use hardware It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application.
  • the disclosed device / terminal device and method may be implemented in other ways.
  • the device / terminal device embodiments described above are only schematic.
  • the above-mentioned division of modules or units is only a division of logical functions.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the above integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program.
  • the above computer program can be stored in a computer-readable storage medium When executed by the processor, the steps of the foregoing method embodiments may be implemented.
  • the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code, executable file or some intermediate form.
  • the aforementioned computer readable medium may include: any entity or device capable of carrying the aforementioned computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random Access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media, etc.
  • ROM read-only memory
  • RAM random Access memory
  • electrical carrier signals telecommunications signals
  • software distribution media etc.
  • the content contained in the above computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in jurisdictions.
  • computer-readable media are not Including electrical carrier signals and telecommunications signals.

Abstract

A flashing control method, a flashing control apparatus and a terminal device. The method comprises: receiving a flashing command to be run which is input by a user in a flashing mode of a terminal device (S101); acquiring right information of the terminal device, wherein the right information is used for indicating a flashing command, the running of which is supported by the terminal device in the flashing mode (S102); according to the right information, determining whether the flashing command to be run is the flashing command, the running of which is supported by the terminal device in the flashing mode (S103); and if the flashing command to be run is the flashing command, the running of which is supported by the terminal device in the flashing mode, executing the flashing command to be run (S104). By means of the method, the security and stability of a system can be ensured to a certain extent when a user performs flashing.

Description

一种刷机控制方法、刷机控制装置及终端设备Brush machine control method, brush machine control device and terminal equipment 技术领域Technical field
本申请属于电子技术领域,尤其涉及一种刷机控制方法、刷机控制装置、终端设备及计算机可读存储介质。The present application belongs to the field of electronic technology, and particularly relates to a brush control method, a brush control device, a terminal device, and a computer-readable storage medium.
背景技术Background technique
刷机,是更改终端设备中原本存在的一些语言、图片、铃声、软件或者操作系统的方法,刷机可以使终端设备的功能更加完善,可以使用户对终端设备进行个性化设置。因此,目前许多用户都会对其终端设备进行刷机。Flashing is a method to change some languages, pictures, ringtones, software, or operating systems that originally exist in the terminal device. Flashing can improve the functions of the terminal device and allow users to personalize the terminal device settings. Therefore, at present, many users will flash their terminal devices.
然而,很多情况下,由于用户的技术水平不高,会导致在刷机过程中,破坏终端设备的系统文件,使得刷机后的终端设备的安全性以及稳定性降低。However, in many cases, because the user's technical level is not high, it will cause the system files of the terminal device to be destroyed during the flashing process, which reduces the security and stability of the terminal device after the flashing.
发明内容Summary of the invention
本申请提供了一种刷机控制方法、刷机控制装置、终端设备及计算机可读存储介质,可以在用户进行刷机时,在一定程度上保证系统的安全性以及稳定性。The present application provides a brushing machine control method, a brushing machine control device, a terminal device, and a computer-readable storage medium, which can ensure the safety and stability of the system to a certain extent when the user performs the brushing machine.
本申请第一方面提供了一种刷机控制方法,应用于终端设备,包括:The first aspect of the present application provides a brush control method, which is applied to a terminal device and includes:
接收用户在上述终端设备的刷机模式下输入的待运行刷机命令;Receive a command to be executed by the user in the flash mode of the above terminal device;
获取上述终端设备的权限信息,上述权限信息用于指示上述终端设备在上述刷机模式下所支持运行的刷机命令;Obtain the authority information of the terminal device, and the authority information is used to instruct the terminal device to support the operation of the flashing command in the flashing mode;
根据上述权限信息,判断上述待运行刷机命令是否为上述终端设备在上述刷机模式下支持运行的刷机命令;According to the authority information, determine whether the above-mentioned flashing command to be executed is a flashing command supported by the terminal device in the above-mentioned flashing mode;
若上述待运行刷机命令为上述终端设备在上述刷机模式下支持运行的刷机命令,则执行上述待运行刷机命令。If the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above flashing mode, the above-mentioned flashing command to be executed is executed.
本申请第二方面提供了一种终端设备,包括存储器、处理器以及存储在上述存储器中并可在上述处理器上运行的计算机程序,上述处理器执行上述计算机程序时实现如下步骤:A second aspect of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
接收用户在上述终端设备的刷机模式下输入的待运行刷机命令;Receive a command to be executed by the user in the flash mode of the above terminal device;
获取上述终端设备的权限信息,上述权限信息用于指示上述终端设备在上述刷机模式下所支持运行的刷机命令;Obtain the authority information of the terminal device, and the authority information is used to instruct the terminal device to support the operation of the flashing command in the flashing mode;
根据上述权限信息,判断上述待运行刷机命令是否为上述终端设备在上述刷机模式下支持运行的刷机命令;According to the authority information, determine whether the above-mentioned flashing command to be executed is a flashing command supported by the terminal device in the above-mentioned flashing mode;
若上述待运行刷机命令为上述终端设备在上述刷机模式下支持运行的刷机命令,则执行上述待运行刷机命令。If the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above flashing mode, the above-mentioned flashing command to be executed is executed.
本申请第三方面提供了一种刷机控制装置,应用于终端设备,所述刷机控制装置包括:A third aspect of the present application provides a brush machine control device, which is applied to terminal equipment. The brush machine control device includes:
刷机命令接收模块,用于接收用户在上述终端设备的刷机模式下输入的待运行刷机命令;The flashing command receiving module is used to receive the flashing command to be run which is input by the user in the flashing mode of the above terminal device;
权限信息获取模块,用于获取上述终端设备的权限信息,上述权限信息用于指示上述终端设备在上述刷机模式下所支持运行的刷机命令;A permission information obtaining module, configured to obtain the permission information of the terminal device, and the permission information is used to instruct the terminal device to support a flash command in the flash mode;
刷机命令判断模块,用于根据上述权限信息,判断上述待运行刷机命令是否为上述终端设备在上述刷机模式下支持运行的刷机命令;The flashing command judging module is used to determine whether the flashing command to be executed is a flashing command supported by the terminal device in the flashing mode according to the authority information;
刷机命令执行模块,用于若上述待运行刷机命令为上述终端设备在上述刷机模式下支持运行的刷机命令,则执行上述待运行刷机命令。The flashing command execution module is configured to execute the flashing command to be executed if the flashing command to be run is a flashing command supported by the terminal device in the flashing mode.
本申请第四方面提供了一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序被处理器执行时实现如上述第一方面方法的步骤。A fourth aspect of the present application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect described above are implemented.
本申请第五方面提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序被一个或多个处理器执行时实现如上述第一方面方法的步骤。A fifth aspect of the present application provides a computer program product. The computer program product includes a computer program. When the computer program is executed by one or more processors, the steps of the method of the first aspect described above are implemented.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only for the application In some embodiments, for those of ordinary skill in the art, without paying creative labor, other drawings may be obtained based on these drawings.
图1是本申请实施例一提供的一种刷机控制方法的实现流程示意图;1 is a schematic diagram of an implementation process of a brush control method provided in Embodiment 1 of the present application;
图2是本申请实施例一提供的一种权限信息的表示方法示意图;2 is a schematic diagram of a method for representing permission information provided in Embodiment 1 of the present application;
图3是本申请实施例二提供的另一种刷机控制方法的实现流程示意图;3 is a schematic diagram of an implementation process of another brush control method provided in Embodiment 2 of the present application;
图4是本申请实施例二提供的另一种权限信息的表示方法示意图;4 is a schematic diagram of another method for representing permission information provided in Embodiment 2 of the present application;
图5是本申请实施例三提供的再一种刷机控制方法的实现流程示意图;5 is a schematic diagram of an implementation process of another brush control method provided in Embodiment 3 of the present application;
图6是本申请实施例三提供的再一种权限信息的表示方法示意图;6 is a schematic diagram of another method for representing permission information provided in Embodiment 3 of the present application;
图7是本申请实施例四提供的一种刷机控制装置的结构示意图;7 is a schematic structural diagram of a brush control device provided in Embodiment 4 of the present application;
图8是本申请实施例五提供的终端设备的结构示意图。8 is a schematic structural diagram of a terminal device according to Embodiment 5 of the present application.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structure and technology are proposed to thoroughly understand the embodiments of the present application. However, those skilled in the art should understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details hindering the description of the present application.
本申请实施例提供的刷机控制方法适用于终端设备,示例性地,该终端设备包括但不限于:智能手机、平板电脑、笔记本、桌上型计算机、智能穿戴设备、云端服务器等。The brush control method provided in the embodiment of the present application is applicable to a terminal device. Exemplarily, the terminal device includes but is not limited to: a smart phone, a tablet computer, a notebook, a desktop computer, a smart wearable device, a cloud server, and the like.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、 操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements, and / or components, but does not exclude one or more other features , Wholes, steps, operations, elements, components and / or their existence or addition.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of this application is for the purpose of describing particular embodiments only and is not intended to limit this application. As used in the specification of the present application and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and / or" used in the specification of the present application and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes these combinations .
在本说明书和所附权利要求书中,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。In this specification and the appended claims, the term "if" may be interpreted as "when" or "once" or "in response to determination" or "in response to detection" depending on the context. Similarly, the phrase "if determined" or "if [described condition or event] is detected" can be interpreted in the context to mean "once determined" or "in response to a determination" or "once detected [described condition or event ] "Or" In response to detection of [the described condition or event] ".
另外,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
实施例1Example 1
下面对本申请实施例一提供的刷机控制方法进行描述,该刷机控制方法应用于终端设备,请参阅附图1,本申请实施例一提供的刷机控制方法包括:The following describes the brush control method provided in Embodiment 1 of the present application. The brush control method is applied to a terminal device. Please refer to FIG. 1. The brush control method provided in Embodiment 1 of the present application includes:
在步骤S101中,接收用户在上述终端设备的刷机模式下输入的待运行刷机命令;In step S101, receive a brushing command to be executed by the user in the brushing mode of the terminal device;
本申请实施例一提供的刷机控制方法应用于终端设备,在该步骤S101中,首先接收用户在该终端设备的刷机模式下输入的待运行刷机命令。The brushing machine control method provided in the first embodiment of the present application is applied to a terminal device. In this step S101, first, a user-to-be-run brushing machine command input in the brushing mode of the terminal device is received.
在本申请实施例中,若该终端设备的操作系统为Android系统,则该步骤S101所述的刷机模式可以为快启动fastboot模式,或者也可以为复原recovery模式等;若该终端设备的操作系统为IOS系统,则该步骤S101所述的刷机模式可以为DFU(Device Firmware Upgrade,设备固件升级)模式等。为了更清楚的描述本申请所述的技术方案,本申请后续以步骤S101所述的刷机模式为fastboot模式为例来说明本申请的技术方案,但请本领域技术人员注意,本申请后续描述的技术方案并不局限于fastboot模式。In the embodiment of the present application, if the operating system of the terminal device is an Android system, the flash mode described in step S101 may be a fast boot mode or a recovery mode, etc .; if the operating system of the terminal device For the IOS system, the flash mode described in step S101 may be a DFU (Device Firmware Upgrade) mode, etc. In order to more clearly describe the technical solutions described in this application, the subsequent application of this application uses the flashing mode described in step S101 as the fastboot mode to illustrate the technical solutions of this application. However, those skilled in the art should note that the subsequent descriptions of this application The technical solution is not limited to fastboot mode.
在本申请实施例中,上述待运行刷机命令的输入方式可以为:用户在操作界面输入上述待运行刷机命令对应的代码,比如,用户在操作界面输入“reboot”(reboot命令为fastboot模式下常用的刷机命令),以指示该终端设备在该刷机模式下重启;或者,上述待运行刷机命令的输入方式也可以为:用户点击操作界面中上述待运行刷机命令对应的控件,比如,用户点击操作界面中的“重启”控件,以指示该终端设备在该刷机模式下重启。本申请实施例对上述待运行刷机命令的输入方式不作限定。In the embodiment of the present application, the input method of the above-mentioned flashing command to be run may be: the user enters the code corresponding to the above-mentioned flashing command to be run on the operation interface, for example, the user enters "reboot" on the operation interface (reboot command is commonly used in fastboot mode Flashing command) to instruct the terminal device to restart in the flashing mode; or, the input method of the above-mentioned flashing command to be run can also be: the user clicks the control corresponding to the above-mentioned flashing command to be run in the operation interface, for example, the user clicks to operate "Restart" control in the interface to instruct the terminal device to restart in the flash mode. The embodiment of the present application does not limit the input method of the above-mentioned flashing command to be executed.
在步骤S102中,获取上述终端设备的权限信息,该权限信息用于指示该终端设备在上述刷机模式下所支持运行的刷机命令;In step S102, the authority information of the terminal device is obtained, and the authority information is used to instruct the terminal device to support the operation of the flashing command in the flashing mode;
在本申请实施例中,上述权限信息可以为一位二进制数字,或者也可以为由两位以上的二进制数字组成的二进制数字串等等。如图2所示,上述权限信息可以为1110100,即7位二进制数字串。In the embodiment of the present application, the above permission information may be a single binary number, or may also be a binary digital string composed of more than two binary numbers. As shown in FIG. 2, the above authority information may be 1110100, that is, a 7-bit binary digit string.
若上述权限信息为一位二进制数字,则可以用该权限信息的数字大小来表示该终端设备所支持运行的刷机命令。比如,若该权限信息为0,则表示该终端设备支持运行的刷机命令有flash、flashall、getvar、boot以及erase(flash、flashall、getvar、boot以及erase均为fastoboot模式下常用的刷机命令),若该权限信息为1,则表示该终端设备支持运行的刷机命令仅为getvar。If the above permission information is a binary number, the digital size of the permission information can be used to represent the flashing command supported by the terminal device. For example, if the permission information is 0, it means that the flash device commands supported by the terminal device are flash, flashhall, getvar, boot, and erase (flash, flashall, getvar, boot, and erase are all commonly used flash commands in fastoboot mode), If the permission information is 1, it means that the terminal device supports running the flash command only for getvar.
若上述步骤S102所述的权限信息为由两位以上的二进制数字组成的二进制数字串,则可以事先定义每一位二进制数字所对应的刷机命令,然后用每一位二进制数字的大小来指示该终端设备在该刷机模式下是否支持运行对应的刷机命令,比如,若二进制数字为1,则表示支持运行对应的刷机命令,若为0,则表示不支持运行对应的刷机命令。如图2所示,权限信息的第0位对应的刷机命令为flashall,第1位对应的刷机命令为devices,第2位对应的刷机命令为boot,第3位对应的刷机命令为getvar,第4位对应的刷机命令为reboot,第5位对应的刷机命令为erase,第6位对应的刷机命令为flash,若当某位二进制数字为1,表示支持运行对应的刷机命令,若为0,表示不支持运行对应的刷机命令时,则图2所示的权限信息1110100表示:该终端设备在该刷机模式下支持运行的刷机命令为flash、erase、reboot以及boot。If the authority information described in the above step S102 is a binary digit string composed of two or more binary digits, then the brush command corresponding to each binary digit can be defined in advance, and then the size of each binary digit can be used to indicate the Whether the terminal device supports the corresponding flashing command in the flashing mode, for example, if the binary number is 1, it indicates that the corresponding flashing command is supported, and if it is 0, it indicates that the corresponding flashing command is not supported. As shown in FIG. 2, the flashing command corresponding to the 0th bit of the authority information is flashall, the flashing command corresponding to the 1st bit is devices, the flashing command corresponding to the 2nd bit is boot, and the flashing command corresponding to the 3rd bit is getvar, The flashing command corresponding to 4 digits is reboot, the flashing command corresponding to bit 5 is erase, and the flashing command corresponding to bit 6 is flash. If a binary number is 1, it means that the corresponding flashing command is supported. If it is 0, When the corresponding flashing command is not supported, the permission information 1110100 shown in FIG. 2 indicates that the flashing commands supported by the terminal device in the flashing mode are flash, erase, reboot, and boot.
此外,在本申请实施例中,该步骤S102所述的权限信息可以是通过用户输入的用户信息获取的,比如,根据用户输入的身份证号码、指纹、面部图像、年龄、工作单位、学历、毕业院校和/或工作职位等信息,来确定该终端设备的权限信息;或者,该步骤S102所述的权限信息也可以是通过上述终端设备的标识信息获取的,比如,根据该终端设备的CPU序列号、IMEI(International Mobile Equipment Identity,国际移动设备识别)码、MAC(Media Access Control,媒体访问控制)地址或者SN(Serial Number,序列号)等信息,来确定该终端设备的权限信息。In addition, in the embodiment of the present application, the permission information described in step S102 may be obtained through user information input by the user, for example, according to the ID number, fingerprint, facial image, age, work unit, academic background, Information such as graduation colleges and / or job positions to determine the authority information of the terminal device; or, the authority information described in step S102 may also be obtained through the identification information of the terminal device, for example, according to the terminal device ’s CPU serial number, IMEI (International Mobile Equipment Identity) code, MAC (Media Access Control) address or SN (Serial Number, serial number) and other information to determine the authority information of the terminal device.
通过用户输入的用户信息,确定终端设备的权限信息的方法可以为:预先训练一神经网络模型,其中,该神经网络模型的输入可以为学历以及工作职位,输出为权限信息,该神经网络模型可以通过用户输入的学历以及工作职位,确定对应的权限信息。例如,当用户输入的学历为研究生,工作职位为软件工程师时,则可以认为该用户具备一定的刷机能力,可以将该终端设备的权限信息设置为指示终端设备支持运行的刷机命令较多的权限信息,比如如图2所示,可以将该终端设备的权限信息设置为全1状态,表示该终端设备在该刷机模式下,可以支持运行的刷机命令有:flash、erase、reboot、getvar、boot、devices以及flashall。The method for determining the permission information of the terminal device through the user information input by the user can be: pre-training a neural network model, where the input of the neural network model can be academic qualifications and job positions, and the output is permission information, and the neural network model can The corresponding authority information is determined through the education degree and job position input by the user. For example, when the degree entered by the user is a graduate student and the job position is a software engineer, the user can be considered to have a certain ability to flash, and the authority information of the terminal device can be set to indicate that the terminal device supports the operation of more flash commands Information, for example, as shown in FIG. 2, the permission information of the terminal device can be set to all 1, indicating that the terminal device can support running flash commands in the flash mode: flash, erase, reboot, getvar, boot , Devices and flashall.
另外,通过用户输入的用户信息,确定对应的权限信息的方式也可以为:该终端设备(或者在预设的第一服务器)中预先保存有各个身份证号码对应的权限信息,比如,身份证号码为:40040019831010XXXX对应的权限信息为1111111,身份证号码为41142219900202YYYY对应的权限信 息为1001000……,则可以通过用户输入的身份证号码来确定该终端设备的权限信息。此外,如果在该终端设备(或者上述第一服务器)中查找不到用户输入的身份证号码,则可以将该终端设备的权限信息设置为指示终端设备支持运行的刷机命令较少的权限信息,比如如图2所示,可以将该终端设备的权限信息设置为0010000状态,表示该终端设备在该刷机模式下,仅仅支持reboot命令;或者,如果在该终端设备(或者上述第一服务器)中查找不到用户输入的身份证号码,则直接将该终端设备的权限信息设置为预设权限信息,其中,该预设权限信息用于指示该终端设备在该刷机模式下不支持运行任何刷机命令。In addition, the way to determine the corresponding authority information through the user information input by the user may also be: the terminal device (or the preset first server) pre-stores authority information corresponding to each ID number, such as an ID The number is: 40040019831010XXXX, the corresponding authority information is 1111111, and the ID number is 41142219900202YYYY, the corresponding authority information is 1001000 ..., then the authority information of the terminal device can be determined by the ID number entered by the user. In addition, if the ID number entered by the user cannot be found in the terminal device (or the above-mentioned first server), the authority information of the terminal device may be set to the authority information indicating that the terminal device supports running less flash commands, For example, as shown in FIG. 2, the permission information of the terminal device can be set to the state of 0010000, indicating that the terminal device only supports the reboot command in the flash mode; or, if it is in the terminal device (or the above-mentioned first server) If the ID number entered by the user cannot be found, the permission information of the terminal device is directly set as preset permission information, wherein the preset permission information is used to indicate that the terminal device does not support running any flash command in the flash mode .
在本申请实施例中,通过终端设备的标识信息,确定对应的权限信息可以为:该终端设备(或者在预设的第二服务器)中预先保存有预设的对应关系表,该对应关系表中记录有各个不同的标识信息与各个权限信息的对应关系,其中,每一个标识信息对应一个权限信息,比如,该对应关系表中记录有:CPU序列号0000000000000000对应的权限信息为1111111,CPU序列号0000000000001111对应的权限信息为0001111……,则可以在该对应关系表中,查找该终端设备的标识信息,若查找到该终端设备的标识信息,则将该对应关系表中记录的该终端设备的标识信息对应的权限信息确定为该终端设备的权限信息,此外,如果在该终端设备(或者上述第二服务器)中查找不到该终端设备的标识信息,则可以将该终端设备的权限信息设置为指示终端设备支持运行的刷机命令较少的权限信息,或者,直接将该终端设备的权限信息设置为预设权限信息,其中,该预设权限信息用于指示该终端设备在该刷机模式下不支持运行任何刷机命令。In the embodiment of the present application, determining the corresponding authority information through the identification information of the terminal device may be: the terminal device (or a preset second server) pre-stores a preset correspondence table, and the correspondence table Correspondence between different identification information and each authority information is recorded in the, where each identification information corresponds to one authority information, for example, the correspondence relationship table records: the authority information corresponding to the CPU serial number 0000000000000000 is 1111111, the CPU sequence The authorization information corresponding to the number 0000000000001111 is 0001111 ..., you can search for the identification information of the terminal device in the correspondence table, and if the identification information of the terminal device is found, the terminal device recorded in the correspondence table The permission information corresponding to the identification information of is determined to be the permission information of the terminal device. In addition, if the identification information of the terminal device cannot be found in the terminal device (or the above-mentioned second server), the permission information of the terminal device can be Set the permission information indicating that the terminal device supports running less flash commands, or directly set the permission information of the terminal device as preset permission information, where the preset permission information is used to indicate that the terminal device is in the flash mode It does not support running any flash commands.
在步骤S103中,根据上述权限信息,判断上述待运行刷机命令是否为上述终端设备在上述刷机模式下支持运行的刷机命令;In step S103, according to the authority information, it is determined whether the above-mentioned flashing command to be executed is a flashing command supported by the terminal device in the above-mentioned flashing mode;
在本申请实施例中,根据步骤S102获取的权限信息,来确定步骤S101中用户输入的待运行刷机命令是否为该终端设备在该刷机模式下支持运行的刷机命令。比如,假设步骤S102获取的权限信息指示该终端设备支持运行的刷机命令有flash命令以及reboot命令,步骤S101获取的待运行刷机命令为reboot命令,则在该步骤S103中,可以得到步骤S101获取的待运行刷机命令为该终端设备支持运行的刷机命令,若步骤S101获取的待运行刷机命令为devices命令,则该步骤S103可以得到步骤S101获取的待运行刷机命令为该终端设备不支持运行的刷机命令。In the embodiment of the present application, according to the authority information acquired in step S102, it is determined whether the flashing command to be run input by the user in step S101 is a flashing command supported by the terminal device in the flashing mode. For example, if the authority information obtained in step S102 indicates that the terminal device supports running flash commands including a flash command and a reboot command, and the flash command to be executed obtained in step S101 is a reboot command, then in step S103, the obtained from step S101 can be obtained The flashing command to be run is a flashing command supported by the terminal device. If the flashing command to be run obtained in step S101 is a devices command, then in step S103, the flashing command to be executed obtained in step S101 may be a flashing device that is not supported by the terminal command.
在步骤S104中,若上述待运行刷机命令为上述终端设备在上述刷机模式下支持运行的刷机命令,则执行上述待运行刷机命令;In step S104, if the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above-mentioned flashing mode, the above-mentioned flashing command to be executed is executed;
若步骤S103的判断结果为步骤S101获取的待运行刷机命令为该终端设备在该刷机模式下支持运行的刷机命令,则该终端设备在该刷机模式下运行该待运行刷机命令。此外,在本申请实施例中,若步骤S103的判断结果为步骤S101获取的待运行刷机命令不是该终端设备支持运行的刷机命令,则该终端设备在该刷机模式下不执行该待运行刷机命令,并可以提示用户该待运行刷机命令无法执行。If the judgment result of step S103 is that the to-be-operated flashing command acquired in step S101 is a flashing command supported by the terminal device in the flashing mode, the terminal device runs the pending flashing command in the flashing mode. In addition, in the embodiment of the present application, if the judgment result of step S103 is that the flashing command to be run obtained in step S101 is not a flashing command supported by the terminal device, the terminal device does not execute the flashing command to be run in the flashing mode , And can prompt the user that the pending brush command cannot be executed.
本申请实施例一所提供的技术方案中,终端设备需要根据其权限信息来判断是否执行用户输入的刷机命令,只有当其权限信息指示该终端设备能够执行用户输入的该刷机命令时,才会执行用户输入的该刷机命令,由此可见,本申请所提供的技术方案对用户能够使用的刷机命令进行了一定的限定,因此,能够避免用户在刷机时,由于刷机命令的任意使用而对终端设备的系统造成损害的问题,可以在用户进行刷机时,在一定程度上保证系统的安全性以及稳定性。In the technical solution provided in Embodiment 1 of the present application, the terminal device needs to determine whether to execute the user-swipe command based on its permission information, only when its permission information indicates that the terminal device can execute the user-swipe command By executing the flash command input by the user, it can be seen that the technical solution provided by the present application limits the flash commands that can be used by the user. Therefore, the user can avoid the user's use of the flash command when the device is flash The problem of damage caused by the system of the device can ensure the safety and stability of the system to a certain extent when the user brushes the machine.
此外,为保证终端设备系统的安全性以及稳定性,目前市场上对于许多特殊用途的终端设备(比如,用于国防通信的终端设备)是不允许用户进入刷机模式的,然而,对于这些禁止进入刷机模式的终端设备来说,依然有一些用户会利用特殊手段或者系统漏洞进入这些终端设备的刷机模式进行恶意刷机,通过在系统中嵌入窃取信息的应用程序,来盗取合法用户的信息。因此,对于安全性要求较高的终端设备,也可以利用本申请所提供的技术方案,通过设置终端设备的权限信息,使得即便用户进入刷机模式,也不能使用任何刷机命令,从而保证安全性要求较高的终端设备的系统安全性和稳定性。In addition, in order to ensure the security and stability of the terminal equipment system, many special-purpose terminal equipment (for example, terminal equipment for national defense communications) on the market is currently not allowed to enter the brush mode, however, for these prohibited access For terminal devices in flash mode, there are still some users who use special methods or system vulnerabilities to enter the flash mode of these terminal devices for malicious flashing. They embezzle legitimate users' information by embedding applications that steal information in the system. Therefore, for terminal devices with high security requirements, you can also use the technical solution provided by this application to set the permission information of the terminal device so that even if the user enters the brush mode, no brush command can be used, thereby ensuring security requirements High system security and stability of terminal equipment.
实施例2Example 2
下面对本申请实施例二提供的另一种刷机控制方法进行描述,该刷机控制方法应用于终端设备,请参阅附图3,本申请实施例二提供的刷机控制方法包括:The following describes another brushing machine control method provided in Embodiment 2 of the present application. The brushing machine control method is applied to a terminal device, please refer to FIG. 3, and the brushing machine control method provided in Embodiment 2 of the present application includes:
在步骤S201中,接收用户在上述终端设备的刷机模式下输入的待运行刷机命令;In step S201, receive a command to be executed by the user in the brush mode of the above terminal device to be run;
本申请实施例二提供的刷机控制方法依然应用于终端设备,该步骤S201与实施例一中的步骤S101执行方式完全相同,具体可参见实施例一的描述,此处不再赘述。The brush control method provided in the second embodiment of the present application is still applied to the terminal device. This step S201 is performed in the same manner as the step S101 in the first embodiment. For details, please refer to the description of the first embodiment, which will not be repeated here.
在步骤S202中,接收上述用户在上述刷机模式下输入的上述待运行刷机命令的待操作分区;In step S202, receiving the to-be-operated partition of the to-be-run brush command input by the user in the to-brush mode;
本申请实施例二与实施例一不同的是,除了接收用户输入的待运行刷机命令之外,还接收用户输入的该待运行刷机命令的待操作分区,比如对于fastboot模式下的flash命令,是需要指定该flash命令的操作分区的(比如,boot分区、system分区或者userdata分区等)。此外,请本领域技术人员注意,本申请实施例二所提供的技术方案中,并不要求用户对所有的待运行刷机命令都要输入对应的待操作分区。The second embodiment of the present application is different from the first embodiment in that, in addition to receiving the user-to-be-operated flashing command input, the user-to-be-operated partition of the to-be-operating flashing command is also received, such as the flash command in fastboot mode Need to specify the operation partition of the flash command (for example, boot partition, system partition or userdata partition, etc.). In addition, those skilled in the art should note that in the technical solution provided in Embodiment 2 of the present application, the user is not required to input the corresponding to-be-operated partition for all to-be-run brush commands.
本申请实施例一只能对用户可使用的各个刷机命令进行限定,本申请实施例二所提供的技术方案不仅能够对用户可以使用的各个刷机命令进行限定,还可以进一步对各个支持运行的刷机命令的操作分区进行限定,因此,本申请实施例二所提供的技术方案相比于实施例一,具有更强的灵活性。The first embodiment of the present application can only limit the various brush commands that can be used by the user. The technical solution provided by the second embodiment of the present application can not only limit the various brush commands that can be used by the user, but can also further define the various supported brush machines. The operation partition of the command is limited. Therefore, the technical solution provided by Embodiment 2 of the present application has stronger flexibility than Embodiment 1.
在步骤S203中,获取上述终端设备的权限信息,该权限信息用于指示该终端设备在上述刷机模式下所支持运行的刷机命令,还用于指示上述终端设备中支持运行的刷机命令所支持操作的分区;In step S203, the authority information of the terminal device is obtained, the authority information is used to indicate the operation of the flashing command supported by the terminal device in the flashing mode, and is also used to indicate the operation supported by the flashing command supported by the terminal device Partition
在本申请实施例二中,该步骤S203所述的权限信息可以为由两位以上的二进制数字组成的二进制数字串等等。如图4所示,该步骤S203所述的权限信息可以为111010011001010,即15位二进制数字串。In the second embodiment of the present application, the authority information in step S203 may be a binary digit string composed of two or more binary digits, and so on. As shown in FIG. 4, the permission information in step S203 may be 111010011001010, that is, a 15-bit binary digit string.
如图4所示,权限信息的第8位对应的刷机命令为flashall,第9位对应的刷机命令为devices,第10位对应的刷机命令为boot,第11位对应的刷机命令为getvar,第12位对应的刷机命令为reboot,第13位对应的刷机命令为erase,第14位对应的刷机命令为flash,与实施例一相同,对于某一权限信息的第8位到第14位,可以用二进制数字的大小来指示是否支持运行对应的刷机命令。As shown in FIG. 4, the flashing command corresponding to the 8th bit of the authority information is flashall, the flashing command corresponding to the 9th bit is devices, the flashing command corresponding to the 10th bit is boot, and the flashing command corresponding to the 11th bit is getvar, The flash command corresponding to 12 bits is reboot, the flash command corresponding to bit 13 is erase, and the flash command corresponding to bit 14 is flash, which is the same as the first embodiment. For the 8th to 14th bits of a certain authority information, you can Use the size of the binary number to indicate whether to support the corresponding flash command.
图4中,权限信息的第4位到第7位对应flash命令的操作分区,第0位到第3位对应erase命令的操作分区。对于某一权限信息的第4位到第7位,可以用二进制数字的大小来指示flash命令所支持操作的分区,对于某一权限信息的第0位到第3位,可以用二进制数字的大小来指示erase命令所支持操作的分区。In FIG. 4, bits 4 to 7 of the authority information correspond to the operation partition of the flash command, and bits 0 to 3 correspond to the operation partition of the erase command. For the 4th to 7th bits of a certain authority information, the size of the binary number can be used to indicate the partition supported by the flash command. For the 0th to 3rd bits of a certain authority information, the size of the binary number can be used. To indicate the partitions supported by the erase command.
如图4所示,权限信息为111010011001010,可以表示:该终端设备在该刷机模式下支持运行的刷机命令为flash、erase、reboot以及boot,flash命令所支持操作的分区有boot分区和system分区,erase命令所支持操作的分区有boot分区和recovery分区。As shown in FIG. 4, the permission information is 111010011001010, which can indicate that the flash commands supported by the terminal device in the flash mode are flash, erase, reboot, and boot. The partitions supported by the flash command include the boot partition and the system partition. The partitions supported by the erase command include the boot partition and the recovery partition.
在步骤S204中,根据上述权限信息,判断上述待运行刷机命令是否为上述终端设备在上述刷机模式下支持运行的刷机命令;In step S204, according to the authority information, it is determined whether the above-mentioned flashing command to be executed is a flashing command supported by the terminal device in the above-mentioned flashing mode;
该步骤S204与实施例一中的步骤S103执行方式完全相同,具体可参见实施例一的描述,此处不再赘述。This step S204 is performed in exactly the same manner as step S103 in the first embodiment. For details, please refer to the description of the first embodiment, which will not be repeated here.
在步骤S205中,若上述待运行刷机命令为上述终端设备在上述刷机模式下支持运行的刷机命令,则根据上述权限信息,判断上述待操作分区是否为上述待运行刷机命令支持操作的分区;In step S205, if the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above-mentioned flashing mode, it is determined whether the partition to be operated is a partition supported by the above-mentioned flashing command according to the authority information;
若步骤S204判断出步骤S201获取的待运行刷机命令是该终端设备在该刷机模式下支持运行的刷机命令,则进一步判断步骤S202获取的待操作分区是否为步骤S201获取的待运行刷机命令支持操作的分区。比如,假设步骤S203获取的权限信息为图4所示的111010011001010,表示该终端设备在该刷机模式下支持运行的刷机命令为flash、erase、reboot以及boot,flash命令所支持操作的分区有boot分区和system分区,erase命令所支持操作的分区有boot分区和recovery分区,步骤S201获取的待运行刷机命令为flash命令,步骤S202获取的待操作分区为boot分区,则在该步骤S205中,可以得出,步骤S202获取的待操作分区为步骤S201获取的待运行刷机命令支持操作的分区,若步骤S202获取的待操作分区为userdata分区,则在该步骤S205中,可以得出,步骤S202获取的待操作分区不是步骤S201获取的待运行刷机命令支持操作的分区。If step S204 determines that the flashing command to be executed obtained in step S201 is a flashing command supported by the terminal device in the flashing mode, it is further determined whether the partition to be operated obtained in step S202 is the flashing command support operation obtained in step S201 Partition. For example, suppose that the authority information obtained in step S203 is 111010011001010 shown in FIG. 4, which means that the flash commands supported by the terminal device in the flash mode are flash, erase, reboot, and boot. The partition supported by the flash command is the boot partition. And the system partition, the partitions supported by the erase command include the boot partition and the recovery partition. The flashing command obtained in step S201 is the flash command, and the partition obtained in step S202 is the boot partition. In step S205, you can obtain Out, the to-be-operated partition obtained in step S202 is the one to be operated supported by the flashing command obtained in step S201. If the to-be-operated partition obtained in step S202 is a userdata partition, in step S205, it can be obtained that the obtained in step S202 The to-be-operated partition is not a partition to be operated supported by the flashing command acquired in step S201.
在步骤S206中,若上述待操作分区是上述待运行刷机命令支持操作的分区,则利用上述待运行刷机命令对上述待操作分区进行处理;In step S206, if the to-be-operated partition is a partition supported by the to-be-run brush command to support operation, the to-be-run brush command is used to process the to-be-operated partition;
若步骤S205的判断结果为步骤S202获取的待操作分区为步骤S201获取的待运行刷机命令支持操作的分区,则该终端设备在该刷机模式下利用步骤S201获取的待运行刷机命令对步骤S202获取的待操作分区进行处理。此外,在本申请实施例中,若步骤S205的判断结果为步骤S202获取的待操作分区不 是步骤S201获取的待运行刷机命令支持操作的分区,则该终端设备在该刷机模式下不执行该待运行刷机命令,并可以提示用户无法利用该待运行刷机命令对该待操作分区进行处理。If the judgment result in step S205 is that the to-be-operated partition obtained in step S202 is a partition supported by the to-be-run brush command obtained in step S201, the terminal device uses the to-be-run brush command obtained in step S201 to obtain step S202 in the brush mode To be processed. In addition, in the embodiment of the present application, if the result of the judgment in step S205 is that the partition to be operated obtained in step S202 is not the partition obtained by step S201 that supports the operation of the flashing command to be executed, the terminal device does not execute the pending Run the flashing command and can prompt the user that the pending flashing command cannot be used to process the partition to be operated.
本申请实施例二所提供的技术方案不仅能够对用户可以使用的各个刷机命令进行限定,还可以进一步对各个支持运行的刷机命令的操作分区进行限定,因此,本申请实施例二所提供的技术方案相比于实施例一,具有更强的灵活性。此外,本申请实施例二与实施例一相同,能够避免用户在刷机时,由于刷机命令的任意使用而对终端设备的系统造成损害的问题,可以在用户进行刷机时,在一定程度上保证系统的安全性以及稳定性。The technical solution provided by the second embodiment of the present application can not only define the various brush commands that can be used by the user, but also further limit the operation partition of each supported brush command, so the technology provided by the second embodiment of the present application Compared with the first embodiment, the solution has greater flexibility. In addition, the second embodiment of the present application is the same as the first embodiment, which can avoid the problem of damage to the system of the terminal device due to the arbitrary use of the brush command when the user is brushing the machine, and can guarantee the system to a certain extent when the user brushes Security and stability.
实施例3Example 3
下面对本申请实施例三提供的再一种刷机控制方法进行描述,该刷机控制方法应用于终端设备,请参阅附图5,本申请实施例三提供的刷机控制方法包括:The following describes another brush control method provided in Embodiment 3 of the present application. The brush control method is applied to a terminal device. Please refer to FIG. 5. The brush control method provided in Embodiment 3 of the present application includes:
在步骤S301中,获取上述终端设备的权限信息,该权限信息用于指示该终端设备在上述刷机模式下所支持运行的刷机命令,还用于指示上述终端设备中支持运行的刷机命令所支持操作的分区,还用于指示是否允许上述终端设备启动上述刷机模式;In step S301, the authority information of the terminal device is obtained, the authority information is used to indicate the operation of the flashing command supported by the terminal device in the flashing mode, and is also used to indicate the operation supported by the flashing command supported by the terminal device Is also used to indicate whether the terminal device is allowed to start the flash mode;
本申请实施例三所提供的刷机控制方法依然应用于终端设备,该步骤S301所述的权限信息可以为由两位以上的二进制数字组成的二进制数字串等等。如图6所示,该步骤S301所述的权限信息可以为1111010011001010,即16位二进制数字串。The brush control method provided in Embodiment 3 of the present application is still applied to a terminal device, and the authority information described in step S301 may be a binary digit string composed of two or more binary digits, and so on. As shown in FIG. 6, the permission information in step S301 may be 1111010011001010, that is, a 16-bit binary digit string.
如图6所示,权限信息的第15位为“刷机模式允许位”,可通过该位的大小来确定是否允许该终端设备启动该刷机模式。此外,在本申请实施例中,该权限信息可以包括多位“刷机模式允许位”,比如,包括两位“刷机模式允许位”,分别用于指示是否允许该终端设备启动fastboot模式以及recovery模式。As shown in FIG. 6, the fifteenth bit of the permission information is the “brush mode permission bit”, and the size of the bit can be used to determine whether the terminal device is allowed to start the flash mode. In addition, in the embodiment of the present application, the permission information may include multiple bits of "brush mode permission bits", for example, including two bits of "brush mode permission bits", respectively used to indicate whether the terminal device is allowed to start fastboot mode and recovery mode .
在本申请实施例中,当“刷机模式允许位”为1时,可以表示允许启动对应的刷机模式,当为0时,可以表示禁止启动对应的刷机模式。In the embodiment of the present application, when the “brush mode permission bit” is 1, it can indicate that the corresponding brush mode is enabled, and when it is 0, it can indicate that the corresponding brush mode is disabled.
如图6所示,权限信息的第8位对应的刷机命令为flashall,第9位对应的刷机命令为devices,第10位对应的刷机命令为boot,第11位对应的刷机命令为getvar,第12位对应的刷机命令为reboot,第13位对应的刷机命令为erase,第14位对应的刷机命令为flash,与实施例一相同,对于某一权限信息的第8位到第14位,可以用二进制数字的大小来指示是否支持运行对应的刷机命令。As shown in FIG. 6, the flashing command corresponding to the 8th bit of the authority information is flashall, the flashing command corresponding to the 9th bit is devices, the flashing command corresponding to the 10th bit is boot, and the flashing command corresponding to the 11th bit is getvar, The flash command corresponding to 12 bits is reboot, the flash command corresponding to bit 13 is erase, and the flash command corresponding to bit 14 is flash, which is the same as the first embodiment. For the 8th to 14th bits of a certain authority information, you can Use the size of the binary number to indicate whether to support the corresponding flash command.
图6中,权限信息的第4位到第7位对应flash命令的操作分区,第0位到第3位对应erase命令的操作分区。对于某一权限信息的第4位到第7位,可以用二进制数字的大小来指示flash命令所支持操作的分区,对于某一权限信息的第0位到第3位,可以用二进制数字的大小来指示erase命令所支持操作的分区。In Figure 6, bits 4 to 7 of the authority information correspond to the operation partition of the flash command, and bits 0 to 3 correspond to the operation partition of the erase command. For the 4th to 7th bits of a certain authority information, the size of the binary number can be used to indicate the partition supported by the flash command. For the 0th to 3rd bits of a certain authority information, the size of the binary number can be used. To indicate the partitions supported by the erase command.
如图6所示,权限信息为1111010011001010,可以表示:允许该终端设备启动该刷机模式,该终端 设备在该刷机模式下支持运行的刷机命令为flash、erase、reboot以及boot,flash命令所支持操作的分区有boot分区和system分区,erase命令所支持操作的分区有boot分区和recovery分区。As shown in FIG. 6, the permission information is 1111010011001010, which can indicate that the terminal device is allowed to start the flashing mode, and the flashing commands supported by the terminal device in the flashing mode are flash, erase, reboot, and boot, and operations supported by the flash command The partitions are boot partition and system partition, and the partitions supported by the erase command are boot partition and recovery partition.
在步骤S302中,当检测到用户启动上述终端设备的刷机模式时,根据上述权限信息,判断上述权限信息是否指示允许上述终端设备启动上述刷机模式;In step S302, when it is detected that the user starts the flashing mode of the terminal device, based on the permission information, it is determined whether the permission information indicates that the terminal device is allowed to start the flashing mode;
在本申请实施例中,当检测到用户想要进入该终端设备的某一刷机模式时,比如,对于Android系统的终端设备来说,当用户在关机状态下,同时按住“音量-”和“电源”按键时,表示想要进入fastboot模式,此时,终端设备可以获取该终端设备的权限信息,并根据该权限信息判断是否允许该终端设备启动该fastboot模式。In the embodiment of the present application, when it is detected that the user wants to enter a certain flash mode of the terminal device, for example, for a terminal device of the Android system, when the user is turned off, simultaneously hold down the "volume-" and When the "power" button is pressed, it means that you want to enter fastboot mode. At this time, the terminal device can obtain the permission information of the terminal device, and determine whether to allow the terminal device to start the fastboot mode according to the permission information.
在步骤S303中,若上述权限信息指示允许上述终端设备启动上述刷机模式,则启动上述刷机模式,并接收上述用户在上述终端设备的刷机模式下输入的待运行刷机命令;In step S303, if the permission information indicates that the terminal device is allowed to start the flashing mode, the flashing mode is started, and the pending flashing command input by the user in the flashing mode of the terminal device is received;
若该权限信息指示允许该终端设备启动上述刷机模式,则启动该刷机模式,并获取用户输入的待运行刷机命令。该步骤S303与实施例二中的步骤S201执行方式相同,具体可参见实施例二的描述,此处不再赘述。If the permission information indicates that the terminal device is allowed to start the flashing mode, the flashing mode is started, and the user-entered flashing command is acquired. This step S303 is executed in the same manner as step S201 in the second embodiment. For details, please refer to the description of the second embodiment, which will not be repeated here.
在步骤S304中,接收上述用户在上述刷机模式下输入的上述待运行刷机命令的待操作分区;In step S304, receiving the to-be-operated partition of the to-be-run brushing command input by the user in the to-braking mode;
在步骤S305中,根据上述权限信息,判断上述待运行刷机命令是否为上述终端设备在上述刷机模式下支持运行的刷机命令;In step S305, based on the authority information, it is determined whether the flashing command to be executed is a flashing command supported by the terminal device in the flashing mode;
在步骤S306中,若上述待运行刷机命令为上述终端设备在上述刷机模式下支持运行的刷机命令,则根据上述权限信息,判断上述待操作分区是否为上述待运行刷机命令支持操作的分区;In step S306, if the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above-mentioned flashing mode, it is determined whether the partition to be operated is a partition supported by the above-mentioned flashing command according to the authority information;
在步骤S307中,若上述待操作分区是上述待运行刷机命令支持操作的分区,则利用上述待运行刷机命令对上述待操作分区进行处理;In step S307, if the to-be-operated partition is a partition supported by the to-be-run brush command to operate, the to-be-run brush command is used to process the to-be-operated partition;
上述步骤S304-S307分别与实施例二中的步骤S202、S204-S206执行方式完全相同,具体可参见实施例二的描述,此处不再赘述。The above steps S304-S307 are respectively performed in the same way as the steps S202 and S204-S206 in the second embodiment. For details, please refer to the description of the second embodiment, which will not be repeated here.
此外,在步骤S302之后,本申请实施例三提供的刷机控制方法还可以包括:若步骤S301获取的权限信息指示不允许该终端设备启动该刷机模式,则不启动该刷机模式,并提示用户无法进入该刷机模式。In addition, after step S302, the flashing machine control method provided in Embodiment 3 of the present application may further include: if the permission information obtained in step S301 indicates that the terminal device is not allowed to start the flashing mode, the flashing mode is not started, and the user is prompted Enter the flash mode.
此外,本申请实施例三所述的权限信息的获取方式,具体可参见实施例一的描述,可以根据用户输入的用户信息或者终端设备的标识信息获取。比如本申请实施例一已经记载过的,该终端设备中预先保存有预设的对应关系表,该对应关系表中记录有各个不同的标识信息与各个权限信息的对应关系,其中,每一个标识信息对应一个权限信息,则可以在该对应关系表中,查找该终端设备的标识信息,若查找到该终端设备的标识信息,则将该对应关系表中记录的该终端设备的标识信息对应的权限信息确定为该终端设备的权限信息,此外,如果在该终端设备中查找不到该终端设备的标识信息,则可以将该终端设备的权限信息设置为预设权限信息,其中,在本申请实施例三中,该预设权限信息用于指示该终端设备在 该刷机模式下不支持运行任何刷机命令,和/或,用于指示不允许该终端设备启动该刷机模式。In addition, the method for obtaining the authority information described in Embodiment 3 of the present application can be specifically referred to the description of Embodiment 1, and can be obtained according to user information input by a user or identification information of a terminal device. For example, as already described in Embodiment 1 of the present application, the terminal device pre-stores a preset correspondence table in which a correspondence relationship between different identification information and each authority information is recorded, in which each If the information corresponds to a piece of authority information, you can search for the identification information of the terminal device in the correspondence table. If the identification information of the terminal device is found, the corresponding information of the identification information of the terminal device recorded in the correspondence table The authority information is determined to be the authority information of the terminal device. In addition, if the identification information of the terminal device cannot be found in the terminal device, the authority information of the terminal device may be set as the preset authority information, where, in this application In the third embodiment, the preset permission information is used to indicate that the terminal device does not support running any flashing commands in the flashing mode, and / or is used to indicate that the terminal device is not allowed to start the flashing mode.
本申请实施例三所提供的技术方案是在实施例二的基础上,新增了判断是否允许用户进入刷机模式的步骤,通过增加该步骤,可以在一定程度上减少用户试图通过特殊手段或者系统漏洞进入刷机模式的几率,因此,相比于实施例二能够更进一步提高系统的安全性和稳定性。The technical solution provided in the third embodiment of the present application is based on the second embodiment, and a new step for judging whether to allow the user to enter the brush mode is added. By adding this step, the user's attempts to pass special means or systems can be reduced to some extent The probability that the loophole enters the flashing mode. Therefore, compared with the second embodiment, the security and stability of the system can be further improved.
应理解,上述各个方法实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above method embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any implementation process of the embodiments of the present application. limited.
实施例4Example 4
本申请实施例四提供了一种刷机控制装置,应用于终端设备,如图7所示,该刷机控制装置400包括:Embodiment 4 of the present application provides a brush control device, which is applied to a terminal device. As shown in FIG. 7, the brush control device 400 includes:
刷机命令接收模块401,用于接收用户在上述终端设备的刷机模式下输入的待运行刷机命令;The flashing command receiving module 401 is used to receive the flashing command to be run which is input by the user in the flashing mode of the above terminal device;
权限信息获取模块402,用于获取上述终端设备的权限信息,上述权限信息用于指示上述终端设备在上述刷机模式下所支持运行的刷机命令;The authority information acquiring module 402 is used to acquire authority information of the terminal device, and the authority information is used to indicate a brush command that the terminal device supports to run in the brush mode;
刷机命令判断模块403,用于根据上述权限信息,判断上述待运行刷机命令是否为上述终端设备在上述刷机模式下支持运行的刷机命令;The flashing command judgment module 403 is used to determine whether the flashing command to be executed is a flashing command supported by the terminal device in the flashing mode according to the authority information;
刷机命令执行模块404,用于若上述待运行刷机命令为上述终端设备在上述刷机模式下支持运行的刷机命令,则执行上述待运行刷机命令。The flashing command execution module 404 is configured to execute the flashing command to be executed if the flashing command to be run is a flashing command supported by the terminal device in the flashing mode.
可选地,上述权限信息还用于指示上述终端设备中支持运行的刷机命令所支持操作的分区;Optionally, the above permission information is also used to indicate a partition supported by the above-mentioned terminal device to support the operation of the flashing command;
相应地,上述刷机控制装置还包括:Correspondingly, the above brush control device also includes:
操作分区接收模块,用于接收用户在上述刷机模式下输入的上述待运行刷机命令的待操作分区;The operation partition receiving module is used to receive the operation-to-be-operated partition to be operated by the user in the above-mentioned flashing mode;
相应地,上述刷机命令执行模块404包括:Correspondingly, the above brush command execution module 404 includes:
操作分区判断单元,用于若上述待运行刷机命令为上述终端设备在上述刷机模式下支持运行的刷机命令,则根据上述权限信息,判断上述待操作分区是否为上述待运行刷机命令支持操作的分区;The operation partition judging unit is used to determine whether the partition to be operated is a partition supported by the above-mentioned flashing command according to the authority information if the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the flashing mode. ;
刷机命令执行单元,用于若上述待操作分区为上述待运行刷机命令支持操作的分区,则利用上述待运行刷机命令对上述待操作分区进行处理。The flashing command execution unit is used to process the partition to be operated using the flashing command to be operated if the partition to be operated is a partition supported by the flashing command to be run.
可选地,上述权限信息还用于指示是否允许上述终端设备启动上述刷机模式;Optionally, the permission information is also used to indicate whether the terminal device is allowed to start the flashing mode;
相应地,上述刷机控制装置400还包括:Correspondingly, the above-mentioned brush control device 400 further includes:
刷机模式判断模块,用于当检测到用户启动上述终端设备的刷机模式时,根据上述权限信息,判断上述权限信息是否指示允许上述终端设备启动上述刷机模式;The flashing mode judgment module is used to determine whether the permission information indicates that the terminal device is allowed to start the flashing mode according to the permission information when it is detected that the user starts the flashing mode of the terminal device;
相应地,上述刷机命令接收模块401具体用于:Correspondingly, the above brush command receiving module 401 is specifically used to:
若上述权限信息指示允许上述终端设备启动上述刷机模式,则启动上述刷机模式,并接收用户在上述终端设备的刷机模式下输入的待运行刷机命令。If the permission information indicates that the terminal device is allowed to start the flashing mode, the flashing mode is activated, and a user-to-be-operated flashing command input by the user in the flashing mode of the terminal device is received.
可选地,上述刷机控制装置400还包括:Optionally, the aforementioned brush control device 400 further includes:
禁止刷机模式模块,用于若上述权限信息指示不允许上述终端设备启动上述刷机模式,则不启动上述刷机模式,并提示用户无法进入上述刷机模式。The module for prohibiting the flashing mode is used for not starting the flashing mode if the authority information indicates that the terminal device is not allowed to start the flashing mode, and prompting the user that the flashing mode cannot be entered.
可选地,上述刷机控制装置400还包括:Optionally, the aforementioned brush control device 400 further includes:
禁止刷机命令模块,用于若上述待运行刷机命令不为上述终端设备在上述刷机模式下支持运行的刷机命令,则不执行上述待运行刷机命令,并提示用户上述待运行刷机命令无法执行。The prohibition of the flashing command module is used for not executing the flashing command to be executed if the flashing command to be run is not a flashing command supported by the terminal device in the flashing mode, and prompting the user that the flashing command cannot be executed.
可选地,上述权限信息获取模块402包括:Optionally, the above permission information acquisition module 402 includes:
用户信息获取单元,用于获取上述用户输入的用户信息;A user information obtaining unit, configured to obtain the user information input by the user;
第一权限确定单元,用于根据上述用户信息,确定上述终端设备的权限信息。The first authority determining unit is configured to determine authority information of the terminal device according to the user information.
可选地,上述权限信息获取模块402包括:Optionally, the above permission information acquisition module 402 includes:
标识信息获取单元,用于获取上述终端设备的标识信息;An identification information acquiring unit, configured to acquire the identification information of the above terminal device;
第二权限确定单元,用于根据上述标识信息,确定上述终端设备的权限信息。The second authority determining unit is configured to determine authority information of the terminal device according to the identification information.
可选地,上述终端设备中保存有预设的对应关系表,上述对应关系表中记录有各个不同的标识信息与各个权限信息的对应关系,其中,每一个标识信息对应一个权限信息;Optionally, a preset correspondence table is stored in the terminal device, and the correspondence relationship between each different identification information and each authority information is recorded in the correspondence relationship table, wherein each identification information corresponds to one authority information;
相应地,上述第二权限确定单元,包括:Correspondingly, the above-mentioned second authority determination unit includes:
查找判断子单元,用于判断在上述对应关系表中是否查找到上述终端设备的标识信息;The search and judgment subunit is used to determine whether the identification information of the terminal device is found in the corresponding relationship table;
第一权限确定子单元,用于若查找到上述终端设备的标识信息,则将上述对应关系表中记录的上述终端设备的标识信息对应的权限信息确定为上述终端设备的权限信息。The first authority determination subunit is configured to determine the authority information corresponding to the identification information of the terminal device recorded in the correspondence table as the authority information of the terminal device if the identification information of the terminal device is found.
可选地,上述第二权限确定单元,还包括:Optionally, the above second authority determination unit further includes:
第二权限确定子单元,用于若未查找到上述终端设备的标识信息,则将上述终端设备的权限信息设置为预设权限信息,其中,上述预设权限信息用于指示上述终端设备在上述刷机模式下不支持任何刷机命令,和/或,用于指示不允许上述终端设备启动上述刷机模式。The second authority determination subunit is configured to set the authority information of the terminal device as preset authority information if the identification information of the terminal device is not found, wherein the preset authority information is used to indicate that the terminal device is in the above The flashing mode does not support any flashing commands, and / or is used to indicate that the above terminal device is not allowed to start the above flashing mode.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above devices / units are based on the same concept as the method embodiments of the present application, and their specific functions and technical effects are brought about. For details, please refer to the method embodiments section. I will not repeat them here.
实施例5Example 5
图8是本申请实施例五提供的终端设备的示意图。如图8所示,该实施例的终端设备5包括:处理器50、存储器51以及存储在上述存储器51中并可在上述处理器50上运行的计算机程序52。上述处理器50执行上述计算机程序52时实现上述各个方法实施例中的步骤,例如图1所示的步骤101至104。或者,上述处理器50执行上述计算机程序52时实现上述各装置实施例中各模块/单元的功能,例如图7所示模块401至404的功能。FIG. 8 is a schematic diagram of a terminal device provided in Embodiment 5 of the present application. As shown in FIG. 8, the terminal device 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, the steps in the above method embodiments are implemented, for example, steps 101 to 104 shown in FIG. 1. Alternatively, when the processor 50 executes the computer program 52, the functions of the modules / units in the foregoing device embodiments are realized, for example, the functions of the modules 401 to 404 shown in FIG. 7.
示例性的,上述计算机程序52可以被分割成一个或多个模块/单元,上述一个或者多个模块/单元被存储在上述存储器51中,并由上述处理器50执行,以完成本申请。上述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述上述计算机程序52在上述终端设备5 中的执行过程。例如,上述计算机程序52可以被分割成刷机命令接收模块、权限信息获取模块、刷机命令判断模块以及刷机命令执行模块,各模块具体功能如下:Exemplarily, the computer program 52 may be divided into one or more modules / units. The one or more modules / units are stored in the memory 51 and executed by the processor 50 to complete the application. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the terminal device 5. For example, the above-mentioned computer program 52 may be divided into a brush command receiving module, a permission information acquisition module, a brush command judgment module, and a brush command execution module. The specific functions of each module are as follows:
接收用户在上述终端设备的刷机模式下输入的待运行刷机命令;Receive a command to be executed by the user in the flash mode of the above terminal device;
获取上述终端设备的权限信息,上述权限信息用于指示上述终端设备在上述刷机模式下所支持运行的刷机命令;Obtain the authority information of the terminal device, and the authority information is used to instruct the terminal device to support the operation of the flashing command in the flashing mode;
根据上述权限信息,判断上述待运行刷机命令是否为上述终端设备在上述刷机模式下支持运行的刷机命令;According to the authority information, determine whether the above-mentioned flashing command to be executed is a flashing command supported by the terminal device in the above-mentioned flashing mode;
若上述待运行刷机命令为上述终端设备在上述刷机模式下支持运行的刷机命令,则执行上述待运行刷机命令。If the above-mentioned flashing command to be run is a flashing command supported by the terminal device in the above flashing mode, the above-mentioned flashing command to be executed is executed.
上述终端设备可包括,但不仅限于,处理器50、存储器51。本领域技术人员可以理解,图8仅仅是终端设备5的示例,并不构成对终端设备5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如上述终端设备还可以包括输入输出设备、网络接入设备、总线等。The above terminal device may include, but is not limited to, the processor 50 and the memory 51. Those skilled in the art may understand that FIG. 8 is only an example of the terminal device 5 and does not constitute a limitation on the terminal device 5, and may include more or fewer components than the illustration, or a combination of certain components or different components. For example, the above terminal device may further include an input and output device, a network access device, a bus, and the like.
所称处理器50可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 50 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
上述存储器51可以是上述终端设备5的内部存储单元,例如终端设备5的硬盘或内存。上述存储器51也可以是上述终端设备5的外部存储设备,例如上述终端设备5上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,上述存储器51还可以既包括上述终端设备5的内部存储单元也包括外部存储设备。上述存储器51用于存储上述计算机程序以及上述终端设备所需的其它程序和数据。上述存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The above-mentioned memory 51 may be an internal storage unit of the above-mentioned terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, for example, a plug-in hard disk equipped on the terminal device 5, a smart memory card (Smart) Media (SMC), a secure digital (SD) card, a flash memory Card (Flash), etc. Further, the memory 51 may include both the internal storage unit of the terminal device 5 and the external storage device. The memory 51 is used to store the computer program and other programs and data required by the terminal device. The above-mentioned memory 51 may also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for convenience and conciseness of description, only the above-mentioned division of each functional unit and module is used as an example for illustration. In practical applications, the above-mentioned functions may be allocated by different functional units, Module completion means that the internal structure of the above device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit may use hardware It can also be implemented in the form of software functional units. In addition, the specific names of each functional unit and module are only for the purpose of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed or recorded in an embodiment, you can refer to the related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device / terminal device and method may be implemented in other ways. For example, the device / terminal device embodiments described above are only schematic. For example, the above-mentioned division of modules or units is only a division of logical functions. In actual implementation, there may be other divisions, such as multiple units or Components can be combined or integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or software functional unit.
上述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the above integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program. The above computer program can be stored in a computer-readable storage medium When executed by the processor, the steps of the foregoing method embodiments may be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code, executable file or some intermediate form. The aforementioned computer readable medium may include: any entity or device capable of carrying the aforementioned computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random Access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media, etc. It should be noted that the content contained in the above computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in jurisdictions. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media are not Including electrical carrier signals and telecommunications signals.
以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they can still perform the foregoing embodiments The recorded technical solutions are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of this application, and should be included in this Within the scope of protection applied for.

Claims (20)

  1. 一种刷机控制方法,应用于终端设备,其特征在于,所述刷机控制方法包括:A brushing machine control method, which is applied to terminal equipment, is characterized in that the brushing machine control method includes:
    接收用户在所述终端设备的刷机模式下输入的待运行刷机命令;Receiving a brushing command to be run which is input by a user in the brushing mode of the terminal device;
    获取所述终端设备的权限信息,所述权限信息用于指示所述终端设备在所述刷机模式下所支持运行的刷机命令;Acquiring authority information of the terminal device, where the authority information is used to instruct the terminal device to support the operation of the flashing command in the flashing mode;
    根据所述权限信息,判断所述待运行刷机命令是否为所述终端设备在所述刷机模式下支持运行的刷机命令;According to the authority information, determine whether the pending flashing command is a flashing command supported by the terminal device in the flashing mode;
    若所述待运行刷机命令为所述终端设备在所述刷机模式下支持运行的刷机命令,则执行所述待运行刷机命令。If the flashing command to be run is a flashing command supported by the terminal device in the flashing mode, the flashing command to be executed is executed.
  2. 如权利要求1所述的刷机控制方法,其特征在于,所述权限信息还用于指示所述终端设备中支持运行的刷机命令所支持操作的分区;The flashing machine control method according to claim 1, wherein the authority information is further used to indicate a partition in the terminal device that supports operations supported by running flashing machine commands;
    相应地,所述刷机控制方法还包括:Correspondingly, the brush control method further includes:
    接收用户在所述刷机模式下输入的所述待运行刷机命令的待操作分区;A to-be-operated partition receiving the to-be-run brush command input by the user in the brush mode;
    相应地,若所述待运行刷机命令为所述终端设备在所述刷机模式下支持运行的刷机命令,则执行所述待运行刷机命令,包括:Correspondingly, if the flashing command to be run is a flashing command supported by the terminal device in the flashing mode, executing the flashing command to be executed includes:
    若所述待运行刷机命令为所述终端设备在所述刷机模式下支持运行的刷机命令,则根据所述权限信息,判断所述待操作分区是否为所述待运行刷机命令支持操作的分区;If the pending flashing command is a flashing command supported by the terminal device in the flashing mode, then according to the authority information, it is determined whether the partition to be operated is a partition supported by the pending flashing command;
    若所述待操作分区为所述待运行刷机命令支持操作的分区,则利用所述待运行刷机命令对所述待操作分区进行处理。If the to-be-operated partition is a partition that supports operation by the to-be-run brush command, the to-be-run brush command is used to process the to-be-operated partition.
  3. 如权利要求1所述的刷机控制方法,其特征在于,所述权限信息还用于指示是否允许所述终端设备启动所述刷机模式;The flashing machine control method according to claim 1, wherein the authority information is further used to indicate whether the terminal device is allowed to start the flashing mode;
    相应地,在所述接收用户在所述终端设备的刷机模式下输入的待运行刷机命令的步骤之前,还包括:Correspondingly, before the step of receiving the command to be executed by the user in the brush mode of the terminal device, the brush command to be executed further includes:
    当检测到用户启动所述终端设备的刷机模式时,根据所述权限信息,判断所述权限信息是否指示允许所述终端设备启动所述刷机模式;When it is detected that the user starts the flash mode of the terminal device, according to the permission information, it is determined whether the permission information indicates that the terminal device is allowed to start the flash mode;
    相应地,所述接收用户在所述终端设备的刷机模式下输入的待运行刷机命令,包括:Correspondingly, the receiving the command to be executed by the user in the flash mode of the terminal device includes:
    若所述权限信息指示允许所述终端设备启动所述刷机模式,则启动所述刷机模式,并接收用户在所述终端设备的刷机模式下输入的待运行刷机命令。If the permission information indicates that the terminal device is allowed to start the flashing mode, the flashing mode is started, and a user-to-run flashing command input by the user in the flashing mode of the terminal device is received.
  4. 如权利要求3所述的刷机控制方法,其特征在于,在所述当检测到用户启动所述终端设备的刷机模式时,根据所述权限信息,判断所述权限信息是否指示允许所述终端设备启动所述刷机模式的步骤之后,所述刷机控制方法还包括:The flashing machine control method according to claim 3, wherein, when it is detected that the user starts the flashing mode of the terminal device, it is determined whether the permission information indicates that the terminal device is permitted according to the permission information After the step of starting the flashing mode, the flashing control method further includes:
    若所述权限信息指示不允许所述终端设备启动所述刷机模式,则不启动所述刷机模式,并提 示用户无法进入所述刷机模式。If the permission information indicates that the terminal device is not allowed to start the flashing mode, the flashing mode is not started, and the user is prompted not to enter the flashing mode.
  5. 如权利要求1至4中任一项所述的刷机控制方法,其特征在于,在所述根据所述权限信息,判断所述待运行刷机命令是否为所述终端设备在所述刷机模式下支持运行的刷机命令的步骤之后,所述刷机控制方法还包括:The flashing machine control method according to any one of claims 1 to 4, characterized in that, according to the authority information, it is determined whether the pending flashing command is supported by the terminal device in the flashing mode After the step of running the flashing command, the flashing control method further includes:
    若所述待运行刷机命令不为所述终端设备在所述刷机模式下支持运行的刷机命令,则不执行所述待运行刷机命令,并提示用户所述待运行刷机命令无法执行。If the flashing command to be run is not a flashing command supported by the terminal device in the flashing mode, the flashing command to be run is not executed, and the user is prompted that the flashing command to be executed cannot be executed.
  6. 如权利要求1至4中任一项所述的刷机控制方法,其特征在于,所述获取所述终端设备的权限信息,包括:The brush control method according to any one of claims 1 to 4, wherein the acquiring authority information of the terminal device includes:
    获取所述用户输入的用户信息;Obtaining user information input by the user;
    根据所述用户信息,确定所述终端设备的权限信息。According to the user information, the authority information of the terminal device is determined.
  7. 如权利要求1至4中任一项所述的刷机控制方法,其特征在于,所述获取所述终端设备的权限信息,包括:The brush control method according to any one of claims 1 to 4, wherein the acquiring authority information of the terminal device includes:
    获取所述终端设备的标识信息;Acquiring identification information of the terminal device;
    根据所述标识信息,确定所述终端设备的权限信息。According to the identification information, the authority information of the terminal device is determined.
  8. 如权利要求7所述的刷机控制方法,其特征在于,所述终端设备中保存有预设的对应关系表,所述对应关系表中记录有各个不同的标识信息与各个权限信息的对应关系,其中,每一个标识信息对应一个权限信息;The brush control method according to claim 7, wherein a preset correspondence table is stored in the terminal device, and the correspondence relationship between each different identification information and each authority information is recorded in the correspondence table, Among them, each identification information corresponds to one authority information;
    相应地,所述根据所述标识信息,确定所述终端设备的权限信息,包括:Correspondingly, the determining the authority information of the terminal device according to the identification information includes:
    判断在所述对应关系表中是否查找到所述终端设备的标识信息;Judging whether the identification information of the terminal device is found in the correspondence table;
    若查找到所述终端设备的标识信息,则将所述对应关系表中记录的所述终端设备的标识信息对应的权限信息确定为所述终端设备的权限信息。If the identification information of the terminal device is found, the authority information corresponding to the identification information of the terminal device recorded in the correspondence table is determined as the authority information of the terminal device.
  9. 如权利要求8所述的刷机控制方法,其特征在于,在所述判断在所述对应关系表中是否查找到所述终端设备的标识信息的步骤之后,还包括:The brush control method according to claim 8, wherein after the step of determining whether the identification information of the terminal device is found in the correspondence table, the method further comprises:
    若未查找到所述终端设备的标识信息,则将所述终端设备的权限信息设置为预设权限信息,其中,所述预设权限信息用于指示所述终端设备在所述刷机模式下不支持任何刷机命令,和/或,用于指示不允许所述终端设备启动所述刷机模式。If the identification information of the terminal device is not found, the permission information of the terminal device is set as preset permission information, wherein the preset permission information is used to indicate that the terminal device does not operate in the flash mode Support any flashing command, and / or used to indicate that the terminal device is not allowed to start the flashing mode.
  10. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如下步骤:A terminal device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, when the processor executes the computer program, the following steps are implemented:
    接收用户在所述终端设备的刷机模式下输入的待运行刷机命令;Receiving a brushing command to be run which is input by a user in the brushing mode of the terminal device;
    获取所述终端设备的权限信息,所述权限信息用于指示所述终端设备在所述刷机模式下所支持运行的刷机命令;Acquiring authority information of the terminal device, where the authority information is used to instruct the terminal device to support the operation of the flashing command in the flashing mode;
    根据所述权限信息,判断所述待运行刷机命令是否为所述终端设备在所述刷机模式下支持运 行的刷机命令;According to the authority information, determine whether the flashing command to be executed is a flashing command supported by the terminal device in the flashing mode;
    若所述待运行刷机命令为所述终端设备在所述刷机模式下支持运行的刷机命令,则执行所述待运行刷机命令。If the flashing command to be run is a flashing command supported by the terminal device in the flashing mode, the flashing command to be executed is executed.
  11. 如权利要求10所述的终端设备,其特征在于,所述权限信息还用于指示所述终端设备中支持运行的刷机命令所支持操作的分区;The terminal device according to claim 10, wherein the authority information is further used to indicate a partition supported by the operation of the flashing command supported by the terminal device;
    相应地,所述处理器执行所述计算机程序时还实现如下步骤:Accordingly, the processor also implements the following steps when executing the computer program:
    接收用户在所述刷机模式下输入的所述待运行刷机命令的待操作分区;A to-be-operated partition receiving the to-be-run brush command input by the user in the brush mode;
    相应地,若所述待运行刷机命令为所述终端设备在所述刷机模式下支持运行的刷机命令,则执行所述待运行刷机命令,包括:Correspondingly, if the flashing command to be run is a flashing command supported by the terminal device in the flashing mode, executing the flashing command to be executed includes:
    若所述待运行刷机命令为所述终端设备在所述刷机模式下支持运行的刷机命令,则根据所述权限信息,判断所述待操作分区是否为所述待运行刷机命令支持操作的分区;If the pending flashing command is a flashing command supported by the terminal device in the flashing mode, then according to the authority information, it is determined whether the partition to be operated is a partition supported by the pending flashing command;
    若所述待操作分区为所述待运行刷机命令支持操作的分区,则利用所述待运行刷机命令对所述待操作分区进行处理。If the to-be-operated partition is a partition that supports operation by the to-be-run brush command, the to-be-run brush command is used to process the to-be-operated partition.
  12. 如权利要求10所述的终端设备,所述权限信息还用于指示是否允许所述终端设备启动所述刷机模式;The terminal device according to claim 10, the permission information is further used to indicate whether the terminal device is allowed to start the flash mode;
    相应地,在所述接收用户在所述终端设备的刷机模式下输入的待运行刷机命令的步骤之前,还包括:Correspondingly, before the step of receiving the command to be executed by the user in the brush mode of the terminal device, the brush command to be executed further includes:
    当检测到用户启动所述终端设备的刷机模式时,根据所述权限信息,判断所述权限信息是否指示允许所述终端设备启动所述刷机模式;When it is detected that the user starts the flash mode of the terminal device, according to the permission information, it is determined whether the permission information indicates that the terminal device is allowed to start the flash mode;
    相应地,所述接收用户在所述终端设备的刷机模式下输入的待运行刷机命令,包括:Correspondingly, the receiving the command to be executed by the user in the flash mode of the terminal device includes:
    若所述权限信息指示允许所述终端设备启动所述刷机模式,则启动所述刷机模式,并接收用户在所述终端设备的刷机模式下输入的待运行刷机命令。If the permission information indicates that the terminal device is allowed to start the flashing mode, the flashing mode is started, and a user-to-run flashing command input by the user in the flashing mode of the terminal device is received.
  13. 如权利要求12所述的终端设备,其特征在于,在所述当检测到用户启动所述终端设备的刷机模式时,根据所述权限信息,判断所述权限信息是否指示允许所述终端设备启动所述刷机模式的步骤之后,所述处理器执行所述计算机程序时还实现如下步骤:The terminal device according to claim 12, wherein when the user detects that the user starts the flash mode of the terminal device, it is determined whether the permission information indicates that the terminal device is allowed to start according to the permission information After the step of the flash mode, the processor also implements the following steps when executing the computer program:
    若所述权限信息指示不允许所述终端设备启动所述刷机模式,则不启动所述刷机模式,并提示用户无法进入所述刷机模式。If the permission information indicates that the terminal device is not allowed to start the flashing mode, the flashing mode is not started, and the user is prompted not to enter the flashing mode.
  14. 如权利要求10至13中任一项所述的终端设备,其特征在于,在所述根据所述权限信息,判断所述待运行刷机命令是否为所述终端设备在所述刷机模式下支持运行的刷机命令的步骤之后,所述处理器执行所述计算机程序时还实现如下步骤:The terminal device according to any one of claims 10 to 13, characterized in that, according to the authority information, it is determined whether the command to be executed for flashing is that the terminal device supports operation in the flashing mode After the step of the flashing command, the processor also implements the following steps when executing the computer program:
    若所述待运行刷机命令不为所述终端设备在所述刷机模式下支持运行的刷机命令,则不执行所述待运行刷机命令,并提示用户所述待运行刷机命令无法执行。If the flashing command to be run is not a flashing command supported by the terminal device in the flashing mode, the flashing command to be run is not executed, and the user is prompted that the flashing command to be executed cannot be executed.
  15. 如权利要求10至13中任一项所述的终端设备,其特征在于,所述获取所述终端设备的权限信息,包括:The terminal device according to any one of claims 10 to 13, wherein the acquiring permission information of the terminal device includes:
    获取所述用户输入的用户信息;Obtaining user information input by the user;
    根据所述用户信息,确定所述终端设备的权限信息。According to the user information, the authority information of the terminal device is determined.
  16. 如权利要求10至13中任一项所述的终端设备,其特征在于,所述获取所述终端设备的权限信息,包括:The terminal device according to any one of claims 10 to 13, wherein the acquiring permission information of the terminal device includes:
    获取所述终端设备的标识信息;Acquiring identification information of the terminal device;
    根据所述标识信息,确定所述终端设备的权限信息。According to the identification information, the authority information of the terminal device is determined.
  17. 如权利要求16所述的终端设备,其特征在于,所述终端设备中保存有预设的对应关系表,所述对应关系表中记录有各个不同的标识信息与各个权限信息的对应关系,其中,每一个标识信息对应一个权限信息;The terminal device according to claim 16, wherein a preset correspondence table is stored in the terminal device, and the correspondence relationship between each different identification information and each authority information is recorded in the correspondence table, wherein , Each identification information corresponds to a permission information;
    相应地,所述根据所述标识信息,确定所述终端设备的权限信息,包括:Correspondingly, the determining the authority information of the terminal device according to the identification information includes:
    判断在所述对应关系表中是否查找到所述终端设备的标识信息;Judging whether the identification information of the terminal device is found in the correspondence table;
    若查找到所述终端设备的标识信息,则将所述对应关系表中记录的所述终端设备的标识信息对应的权限信息确定为所述终端设备的权限信息。If the identification information of the terminal device is found, the authority information corresponding to the identification information of the terminal device recorded in the correspondence table is determined as the authority information of the terminal device.
  18. 如权利要求17所述的终端设备,其特征在于,在所述判断在所述对应关系表中是否查找到所述终端设备的标识信息的步骤之后,还包括:The terminal device according to claim 17, wherein after the step of determining whether the identification information of the terminal device is found in the correspondence table, the method further comprises:
    若未查找到所述终端设备的标识信息,则将所述终端设备的权限信息设置为预设权限信息,其中,所述预设权限信息用于指示所述终端设备在所述刷机模式下不支持任何刷机命令,和/或,用于指示不允许所述终端设备启动所述刷机模式。If the identification information of the terminal device is not found, the permission information of the terminal device is set as preset permission information, wherein the preset permission information is used to indicate that the terminal device does not operate in the flash mode Support any flashing command, and / or used to indicate that the terminal device is not allowed to start the flashing mode.
  19. 一种刷机控制装置,应用于终端设备,其特征在于,所述刷机控制装置包括:A brush control device is applied to terminal equipment, and is characterized in that the brush control device includes:
    刷机命令接收模块,用于接收用户在所述终端设备的刷机模式下输入的待运行刷机命令;A flashing command receiving module, configured to receive a flashing command to be executed by the user in the flashing mode of the terminal device;
    权限信息获取模块,用于获取所述终端设备的权限信息,所述权限信息用于指示所述终端设备在所述刷机模式下所支持运行的刷机命令;A permission information acquiring module, configured to acquire permission information of the terminal device, and the permission information is used to instruct the terminal device to support a flash command in the flash mode;
    刷机命令判断模块,用于根据所述权限信息,判断所述待运行刷机命令是否为所述终端设备在所述刷机模式下支持运行的刷机命令;A flashing command judging module, configured to determine whether the pending flashing command is a flashing command supported by the terminal device in the flashing mode according to the authority information;
    刷机命令执行模块,用于若所述待运行刷机命令为所述终端设备在所述刷机模式下支持运行的刷机命令,则执行所述待运行刷机命令。The flashing command execution module is configured to execute the flashing command to be executed if the flashing command to be run is a flashing command supported by the terminal device in the flashing mode.
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9任一项所述方法的步骤。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
PCT/CN2018/115685 2018-11-15 2018-11-15 Flashing control method, flashing control apparatus and terminal device WO2020097863A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880097136.5A CN112654964A (en) 2018-11-15 2018-11-15 Brush machine control method, brush machine control device and terminal equipment
PCT/CN2018/115685 WO2020097863A1 (en) 2018-11-15 2018-11-15 Flashing control method, flashing control apparatus and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/115685 WO2020097863A1 (en) 2018-11-15 2018-11-15 Flashing control method, flashing control apparatus and terminal device

Publications (1)

Publication Number Publication Date
WO2020097863A1 true WO2020097863A1 (en) 2020-05-22

Family

ID=70730382

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/115685 WO2020097863A1 (en) 2018-11-15 2018-11-15 Flashing control method, flashing control apparatus and terminal device

Country Status (2)

Country Link
CN (1) CN112654964A (en)
WO (1) WO2020097863A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116034B (en) * 2021-12-01 2023-08-11 展讯通信(天津)有限公司 Distributed brushing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740013A (en) * 2016-01-26 2016-07-06 广东欧珀移动通信有限公司 Flash operation control method and apparatus
CN105893811A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Method and device for verifying reset of electronic equipment
CN106685902A (en) * 2015-11-10 2017-05-17 大唐移动通信设备有限公司 User authority management method, client and server
CN106921959A (en) * 2017-04-26 2017-07-04 努比亚技术有限公司 The brush machine method of mobile terminal, device and brush machine equipment
WO2017148117A1 (en) * 2016-02-29 2017-09-08 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for securely refreshing mobile phone
CN107679417A (en) * 2017-10-09 2018-02-09 郑州云海信息技术有限公司 A kind of method and system of user's operating right management
CN107944234A (en) * 2017-11-20 2018-04-20 上海闻泰电子科技有限公司 A kind of brush machine control method of Android device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685902A (en) * 2015-11-10 2017-05-17 大唐移动通信设备有限公司 User authority management method, client and server
CN105893811A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Method and device for verifying reset of electronic equipment
CN105740013A (en) * 2016-01-26 2016-07-06 广东欧珀移动通信有限公司 Flash operation control method and apparatus
WO2017148117A1 (en) * 2016-02-29 2017-09-08 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for securely refreshing mobile phone
CN106921959A (en) * 2017-04-26 2017-07-04 努比亚技术有限公司 The brush machine method of mobile terminal, device and brush machine equipment
CN107679417A (en) * 2017-10-09 2018-02-09 郑州云海信息技术有限公司 A kind of method and system of user's operating right management
CN107944234A (en) * 2017-11-20 2018-04-20 上海闻泰电子科技有限公司 A kind of brush machine control method of Android device

Also Published As

Publication number Publication date
CN112654964A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN108427649B (en) Access management method, terminal device, system and storage medium of USB interface
CN104951701B (en) A kind of method of the terminal device booting operating system based on USB controller
CN103139391B (en) Method and device of permission validating installation or unloading of application program in mobile phone
US9270339B2 (en) Method, apparatus and system of recovering an operating system on a portable communication device
US10831897B2 (en) Selective enforcement of secure boot database entries in an information handling system
CN110096314B (en) Interface initialization method, device, equipment and computer readable storage medium
EP4348931A1 (en) Transfer of ownership of a computing device via a security processor
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
WO2019161582A1 (en) Mobile storage device and encryption method and apparatus therefor
CN101888627B (en) Mobile terminal and system data protection method thereof
CN110619221B (en) Virtual authorization method, device, terminal equipment and storage medium
WO2020097863A1 (en) Flashing control method, flashing control apparatus and terminal device
WO2020001111A1 (en) Signature verification method for downloading firmware, firmware release method, mobile terminal and server
CN107239685B (en) Method of controlling bluetooth device, and computer-readable storage medium
CN112017330B (en) Intelligent lock parameter configuration method and device, intelligent lock and storage medium
CN110505609B (en) Bluetooth interaction method, bluetooth interaction device and terminal equipment
US10740218B2 (en) Method and device for determining usage log
CN109697375B (en) Firmware, electronic device and information processing method
US10321317B1 (en) NFC-enhanced firmware security
CN103971038B (en) Computer system
CN111783914A (en) Information processing method, information processing device and mobile terminal
CN107231603B (en) Intelligent terminal and method for opening intelligent Bluetooth card online
CN110851881A (en) Security detection method and device for terminal equipment, electronic equipment and storage medium
CN111079202A (en) Information display method and device of terminal equipment and terminal equipment
CN113534691A (en) Control system and method of terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18940333

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18940333

Country of ref document: EP

Kind code of ref document: A1