WO2016183721A1 - Upgrade method, apparatus and device for terminal device - Google Patents

Upgrade method, apparatus and device for terminal device Download PDF

Info

Publication number
WO2016183721A1
WO2016183721A1 PCT/CN2015/079049 CN2015079049W WO2016183721A1 WO 2016183721 A1 WO2016183721 A1 WO 2016183721A1 CN 2015079049 W CN2015079049 W CN 2015079049W WO 2016183721 A1 WO2016183721 A1 WO 2016183721A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
terminal device
package
flash
client
Prior art date
Application number
PCT/CN2015/079049
Other languages
French (fr)
Chinese (zh)
Inventor
莫济梅
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201580036165.7A priority Critical patent/CN106663016A/en
Priority to PCT/CN2015/079049 priority patent/WO2016183721A1/en
Publication of WO2016183721A1 publication Critical patent/WO2016183721A1/en

Links

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 invention relates to the technical field of data processing in a terminal device, and in particular, to a method, device and device for brushing a terminal device.
  • Brush a term of a terminal device, refers to changing or replacing some of the language, pictures, ring tones, software, or operating systems that exist in the terminal device by certain methods. Brushing the system is to reinstall the system for the terminal device, which can make the function of the terminal device more perfect or restore to the original state.
  • Fastboot mode Fast boot mode
  • fastboot is a simple brush protocol defined by android for flashing with the fastboot command line tool.
  • the average mobile phone manufacturer does not directly provide the fastboot mode brush, and will provide a proprietary brushing tool or brushing method.
  • the flashing machine may cause the system to fail to boot, and in the case of system damage, the system can only be brushed in the fastboot mode.
  • the technical problem to be solved by the present invention is to provide a method, device and device for brushing a terminal device, which can automatically identify the system information of the terminal device to be brushed, and automatically acquire the corresponding brush file to brush the system.
  • a first aspect of the present invention provides a method for brushing a terminal device, the method comprising: the client obtaining system information of the terminal device to be brushed in a fast start fastboot mode from the terminal device to be brushed, and sending the first query command to The first server queries the flash resource resource information corresponding to the system information; receives the flash resource resource information sent by the first server, and downloads a corresponding flash resource resource packet according to the flash resource resource package information; and uses the flash resource resource package pair The device to be brushed performs a brushing operation.
  • the step of receiving the flash resource resource information sent by the first server, and downloading the corresponding flash resource resource packet according to the flashing resource resource information is specifically: Receiving the flash resource resource information sent by the first server, and downloading the flash resource resource package from the first server or the second server according to the flash resource resource package information; wherein the flash resource resource packet information is a download address of the flash resource resource package .
  • the step of performing the brushing operation on the terminal device by using the brush resource packet is specifically: decompressing the brush resource packet to obtain a corresponding brush package, the brush package The image file is included; the device to be brushed in the fastboot mode is controlled to run the image file to perform a brush operation on the system.
  • the step of performing the flashing operation on the terminal device by using the brush resource packet is specifically: decompressing the flash resource resource package to obtain a corresponding system ROM package, the system The ROM package includes an application update file; decompressing the application update file to obtain a system image file; and controlling the to-be-printed terminal device in the fastboot mode to run the image file to perform a brush operation on the system.
  • the client obtains the to-be-printed terminal device in the fastboot mode from the to-be-swipe terminal device
  • the system information is the initial system information in the OEM backup partition OEM of the terminal device, or the system information that the to-be-printed terminal device saves to the OEM after each brushing.
  • the system information includes at least a system version model.
  • a second aspect of the present invention provides a terminal device flashing device, which is configured to obtain system information of the device to be brushed in a fastboot mode from a device to be brushed, and send a first query command to the first server. Querying the flash resource resource information corresponding to the system information; the downloading module is configured to receive the flash resource resource information sent by the first server, and download a corresponding flash resource resource packet according to the flashing resource resource information; and a brushing module, configured to: The brush resource device downloaded by the download module is used to perform a brush operation on the terminal device to be brushed.
  • the brush module is configured to decompress the brush resource package to obtain a corresponding brush package including an image file, and control the device to be brushed in the fastboot mode. Run the image file to flash the system.
  • the flashing module is configured to decompress the flash resource bundle to obtain a corresponding system ROM package including an application update file, and decompress the application update file to be mirrored.
  • a third aspect of the present invention provides a terminal device flashing device, comprising: one or more processors; a memory; a plurality of applications; and one or more programs, wherein the one or more programs are stored in the memory And configured to be executed by the one or more processors, the one or more programs comprising instructions for: obtaining system information of the device to be brushed in the fastboot mode from the device to be flashed, and Sending the first query instruction to the first server to query the flash resource resource information corresponding to the system information; receiving the flash resource resource information sent by the first server, and downloading the corresponding flash resource resource packet according to the flash resource resource information; The terminal device is brushed using the flash resource pack.
  • the instruction is further configured to decompress the flash resource bundle to obtain a corresponding flash package including an image file, and control the to-be-printed terminal device in the fastboot mode. Run the image file to flash the system.
  • a fourth aspect of the present invention provides a method for brushing a terminal device, the method comprising: receiving an instruction for querying system information sent by a client when the terminal device is in a fastboot mode, and querying system information of the terminal device in response to the instruction, so that The client obtains the system information to obtain a corresponding flash resource resource packet from a server according to the system information; and receives the flash resource resource packet sent by the client, and runs the flash resource resource packet to perform the flashing.
  • the method further includes: saving the system information of the system after the flashing to the vendor backup partition OEM of the terminal device.
  • the terminal device receives an instruction for querying system information sent by the client when the terminal device is in the fastboot mode, and obtains system information of the terminal device in response to the instruction
  • the step of causing the client to obtain the system information and obtaining the corresponding brush resource package from a server according to the system information is specifically: when the terminal device is in the fastboot mode, receiving an instruction for querying system information sent by the client, and responding to the The command queries the model and the system version number interface through the fastboot command, so that the client obtains the interface of the model and the system version number, and obtains the corresponding brush resource package from a server according to the model and the system version number interface.
  • a fifth aspect of the present invention provides a terminal device flashing device, comprising: a system information querying module, configured to receive an instruction for querying system information sent by a client when the terminal device is in a fastboot mode, and obtain the terminal in response to the instruction The system information of the device, the client obtains the system information and obtains a corresponding brush resource package from a server according to the system information; and the brushing module is configured to receive the brush resource package sent by the client, and run the brush resource package Brush the machine.
  • the apparatus further includes a system information writing module, configured to save the current system information to the OEM when performing the brushing operation.
  • a sixth aspect of the invention provides a portable electronic device comprising: a display, wherein the display comprises a touch-sensitive surface and a display screen; one or more processors; a memory; a plurality of applications; and one or more programs, Wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for: when the terminal device is in fastboot mode Receiving an instruction for querying system information sent by the client, and acquiring system information of the terminal device in response to the instruction, so that the client obtains the system information and obtains a corresponding brush resource package from a server according to the system information, and Receive the flash resource package sent by the client, and run the flash resource package to perform the flashing.
  • the instruction is further configured to save system information of the system after the flashing to the manufacturer backup partition OEM of the portable electronic device.
  • a seventh aspect of the present invention provides a method for flashing a terminal device, the method comprising: receiving, by a server, a query instruction sent by a client, the query command is to query the client to obtain the to-be-flashed machine in a fastboot mode from a terminal device to be flashed
  • the query instruction of the flash resource resource packet corresponding to the system information of the terminal device; querying the matching flash resource resource package information from the saved flash resource resource package in response to the query instruction; wherein the saved flash resource resource package is a system ROM including an application update file
  • the matched flash resource resource package information is sent to the client, and the client uses the matched flash resource resource packet to the to-be-brushed terminal device
  • the step of performing the brushing operation is specifically: sending the matched flash resource resource package information to the client, causing the client to decompress the flash resource resource package to obtain a corresponding system ROM package, and decompressing the application update file in the ROM package to obtain a system.
  • the image file and the device to be flashed in the fastboot mode are controlled to run the image file to perform a brush operation on the system.
  • An eighth aspect of the present invention provides a device for flashing a terminal device, comprising: a storage module, configured to save a brush resource package; wherein the saved flash resource package is a system ROM package including an application update file; and a retrieval module is configured to: Receiving a query instruction sent by a client, and querying the matching brush resource resource package from the flash resource resource saved by the storage module in response to the query instruction; wherein the query instruction is to query the client to obtain a fast boot from the terminal device to be brushed a query instruction of the brush resource package corresponding to the system information of the device to be brushed; and an information interaction module, configured to send the matching brush resource package information queried by the retrieval module to the client, so that the client uses The matched brush resource package performs a brush operation on the terminal device to be brushed.
  • the retrieving module is further configured to automatically adapt the latest version of the current system information according to the system information of the to-be-printed terminal device.
  • a ninth aspect of the present invention provides an apparatus, including: one or more processors; and a memory, configured to save a flash resource resource package; wherein the saved flash resource resource package is a system ROM package including an application update file; An application; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for Receiving a query instruction sent by a client, and querying the matching flash resource resource information from the memory in response to the query instruction; wherein the query instruction is to query the client to obtain the fast boot mode from the terminal device to be flashed a query instruction of the flash resource resource packet corresponding to the system information of the terminal device to be brushed; and sending the matched flash resource resource package information to the client, so that the client uses the matched flash resource resource package to flash the terminal device to be brushed operating.
  • the instruction is further configured to adapt, according to the system information of the to-be-swipe terminal device, the latest version of the flash resource resource package, to use the latest version of the flash memory device
  • the resource package is sent to the client, so that the client uses the latest version of the flash resource package to perform a brush operation on the device to be flashed.
  • the system information of the device to be brushed in the fastboot mode is obtained from the terminal device to be brushed, and the information of the brush resource packet corresponding to the system information is queried in the server, so that the client sends the flash resource according to the server.
  • the package information downloads the brush resource package, and uses the brush resource package to perform a brush operation on the brush terminal device, thereby realizing automatic identification of the system information of the terminal device to be brushed, and automatically acquiring the corresponding brush file to perform brushing on the system, and the brushing process is performed. Simple, providing the user's operating experience.
  • FIG. 1 is a schematic flow chart of a brushing method of a terminal device in a first embodiment of the present invention
  • FIG. 2 is a schematic diagram of signal interaction of a method for brushing a terminal device in an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for brushing a terminal device using a brush resource pack in the first embodiment of the brushing method of the terminal device shown in FIG. 1;
  • FIG. 4 is a schematic flow chart of a method for brushing a terminal device using a brush resource pack in a second embodiment of the brushing method of the terminal device shown in FIG. 1;
  • FIG. 5 is a schematic flow chart of a method for brushing a terminal device in a second embodiment of the present invention.
  • FIG. 6 is a schematic flow chart of a method for brushing a terminal device in a third embodiment of the present invention.
  • FIG. 7 is a schematic flow chart of a method for brushing a terminal device in a fourth embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a device for brushing a terminal device in a first embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a terminal device brushing device in a second embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a terminal device brushing device in a third embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a terminal device in an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a portable electronic device according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of an apparatus in an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart diagram of a method for brushing a terminal device according to a first embodiment of the present invention. The method includes:
  • Step S10 The client obtains system information of the to-be-swipe terminal device in the fastboot mode from the to-be-printed terminal device, and sends a first query command to the first server to query the flash resource resource packet information corresponding to the system information.
  • the system information is system information stored in the manufacturer backup partition OEM of the terminal device after the flashing or updating, and the system information includes at least a system version model, such as a mobile phone model and an operating system version number.
  • the fastboot mode is the quick start mode.
  • fastboot is a brush mode that is lower than the repair recovery mode, and uses a USB data cable to connect the mobile phone.
  • the user simultaneously presses back + power on in the power off state to enter the fastboot mode.
  • the client is connected to the terminal device (for example, through a USB interface), and the current system information (for example, the system version model) of the terminal device is queried through the fastboot command interface, and is provided to the server.
  • the current system information for example, the system version model
  • Fastboot is a small system under the system that processes related transactions by parsing externally passed commands, such as reading phone-related parameters, erasing and writing mobile phone partition data.
  • Pass the standard fastboot command “fastboot Getvar ⁇ variable>” can get the variable information of the mobile terminal, and add the custom command to "fastboot getvar” by means of the fastboot extension command.
  • Get_phoneversion the command to read the OEM partition system version number information, get the current operating system version number. For example, when the client sends the command "fastboot getvar" When get_phoneversion", the fastboot of the terminal device returns the device model and operating system version number by parsing this command.
  • the server requests the server to query the version of the flash resource resource packet, that is, the client can access the corresponding official website through the server to query the version matching brush resource resource package.
  • the client requests the server to query the request information of the flash resource bundle whose system information is "H30-L01V100R001CHNC00B112" through the http request server as follows:
  • Step S11 Receive the flash resource resource information sent by the first server, and download the corresponding flash resource resource packet according to the flash resource resource package information.
  • the flash resource resource package information is a URL download address of the flash resource resource package.
  • the information returned by the server is as follows:
  • the client receives the flash resource bundle information sent by the first server, and downloads the flash resource bundle from the first server according to the flash resource bundle information.
  • the client can access the corresponding official website to query the matching brush resource package through the first server, and can also obtain and download the flash resource package.
  • the client receives the flash resource bundle information sent by the first server, and downloads the flash resource bundle from the second server according to the flash resource bundle information.
  • the client can access the corresponding official website to query the version of the brush resource package matched by the first server to obtain a corresponding download address.
  • the second server saves multiple versions of the flash resource package, and the client obtains the flash resource package from the second server according to the download address.
  • Step S12 using the brush resource package to perform a brush operation on the terminal device to be brushed.
  • the client sends the file of the brush resource package to the terminal device to be brushed, and controls the system of the terminal device to be brushed to restart, enters the upgrade mode, and restarts the upgrade process and runs the brush after the device to be brushed is restarted.
  • the resource pack completes the system's flashing or upgrading.
  • the step S12 that is, the step of performing the brushing operation on the terminal device to be brushed by using the brush resource package is specifically implemented by the following steps:
  • step S20 the brush resource package is decompressed to obtain a corresponding flash package, and the flash package includes an image file.
  • Step S21 controlling the terminal device to be brushed in the fastboot mode to run the image file to perform a brush operation on the system.
  • the step S12 that is, the step of performing the brushing operation on the terminal device to be brushed by using the brush resource package is specifically implemented by the following steps:
  • Step S30 decompressing the flash resource package to obtain a corresponding system ROM package, where the system ROM package includes an application update file.
  • step S31 the application update file is decompressed to obtain an image file.
  • the client extracts an image file such as recover.img from the application update file update.app in the system ROM package.
  • the client can directly use the image file extracted from the update.app file to perform system flashing on the brushing terminal.
  • Step S32 controlling the terminal device to be brushed in the fastboot mode to run the image file to perform a brush operation on the system.
  • FIG. 5 is a schematic flowchart of a method for brushing a terminal device according to a second embodiment of the present invention, where the method includes:
  • Step S40 The terminal device receives an instruction for querying system information sent by the client when in the fastboot mode, and obtains system information of the terminal device in response to the instruction, so that the client obtains the system information to use a server according to the system information. Get the corresponding brush resource package.
  • the system information includes at least a system version model, such as a mobile phone model and an operating system version number.
  • a system version model such as a mobile phone model and an operating system version number.
  • the fastboot mode is the quick start mode.
  • fastboot is a brush mode that is lower than the repair recovery mode, and uses a USB data cable to connect the mobile phone.
  • the terminal device is connected to the client (for example, through a USB interface), and receives a query command sent by the client through the fastboot command interface to query the current system information (for example, the system version model) of the terminal device, so that the terminal device is connected to the client.
  • the client requests the server to query the version of the flash resource resource package and download the flash resource resource package.
  • the terminal device sends a command "fastboot getvar" when receiving the client.
  • fastboot returns the device model and operating system version number by parsing this command.
  • Step S41 receiving the flash resource package sent by the client, and running the flash resource package to perform the flashing.
  • the terminal device of the to-be-brushed machine receives the file of the flash resource package sent by the client, and restarts the system in response to the control of the client, enters the upgrade mode, and runs the flash resource package to complete the brushing or upgrading of the system.
  • FIG. 6 is a schematic flowchart of a method for brushing a terminal device according to a third embodiment of the present invention.
  • the method for brushing a terminal device shown in FIG. 4 further includes:
  • step S52 the system information of the system after the flashing is saved to the manufacturer backup partition OEM of the terminal device.
  • FIG. 7 is a schematic flowchart of a method for brushing a terminal device according to a fourth embodiment of the present invention, where the method includes:
  • Step S60 The server receives a query instruction sent by the client, where the query instruction is a query instruction for querying, by the client, the flash resource resource packet corresponding to the system information of the device to be flashed in the fastboot mode.
  • Step S61 in response to the query instruction, query the matched flash resource bundle from the saved flash resource bundle.
  • the flash resource package saved by the server is a system ROM package including an application update file.
  • the client Since the client has the ability to extract the image file such as recovery.img from the update.app file of the ROM package, the terminal device of the device can be brushed directly by using the ROM package. Therefore, the server does not need to provide an additional scene that cannot be booted. Under the brush package, only need to save the corresponding ROM package, thereby reducing the storage consumption of the server and reducing the cost of making and maintaining the flash package.
  • the server queries the matching brush resource package according to the system information of the terminal device to be brushed, and can also automatically adapt the latest version of the current system information, for example, determining that the system version is a development version, a stable version, or a delivery version, and The client pushes the latest version.
  • Step S62 Send the flash resource resource package information to the client, and enable the client to perform a brush operation on the terminal device to be brushed by using the flash resource resource package.
  • the flash resource resource packet information is a download address of the matching flash resource resource package.
  • the server returns the download URL address of the corresponding flash resource resource package to the client according to the system version number of the terminal device to be brushed reported by the client. If you want to push the latest version to the terminal device, you can similar to OTA (Over The Air Technology, the air download technology server, determines whether the current system version is a development version, a stable version, or a shipping version, and then selects the latest version to send.
  • OTA Over The Air Technology
  • the flash resource bundles are stored in another server, and the server sends the flash resource bundle information to the client, so that the client can access the other server to download according to the flash resource bundle information.
  • the Brush Resource Pack is
  • FIG. 8 is a schematic structural diagram of a device for flashing a terminal device according to a first embodiment of the present invention.
  • the device 70 includes a query module 71, a download module 72, and a brush module 73.
  • the query module 71 is configured to obtain system information of the terminal device to be brushed in the fastboot mode from the device to be flashed, and send a first query command to the first server to query the flash resource resource information corresponding to the system information.
  • the system information is system information stored in the manufacturer backup partition OEM of the terminal device after the flashing or updating, and the system information includes at least a system version model, such as a mobile phone model and an operating system version number.
  • the device 70 When the operating system of the terminal device is damaged and cannot be turned on, enter the fastboot mode.
  • the device 70 is connected to the terminal device (for example, connected through a USB interface), and the current system information (such as the system version model) of the terminal device is queried through the fastboot command interface, and is provided to the first server.
  • the downloading module 72 is configured to receive the flash resource resource information sent by the first server, and download the flash resource resource packet according to the flashing resource resource information.
  • the flash resource resource package information is a URL download address of the flash resource resource package.
  • the downloading module 72 receives the flash resource bundle information sent by the server, and downloads the flash resource bundle from the first server according to the flash resource bundle information.
  • the downloading module 72 can access the corresponding official website to query the version of the flash resource resource package, and can also obtain and download the flash resource resource package.
  • the downloading module 72 receives the flash resource bundle information sent by the first server, and downloads the flash resource bundle from the second server according to the flash resource bundle information.
  • the downloading module 72 can access the corresponding official network to query the version of the flash resource resource packet to obtain a corresponding download address.
  • the second server saves a plurality of versions of the flash resource package, and the download module 72 acquires the flash resource package from the second server according to the download address.
  • the brush module 73 is configured to perform a brush operation on the device to be brushed using the flash resource package downloaded by the download module 72.
  • the brush module 73 pushes the file of the brush resource package to the terminal device to be brushed, and controls the system of the terminal device to be brushed to restart, enters the upgrade mode, and restarts the upgrade process and runs the brush after the device to be brushed is restarted.
  • the resource pack completes the system's flashing or upgrading.
  • the brush module 73 decompresses the flash resource package to obtain a corresponding flash package including the image file, and controls the terminal device to be flashed in the fastboot mode to run the image file to flash the system.
  • the flash module 73 decompresses the flash resource package to obtain a corresponding system ROM package including the update.app file, decompresses the update.app file to obtain an image file, and controls the terminal device to be flashed in the fastboot mode.
  • the image file is used to flash the system.
  • the brush module 73 extracts an image file such as recover.img from the update.app file in the system ROM package, and directly uses the image file extracted from the update.app file to perform a brushing operation on the brushing terminal.
  • an image file such as recover.img from the update.app file in the system ROM package
  • FIG. 9 is a schematic structural diagram of a device for brushing a terminal device according to a second embodiment of the present invention.
  • the device 80 includes a system query module 81 and a brush module 82.
  • the system information querying module 81 is configured to receive an instruction for querying system information sent by the client when the terminal device is in the fastboot mode, and obtain system information of the terminal device in response to the instruction, so that the client obtains the system information according to the The system information obtains a corresponding brush resource package from a server.
  • the system information includes at least a system version model, such as a mobile phone model and an operating system version number.
  • a system version model such as a mobile phone model and an operating system version number.
  • the terminal device When the operating system of the terminal device is damaged and cannot be turned on, enter the fastboot mode.
  • the terminal device is connected to the client (for example, connected through a USB interface), and the system information query module 81 receives the query command sent by the client through the fastboot command interface to query the current system information of the terminal device (eg, The system version model enables the client to query the version of the flash resource package and download the flash resource package through the http request server when receiving the system information of the terminal device.
  • the system information query module 81 sends a command "fastboot getvar" when receiving the client.
  • fastboot returns the device model and operating system version number by parsing this command.
  • the brush module 82 is configured to receive the flash resource package sent by the client, and run the flash resource package to perform the flashing.
  • the flash module 82 receives the file of the flash resource package pushed by the client, and restarts the system in response to the control of the client, enters the upgrade mode, and runs the flash resource package to complete the flashing or upgrading of the system.
  • FIG. 10 is a schematic structural diagram of a device for brushing a terminal device according to a third embodiment of the present invention.
  • the device 90 includes a storage module 91, a retrieval module 92, and an information interaction module 93.
  • the storage module 91 is configured to save a flash resource bundle.
  • the flash resource package saved by the storage module 91 is a system ROM package including an application update file.
  • the terminal device can be brushed directly by using the ROM package, so the server does not need to provide additional booting.
  • the repair package in the scenario only needs to save the corresponding ROM package, thereby reducing the storage consumption of the server and reducing the cost of making the maintenance repair package.
  • the retrieval module 92 is configured to receive a query instruction sent by a client, and query the matching brush resource package from the flash resource bundle saved by the storage module in response to the query instruction.
  • the query instruction is a query instruction for querying, by the client, the flash resource resource packet corresponding to the system information of the to-be-swipe terminal device in the fast boot mode.
  • the retrieval module 92 queries the matching brush resource package according to the system information of the terminal device to be brushed, and can also automatically adapt the latest version of the current system information, for example, determine whether the system version is a development version, a stable version, or a delivery version. And push the latest version to the client.
  • the information interaction module 93 is configured to send the matched flash resource resource information queried by the retrieval module to the client, so that the client uses the matched flash resource resource packet to flash the terminal device to be brushed.
  • the flash resource resource packet information is a download address of the matching flash resource resource package.
  • the information interaction module 93 returns the download URL address of the corresponding flash resource package to the client. If you want to push the latest version to the terminal device, you can use the OTA server to determine whether the current system version is a development version, a stable version, or a shipping version, and then send the latest version.
  • FIG. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device 100 in the embodiment is a terminal, and the terminal may be a personal computer, a tablet computer, a notebook computer, or the like.
  • the terminal device 100 includes a receiver 101, a processor 102, a transmitter 103, a read only memory 104, a random access memory 105, and a bus 106.
  • the receiver 101 is for receiving data.
  • the processor 102 controls the operation of the terminal device 100, and the processor 102 can also become a CPU (Central Processing Unit, central processing unit).
  • the processor 102 may be an integrated circuit chip with signal processing capabilities.
  • the processor 102 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the transmitter 103 is for transmitting data.
  • the memory can include read only memory 104 and random access memory 105 and provides instructions and data to processor 102.
  • a portion of the memory may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • bus 106 can include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like.
  • bus 106 can include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like.
  • various buses are labeled as bus 106 in the figure.
  • the memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 102 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
  • the processor 102 controls the memory to store data
  • the processor 102 obtains the system information of the to-be-brushed terminal device in the fastboot mode from the device to be flashed, and sends a first query instruction to the first server to query the flash resource resource information corresponding to the system information; And the brush resource information is downloaded, and the brush resource package is downloaded according to the flash resource resource information; and the brushing operation is performed on the terminal device to be brushed.
  • the system information includes at least a system version model, such as a mobile phone model and an operating system version number.
  • a system version model such as a mobile phone model and an operating system version number.
  • the processor 102 receives the flash resource bundle information sent by the server, and downloads the flash resource bundle from the first server according to the flash resource bundle information.
  • the flash resource resource information is a download address of the flash resource package.
  • the processor 102 receives the flash resource bundle information sent by the first server, and downloads the flash resource bundle from the second server according to the flash resource bundle information.
  • the processor 102 decompresses the flash resource bundle to obtain a corresponding flash package, where the flash package includes an image file; and the standby device that controls the flash boot mode runs the image file to flash the system.
  • the processor 102 decompresses the flash resource bundle to obtain a corresponding system ROM package, where the system ROM package includes an application update file, decompresses the application update file to obtain a system image file, and controls the fast boot mode.
  • the device to be brushed runs the image file to brush the system.
  • FIG. 12 is a schematic structural diagram of a portable electronic device according to an embodiment of the present invention.
  • the portable electronic device 110 in this embodiment is a mobile terminal, and the mobile terminal may be a smart phone, a tablet computer, or the like.
  • the portable electronic device 110 includes a receiver 111, a processor 112, a transmitter 113, a read only memory 114, a random access memory 115, a bus 116, and a display 117.
  • the receiver 111 is for receiving data.
  • the processor 112 controls the operation of the portable electronic device 110, which can also become a CPU (Central) Processing Unit, central processing unit).
  • the processor 112 may be an integrated circuit chip with signal processing capabilities.
  • the processor 112 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the transmitter 113 is for transmitting data.
  • the memory can include read only memory 114 and random access memory 115 and provide instructions and data to processor 112. A portion of the memory may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the display 117 includes a touch surface and a display screen.
  • bus 116 which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 116 in the figure.
  • the memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 112 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
  • the processor 112 controls the memory to store data
  • the processor 112 receives an instruction sent by the client to query system information when the system is in the fastboot mode, and obtains system information of the portable electronic device 110 in response to the instruction, so that the client obtains the system information and proceeds from the system according to the system information.
  • the server obtains the corresponding flash resource package, and receives the flash resource package sent by the client, and runs the flash resource package to perform the flashing.
  • the system information includes at least a system version model, such as a mobile phone model and an operating system version number.
  • a system version model such as a mobile phone model and an operating system version number.
  • the processor 112 saves system information of the system after the flashing to the vendor backup partition OEM of the portable electronic device 110.
  • FIG. 13 is a schematic structural diagram of a device according to an embodiment of the present invention, where the device 120 is a server.
  • the terminal device flash device 120 includes a receiver 121, a processor 122, a transmitter 123, a read only memory 124, a random access memory 125, and a bus 126.
  • the receiver 121 is for receiving data.
  • the processor 122 controls the operation of the device 120, and the processor 122 can also become a CPU (Central Processing Unit, central processing unit).
  • the processor 122 may be an integrated circuit chip with signal processing capabilities.
  • the processor 122 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the transmitter 123 is for transmitting data.
  • the memory can include read only memory 124 and random access memory 125 and provide instructions and data to processor 122.
  • a portion of the memory may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • bus 126 which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 126 in the figure.
  • the memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 122 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
  • the processor 122 controls the memory to store data
  • the processor 122 receives a query instruction sent by the client, and queries the memory 122 for the matching flash resource resource information in response to the query instruction; and sends the matched flash resource resource information to the client, so that the client uses The matching brush resource packet brushing machine is to be brushed to the terminal device.
  • the query instruction is a query instruction for querying, by the client, the flash resource resource packet corresponding to the system information of the to-be-swipe terminal device in the fast boot mode.
  • the flash resource resource information is the download address of the matching flash resource package.
  • the flash resource package saved by the memory is a system ROM package including an application update file.
  • the processor 122 searches for the matching brush resource package according to the system information of the terminal device to be brushed, and automatically adapts the latest version of the current system information, for example, determining that the system version is a development version, a stable version, or a delivery. Version and push the latest version to the client.
  • the system information of the device to be brushed in the fastboot mode is obtained from the terminal device to be brushed, and the information of the brush resource packet corresponding to the system information is queried in the server, so that the client sends the brush according to the server.
  • the resource package information downloads the brush resource package, and uses the brush resource package to flash the terminal device to be brushed, thereby realizing automatic identification of system information of the terminal device to be brushed, and automatically acquiring the corresponding brush file to perform system
  • the brushing machine and the brushing process are simple to operate and provide the user's operating experience.

Abstract

Disclosed are an upgrade method and apparatus for a terminal device. The method comprises: a client obtaining system information about a terminal device to be upgraded in a fastboot mode from the terminal device to be upgraded, and sending a first query instruction to a first server so as to query upgrade resource bundle information corresponding to the system information; receiving the upgrade resource bundle information sent by the first server, and downloading the upgrade resource bundle according to the upgrade resource bundle information; and using the upgrade resource bundle to perform an upgrade operation on the terminal device to be upgraded, so that the automatic recognition of system information about the terminal device to be upgraded and the automatic acquisition of a corresponding upgrade file for upgrading a system are realized. The operation during an upgrade process is simple, and the operation experience of a user is improved.

Description

一种终端设备刷机方法、装置和设备 Terminal device brushing method, device and device
【技术领域】[Technical Field]
本发明涉及终端设备中数据处理的技术领域,特别是涉及一种终端设备刷机方法、装置和设备。The present invention relates to the technical field of data processing in a terminal device, and in particular, to a method, device and device for brushing a terminal device.
【背景技术】 【Background technique】
刷机,一种终端设备的专业术语,是指通过一定的方法更改或替换终端设备中原本存在的一些语言、图片、铃声、软件或者操作系统。刷机也就是给终端设备重装系统,可以使终端设备的功能更加完善,或还原到原始状态。Brush, a term of a terminal device, refers to changing or replacing some of the language, pictures, ring tones, software, or operating systems that exist in the terminal device by certain methods. Brushing the system is to reinstall the system for the terminal device, which can make the function of the terminal device more perfect or restore to the original state.
Fastboot模式:快速启动模式,fastboot是android定义的一种简单的刷机协议,用于可以通过fastboot命令行工具进行的刷机。一般的手机厂商不直接提供fastboot模式刷机,会提供专有的刷机工具或者刷机方法。Fastboot mode: Fast boot mode, fastboot is a simple brush protocol defined by android for flashing with the fastboot command line tool. The average mobile phone manufacturer does not directly provide the fastboot mode brush, and will provide a proprietary brushing tool or brushing method.
由于市场上的刷机资源包种类繁多,且版本之间的适配关系比较复杂,刷机可能导致系统无法启动,而在系统损坏的情况下只能在fastboot模式下刷机对系统进行刷机。Due to the wide variety of flash resource bundles on the market and the complex relationship between the versions, the flashing machine may cause the system to fail to boot, and in the case of system damage, the system can only be brushed in the fastboot mode.
但是,无论通过下载专用刷机资源包还是利用fastboot模式,在对设备进行刷机时,均需要满足如下条件:1、需要知道待刷机设备的系统版本型号;2、在相应官网下载与系统版本型号对应的刷机资源包;3、查找相应教程使用下载的刷机资源包对设备进行刷机。因此,现有的刷机过程非常繁琐复杂,无法做到自动适配设备的系统版本,用户通常无法自行操作。However, whether by downloading the dedicated flash resource package or using the fastboot mode, the following conditions must be met when the device is brushed: 1. The system version model of the device to be brushed needs to be known; 2. The corresponding official website download corresponds to the system version model. Brush resource package; 3, find the corresponding tutorial to use the downloaded brush resource package to brush the device. Therefore, the existing brushing process is very cumbersome and complicated, and it is impossible to automatically adapt the system version of the device, and the user usually cannot operate it by himself.
【发明内容】 [Summary of the Invention]
本发明主要解决的技术问题是提供一种终端设备刷机方法、装置和设备,能够自动识别待刷机终端设备的系统信息,以及自动获取对应的刷机文件对系统进行刷机。The technical problem to be solved by the present invention is to provide a method, device and device for brushing a terminal device, which can automatically identify the system information of the terminal device to be brushed, and automatically acquire the corresponding brush file to brush the system.
本发明第一方面提供了一种终端设备的刷机方法,该方法包括:客户端从待刷机终端设备中取得处于快速启动fastboot模式的该待刷机终端设备的系统信息,并发送第一查询指令至第一服务器以查询与该系统信息对应的刷机资源包信息;接收该第一服务器发送的该刷机资源包信息,并根据该刷机资源包信息下载对应的刷机资源包;以及使用该刷机资源包对该待刷机终端设备进行刷机操作。A first aspect of the present invention provides a method for brushing a terminal device, the method comprising: the client obtaining system information of the terminal device to be brushed in a fast start fastboot mode from the terminal device to be brushed, and sending the first query command to The first server queries the flash resource resource information corresponding to the system information; receives the flash resource resource information sent by the first server, and downloads a corresponding flash resource resource packet according to the flash resource resource package information; and uses the flash resource resource package pair The device to be brushed performs a brushing operation.
结合第一方面,在第一方面的第一种可能的实施方式中,接收该第一服务器发送的该刷机资源包信息,并根据该刷机资源包信息下载对应的刷机资源包的步骤具体为:接收该第一服务器发送的该刷机资源包信息,并根据该刷机资源包信息从该第一服务器或第二服务器下载该刷机资源包;其中,该刷机资源包信息为该刷机资源包的下载地址。With reference to the first aspect, in a first possible implementation manner of the first aspect, the step of receiving the flash resource resource information sent by the first server, and downloading the corresponding flash resource resource packet according to the flashing resource resource information is specifically: Receiving the flash resource resource information sent by the first server, and downloading the flash resource resource package from the first server or the second server according to the flash resource resource package information; wherein the flash resource resource packet information is a download address of the flash resource resource package .
结合第一方面,在第一方面的第二种可能的实施方式中,使用该刷机资源包对该终端设备进行刷机操作的步骤具体为:解压该刷机资源包得到对应的刷机包,该刷机包包括镜像文件;控制处于fastboot模式的该待刷机终端设备运行该镜像文件以对系统进行刷机操作。With reference to the first aspect, in a second possible implementation manner of the first aspect, the step of performing the brushing operation on the terminal device by using the brush resource packet is specifically: decompressing the brush resource packet to obtain a corresponding brush package, the brush package The image file is included; the device to be brushed in the fastboot mode is controlled to run the image file to perform a brush operation on the system.
结合第一方面,在第一方面的第三种可能的实施方式中,使用该刷机资源包对该终端设备进行刷机操作的步骤具体为:解压该刷机资源包得到对应的系统ROM包,该系统ROM包包括应用程序更新文件;解压该应用程序更新文件得到系统镜像文件;以及控制处于fastboot模式的该待刷机终端设备运行该镜像文件以对系统进行刷机操作。With reference to the first aspect, in a third possible implementation manner of the first aspect, the step of performing the flashing operation on the terminal device by using the brush resource packet is specifically: decompressing the flash resource resource package to obtain a corresponding system ROM package, the system The ROM package includes an application update file; decompressing the application update file to obtain a system image file; and controlling the to-be-printed terminal device in the fastboot mode to run the image file to perform a brush operation on the system.
结合第一方面的第二种或第三种可能的实施方式,在第一方面的第四种可能的实施方式中,该客户端从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息的步骤中,该系统信息为该终端设备的厂商备份分区OEM中的初始系统信息,或者该待刷机终端设备在每次刷机后保存至OEM中的系统信息。With reference to the second or third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the client obtains the to-be-printed terminal device in the fastboot mode from the to-be-swipe terminal device In the step of the system information, the system information is the initial system information in the OEM backup partition OEM of the terminal device, or the system information that the to-be-printed terminal device saves to the OEM after each brushing.
结合第一方面的第一种至第四种任意一种可能的实施方式,在第一方面的第五种可能的实施方式中,该系统信息至少包括系统版本型号。In conjunction with any one of the first to fourth possible implementations of the first aspect, in a fifth possible implementation of the first aspect, the system information includes at least a system version model.
本发明第二方面提供了一种终端设备刷机装置,查询模块,用于从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息,并发送第一查询指令至第一服务器以查询与该系统信息对应的刷机资源包信息;下载模块,用于接收该第一服务器发送的该刷机资源包信息,并根据该刷机资源包信息下载对应的刷机资源包;以及刷机模块,用于使用该下载模块下载的该刷机资源包对该待刷机终端设备进行刷机操作。A second aspect of the present invention provides a terminal device flashing device, which is configured to obtain system information of the device to be brushed in a fastboot mode from a device to be brushed, and send a first query command to the first server. Querying the flash resource resource information corresponding to the system information; the downloading module is configured to receive the flash resource resource information sent by the first server, and download a corresponding flash resource resource packet according to the flashing resource resource information; and a brushing module, configured to: The brush resource device downloaded by the download module is used to perform a brush operation on the terminal device to be brushed.
结合第二方面,在第二方面的第一种可能的实施方式中,该刷机模块用于解压该刷机资源包得到对应的包括镜像文件的刷机包,以及控制处于fastboot模式的该待刷机终端设备运行该镜像文件以对系统进行刷机操作。With reference to the second aspect, in a first possible implementation manner of the second aspect, the brush module is configured to decompress the brush resource package to obtain a corresponding brush package including an image file, and control the device to be brushed in the fastboot mode. Run the image file to flash the system.
结合第二方面,在第二方面的第二种可能的实施方式中,该刷机模块用于解压该刷机资源包得到对应的包括应用程序更新文件的系统ROM包,解压该应用程序更新文件得到镜像文件,以及控制处于fastboot模式的该待刷机终端设备运行该镜像文件以对系统进行刷机操作。With reference to the second aspect, in a second possible implementation manner of the second aspect, the flashing module is configured to decompress the flash resource bundle to obtain a corresponding system ROM package including an application update file, and decompress the application update file to be mirrored. The file, and the device to be brushed in the fastboot mode, operate the image file to perform a brush operation on the system.
本发明第三方面提供了一种终端设备刷机装置,包括:一个或多个处理器;存储器;多个应用程序;以及一个或多个程序,其中,该一个或多个程序被存储在该存储器中并被配置为被该一个或多个处理器执行,该一个或多个程序包括指令,该指令用于:从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息,并发送第一查询指令至第一服务器以查询与该系统信息对应的刷机资源包信息;接收该第一服务器发送的该刷机资源包信息,并根据该刷机资源包信息下载对应的刷机资源包;以及使用该刷机资源包对该终端设备进行刷机操作。A third aspect of the present invention provides a terminal device flashing device, comprising: one or more processors; a memory; a plurality of applications; and one or more programs, wherein the one or more programs are stored in the memory And configured to be executed by the one or more processors, the one or more programs comprising instructions for: obtaining system information of the device to be brushed in the fastboot mode from the device to be flashed, and Sending the first query instruction to the first server to query the flash resource resource information corresponding to the system information; receiving the flash resource resource information sent by the first server, and downloading the corresponding flash resource resource packet according to the flash resource resource information; The terminal device is brushed using the flash resource pack.
结合第三方面,在第三方面的第一种可能的实施方式中,该指令还用于解压该刷机资源包得到对应的包括镜像文件的刷机包,以及控制处于fastboot模式的该待刷机终端设备运行该镜像文件以对系统进行刷机操作。With reference to the third aspect, in a first possible implementation manner of the third aspect, the instruction is further configured to decompress the flash resource bundle to obtain a corresponding flash package including an image file, and control the to-be-printed terminal device in the fastboot mode. Run the image file to flash the system.
本发明第四方面提供了一种终端设备刷机方法,该方法包括:该终端设备处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应该指令查询该终端设备的系统信息,使该客户端获取该系统信息以根据该系统信息从一服务器中获取对应的刷机资源包;以及接收该客户端发送的刷机资源包,运行该刷机资源包进行刷机。A fourth aspect of the present invention provides a method for brushing a terminal device, the method comprising: receiving an instruction for querying system information sent by a client when the terminal device is in a fastboot mode, and querying system information of the terminal device in response to the instruction, so that The client obtains the system information to obtain a corresponding flash resource resource packet from a server according to the system information; and receives the flash resource resource packet sent by the client, and runs the flash resource resource packet to perform the flashing.
结合第四方面,在第四方面的第一种可能的实施方式中,该方法还包括:将刷机后的系统的系统信息保存至该终端设备的厂商备份分区OEM。In conjunction with the fourth aspect, in a first possible implementation manner of the fourth aspect, the method further includes: saving the system information of the system after the flashing to the vendor backup partition OEM of the terminal device.
结合第四方面,在第四方面的第二种可能的实施方式中,该终端设备处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应该指令获取该终端设备的系统信息,使该客户端获取该系统信息并根据该系统信息从一服务器中获取对应的刷机资源包的步骤具体为:该终端设备处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应该指令通过fastboot命令查询型号和系统版本号接口,使该客户端获取该型号和系统版本号接口,并根据该型号和系统版本号接口从一服务器中获取对应的刷机资源包。With reference to the fourth aspect, in a second possible implementation manner of the fourth aspect, the terminal device receives an instruction for querying system information sent by the client when the terminal device is in the fastboot mode, and obtains system information of the terminal device in response to the instruction, The step of causing the client to obtain the system information and obtaining the corresponding brush resource package from a server according to the system information is specifically: when the terminal device is in the fastboot mode, receiving an instruction for querying system information sent by the client, and responding to the The command queries the model and the system version number interface through the fastboot command, so that the client obtains the interface of the model and the system version number, and obtains the corresponding brush resource package from a server according to the model and the system version number interface.
本发明第五方面提供了一种终端设备刷机装置,包括:系统信息查询模块,用于在该终端设备处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应该指令获取该终端设备的系统信息,使该客户端获取该系统信息并根据该系统信息从一服务器中获取对应的刷机资源包;以及刷机模块,用于接收该客户端发送的刷机资源包,运行该刷机资源包进行刷机。A fifth aspect of the present invention provides a terminal device flashing device, comprising: a system information querying module, configured to receive an instruction for querying system information sent by a client when the terminal device is in a fastboot mode, and obtain the terminal in response to the instruction The system information of the device, the client obtains the system information and obtains a corresponding brush resource package from a server according to the system information; and the brushing module is configured to receive the brush resource package sent by the client, and run the brush resource package Brush the machine.
结合第五方面,在第五方面的第一种可能的实施方式中,该装置还包括系统信息写入模块,用于在进行刷机操作时将当前的系统信息保存至OEM中。In conjunction with the fifth aspect, in a first possible implementation manner of the fifth aspect, the apparatus further includes a system information writing module, configured to save the current system information to the OEM when performing the brushing operation.
本发明第六方面提供了一种便携式电子设备,包括:显示器,其中,该显示器包括触敏表面和显示屏;一个或多个处理器;存储器;多个应用程序;以及一个或多个程序,其中,该一个或多个程序被存储在该存储器中并被配置为被该一个或多个处理器执行,该一个或多个程序包括指令,该指令用于:在该终端设备在处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应该指令获取该终端设备的系统信息,使该客户端获取该系统信息并根据该系统信息从一服务器中获取对应的刷机资源包,以及接收该客户端发送的刷机资源包,运行该刷机资源包进行刷机。A sixth aspect of the invention provides a portable electronic device comprising: a display, wherein the display comprises a touch-sensitive surface and a display screen; one or more processors; a memory; a plurality of applications; and one or more programs, Wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for: when the terminal device is in fastboot mode Receiving an instruction for querying system information sent by the client, and acquiring system information of the terminal device in response to the instruction, so that the client obtains the system information and obtains a corresponding brush resource package from a server according to the system information, and Receive the flash resource package sent by the client, and run the flash resource package to perform the flashing.
结合第六方面,在第六方面的第一种可能的实施方式中,该指令还用于将刷机后的系统的系统信息保存至该便携式电子设备的厂商备份分区OEM中。In conjunction with the sixth aspect, in a first possible implementation manner of the sixth aspect, the instruction is further configured to save system information of the system after the flashing to the manufacturer backup partition OEM of the portable electronic device.
本发明第七方面提供了一种终端设备刷机方法,该方法包括:服务器接收一客户端发送的查询指令,该查询指令为查询该客户端从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息对应的刷机资源包的查询指令;响应该查询指令从保存的刷机资源包中查询匹配的刷机资源包信息;其中,该保存的刷机资源包为包括应用程序更新文件的系统ROM包;以及将该匹配的刷机资源包信息发送至该客户端,使该客户端使用该匹配的刷机资源包对该待刷机终端设备进行刷机操作。A seventh aspect of the present invention provides a method for flashing a terminal device, the method comprising: receiving, by a server, a query instruction sent by a client, the query command is to query the client to obtain the to-be-flashed machine in a fastboot mode from a terminal device to be flashed The query instruction of the flash resource resource packet corresponding to the system information of the terminal device; querying the matching flash resource resource package information from the saved flash resource resource package in response to the query instruction; wherein the saved flash resource resource package is a system ROM including an application update file And sending the matched flash resource resource information to the client, and causing the client to perform the flashing operation on the to-be-printed terminal device by using the matched flash resource resource package.
结合第七方面,在第七方面的第一种可能的实施方式中,将该匹配的刷机资源包信息发送至该客户端,使该客户端使用该匹配的刷机资源包对该待刷机终端设备进行刷机操作的步骤具体为:将该匹配的刷机资源包信息发送至该客户端,使该客户端解压该刷机资源包得到对应的系统ROM包,解压该ROM包中的应用程序更新文件得到系统镜像文件以及控制处于fastboot模式的该待刷机终端设备运行该镜像文件以对系统进行刷机操作。With reference to the seventh aspect, in a first possible implementation manner of the seventh aspect, the matched flash resource resource package information is sent to the client, and the client uses the matched flash resource resource packet to the to-be-brushed terminal device The step of performing the brushing operation is specifically: sending the matched flash resource resource package information to the client, causing the client to decompress the flash resource resource package to obtain a corresponding system ROM package, and decompressing the application update file in the ROM package to obtain a system. The image file and the device to be flashed in the fastboot mode are controlled to run the image file to perform a brush operation on the system.
本发明第八方面提供了一种终端设备刷机装置,包括:存储模块,用于保存刷机资源包;其中,该保存的刷机资源包为包括应用程序更新文件的系统ROM包;检索模块,用于接收一客户端发送的查询指令,并响应该查询指令从该存储模块保存的刷机资源包中查询匹配的刷机资源包;其中,该查询指令为查询该客户端从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息对应的刷机资源包的查询指令;以及信息交互模块,用于将该检索模块查询到的匹配的刷机资源包信息发送至该客户端,使该客户端使用该匹配的刷机资源包对该待刷机终端设备进行刷机操作。An eighth aspect of the present invention provides a device for flashing a terminal device, comprising: a storage module, configured to save a brush resource package; wherein the saved flash resource package is a system ROM package including an application update file; and a retrieval module is configured to: Receiving a query instruction sent by a client, and querying the matching brush resource resource package from the flash resource resource saved by the storage module in response to the query instruction; wherein the query instruction is to query the client to obtain a fast boot from the terminal device to be brushed a query instruction of the brush resource package corresponding to the system information of the device to be brushed; and an information interaction module, configured to send the matching brush resource package information queried by the retrieval module to the client, so that the client uses The matched brush resource package performs a brush operation on the terminal device to be brushed.
结合第八方面,在第八方面的第一种可能的实施方式中,该检索模块还用于根据该待刷机终端设备的系统信息自动适配出当前系统信息的最新版本。In conjunction with the eighth aspect, in a first possible implementation of the eighth aspect, the retrieving module is further configured to automatically adapt the latest version of the current system information according to the system information of the to-be-printed terminal device.
本发明第九方面提供了一种设备,包括:一个或多个处理器;存储器,用于保存刷机资源包;其中,该保存的刷机资源包为包括应用程序更新文件的系统ROM包;多个应用程序;以及一个或多个程序,其中,该一个或多个程序被存储在该存储器中并被配置为被该一个或多个处理器执行,该一个或多个程序包括指令,该指令用于:接收一客户端发送的查询指令,并响应该查询指令从该存储器中查询匹配的刷机资源包信息;其中,该查询指令为查询该客户端从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息对应的刷机资源包的查询指令;以及将该匹配的刷机资源包信息发送至该客户端,使该客户端使用该匹配的刷机资源包对该待刷机终端设备进行刷机操作。A ninth aspect of the present invention provides an apparatus, including: one or more processors; and a memory, configured to save a flash resource resource package; wherein the saved flash resource resource package is a system ROM package including an application update file; An application; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for Receiving a query instruction sent by a client, and querying the matching flash resource resource information from the memory in response to the query instruction; wherein the query instruction is to query the client to obtain the fast boot mode from the terminal device to be flashed a query instruction of the flash resource resource packet corresponding to the system information of the terminal device to be brushed; and sending the matched flash resource resource package information to the client, so that the client uses the matched flash resource resource package to flash the terminal device to be brushed operating.
结合第九方面,在第九方面的第一种可能的实施方式中,该指令还用于根据该待刷机终端设备的系统信息适配对应最新版本的刷机资源包,以将该最新版本的刷机资源包发送至该客户端,使该客户端使用该最新版本的刷机资源包对该待刷机终端设备进行刷机操作。With reference to the ninth aspect, in a first possible implementation manner of the ninth aspect, the instruction is further configured to adapt, according to the system information of the to-be-swipe terminal device, the latest version of the flash resource resource package, to use the latest version of the flash memory device The resource package is sent to the client, so that the client uses the latest version of the flash resource package to perform a brush operation on the device to be flashed.
上述方案中,通过从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息,并在服务器中查询与该系统信息对应的刷机资源包信息,使客户端根据服务器发送的刷机资源包信息下载该刷机资源包,并使用该刷机资源包对待刷机终端设备进行刷机操作,从而实现了自动识别待刷机终端设备的系统信息,以及自动获取对应的刷机文件对系统进行刷机,刷机过程操作简单,提供了用户的操作体验。In the above solution, the system information of the device to be brushed in the fastboot mode is obtained from the terminal device to be brushed, and the information of the brush resource packet corresponding to the system information is queried in the server, so that the client sends the flash resource according to the server. The package information downloads the brush resource package, and uses the brush resource package to perform a brush operation on the brush terminal device, thereby realizing automatic identification of the system information of the terminal device to be brushed, and automatically acquiring the corresponding brush file to perform brushing on the system, and the brushing process is performed. Simple, providing the user's operating experience.
【附图说明】 [Description of the Drawings]
图1是本发明第一实施方式中的终端设备的刷机方法的流程示意图;1 is a schematic flow chart of a brushing method of a terminal device in a first embodiment of the present invention;
图2是本发明实施方式中的终端设备刷机方法的信号交互示意图;2 is a schematic diagram of signal interaction of a method for brushing a terminal device in an embodiment of the present invention;
图3是图1所示的终端设备的刷机方法中第一实施方式下使用刷机资源包对终端设备进行刷机的方法的流程示意图;3 is a schematic flowchart of a method for brushing a terminal device using a brush resource pack in the first embodiment of the brushing method of the terminal device shown in FIG. 1;
图4是图1所示的终端设备的刷机方法中第二实施方式下使用刷机资源包对终端设备进行刷机的方法的流程示意图;4 is a schematic flow chart of a method for brushing a terminal device using a brush resource pack in a second embodiment of the brushing method of the terminal device shown in FIG. 1;
图5是本发明第二实施方式中的终端设备刷机方法的流程示意图;5 is a schematic flow chart of a method for brushing a terminal device in a second embodiment of the present invention;
图6是本发明第三实施方式中的终端设备刷机方法的流程示意图;6 is a schematic flow chart of a method for brushing a terminal device in a third embodiment of the present invention;
图7是本发明第四实施方式中的终端设备刷机方法的流程示意图;7 is a schematic flow chart of a method for brushing a terminal device in a fourth embodiment of the present invention;
图8是本发明第一实施方式中的终端设备刷机装置的结构示意图;8 is a schematic structural diagram of a device for brushing a terminal device in a first embodiment of the present invention;
图9是本发明第二实施方式中的终端设备刷机装置的结构示意图;9 is a schematic structural diagram of a terminal device brushing device in a second embodiment of the present invention;
图10是本发明第三实施方式中的终端设备刷机装置的结构示意图;FIG. 10 is a schematic structural diagram of a terminal device brushing device in a third embodiment of the present invention; FIG.
图11是本发明实施方式中的终端设备的结构示意图;11 is a schematic structural diagram of a terminal device in an embodiment of the present invention;
图12是本发明实施方式中的便携式电子设备的结构示意图;FIG. 12 is a schematic structural diagram of a portable electronic device according to an embodiment of the present invention; FIG.
图13是本发明实施方式中的一种设备的结构示意图。FIG. 13 is a schematic structural diagram of an apparatus in an embodiment of the present invention.
【具体实施方式】【detailed description】
下面将结合本发明实施方式中的附图,对本发明实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式仅仅是本发明一部分实施方式,而不是全部的实施方式。基于本发明中的实施方式,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施方式,均属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参阅图1,为本发明第一实施方式中的终端设备的刷机方法的流程示意图。该方法包括:FIG. 1 is a schematic flowchart diagram of a method for brushing a terminal device according to a first embodiment of the present invention. The method includes:
步骤S10,客户端从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息,并发送第一查询指令至第一服务器以查询与该系统信息对应的刷机资源包信息。Step S10: The client obtains system information of the to-be-swipe terminal device in the fastboot mode from the to-be-printed terminal device, and sends a first query command to the first server to query the flash resource resource packet information corresponding to the system information.
其中,该系统信息为该待刷机终端设备在每次刷机或更新后保存在终端设备的厂商备份分区OEM中的系统信息,该系统信息至少包括系统版本型号,例如手机型号、操作系统版本号。The system information is system information stored in the manufacturer backup partition OEM of the terminal device after the flashing or updating, and the system information includes at least a system version model, such as a mobile phone model and an operating system version number.
如,手机型号是“H30-L01”,当前操作系统版本号是“V100R001CHNC00B112”,则向OEM写入字符串:“H30-L01V100R001CHNC00B112”,作为系统信息。For example, if the phone model is "H30-L01" and the current operating system version number is "V100R001CHNC00B112", write the string "H30-L01V100R001CHNC00B112" to the OEM as system information.
请同时参阅图2,下面将结合图2所示的信息交互示意图进行说明。当终端设备的操作系统损坏而无法开机时,进入fastboot模式。其中,fastboot模式为快速启动模式,在安卓手机中fastboot是一种比修复recovery更底层的刷机模式,使用USB数据线连接手机的一种刷机模式。通常情况下,当手机的操作系统损坏而无法开机时,用户在关机状态下同时按下返回+开机以进入fastboot模式。Please refer to FIG. 2 at the same time, and the following is an explanation of the information interaction diagram shown in FIG. 2 . When the operating system of the terminal device is damaged and cannot be turned on, enter the fastboot mode. Among them, the fastboot mode is the quick start mode. In the Android mobile phone, fastboot is a brush mode that is lower than the repair recovery mode, and uses a USB data cable to connect the mobile phone. Normally, when the operating system of the mobile phone is damaged and cannot be turned on, the user simultaneously presses back + power on in the power off state to enter the fastboot mode.
此时,客户端与该终端设备连接(如,通过USB接口连接),通过fastboot命令接口查询到该终端设备当前的系统信息(如,系统版本型号),并提供给服务器。At this time, the client is connected to the terminal device (for example, through a USB interface), and the current system information (for example, the system version model) of the terminal device is queried through the fastboot command interface, and is provided to the server.
fastboot是系统底层的一个小系统,通过解析外部传递进来的命令处理相关事务,例如,读取手机相关参数、擦除和写入手机分区数据等。通过标准fastboot命令“fastboot getvar<variable>”可以获取手机端的变量信息,通过fastboot扩展命令的方式,添加自定义命令为“fastboot getvar get_phoneversion”,即读取OEM分区系统版本号信息的命令,获取当前操作系统版本号。如,当客户端发送命令“fastboot getvar get_phoneversion”时,终端设备的fastboot通过解析此命令返回设备型号和操作系统版本号。Fastboot is a small system under the system that processes related transactions by parsing externally passed commands, such as reading phone-related parameters, erasing and writing mobile phone partition data. Pass the standard fastboot command "fastboot Getvar<variable>" can get the variable information of the mobile terminal, and add the custom command to "fastboot getvar" by means of the fastboot extension command. Get_phoneversion", the command to read the OEM partition system version number information, get the current operating system version number. For example, when the client sends the command "fastboot getvar" When get_phoneversion", the fastboot of the terminal device returns the device model and operating system version number by parsing this command.
进一步地,客户端接收到终端设备的系统信息时,通过http请求服务器查询版本匹配的刷机资源包,即,客户端能够通过该服务器访问相应的官网以查询版本匹配的刷机资源包。例如,客户端通过http请求服务器查询与系统信息为“H30-L01V100R001CHNC00B112”相匹配的刷机资源包的请求信息如下:Further, when the client receives the system information of the terminal device, the server requests the server to query the version of the flash resource resource packet, that is, the client can access the corresponding official website through the server to query the version matching brush resource resource package. For example, the client requests the server to query the request information of the flash resource bundle whose system information is "H30-L01V100R001CHNC00B112" through the http request server as follows:
<?xml version="1.0" encoding="utf-8"?><?xml version="1.0" encoding="utf-8"?>
<root><root>
<DeviceName>H30-L01</DeviceName><DeviceName>H30-L01</DeviceName>
<FirmWare>H30-L01V100R001CHNC00B112</FirmWare><FirmWare>H30-L01V100R001CHNC00B112</FirmWare>
</root></root>
步骤S11,接收该第一服务器发送的刷机资源包信息,并根据该刷机资源包信息下载对应的刷机资源包。Step S11: Receive the flash resource resource information sent by the first server, and download the corresponding flash resource resource packet according to the flash resource resource package information.
其中,该刷机资源包信息为该刷机资源包的URL下载地址。针对如上所述的客户端发送的请求下载刷机资源包的信息,服务器返回的信息如下:The flash resource resource package information is a URL download address of the flash resource resource package. For the information sent by the client to download the flash resource bundle information as described above, the information returned by the server is as follows:
<component><component>
<down_url>nsp/geturl.php?path=H30-L01_EMUI3.0_Android4.4_V100R001CHNC00B256.zip<down_url>nsp/geturl.php?path=H30-L01_EMUI3.0_Android4.4_V100R001CHNC00B256.zip
</down_url></down_url>
<md5>CF226601E400568C1A2B0C2422CFF7AF</md5><md5>CF226601E400568C1A2B0C2422CFF7AF</md5>
<name>H30-L01_EMUI3.0_Android4.4_V100R001CHNC00B256.zip</name><name>H30-L01_EMUI3.0_Android4.4_V100R001CHNC00B256.zip</name>
</component></component>
在一实施方式中,客户端接收第一服务器发送的刷机资源包信息,并根据刷机资源包信息从该第一服务器下载该刷机资源包。客户端能够通过该第一服务器访问相应的官网查询版本匹配的刷机资源包,还可以获取并下载该刷机资源包。In an embodiment, the client receives the flash resource bundle information sent by the first server, and downloads the flash resource bundle from the first server according to the flash resource bundle information. The client can access the corresponding official website to query the matching brush resource package through the first server, and can also obtain and download the flash resource package.
在另一实施方式中,客户端接收该第一服务器发送的刷机资源包信息,并根据刷机资源包信息从第二服务器下载该刷机资源包。其中,该客户端能够通过该第一服务器访问相应的官网查询版本匹配的刷机资源包,以获得对应的下载地址。该第二服务器保存了多种版本的刷机资源包,该客户端根据该下载地址从第二服务器获取该刷机资源包。In another embodiment, the client receives the flash resource bundle information sent by the first server, and downloads the flash resource bundle from the second server according to the flash resource bundle information. The client can access the corresponding official website to query the version of the brush resource package matched by the first server to obtain a corresponding download address. The second server saves multiple versions of the flash resource package, and the client obtains the flash resource package from the second server according to the download address.
步骤S12,使用该刷机资源包对该待刷机终端设备进行刷机操作。Step S12, using the brush resource package to perform a brush operation on the terminal device to be brushed.
具体地,该客户端将刷机资源包的文件发送到待刷机终端设备,并控制该待刷机终端设备的系统重新启动,进入升级模式,使该待刷机终端设备重启之后启动升级流程并运行该刷机资源包完成系统的刷机或升级。Specifically, the client sends the file of the brush resource package to the terminal device to be brushed, and controls the system of the terminal device to be brushed to restart, enters the upgrade mode, and restarts the upgrade process and runs the brush after the device to be brushed is restarted. The resource pack completes the system's flashing or upgrading.
请同时参阅图3,在一实施方式中,步骤S12,即,使用该刷机资源包对该待刷机终端设备进行刷机操作的步骤具体通过如下步骤实现:Referring to FIG. 3, in an embodiment, the step S12, that is, the step of performing the brushing operation on the terminal device to be brushed by using the brush resource package is specifically implemented by the following steps:
步骤S20,解压该刷机资源包得到对应的刷机包,该刷机包包括镜像文件。In step S20, the brush resource package is decompressed to obtain a corresponding flash package, and the flash package includes an image file.
步骤S21,控制处于fastboot模式的待刷机终端设备运行该镜像文件以对系统进行刷机操作。Step S21, controlling the terminal device to be brushed in the fastboot mode to run the image file to perform a brush operation on the system.
请同时参阅图4,在另一实施方式中,步骤S12,即,使用该刷机资源包对该待刷机终端设备进行刷机操作的步骤具体通过如下步骤实现:Referring to FIG. 4, in another embodiment, the step S12, that is, the step of performing the brushing operation on the terminal device to be brushed by using the brush resource package is specifically implemented by the following steps:
步骤S30,解压该刷机资源包得到对应的系统ROM包,该系统ROM包包括应用程序更新文件。Step S30, decompressing the flash resource package to obtain a corresponding system ROM package, where the system ROM package includes an application update file.
步骤S31,解压该应用程序更新文件得到镜像文件。In step S31, the application update file is decompressed to obtain an image file.
具体地,客户端从系统ROM包中的应用程序更新文件update.app中解压出recover.img等镜像文件。客户端可以直接使用从update.app文件中解压出的各个镜像文件对待刷机终端进行系统刷机。Specifically, the client extracts an image file such as recover.img from the application update file update.app in the system ROM package. The client can directly use the image file extracted from the update.app file to perform system flashing on the brushing terminal.
步骤S32,控制处于fastboot模式的待刷机终端设备运行该镜像文件以对系统进行刷机操作。Step S32, controlling the terminal device to be brushed in the fastboot mode to run the image file to perform a brush operation on the system.
请参阅图5,为本发明第二实施方式中的一种终端设备刷机方法的流程示意图,该方法包括:FIG. 5 is a schematic flowchart of a method for brushing a terminal device according to a second embodiment of the present invention, where the method includes:
步骤S40,该终端设备处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应该指令获取该终端设备的系统信息,使该客户端获取该系统信息以根据该系统信息从一服务器中获取对应的刷机资源包。Step S40: The terminal device receives an instruction for querying system information sent by the client when in the fastboot mode, and obtains system information of the terminal device in response to the instruction, so that the client obtains the system information to use a server according to the system information. Get the corresponding brush resource package.
其中,该系统信息至少包括系统版本型号,例如手机型号、操作系统版本号。The system information includes at least a system version model, such as a mobile phone model and an operating system version number.
当终端设备的操作系统损坏而无法开机时,进入fastboot模式。其中,fastboot模式为快速启动模式,在安卓手机中fastboot是一种比修复recovery更底层的刷机模式,使用USB数据线连接手机的一种刷机模式。通常情况下,当手机的操作系统损坏而无法开机时,用户在关机状态下同时按下返回+开机以进入fastboot模式。此时,该终端设备与客户端连接(如,通过USB接口连接),通过fastboot命令接口接收该客户端发送的查询指令,以查询该终端设备当前的系统信息(如,系统版本型号),使客户端在接收到终端设备的系统信息时,通过http请求服务器查询版本匹配的刷机资源包,以及下载该刷机资源包。When the operating system of the terminal device is damaged and cannot be turned on, enter the fastboot mode. Among them, the fastboot mode is the quick start mode. In the Android mobile phone, fastboot is a brush mode that is lower than the repair recovery mode, and uses a USB data cable to connect the mobile phone. Normally, when the operating system of the mobile phone is damaged and cannot be turned on, the user simultaneously presses back + power on in the power off state to enter the fastboot mode. At this time, the terminal device is connected to the client (for example, through a USB interface), and receives a query command sent by the client through the fastboot command interface to query the current system information (for example, the system version model) of the terminal device, so that the terminal device is connected to the client. When receiving the system information of the terminal device, the client requests the server to query the version of the flash resource resource package and download the flash resource resource package.
具体地,该终端设备当接收到客户端发送命令“fastboot getvar get_phoneversion”时,fastboot通过解析此命令返回设备型号和操作系统版本号。Specifically, the terminal device sends a command "fastboot getvar" when receiving the client. When get_phoneversion", fastboot returns the device model and operating system version number by parsing this command.
步骤S41,接收该客户端发送的刷机资源包,运行该刷机资源包进行刷机。Step S41, receiving the flash resource package sent by the client, and running the flash resource package to perform the flashing.
具体地,该待刷机的终端设备接收客户端发送的刷机资源包的文件,以及响应该客户端的控制重新启动系统,进入升级模式,并运行该刷机资源包完成系统的刷机或升级。Specifically, the terminal device of the to-be-brushed machine receives the file of the flash resource package sent by the client, and restarts the system in response to the control of the client, enters the upgrade mode, and runs the flash resource package to complete the brushing or upgrading of the system.
请参阅图6,为本发明第三实施方式中的一种终端设备刷机方法的流程示意图,相对于图4所示的终端设备刷机方法,还包括:FIG. 6 is a schematic flowchart of a method for brushing a terminal device according to a third embodiment of the present invention. The method for brushing a terminal device shown in FIG. 4 further includes:
步骤S52,将刷机后的系统的系统信息保存至该终端设备的厂商备份分区OEM中。In step S52, the system information of the system after the flashing is saved to the manufacturer backup partition OEM of the terminal device.
其他步骤请参见图4及相应的文字说明。For other steps, please refer to Figure 4 and the corresponding text description.
请参阅图7,为本发明第四实施方式中的一种终端设备刷机方法的流程示意图,该方法包括:FIG. 7 is a schematic flowchart of a method for brushing a terminal device according to a fourth embodiment of the present invention, where the method includes:
步骤S60,服务器接收一客户端发送的查询指令,该查询指令为查询该客户端从待刷机终端设备中取得处于fastboot模式的待刷机终端设备的系统信息对应的刷机资源包的查询指令。Step S60: The server receives a query instruction sent by the client, where the query instruction is a query instruction for querying, by the client, the flash resource resource packet corresponding to the system information of the device to be flashed in the fastboot mode.
步骤S61,响应该查询指令从保存的刷机资源包中查询匹配的刷机资源包。Step S61, in response to the query instruction, query the matched flash resource bundle from the saved flash resource bundle.
其中,该服务器保存的刷机资源包为包括应用程序更新文件的系统ROM包。The flash resource package saved by the server is a system ROM package including an application update file.
由于客户端具备从ROM包的update.app文件解压出recovery.img等镜像文件能力,从而直接使用ROM包即可对待刷机的终端设备进行刷机操作,因此,服务器不需要再额外提供无法开机的场景下的刷机包,只需要保存对应的ROM包,从而降低服务器的存储消耗以及降低制作维护刷机包的成本。Since the client has the ability to extract the image file such as recovery.img from the update.app file of the ROM package, the terminal device of the device can be brushed directly by using the ROM package. Therefore, the server does not need to provide an additional scene that cannot be booted. Under the brush package, only need to save the corresponding ROM package, thereby reducing the storage consumption of the server and reducing the cost of making and maintaining the flash package.
进一步地,服务器根据待刷机终端设备的系统信息查询匹配的刷机资源包,还可以自动适配出当前系统信息的最新版本,例如,判断系统版本是开发版、稳定版或者发货版,并向客户端推送最新版本。Further, the server queries the matching brush resource package according to the system information of the terminal device to be brushed, and can also automatically adapt the latest version of the current system information, for example, determining that the system version is a development version, a stable version, or a delivery version, and The client pushes the latest version.
步骤S62,将该刷机资源包信息发送至该客户端,使该客户端使用该刷机资源包对该待刷机终端设备进行刷机操作。Step S62: Send the flash resource resource package information to the client, and enable the client to perform a brush operation on the terminal device to be brushed by using the flash resource resource package.
其中,该刷机资源包信息为匹配的刷机资源包的下载地址。The flash resource resource packet information is a download address of the matching flash resource resource package.
服务器根据客户端上报的待刷机终端设备的系统版本号,将对应刷机资源包的下载URL地址给返回至客户端。如果要推送最新版本给终端设备,可以类似OTA(Over the Air Technology,空中下载技术)服务器,判断出当前的系统版本是开发版、稳定版还是发货版,然后选取最新的版本进行发送。The server returns the download URL address of the corresponding flash resource resource package to the client according to the system version number of the terminal device to be brushed reported by the client. If you want to push the latest version to the terminal device, you can similar to OTA (Over The Air Technology, the air download technology server, determines whether the current system version is a development version, a stable version, or a shipping version, and then selects the latest version to send.
在另一实施方式中,该些刷机资源包保存在另外一个服务器中,该服务器将刷机资源包信息发送至客户端后,使该客户端能够根据该刷机资源包信息访问该另一个服务器以下载该刷机资源包。In another embodiment, the flash resource bundles are stored in another server, and the server sends the flash resource bundle information to the client, so that the client can access the other server to download according to the flash resource bundle information. The Brush Resource Pack.
请参阅图8,为本发明第一实施方式中的一种终端设备刷机装置的结构示意图,该装置70包括查询模块71、下载模块72以及刷机模块73。FIG. 8 is a schematic structural diagram of a device for flashing a terminal device according to a first embodiment of the present invention. The device 70 includes a query module 71, a download module 72, and a brush module 73.
该查询模块71用于从待刷机终端设备中取得处于fastboot模式的待刷机终端设备的系统信息,并发送第一查询指令至第一服务器以查询与该系统信息对应的刷机资源包信息。其中,该系统信息为该待刷机终端设备在每次刷机或更新后保存在终端设备的厂商备份分区OEM中的系统信息,该系统信息至少包括系统版本型号,例如手机型号、操作系统版本号。The query module 71 is configured to obtain system information of the terminal device to be brushed in the fastboot mode from the device to be flashed, and send a first query command to the first server to query the flash resource resource information corresponding to the system information. The system information is system information stored in the manufacturer backup partition OEM of the terminal device after the flashing or updating, and the system information includes at least a system version model, such as a mobile phone model and an operating system version number.
当终端设备的操作系统损坏而无法开机时,进入fastboot模式。此时,该装置70与该终端设备连接(如,通过USB接口连接),通过fastboot命令接口查询到该终端设备当前的系统信息(如,系统版本型号),并提供给第一服务器。When the operating system of the terminal device is damaged and cannot be turned on, enter the fastboot mode. At this time, the device 70 is connected to the terminal device (for example, connected through a USB interface), and the current system information (such as the system version model) of the terminal device is queried through the fastboot command interface, and is provided to the first server.
该下载模块72用于接收该第一服务器发送的刷机资源包信息,并根据该刷机资源包信息下载该刷机资源包。其中,该刷机资源包信息为该刷机资源包的URL下载地址。The downloading module 72 is configured to receive the flash resource resource information sent by the first server, and download the flash resource resource packet according to the flashing resource resource information. The flash resource resource package information is a URL download address of the flash resource resource package.
在一实施方式中,该下载模块72接收服务器发送的刷机资源包信息,并根据刷机资源包信息从该第一服务器下载该刷机资源包。该下载模块72能够通过该第一服务器访问相应的官网查询版本匹配的刷机资源包,还可以获取并下载该刷机资源包。In an embodiment, the downloading module 72 receives the flash resource bundle information sent by the server, and downloads the flash resource bundle from the first server according to the flash resource bundle information. The downloading module 72 can access the corresponding official website to query the version of the flash resource resource package, and can also obtain and download the flash resource resource package.
在另一实施方式中,该下载模块72接收第一服务器发送的刷机资源包信息,并根据刷机资源包信息从第二服务器下载该刷机资源包。其中,该下载模块72能够通过该服务器访问相应的官网查询版本匹配的刷机资源包,以获得对应的下载地址。该第二服务器保存了多种版本的刷机资源包,该下载模块72根据该下载地址从该第二服务器获取该刷机资源包。In another embodiment, the downloading module 72 receives the flash resource bundle information sent by the first server, and downloads the flash resource bundle from the second server according to the flash resource bundle information. The downloading module 72 can access the corresponding official network to query the version of the flash resource resource packet to obtain a corresponding download address. The second server saves a plurality of versions of the flash resource package, and the download module 72 acquires the flash resource package from the second server according to the download address.
该刷机模块73用于使用该下载模块72下载的刷机资源包对该待刷机终端设备进行刷机操作。The brush module 73 is configured to perform a brush operation on the device to be brushed using the flash resource package downloaded by the download module 72.
其中,该刷机模块73将刷机资源包的文件推送到待刷机终端设备,并控制该待刷机终端设备的系统重新启动,进入升级模式,使该待刷机终端设备重启之后启动升级流程并运行该刷机资源包完成系统的刷机或升级。The brush module 73 pushes the file of the brush resource package to the terminal device to be brushed, and controls the system of the terminal device to be brushed to restart, enters the upgrade mode, and restarts the upgrade process and runs the brush after the device to be brushed is restarted. The resource pack completes the system's flashing or upgrading.
在一实施方式中,该刷机模块73解压该刷机资源包得到对应的包括镜像文件的刷机包,并控制处于fastboot模式的待刷机终端设备运行该镜像文件以对系统进行刷机。In an embodiment, the brush module 73 decompresses the flash resource package to obtain a corresponding flash package including the image file, and controls the terminal device to be flashed in the fastboot mode to run the image file to flash the system.
在另一实施方式中,该刷机模块73解压该刷机资源包得到对应的包括update.app文件的系统ROM包,解压该update.app文件得到镜像文件,并控制处于fastboot模式的待刷机终端设备运行该镜像文件以对系统进行刷机。In another embodiment, the flash module 73 decompresses the flash resource package to obtain a corresponding system ROM package including the update.app file, decompresses the update.app file to obtain an image file, and controls the terminal device to be flashed in the fastboot mode. The image file is used to flash the system.
具体地,该刷机模块73从系统ROM包中的update.app文件中解压出recover.img等镜像文件,并直接使用从update.app文件中解压出的各个镜像文件对待刷机终端进行刷机。Specifically, the brush module 73 extracts an image file such as recover.img from the update.app file in the system ROM package, and directly uses the image file extracted from the update.app file to perform a brushing operation on the brushing terminal.
请参阅图9,为本发明第二实施方式中的一种终端设备刷机装置的结构示意图,该装置80包括系统查询模块81和刷机模块82。FIG. 9 is a schematic structural diagram of a device for brushing a terminal device according to a second embodiment of the present invention. The device 80 includes a system query module 81 and a brush module 82.
该系统信息查询模块81用于在该终端设备处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应该指令获取该终端设备的系统信息,使该客户端获取该系统信息并根据该系统信息从一服务器中获取对应的刷机资源包。The system information querying module 81 is configured to receive an instruction for querying system information sent by the client when the terminal device is in the fastboot mode, and obtain system information of the terminal device in response to the instruction, so that the client obtains the system information according to the The system information obtains a corresponding brush resource package from a server.
其中,该系统信息至少包括系统版本型号,例如手机型号、操作系统版本号。The system information includes at least a system version model, such as a mobile phone model and an operating system version number.
当终端设备的操作系统损坏而无法开机时,进入fastboot模式。此时,该终端设备与客户端连接(如,通过USB接口连接),该系统信息查询模块81通过fastboot命令接口接收该客户端发送的查询指令,以查询该终端设备当前的系统信息(如,系统版本型号),使客户端在接收到终端设备的系统信息时,通过http请求服务器查询版本匹配的刷机资源包,以及下载该刷机资源包。When the operating system of the terminal device is damaged and cannot be turned on, enter the fastboot mode. At this time, the terminal device is connected to the client (for example, connected through a USB interface), and the system information query module 81 receives the query command sent by the client through the fastboot command interface to query the current system information of the terminal device (eg, The system version model enables the client to query the version of the flash resource package and download the flash resource package through the http request server when receiving the system information of the terminal device.
具体地,该系统信息查询模块81当接收到客户端发送命令“fastboot getvar get_phoneversion”时,fastboot通过解析此命令返回设备型号和操作系统版本号。Specifically, the system information query module 81 sends a command "fastboot getvar" when receiving the client. When get_phoneversion", fastboot returns the device model and operating system version number by parsing this command.
该刷机模块82用于接收该客户端发送的刷机资源包,运行该刷机资源包进行刷机。The brush module 82 is configured to receive the flash resource package sent by the client, and run the flash resource package to perform the flashing.
具体地,该刷机模块82接收客户端推送的刷机资源包的文件,以及响应该客户端的控制重新启动系统,进入升级模式,并运行该刷机资源包完成系统的刷机或升级。Specifically, the flash module 82 receives the file of the flash resource package pushed by the client, and restarts the system in response to the control of the client, enters the upgrade mode, and runs the flash resource package to complete the flashing or upgrading of the system.
请参阅图10,为本发明第三实施方式中的一种终端设备刷机装置的结构示意图,该装置90包括存储模块91、检索模块92以及信息交互模块93。FIG. 10 is a schematic structural diagram of a device for brushing a terminal device according to a third embodiment of the present invention. The device 90 includes a storage module 91, a retrieval module 92, and an information interaction module 93.
该存储模块91用于保存刷机资源包。其中,该存储模块91保存的刷机资源包为包括应用程序更新文件的系统ROM包。The storage module 91 is configured to save a flash resource bundle. The flash resource package saved by the storage module 91 is a system ROM package including an application update file.
由于客户端具备从ROM包的update.app文件解压出recovery.img等镜像文件能力,从而直接使用ROM包即可对该待刷机终端设备进行刷机操作,因此,服务器不需要再额外提供无法开机的场景下的修复包,只需要保存对应的ROM包,从而降低服务器的存储消耗以及降低制作维护修复包的成本。Since the client has the ability to extract the image file such as recovery.img from the update.app file of the ROM package, the terminal device can be brushed directly by using the ROM package, so the server does not need to provide additional booting. The repair package in the scenario only needs to save the corresponding ROM package, thereby reducing the storage consumption of the server and reducing the cost of making the maintenance repair package.
该检索模块92用于接收一客户端发送的查询指令,并响应该查询指令从该存储模块保存的刷机资源包中查询匹配的刷机资源包。其中,该查询指令为查询该客户端从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息对应的刷机资源包的查询指令。The retrieval module 92 is configured to receive a query instruction sent by a client, and query the matching brush resource package from the flash resource bundle saved by the storage module in response to the query instruction. The query instruction is a query instruction for querying, by the client, the flash resource resource packet corresponding to the system information of the to-be-swipe terminal device in the fast boot mode.
进一步地,该检索模块92根据待刷机终端设备的系统信息查询匹配的刷机资源包,还可以自动适配出当前系统信息的最新版本,例如,判断系统版本是开发版、稳定版或者发货版,并向客户端推送最新版本。Further, the retrieval module 92 queries the matching brush resource package according to the system information of the terminal device to be brushed, and can also automatically adapt the latest version of the current system information, for example, determine whether the system version is a development version, a stable version, or a delivery version. And push the latest version to the client.
该信息交互模块93用于将该检索模块查询到的匹配的刷机资源包信息发送至该客户端,使该客户端使用该匹配的刷机资源包对该待刷机终端设备进行刷机。The information interaction module 93 is configured to send the matched flash resource resource information queried by the retrieval module to the client, so that the client uses the matched flash resource resource packet to flash the terminal device to be brushed.
其中,该刷机资源包信息为匹配的刷机资源包的下载地址。The flash resource resource packet information is a download address of the matching flash resource resource package.
该信息交互模块93将对应刷机资源包的下载URL地址给返回至客户端。如果要推送最新版本给终端设备,可以类似OTA服务器,判断出当前的系统版本是开发版、稳定版还是发货版,然后取最新的版本进行发送。The information interaction module 93 returns the download URL address of the corresponding flash resource package to the client. If you want to push the latest version to the terminal device, you can use the OTA server to determine whether the current system version is a development version, a stable version, or a shipping version, and then send the latest version.
请参阅图11,为本发明实施方式中的终端设备的结构示意图,该实施方式中的终端设备100为终端,该终端可以是个人计算机、平板电脑、笔记本电脑等。该终端设备100包括接收器101、处理器102、发送器103、只读存储器104、随机存取存储器105以及总线106。FIG. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal device 100 in the embodiment is a terminal, and the terminal may be a personal computer, a tablet computer, a notebook computer, or the like. The terminal device 100 includes a receiver 101, a processor 102, a transmitter 103, a read only memory 104, a random access memory 105, and a bus 106.
该接收器101用于接收数据。The receiver 101 is for receiving data.
该处理器102控制终端设备100的操作,该处理器102还可以成为CPU(Central Processing Unit,中央处理单元)。该处理器102可能是一种集成电路芯片,具有信号的处理能力。处理器102还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 102 controls the operation of the terminal device 100, and the processor 102 can also become a CPU (Central Processing Unit, central processing unit). The processor 102 may be an integrated circuit chip with signal processing capabilities. The processor 102 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. . The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该发送器103用于发送数据。The transmitter 103 is for transmitting data.
存储器可以包括只读存储器104和随机存取存储器105,并向处理器102提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。The memory can include read only memory 104 and random access memory 105 and provides instructions and data to processor 102. A portion of the memory may also include non-volatile random access memory (NVRAM).
终端设备100的各个组件通过总线106耦合在一起,其中,总线106除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线106。The various components of the terminal device 100 are coupled together via a bus 106, wherein the bus 106 can include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 106 in the figure.
存储器存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器102通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the processor 102 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
处理器102控制存储器存储数据;The processor 102 controls the memory to store data;
处理器102从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息,并发送第一查询指令至第一服务器以查询与该系统信息对应的刷机资源包信息;接收该服务器发送的该刷机资源包信息,并根据该刷机资源包信息下载该刷机资源包;以及使用该刷机资源包对该待刷机终端设备进行刷机操作。The processor 102 obtains the system information of the to-be-brushed terminal device in the fastboot mode from the device to be flashed, and sends a first query instruction to the first server to query the flash resource resource information corresponding to the system information; And the brush resource information is downloaded, and the brush resource package is downloaded according to the flash resource resource information; and the brushing operation is performed on the terminal device to be brushed.
其中,该系统信息至少包括系统版本型号,例如手机型号、操作系统版本号。The system information includes at least a system version model, such as a mobile phone model and an operating system version number.
可选地,该处理器102接收服务器发送的刷机资源包信息,并根据刷机资源包信息从该第一服务器下载该刷机资源包。其中,该刷机资源包信息为刷机资源包的下载地址。Optionally, the processor 102 receives the flash resource bundle information sent by the server, and downloads the flash resource bundle from the first server according to the flash resource bundle information. The flash resource resource information is a download address of the flash resource package.
可选地,该处理器102接收第一服务器发送的刷机资源包信息,并根据刷机资源包信息从第二服务器下载该刷机资源包。Optionally, the processor 102 receives the flash resource bundle information sent by the first server, and downloads the flash resource bundle from the second server according to the flash resource bundle information.
可选地,该处理器102解压所述刷机资源包得到对应的刷机包,所述刷机包包括镜像文件;控制处于fastboot模式的所述待刷机终端设备运行所述镜像文件对系统进行刷机。Optionally, the processor 102 decompresses the flash resource bundle to obtain a corresponding flash package, where the flash package includes an image file; and the standby device that controls the flash boot mode runs the image file to flash the system.
可选地,该处理器102解压所述刷机资源包得到对应的系统ROM包,所述系统ROM包包括应用程序更新文件;解压所述应用程序更新文件得到系统镜像文件;以及控制处于fastboot模式的所述待刷机终端设备运行所述镜像文件以刷机系统。Optionally, the processor 102 decompresses the flash resource bundle to obtain a corresponding system ROM package, where the system ROM package includes an application update file, decompresses the application update file to obtain a system image file, and controls the fast boot mode. The device to be brushed runs the image file to brush the system.
请参阅图12,为本发明实施方式中一种便携式电子设备的结构示意图,该实施方式中的便携式电子设备110为移动终端,该移动终端可以是智能手机、平板电脑等。该便携式电子设备110包括接收器111、处理器112、发送器113、只读存储器114、随机存取存储器115、总线116以及显示器117。FIG. 12 is a schematic structural diagram of a portable electronic device according to an embodiment of the present invention. The portable electronic device 110 in this embodiment is a mobile terminal, and the mobile terminal may be a smart phone, a tablet computer, or the like. The portable electronic device 110 includes a receiver 111, a processor 112, a transmitter 113, a read only memory 114, a random access memory 115, a bus 116, and a display 117.
该接收器111用于接收数据。The receiver 111 is for receiving data.
该处理器112控制便携式电子设备110的操作,该处理器112还可以成为CPU(Central Processing Unit,中央处理单元)。该处理器112可能是一种集成电路芯片,具有信号的处理能力。处理器112还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 112 controls the operation of the portable electronic device 110, which can also become a CPU (Central) Processing Unit, central processing unit). The processor 112 may be an integrated circuit chip with signal processing capabilities. The processor 112 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. . The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该发送器113用于发送数据。The transmitter 113 is for transmitting data.
存储器可以包括只读存储器114和随机存取存储器115,并向处理器112提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。The memory can include read only memory 114 and random access memory 115 and provide instructions and data to processor 112. A portion of the memory may also include non-volatile random access memory (NVRAM).
该显示器117包括触摸表面和显示屏。The display 117 includes a touch surface and a display screen.
便携式电子设备110的各个组件通过总线116耦合在一起,其中,总线116除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线116。The various components of the portable electronic device 110 are coupled together by a bus 116, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 116 in the figure.
存储器存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器112通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the processor 112 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
处理器112控制存储器存储数据;The processor 112 controls the memory to store data;
处理器112在系统处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应该指令获取该便携式电子设备110的系统信息,使该客户端获取该系统信息并根据该系统信息从一服务器中获取对应的刷机资源包,以及接收该客户端发送的刷机资源包,运行该刷机资源包进行刷机。The processor 112 receives an instruction sent by the client to query system information when the system is in the fastboot mode, and obtains system information of the portable electronic device 110 in response to the instruction, so that the client obtains the system information and proceeds from the system according to the system information. The server obtains the corresponding flash resource package, and receives the flash resource package sent by the client, and runs the flash resource package to perform the flashing.
其中,该系统信息至少包括系统版本型号,例如手机型号、操作系统版本号。The system information includes at least a system version model, such as a mobile phone model and an operating system version number.
可选地,该处理器112将刷机后的系统的系统信息保存至该便携式电子设备110的厂商备份分区OEM。Optionally, the processor 112 saves system information of the system after the flashing to the vendor backup partition OEM of the portable electronic device 110.
请参阅图13,为本发明实施方式中的一种设备的结构示意图,该实施方式中的设备120为服务器。该终端设备刷机装置120包括接收器121、处理器122、发送器123、只读存储器124、随机存取存储器125以及总线126。FIG. 13 is a schematic structural diagram of a device according to an embodiment of the present invention, where the device 120 is a server. The terminal device flash device 120 includes a receiver 121, a processor 122, a transmitter 123, a read only memory 124, a random access memory 125, and a bus 126.
该接收器121用于接收数据。The receiver 121 is for receiving data.
该处理器122控制设备120的操作,该处理器122还可以成为CPU(Central Processing Unit,中央处理单元)。该处理器122可能是一种集成电路芯片,具有信号的处理能力。处理器122还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 122 controls the operation of the device 120, and the processor 122 can also become a CPU (Central Processing Unit, central processing unit). The processor 122 may be an integrated circuit chip with signal processing capabilities. The processor 122 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. . The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该发送器123用于发送数据。The transmitter 123 is for transmitting data.
存储器可以包括只读存储器124和随机存取存储器125,并向处理器122提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。The memory can include read only memory 124 and random access memory 125 and provide instructions and data to processor 122. A portion of the memory may also include non-volatile random access memory (NVRAM).
设备120的各个组件通过总线126耦合在一起,其中,总线126除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线126。The various components of device 120 are coupled together by a bus 126, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 126 in the figure.
存储器存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器122通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the processor 122 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
处理器122控制存储器存储数据;The processor 122 controls the memory to store data;
处理器122接收一客户端发送的查询指令,并响应该查询指令从该存储器122中查询匹配的刷机资源包信息;以及将该匹配的刷机资源包信息发送至该客户端,使该客户端使用该匹配的刷机资源包刷机该待刷机终端设备。The processor 122 receives a query instruction sent by the client, and queries the memory 122 for the matching flash resource resource information in response to the query instruction; and sends the matched flash resource resource information to the client, so that the client uses The matching brush resource packet brushing machine is to be brushed to the terminal device.
其中,该查询指令为查询该客户端从待刷机终端设备中取得处于fastboot模式的该待刷机终端设备的系统信息对应的刷机资源包的查询指令。该刷机资源包信息为匹配的刷机资源包的下载地址。The query instruction is a query instruction for querying, by the client, the flash resource resource packet corresponding to the system information of the to-be-swipe terminal device in the fast boot mode. The flash resource resource information is the download address of the matching flash resource package.
并且,该存储器保存的刷机资源包为包括应用程序更新文件的系统ROM包。And, the flash resource package saved by the memory is a system ROM package including an application update file.
可选地,该处理器122根据待刷机终端设备的系统信息查询匹配的刷机资源包,还可以自动适配出当前系统信息的最新版本,例如,判断系统版本是开发版、稳定版或者发货版,并向客户端推送最新版本。Optionally, the processor 122 searches for the matching brush resource package according to the system information of the terminal device to be brushed, and automatically adapts the latest version of the current system information, for example, determining that the system version is a development version, a stable version, or a delivery. Version and push the latest version to the client.
上述方案中,通过从待刷机终端设备中取得处于fastboot模式的所述待刷机终端设备的系统信息,并在服务器中查询与该系统信息对应的刷机资源包信息,使客户端根据服务器发送的刷机资源包信息下载所述刷机资源包,并使用所述刷机资源包对所述待刷机终端设备进行刷机,从而实现了自动识别待刷机终端设备的系统信息,以及自动获取对应的刷机文件对系统进行刷机,刷机过程操作简单,提供了用户的操作体验。In the above solution, the system information of the device to be brushed in the fastboot mode is obtained from the terminal device to be brushed, and the information of the brush resource packet corresponding to the system information is queried in the server, so that the client sends the brush according to the server. The resource package information downloads the brush resource package, and uses the brush resource package to flash the terminal device to be brushed, thereby realizing automatic identification of system information of the terminal device to be brushed, and automatically acquiring the corresponding brush file to perform system The brushing machine and the brushing process are simple to operate and provide the user's operating experience.
在上述实施例中,仅对本发明进行了示范性描述,但是本领域技术人员在阅读本专利申请后可以在不脱离本发明的精神和范围的情况下对本发明进行各种修改。 In the above-described embodiments, the present invention has been exemplarily described, and various modifications of the present invention may be made without departing from the spirit and scope of the invention.

Claims (24)

  1. 一种终端设备的刷机方法,其中,所述方法包括:A brushing method of a terminal device, wherein the method comprises:
    客户端从待刷机终端设备中取得处于快速启动fastboot模式的所述待刷机终端设备的系统信息,并发送第一查询指令至第一服务器以查询与所述系统信息对应的刷机资源包信息;The client obtains the system information of the to-be-brushed terminal device in the fast-start fastboot mode from the device to be brushed, and sends a first query instruction to the first server to query the flash resource resource information corresponding to the system information;
    接收所述第一服务器发送的所述刷机资源包信息,并根据所述刷机资源包信息下载对应的刷机资源包;以及Receiving the flash resource resource information sent by the first server, and downloading a corresponding flash resource resource packet according to the flash resource resource package information;
    使用所述刷机资源包对所述待刷机终端设备进行刷机操作。And brushing the terminal device to be brushed by using the brush resource package.
  2. 根据权利要求1所述的终端设备的刷机方法,其中,所述接收所述第一服务器发送的所述刷机资源包信息,并根据所述刷机资源包信息下载对应的刷机资源包的步骤具体为:The flashing method of the terminal device according to claim 1, wherein the step of receiving the flash resource resource information sent by the first server and downloading a corresponding flash resource resource packet according to the flashing resource resource information is specifically :
    接收所述第一服务器发送的所述刷机资源包信息,并根据所述刷机资源包信息从所述第一服务器或第二服务器下载所述刷机资源包;其中,所述刷机资源包信息为所述刷机资源包的下载地址。Receiving the flash resource resource information sent by the first server, and downloading the flash resource resource packet from the first server or the second server according to the flashing resource resource information; wherein the flash resource resource information is The download address of the brush resource package.
  3. 根据权利要求1所述的终端设备的刷机方法,其中,所述使用所述刷机资源包对所述终端设备进行刷机操作的步骤具体为:The brushing method of the terminal device according to claim 1, wherein the step of performing a brushing operation on the terminal device by using the brush resource resource package is specifically:
    解压所述刷机资源包得到对应的刷机包,所述刷机包包括镜像文件;Decompressing the brush resource package to obtain a corresponding brush package, where the brush package includes an image file;
    控制处于fastboot模式的所述待刷机终端设备运行所述镜像文件以对系统进行刷机操作。The device to be brushed in the fastboot mode is controlled to run the image file to perform a brush operation on the system.
  4. 根据权利要求1所述的终端设备的刷机方法,其中,所述使用所述刷机资源包对所述终端设备进行刷机操作的步骤具体为:The brushing method of the terminal device according to claim 1, wherein the step of performing a brushing operation on the terminal device by using the brush resource resource package is specifically:
    解压所述刷机资源包得到对应的系统ROM包,所述系统ROM包包括应用程序更新文件;Decompressing the brush resource package to obtain a corresponding system ROM package, where the system ROM package includes an application update file;
    解压所述应用程序更新文件得到系统镜像文件;以及Extract the application update file to get the system image file;
    控制处于fastboot模式的所述待刷机终端设备运行所述镜像文件以对系统进行刷机操作。The device to be brushed in the fastboot mode is controlled to run the image file to perform a brush operation on the system.
  5. 根据权利要求3或4所述的终端设备刷机方法,其中,所述客户端从待刷机终端设备中取得处于fastboot模式的所述待刷机终端设备的系统信息的步骤中,所述系统信息为所述终端设备的厂商备份分区OEM中的初始系统信息,或者所述待刷机终端设备在每次刷机后保存至OEM中的系统信息。The terminal device flashing method according to claim 3 or 4, wherein the client obtains system information of the device to be brushed in the fastboot mode from the device to be flashed, the system information is The manufacturer of the terminal device backs up the initial system information in the partition OEM, or the system information that the device to be brushed saves to the OEM after each brushing.
  6. 根据权利要求1-4任意一项所述的终端设备刷机方法,其中,所述系统信息至少包括系统版本型号。The terminal device flashing method according to any one of claims 1 to 4, wherein the system information includes at least a system version model.
  7. 一种终端设备刷机装置,其中,所述装置包括:A terminal device brushing device, wherein the device comprises:
    查询模块,用于从待刷机终端设备中取得处于fastboot模式的所述待刷机终端设备的系统信息,并发送第一查询指令至第一服务器以查询与所述系统信息对应的刷机资源包信息;a query module, configured to obtain system information of the to-be-brushed terminal device in the fastboot mode from the device to be brushed, and send a first query instruction to the first server to query the flash resource resource information corresponding to the system information;
    下载模块,用于接收所述第一服务器发送的所述刷机资源包信息,并根据所述刷机资源包信息下载对应的刷机资源包;以及a downloading module, configured to receive the flash resource resource information sent by the first server, and download a corresponding flash resource resource packet according to the flashing resource resource information;
    刷机模块,用于使用所述下载模块下载的所述刷机资源包对所述待刷机终端设备进行刷机操作。And a brushing module, configured to perform a brushing operation on the terminal device to be brushed by using the brush resource package downloaded by the download module.
  8. 根据权利要求7所述的终端设备刷机装置,其中,所述刷机模块用于解压所述刷机资源包得到对应的包括镜像文件的刷机包,以及控制处于fastboot模式的所述待刷机终端设备运行所述镜像文件以对系统进行刷机操作。The terminal device flashing device according to claim 7, wherein the brushing module is configured to decompress the brush resource package to obtain a corresponding flash package including an image file, and control the terminal device running in the fastboot mode. The image file is described to perform a brush operation on the system.
  9. 根据权利要求7所述的终端设备刷机装置,其中,所述刷机模块用于解压所述刷机资源包得到对应的包括应用程序更新文件的系统ROM包,解压所述应用程序更新文件得到镜像文件,以及控制处于fastboot模式的所述待刷机终端设备运行所述镜像文件以对系统进行刷机操作。The device for flashing the terminal device according to claim 7, wherein the brushing module is configured to decompress the brush resource package to obtain a corresponding system ROM package including an application update file, and decompress the application update file to obtain an image file. And controlling the to-be-printed terminal device in the fastboot mode to run the image file to perform a brushing operation on the system.
  10. 一种终端设备,其中,所述设备包括:A terminal device, wherein the device includes:
    一个或多个处理器;One or more processors;
    存储器;Memory
    多个应用程序;以及Multiple applications; and
    一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions Used for:
    从待刷机终端设备中取得处于fastboot模式的所述待刷机终端设备的系统信息,并发送第一查询指令至第一服务器以查询与所述系统信息对应的刷机资源包信息;Obtaining system information of the to-be-brushed terminal device in the fastboot mode from the device to be brushed, and sending a first query instruction to the first server to query the flash resource resource information corresponding to the system information;
    接收所述第一服务器发送的所述刷机资源包信息,并根据所述刷机资源包信息下载对应的刷机资源包;以及Receiving the flash resource resource information sent by the first server, and downloading a corresponding flash resource resource packet according to the flash resource resource package information;
    使用所述刷机资源包对所述终端设备进行刷机操作。The terminal device is brushed using the brush resource package.
  11. 根据权利要求10所述的终端设备,其中,所述指令还用于解压所述刷机资源包得到对应的包括镜像文件的刷机包,以及控制处于fastboot模式的所述待刷机终端设备运行所述镜像文件以对系统进行刷机操作。The terminal device according to claim 10, wherein the instruction is further configured to decompress the flash resource bundle to obtain a corresponding flash package including an image file, and control the standby terminal device in a fastboot mode to run the mirror File to brush the system.
  12. 一种终端设备刷机方法,其中,所述方法包括:A terminal device brushing method, wherein the method comprises:
    所述终端设备处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应所述指令查询所述终端设备的系统信息,使所述客户端获取所述系统信息以根据所述系统信息从一服务器中获取对应的刷机资源包;以及Receiving an instruction for querying system information sent by the client when the terminal device is in the fastboot mode, and querying system information of the terminal device in response to the instruction, so that the client obtains the system information according to the system information. Obtain the corresponding flash resource package from a server;
    接收所述客户端发送的刷机资源包,运行所述刷机资源包进行刷机。Receiving the flash resource package sent by the client, and running the flash resource package to perform the flashing.
  13. 根据权利要求12所述的终端设备刷机方法,其中,所述方法还包括:The method of brushing a terminal device according to claim 12, wherein the method further comprises:
    将刷机后的系统的系统信息保存至所述终端设备的厂商备份分区OEM。The system information of the system after the flashing is saved to the manufacturer backup partition OEM of the terminal device.
  14. 根据权利要求12所述的终端设备刷机方法,其中,所述终端设备处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应所述指令获取所述终端设备的系统信息,使所述客户端获取所述系统信息并根据所述系统信息从一服务器中获取对应的刷机资源包的步骤具体为:The terminal device flashing method according to claim 12, wherein the terminal device receives an instruction for querying system information sent by a client when in the fastboot mode, and acquires system information of the terminal device in response to the instruction, The step of obtaining the system information by the client and obtaining the corresponding brush resource package from a server according to the system information is specifically:
    所述终端设备处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应所述指令通过fastboot命令查询型号和系统版本号接口,使所述客户端获取所述型号和系统版本号接口,并根据所述型号和系统版本号接口从一服务器中获取对应的刷机资源包。Receiving an instruction for querying system information sent by the client when the terminal device is in the fastboot mode, and querying the model and the system version number interface by using the fastboot command in response to the instruction, so that the client obtains the interface of the model and the system version number. And obtaining a corresponding flash resource resource package from a server according to the model and the system version number interface.
  15. 一种终端设备刷机装置,其中,所述装置包括:A terminal device brushing device, wherein the device comprises:
    系统信息查询模块,用于在所述终端设备处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应所述指令获取所述终端设备的系统信息,使所述客户端获取所述系统信息并根据所述系统信息从一服务器中获取对应的刷机资源包;以及a system information querying module, configured to receive an instruction for querying system information sent by a client when the terminal device is in a fastboot mode, and obtain system information of the terminal device in response to the instruction, so that the client obtains the System information and obtaining a corresponding flash resource resource package from a server according to the system information;
    刷机模块,用于接收所述客户端发送的刷机资源包,运行所述刷机资源包进行刷机。The brushing module is configured to receive the brush resource package sent by the client, and run the brush resource package to perform the brushing.
  16. 根据权利要求15所述的终端设备刷机装置,其中,所述装置还包括系统信息写入模块,用于在进行刷机操作时将当前的系统信息保存至OEM中。The terminal device flashing device according to claim 15, wherein the device further comprises a system information writing module for saving current system information to the OEM when the brushing operation is performed.
  17. 一种便携式电子设备,其中,所述设备包括:A portable electronic device, wherein the device comprises:
    显示器,其中,所述显示器包括触敏表面和显示屏;a display, wherein the display comprises a touch sensitive surface and a display screen;
    一个或多个处理器;One or more processors;
    存储器;Memory
    多个应用程序;以及Multiple applications; and
    一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions Used for:
    在所述终端设备在处于fastboot模式时接收一客户端发送的查询系统信息的指令,并响应所述指令获取所述终端设备的系统信息,使所述客户端获取所述系统信息并根据所述系统信息从一服务器中获取对应的刷机资源包,以及接收所述客户端发送的刷机资源包,运行所述刷机资源包进行刷机。Receiving, by the terminal device, an instruction for querying system information sent by the client when in the fastboot mode, and acquiring system information of the terminal device in response to the instruction, so that the client obtains the system information and according to the The system information obtains the corresponding brush resource package from a server, and receives the brush resource package sent by the client, and runs the brush resource package to perform the flashing.
  18. 根据权利要求17所述的便携式电子设备,其中,所述指令还用于将刷机后的系统的系统信息保存至所述便携式电子设备的厂商备份分区OEM中。The portable electronic device of claim 17, wherein the instructions are further for saving system information of the system after the flashing to a vendor backup partition OEM of the portable electronic device.
  19. 一种终端设备刷机方法,其中,所述方法包括:A terminal device brushing method, wherein the method comprises:
    服务器接收一客户端发送的查询指令,所述查询指令为查询所述客户端从待刷机终端设备中取得处于fastboot模式的所述待刷机终端设备的系统信息对应的刷机资源包的查询指令;The server receives a query command sent by the client, where the query command is an inquiry command for querying, by the client, the flash resource resource packet corresponding to the system information of the device to be brushed in the fastboot mode.
    响应所述查询指令从保存的刷机资源包中查询匹配的刷机资源包信息;其中,所述保存的刷机资源包为包括应用程序更新文件的系统ROM包;以及Querying the matched flash resource resource information from the saved flash resource resource packet in response to the query instruction; wherein the saved flash resource resource package is a system ROM package including an application update file;
    将所述匹配的刷机资源包信息发送至所述客户端,使所述客户端使用所述匹配的刷机资源包对所述待刷机终端设备进行刷机操作。Sending the matched flash resource resource information to the client, and causing the client to perform a brush operation on the to-be-printed terminal device by using the matched flash resource resource package.
  20. 根据权利要求19所述的终端设备刷机方法,其中,将所述匹配的刷机资源包信息发送至所述客户端,使所述客户端使用所述匹配的刷机资源包对所述待刷机终端设备进行刷机操作的步骤具体为:The terminal device flashing method according to claim 19, wherein the matched flash resource resource package information is sent to the client, so that the client uses the matched flash resource resource packet to the to-be-brushed terminal device The steps for performing the brushing operation are specifically as follows:
    将所述匹配的刷机资源包信息发送至所述客户端,使所述客户端解压所述刷机资源包得到对应的系统ROM包,解压所述ROM包中的应用程序更新文件得到系统镜像文件以及控制处于fastboot模式的所述待刷机终端设备运行所述镜像文件以对系统进行刷机操作。Sending the matched flash resource resource package information to the client, causing the client to decompress the flash resource resource package to obtain a corresponding system ROM package, decompressing the application update file in the ROM package, and obtaining a system image file and The device to be brushed in the fastboot mode is controlled to run the image file to perform a brush operation on the system.
  21. 一种终端设备刷机装置,其中,包括:A terminal device brushing device, comprising:
    存储模块,用于保存刷机资源包;其中,所述保存的刷机资源包为包括应用程序更新文件的系统ROM包;a storage module, configured to save a flash resource package; wherein the saved flash resource package is a system ROM package including an application update file;
    检索模块,用于接收一客户端发送的查询指令,并响应所述查询指令从所述存储模块保存的刷机资源包中查询匹配的刷机资源包;其中,所述查询指令为查询所述客户端从待刷机终端设备中取得处于fastboot模式的所述待刷机终端设备的系统信息对应的刷机资源包的查询指令;以及a retrieval module, configured to receive a query instruction sent by a client, and query a matching brush resource resource from the flash resource package saved by the storage module in response to the query instruction; wherein the query instruction is to query the client Obtaining, from the device to be brushed, a query instruction of the brush resource package corresponding to the system information of the device to be brushed in the fastboot mode;
    信息交互模块,用于将所述检索模块查询到的匹配的刷机资源包信息发送至所述客户端,使所述客户端使用所述匹配的刷机资源包对所述待刷机终端设备进行刷机操作。An information interaction module, configured to send, to the client, the matched flash resource resource information that is queried by the search module, so that the client performs a brush operation on the terminal device to be brushed by using the matched flash resource resource package .
  22. 根据权利要求21所述的终端设备刷机装置,其中,所述检索模块还用于根据所述待刷机终端设备的系统信息自动适配出当前系统信息的最新版本。The terminal device flashing device according to claim 21, wherein the retrieving module is further configured to automatically adapt the latest version of the current system information according to the system information of the to-be-printed terminal device.
  23. 一种设备,其中,所述设备包括:A device, wherein the device comprises:
    一个或多个处理器;One or more processors;
    存储器,用于保存刷机资源包;其中,所述保存的刷机资源包为包括应用程序更新文件的系统ROM包;a memory for saving the flash resource package; wherein the saved flash resource package is a system ROM package including an application update file;
    多个应用程序;以及Multiple applications; and
    一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中并被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于:One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions Used for:
    接收一客户端发送的查询指令,并响应所述查询指令从所述存储器中查询匹配的刷机资源包信息;其中,所述查询指令为查询所述客户端从待刷机终端设备中取得处于fastboot模式的所述待刷机终端设备的系统信息对应的刷机资源包的查询指令;以及Receiving a query instruction sent by a client, and querying the matching brush resource resource information from the memory in response to the query instruction; wherein the query instruction is to query the client to obtain a fast boot mode from the terminal device to be flashed The query instruction of the brush resource package corresponding to the system information of the terminal device to be brushed; and
    将所述匹配的刷机资源包信息发送至所述客户端,使所述客户端使用所述匹配的刷机资源包对所述待刷机终端设备进行刷机操作。Sending the matched flash resource resource information to the client, and causing the client to perform a brush operation on the to-be-printed terminal device by using the matched flash resource resource package.
  24. 根据权利要求23所述的设备,其中,所述指令还用于根据所述待刷机终端设备的系统信息适配对应最新版本的刷机资源包,以将所述最新版本的刷机资源包发送至所述客户端,使所述客户端使用所述最新版本的刷机资源包对所述待刷机终端设备进行刷机操作。The device according to claim 23, wherein the instruction is further configured to adapt, according to system information of the device to be flashed, a corresponding latest version of the flash resource package to send the latest version of the flash resource package to the device The client is configured to perform a brush operation on the to-be-printed terminal device by using the latest version of the flash resource resource package.
PCT/CN2015/079049 2015-05-15 2015-05-15 Upgrade method, apparatus and device for terminal device WO2016183721A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580036165.7A CN106663016A (en) 2015-05-15 2015-05-15 Upgrade method, apparatus and device for terminal device
PCT/CN2015/079049 WO2016183721A1 (en) 2015-05-15 2015-05-15 Upgrade method, apparatus and device for terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/079049 WO2016183721A1 (en) 2015-05-15 2015-05-15 Upgrade method, apparatus and device for terminal device

Publications (1)

Publication Number Publication Date
WO2016183721A1 true WO2016183721A1 (en) 2016-11-24

Family

ID=57319079

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079049 WO2016183721A1 (en) 2015-05-15 2015-05-15 Upgrade method, apparatus and device for terminal device

Country Status (2)

Country Link
CN (1) CN106663016A (en)
WO (1) WO2016183721A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446008A (en) * 2018-10-31 2019-03-08 Oppo广东移动通信有限公司 A kind of failure cause detection method, failure cause detection device and terminal device
CN109901942A (en) * 2019-02-26 2019-06-18 上海龙旗科技股份有限公司 Terminal brush machine information store method and equipment
CN111461913A (en) * 2020-03-23 2020-07-28 Oppo(重庆)智能科技有限公司 Monitoring method and device for terminal equipment manufacture, medium and electronic equipment
CN112434314A (en) * 2020-11-16 2021-03-02 深圳市优博讯科技股份有限公司 Method and system for debugging and privilege escalation
CN114116034A (en) * 2021-12-01 2022-03-01 展讯通信(天津)有限公司 Distributed flashing method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124440A (en) * 2019-12-17 2020-05-08 湖南国科微电子股份有限公司 Chip software burning method, chip software burning data processing method and device
CN111258625B (en) * 2020-01-08 2023-07-11 Oppo(重庆)智能科技有限公司 Software flashing detection method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830999A (en) * 2012-09-05 2012-12-19 深圳市网卓信息科技有限公司 Method and device for updating of Android system
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN104199677A (en) * 2014-07-25 2014-12-10 小米科技有限责任公司 System reinstalling method and device and corresponding device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905631B (en) * 2012-12-31 2016-06-01 比亚迪股份有限公司 Mobile terminal and the unified method downloaded of MODEM and LINUX chip thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830999A (en) * 2012-09-05 2012-12-19 深圳市网卓信息科技有限公司 Method and device for updating of Android system
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN104199677A (en) * 2014-07-25 2014-12-10 小米科技有限责任公司 System reinstalling method and device and corresponding device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446008A (en) * 2018-10-31 2019-03-08 Oppo广东移动通信有限公司 A kind of failure cause detection method, failure cause detection device and terminal device
CN109446008B (en) * 2018-10-31 2022-02-08 Oppo广东移动通信有限公司 Fault reason detection method, fault reason detection device and terminal equipment
CN109901942A (en) * 2019-02-26 2019-06-18 上海龙旗科技股份有限公司 Terminal brush machine information store method and equipment
CN111461913A (en) * 2020-03-23 2020-07-28 Oppo(重庆)智能科技有限公司 Monitoring method and device for terminal equipment manufacture, medium and electronic equipment
CN112434314A (en) * 2020-11-16 2021-03-02 深圳市优博讯科技股份有限公司 Method and system for debugging and privilege escalation
CN114116034A (en) * 2021-12-01 2022-03-01 展讯通信(天津)有限公司 Distributed flashing method and device
CN114116034B (en) * 2021-12-01 2023-08-11 展讯通信(天津)有限公司 Distributed brushing method and device

Also Published As

Publication number Publication date
CN106663016A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
WO2016183721A1 (en) Upgrade method, apparatus and device for terminal device
WO2020149520A1 (en) Firmware updating method, and electronic apparatus and storage media for same
WO2013189193A1 (en) Method and system for automatically configuring parameters of mobile terminal with android system
WO2013143334A1 (en) Method for updating nfc firmware of mobile terminal and mobile terminal
WO2020246822A1 (en) Electronic device and method for switching electronic device between dual standby mode and single standby mode
WO2017142293A1 (en) Electronic device and method of application data display therefor
WO2012000417A1 (en) Method for identifying host operating system by universal serial bus (usb) device
WO2018076889A1 (en) Data backup method, device, system, storage medium and server
WO2018076867A1 (en) Data backup deleting method, device and system, storage medium and server
WO2018120681A1 (en) Data synchronization method, device and system, data processing server, and storage medium
WO2019124826A1 (en) Interface device having updatable firmware, mobile device, and firmware update method
WO2020171427A1 (en) Electronic device which prefetches application and method therefor
WO2018076840A1 (en) Data sharing method, device, storage medium and server
WO2018201774A1 (en) Data approval method, apparatus, device, and computer readable storage medium
WO2018076812A1 (en) Data request response method and device, storage medium, server and system
EP3707921A1 (en) Method and apparatus for multimodal operation of near field communications circuitry
WO2018062894A1 (en) Electronic device for controlling power
WO2017206885A1 (en) Application program shutdown method and apparatus, storage medium, and electronic device
WO2021025497A1 (en) Electronic device and method for sharing data thereof
WO2018076869A1 (en) Data backup method, apparatus, storage medium and electronic device
WO2017206870A1 (en) Sensor shutdown method and apparatus, storage medium, and electronic device
WO2020073615A1 (en) Method for upgrading device software, and data converter and readable storage medium
WO2014044130A1 (en) Service polling method and system, and computer storage medium
WO2020171465A1 (en) Electronic device and application managing method thereof
WO2017020620A1 (en) Tab synchronization method, electronic device and storage medium

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: 15892102

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: 15892102

Country of ref document: EP

Kind code of ref document: A1