CN106791124B - Mobile terminal flashing method and device - Google Patents

Mobile terminal flashing method and device Download PDF

Info

Publication number
CN106791124B
CN106791124B CN201611230421.9A CN201611230421A CN106791124B CN 106791124 B CN106791124 B CN 106791124B CN 201611230421 A CN201611230421 A CN 201611230421A CN 106791124 B CN106791124 B CN 106791124B
Authority
CN
China
Prior art keywords
mobile terminal
operating system
refreshed
file
attribute information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201611230421.9A
Other languages
Chinese (zh)
Other versions
CN106791124A (en
Inventor
王正晖
张晶
周欣
王晓旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Chima Technology Co ltd
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Chima Technology Co ltd
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Chima Technology Co ltd, Beijing Qihoo Technology Co Ltd filed Critical Beijing Chima Technology Co ltd
Priority to CN201611230421.9A priority Critical patent/CN106791124B/en
Publication of CN106791124A publication Critical patent/CN106791124A/en
Application granted granted Critical
Publication of CN106791124B publication Critical patent/CN106791124B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a flashing method and a flashing device of a mobile terminal. The machine refreshing method comprises the steps of submitting a token to a permission manager of a first mobile terminal system, and acquiring a kernel command use permission; acquiring attribute information of a mobile terminal to be refreshed; acquiring an operating system installation file matched with the attribute information; sending an operating system installation file to the mobile terminal to be refreshed; and controlling the mobile terminal to be refreshed to install the operating system installation file. After the first mobile terminal acquires the kernel command using permission, the operating system installation file is acquired according to the attribute information of the mobile terminal to be refreshed, the mobile terminal to be refreshed is controlled to install the operating system installation file, the mobile terminal to be refreshed is used, and the flashing process is fast and convenient.

Description

Mobile terminal flashing method and device
Technical Field
The invention relates to the field of flashing, in particular to a flashing method and a flashing device of a mobile terminal.
Background
The flashing is to reinstall the system to the intelligent terminal (such as a mobile phone). If the mobile phone is damaged, the function is invalid or the mobile phone cannot be started, the problem can be solved by flashing the mobile phone. The latest system can be installed on the mobile phone by flashing the mobile phone, and the mobile phone can be restored to a factory default system.
In the prior art, after a mobile phone is purchased, except for a factory, a user uses a common phone-refreshing method as follows: 1. the software flashing, the mobile phone to be flashed installs flashing software, the flashing software downloads the operating system installation file from the network to the mobile phone storage space to be flashed appointed by the flashing software, and the mobile phone to be flashed reads the file from the storage space for installation; if the mobile phone system is damaged and cannot be connected with the Internet, or the mobile phone is limited to be connected with the Internet, the mobile phone cannot be refreshed. 2. The SD card swiping machine downloads the operating system installation file to the SD card from the network, and the SD card is installed by reading the file from the SD card by the mobile phone to be swiped; this method has the same problem as the above method. 3. PC online flashing, wherein the PC downloads the operating system installation file, the operating system installation file is sent to the mobile phone to be flashed, and the file is read and installed by the mobile phone to be flashed; the method needs to find the applicable PC, and the machine brushing process is complicated and inconvenient.
Disclosure of Invention
The embodiment of the invention provides a flashing method and a flashing device of a mobile terminal.
The embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for flashing a mobile terminal, including:
submitting a token to a permission manager of a first mobile terminal system to acquire a kernel command use permission;
acquiring attribute information of a mobile terminal to be refreshed;
acquiring an operating system installation file matched with the attribute information;
sending an operating system installation file to the mobile terminal to be refreshed;
and controlling the mobile terminal to be refreshed to install the operating system installation file.
Wherein, submitting the token to the authority manager of the first mobile terminal system, and acquiring the kernel command use authority, comprises:
and submitting a token to a permission manager of the first mobile terminal system, and obtaining the kernel command use permission for enabling the mobile terminal to be refreshed to enter a Linux environment execution instruction after the token passes identity authentication.
Wherein, obtain the attribute information of treating the mobile terminal of brushing, include: controlling the mobile terminal to be brushed to enter a Linux environment, and calling a first kernel command of a command parser shell to acquire attribute information of the mobile terminal to be brushed;
sending an operating system installation file to the mobile terminal to be refreshed, comprising: calling a second kernel command of the command parser shell to send an operating system installation file to the mobile terminal to be refreshed;
controlling a mobile terminal to be refreshed to install an operating system installation file, comprising: and calling a third kernel command of the command parser shell to control the mobile terminal to be refreshed to install the operating system installation file.
The operating system installation files comprise operating system installation packages and recovery mode files;
acquiring an operating system installation file adaptive to the attribute information, wherein the method comprises the following steps:
reading attribute information of a first mobile terminal;
confirming that the attribute information of the first mobile terminal is the same as the attribute information of the mobile terminal to be refreshed, and reading a recovery mode file of the first mobile terminal;
and determining an operating system installation package stored with the first mobile terminal, and reading the operating system installation package.
After confirming that the attribute information of the first mobile terminal is the same as the attribute information of the mobile terminal to be refreshed, the method further comprises the following steps:
determining that the operating system installation package of the first mobile terminal is not stored, and sending an operating system installation package adaptation request containing attribute information to a server;
and receiving the operating system installation package which is sent by the server and is adapted to the attribute information.
After reading the attribute information of the first mobile terminal, the method further includes:
confirming that the attribute information of the first mobile terminal is different from the attribute information of the mobile terminal to be refreshed, and sending an operating system installation package containing the attribute information and a recovery mode file adaptation request to a server; and receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information.
Before receiving the operating system installation package which is sent by the server and is adaptive to the attribute information, the method further comprises the following steps:
the method comprises the steps of obtaining connection network information of a first mobile terminal, calculating downloading time according to the network speed of a connection network and the size of an operating system installation package, and sending prompt information of the connection network information, the size of the operating system installation package and the downloading time.
Before receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information, the method further comprises the following steps:
the method comprises the steps of obtaining connection network information of a first mobile terminal, calculating downloading duration according to the network speed of a connection network and the sizes of an operating system installation package and a recovery mode file, and sending prompt information of the connection network information, the sizes of the operating system installation package and the recovery mode file and the downloading duration.
Before sending the operating system installation file to the mobile terminal to be refreshed, the method further comprises the following steps:
calculating the transmission time length according to the transmission speed of the mobile terminal to be refreshed and the size of the installation file of the operating system, acquiring the estimated installation time length, and sending prompt information of the size of the installation file of the operating system, the transmission time length and the estimated installation time length.
Before sending the operating system installation file to the mobile terminal to be refreshed, the method further comprises the following steps: acquiring an address book of the brushed mobile terminal;
after controlling the mobile terminal to be refreshed to install the operating system installation file, the method further comprises the following steps: and confirming that the operating system is successfully installed on the mobile terminal to be refreshed, and sending the address book to the mobile terminal to be refreshed.
Before sending the operating system installation file to the mobile terminal to be refreshed, the method further comprises the following steps: acquiring application installation list information of the brushed mobile terminal;
after controlling the mobile terminal to be refreshed to install the operating system installation file, the method further comprises the following steps: and confirming that the operating system is successfully installed on the mobile terminal to be refreshed, downloading the application according to the application installation list information, and installing the application on the mobile terminal to be refreshed.
Before sending the operating system installation file to the mobile terminal to be refreshed, the method further comprises the following steps: acquiring a current recovery mode file and a current operating system backup file of a mobile terminal to be refreshed;
after controlling the mobile terminal to be refreshed to install the operating system installation file, the method further comprises the following steps: and confirming that the mobile terminal to be refreshed fails to install the operating system, and restoring the operating system of the mobile terminal to be refreshed by using the current recovery mode file and the current operating system backup file.
The obtaining of the operating system installation file adapted to the attribute information includes:
sending an operating system installation package containing attribute information and a recovery mode file adaptation request to a server;
and receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information.
Wherein, obtain the attribute information of treating the mobile terminal of brushing, include:
obtaining the model of the mobile terminal to be brushed;
and if the first mobile terminal is the same as the mobile terminal to be refreshed in model, reading the attribute information of the first mobile terminal, and taking the attribute information of the first mobile terminal as the attribute information of the mobile terminal to be refreshed.
Wherein, before submitting the token to the authority manager of the first mobile terminal system, the method further comprises the following steps;
and acquiring an instruction which is sent by a user through the first mobile terminal operating system and used for installing the first mobile terminal operating system into the mobile terminal to be refreshed.
Wherein, control waits to brush mobile terminal installation operating system installation file includes:
sending an operating system installation package to the mobile terminal to be refreshed in the operating system running mode;
sending a starting instruction of a quick starting mode to the mobile terminal to be brushed;
sending a recovery mode file to the mobile terminal to be refreshed in the quick starting mode,
controlling the mobile terminal to be refreshed to replace the recovery mode file;
and controlling the mobile terminal to be refreshed to run the recovery mode file to enter a recovery mode, and installing an operating system installation package in the recovery mode.
In a second aspect, an embodiment of the present invention provides a mobile terminal flashing device, including:
the kernel command permission obtaining unit is used for submitting a token to a permission manager of the first mobile terminal system and obtaining the kernel command use permission;
the attribute information acquisition unit is used for acquiring the attribute information of the mobile terminal to be refreshed;
the installation file acquisition unit is used for acquiring the operating system installation file matched with the attribute information;
the installation file sending unit is used for sending an operating system installation file to the mobile terminal to be refreshed;
and the system installation unit is used for controlling the mobile terminal to be refreshed to install the operating system installation file.
The kernel command permission obtaining unit is specifically configured to submit a token to a permission manager of the first mobile terminal system, and obtain a kernel command permission to enable the mobile terminal to be refreshed to enter a Linux environment execution instruction after the token passes identity authentication.
The attribute information acquisition unit is specifically used for controlling the mobile terminal to be refreshed to enter a Linux environment and calling a first kernel command of a command parser shell to acquire the attribute information of the mobile terminal to be refreshed;
the installation file sending unit is specifically used for calling a second kernel command of the command parser shell to send an operating system installation file to the mobile terminal to be refreshed;
and the system installation unit is specifically used for calling a third kernel command of the command parser shell to control the mobile terminal to be refreshed to install the operating system installation file.
The operating system installation files comprise operating system installation packages and recovery mode files; an installation file acquisition unit including:
the attribute information reading unit is used for reading the attribute information of the first mobile terminal;
the information confirmation same unit is used for confirming that the attribute information of the first mobile terminal is the same as the attribute information of the mobile terminal to be refreshed;
a recovery file reading unit for reading a recovery mode file of the first mobile terminal;
the installation package storage determining unit is used for determining that the operating system installation package of the first mobile terminal is stored;
and the installation package reading unit is used for reading the operating system installation package.
Wherein, installation file acquisition unit includes:
the installation package non-storage determining unit is used for determining that the operating system installation package of the first mobile terminal is not stored;
the first adaptation request sending unit is used for sending an operating system installation package adaptation request containing attribute information to the server after determining that the operating system installation package of the first mobile terminal is not stored;
and the installation package receiving unit is used for receiving the operating system installation package which is sent by the server and is adaptive to the attribute information.
Wherein, installation file acquisition unit still includes:
the information confirmation inequality unit is used for determining that the attribute information of the first mobile terminal is different from the attribute information of the mobile terminal to be refreshed;
the second adaptation request sending unit is used for sending an operating system installation package containing the attribute information and a recovery mode file adaptation request to the server after determining that the attribute information of the first mobile terminal is different from the attribute information of the mobile terminal to be refreshed;
and the first installation file receiving unit is used for receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information.
Wherein, still include:
the first network information acquisition unit is used for acquiring the connection network information of the first mobile terminal before receiving the operating system installation package which is sent by the server and is adaptive to the attribute information;
the first download duration calculation unit is used for calculating download duration according to the network speed of the connection network and the size of the operating system installation package;
and the first prompt information unit is used for sending out prompt information of the connection network information, the size of the operating system installation package and the downloading time length.
Wherein, still include:
a second network information obtaining unit, configured to obtain connection network information of the first mobile terminal before receiving the operating system installation package and the recovery mode file that are adapted to the attribute information and sent by the server,
the second download duration calculation unit is used for calculating download duration according to the network speed of the connected network and the sizes of the operating system installation package and the recovery mode file;
and the second prompt information unit is used for sending the prompt information of the connection network information, the sizes of the operating system installation package and the recovery mode file and the downloading time length.
Wherein, still include:
the transmission duration calculation unit is used for calculating the transmission duration according to the transmission speed of the mobile terminal to be refreshed and the size of the operating system installation file before the operating system installation file is sent to the mobile terminal to be refreshed;
the estimated installation time acquiring unit is used for acquiring estimated installation time;
and the third prompt information unit is used for sending prompt information of the size of the installation file of the operating system, the transmission time length and the estimated installation time length.
Wherein, still include:
the address book acquisition unit is used for acquiring an address book of the brushed mobile terminal;
and the address book sending unit is used for confirming that the operating system is successfully installed on the mobile terminal to be refreshed and sending the address book to the mobile terminal to be refreshed.
Wherein, still include:
the application list information acquisition unit is used for acquiring the application installation list information of the brushed mobile terminal;
and the application installation unit is used for confirming that the operation system is successfully installed on the mobile terminal to be refreshed, downloading the application according to the application installation list information, and installing the application on the mobile terminal to be refreshed.
Wherein, still include:
the backup file acquisition unit is used for acquiring a current recovery mode file and a current operating system backup file of the mobile terminal to be refreshed;
and the system restoring unit is used for confirming that the mobile terminal to be refreshed fails to install the operating system and restoring the operating system of the mobile terminal to be refreshed by using the current recovery mode file and the current operating system backup file.
Wherein, installation file acquisition unit includes:
a third adaptation request sending unit, configured to send an operating system installation package containing attribute information and a recovery mode file adaptation request to the server;
and the second installation file receiving unit is used for receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information.
Wherein, the attribute information acquisition unit includes:
the model acquisition unit is used for acquiring the model of the mobile terminal to be brushed;
and the attribute information reading unit is used for reading the attribute information of the first mobile terminal if the model of the first mobile terminal is the same as that of the mobile terminal to be refreshed, and taking the attribute information of the first mobile terminal as the attribute information of the mobile terminal to be refreshed.
Wherein, still include:
and the installation instruction acquisition unit is used for acquiring an instruction which is sent by a user through the first mobile terminal operating system and used for installing the first mobile terminal operating system to the mobile terminal to be brushed.
Wherein, installation file sending unit includes:
the installation package sending unit is used for sending the operating system installation package to the mobile terminal to be refreshed in the operating system running mode;
the starting instruction sending unit is used for sending a starting instruction of a quick starting mode to the mobile terminal to be brushed;
the recovery file sending unit is used for sending a recovery mode file to the mobile terminal to be refreshed in the quick starting mode;
the file replacement unit is used for controlling the mobile terminal to be refreshed to replace the recovery mode file;
and the installation unit is used for controlling the mobile terminal to be refreshed to run the recovery mode file to enter the recovery mode and installing the operating system installation package in the recovery mode.
According to the technical scheme, the first mobile terminal acquires the kernel command use permission, acquires the operating system installation file according to the attribute information of the mobile terminal to be refreshed, controls the mobile terminal to be refreshed to install the operating system installation file, achieves the purpose that the mobile terminal to be refreshed is refreshed by using one mobile terminal, and is rapid and convenient in the refreshing process.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
Fig. 1 is a flowchart of a method of a first embodiment of a flashing method of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is a flowchart of a method of a second embodiment of a flashing method of a mobile terminal according to an embodiment of the present invention.
Fig. 3 is a flowchart of a method of a first embodiment of a flashing device of a mobile terminal according to an embodiment of the present invention.
Fig. 4 is a flowchart of a method of a second embodiment of a flashing device of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method of a first embodiment of a mobile terminal flashing method according to an embodiment of the present invention. The flashing method of the embodiment is applied to mobile terminals, such as mobile phones, tablet computers and other terminals. In implementing the embodiment, a software tool can be made according to the flashing method, or can be used as a function of software.
The machine refreshing method of the embodiment comprises the following steps:
step S101, submitting a token to a permission manager of the first mobile terminal system, and acquiring a kernel command use permission.
In the implementation, a token is submitted to the authority manager of the first mobile terminal system, and after the token passes identity authentication, a kernel command use authority enabling the mobile terminal to be refreshed to enter a Linux environment execution instruction is obtained.
And step S102, acquiring attribute information of the mobile terminal to be refreshed.
The method comprises the steps of controlling the mobile terminal to be refreshed to enter a Linux environment, and calling a first kernel command of a command parser shell to acquire attribute information of the mobile terminal to be refreshed. For example, the attribute information is acquired using shellgetprop.
As another implementation mode, the model of the mobile terminal to be brushed is obtained; and if the first mobile terminal is the same as the mobile terminal to be refreshed in model, reading the attribute information of the first mobile terminal, and taking the attribute information of the first mobile terminal as the attribute information of the mobile terminal to be refreshed. And if the first mobile terminal and the mobile terminal to be refreshed are of the same type, the attribute information of the first mobile terminal is used as the attribute information of the mobile terminal to be refreshed, so that the attribute information of the mobile terminal to be refreshed is quickly acquired, and the machine refreshing between two mobile terminals of the same type is facilitated.
And step S103, acquiring the operating system installation file matched with the attribute information. The operating system installation files may include an operating system installation package and a recovery mode file. The operating system installation package may be referred to as an OTA package for short, and the recovery mode file may be referred to as recovery for short.
As one embodiment, sending an operating system installation package containing attribute information and a recovery mode file adaptation request to a server; and receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information.
In another embodiment, the first mobile terminal is queried for a storage area and the operating system installation file is retrieved from the storage area.
And step S104, sending the operating system installation file to the mobile terminal to be refreshed.
In the implementation, a second kernel command of the command parser shell is called to send an operating system installation file to the mobile terminal to be refreshed. For example, the file is sent using ADB push.
After step S103 and before step S104, calculating a transmission time according to the transmission speed of the mobile terminal to be refreshed and the size of the operating system installation file, acquiring an estimated installation time, and sending prompt information of the size of the operating system installation file, the transmission time and the estimated installation time. The user can pause or continue to flush the machine according to the prompt message, for example, the operating system has large installation files and long transmission time, the user can pause the machine to flush the machine until enough idle time exists to continue the machine to flush the machine.
And step S105, controlling the mobile terminal to be refreshed to install the operating system installation file.
In the implementation, a third kernel command of the command parser shell is called to control the mobile terminal to be refreshed to install the operating system installation file.
According to the technical scheme, the first mobile terminal acquires the kernel command use permission, acquires the operating system installation file according to the attribute information of the mobile terminal to be refreshed, controls the mobile terminal to be refreshed to install the operating system installation file, achieves the purpose that the mobile terminal to be refreshed is refreshed by using one mobile terminal, and is rapid and convenient in the refreshing process. According to the technical scheme, a PC (personal computer) is not needed, even if the system of the mobile terminal to be refreshed is damaged or is limited to be connected with the Internet, the operating system installation file can be obtained through the first mobile terminal, and the mobile terminal to be refreshed is refreshed. When the technical scheme is implemented, the existing PC flash software is programmed by adopting an X86 structure, and the embodiment adopts an ARM structure for programming.
Fig. 2 is a flowchart of a method of a second embodiment of a mobile terminal flashing method according to an embodiment of the present invention.
Step S201, submitting a token to the authority manager of the first mobile terminal system, and acquiring the kernel command use authority.
In this embodiment, before step S201, an instruction sent by a user through a first mobile terminal operating system to install the first mobile terminal operating system to the mobile terminal to be refreshed is obtained. Namely, a flash function is set in the operating system of the first mobile terminal.
Step S202, reading the attribute information of the mobile terminal.
Step S203, determining that the attribute information of the first mobile terminal is the same as the attribute information of the mobile terminal to be refreshed, if so, continuing step S206, otherwise, continuing step S204.
Step S204, confirming that the attribute information of the first mobile terminal is different from the attribute information of the mobile terminal to be refreshed, and sending an operating system installation package containing the attribute information and a recovery mode file adaptation request to a server.
Step S205, receiving the operating system installation package and the recovery mode file adapted to the attribute information sent by the server, and continuing with step S211.
In this embodiment, after step S203 and before step S205, the method further includes obtaining connection network information of the first mobile terminal, calculating a download duration according to a network speed of the connection network and sizes of the operating system installation package and the recovery mode file, and sending prompt information of the connection network information, the sizes of the operating system installation package and the recovery mode file, and the download duration. The user can pause or continue to refresh the computer according to the prompt message; for example, the connection network of the first mobile terminal is a 4G network of a mobile network operator, if the operating system installation file is large, a large 4G network downloading flow charge may be generated, and the user may suspend the flashing and continue the flashing after connecting to the free wifi.
Step S206, confirming that the attribute information of the first mobile terminal is the same as the attribute information of the mobile terminal to be refreshed, and reading the recovery mode file of the first mobile terminal.
Step S207, judging whether an operating system installation package of the first mobile terminal is stored; if so, continue to step S210, otherwise, continue to step S208.
Step S208, determining that the operating system installation package of the first mobile terminal is not stored, and sending an operating system installation package adaptation request containing attribute information to the server.
Step S209, receiving the operating system installation package adapted to the attribute information sent by the server. Step S211 is continued.
In this embodiment, after step S207 and before step S209, the method further includes obtaining connection network information of the first mobile terminal, calculating a download duration according to a network speed of the connection network and a size of the operating system installation package, and sending prompt information of the connection network information, the size of the operating system installation package, and the download duration. The user may prompt the message to pause or continue flashing.
Step S210, determining that the operating system installation package of the first mobile terminal is stored, and reading the operating system installation package.
Step S211, obtaining an address book of the brushed mobile terminal; acquiring application installation list information of the brushed mobile terminal; and acquiring a current recovery mode file and a current operating system backup file of the mobile terminal to be refreshed.
It can be understood that, when the technical solution is implemented, any one or any combination of the 3 kinds of data in the step may be acquired; accordingly, steps S215 and S216 need to be modified correspondingly. The 3 data distributions are, 1, address book; 2, applying installation list information; and 3, the current recovery mode file and the current operating system backup file.
And step S212, sending the operating system installation file to the mobile terminal to be refreshed.
And step S213, controlling the mobile terminal to be refreshed to install the operating system installation file.
As one implementation mode, sending an operating system installation package to a mobile terminal to be refreshed in an operating system running mode; sending a starting instruction of a quick starting mode to the mobile terminal to be brushed; sending a recovery mode file to the mobile terminal to be refreshed in the quick starting mode, and controlling the mobile terminal to be refreshed to replace the recovery mode file; and controlling the mobile terminal to be refreshed to run the recovery mode file to enter a recovery mode, and installing an operating system installation package in the recovery mode.
Step S214, determining whether the installation of the operating system installation file of the mobile terminal to be refreshed is successful, if so, continuing to step S216, otherwise, continuing to step S215.
Step S215, confirming that the mobile terminal to be refreshed fails to install the operating system, and restoring the operating system of the mobile terminal to be refreshed by using the current recovery mode file and the current operating system backup file.
Step S216, confirming that the mobile terminal to be refreshed is successfully installed with the operating system, and sending an address book to the mobile terminal to be refreshed; and downloading the application according to the application installation list information, and installing the application to the mobile terminal to be refreshed.
In this embodiment, through steps S203 to S210, the os installation file adapted to the attribute information is acquired. Specifically, if the attribute information of the first mobile terminal is the same as that of the mobile terminal to be refreshed, it is indicated that the first mobile terminal and the mobile terminal to be refreshed are the same type of mobile terminal, the recovery mode file may be obtained from the first mobile terminal, and when it is determined that the operating system installation package is stored in the first mobile terminal, the operating system installation package is obtained from the first mobile terminal. By adopting the method, the flashing between the mobile terminals with the same model is very convenient; for example, the first user mobile terminal just upgrades the latest system, the recovery mode file and the operating system installation package are reserved in the storage space of the first user mobile terminal, when the second user with the same model finds that the latest system of the first user mobile terminal is well used, the first user mobile terminal can be used for refreshing the second user mobile terminal without downloading the operating system installation file again, information sharing among the mobile terminal users with the same model is facilitated, and communication among the users is enhanced; particularly, the method is beneficial to increasing the use interest of the user and expanding the market share through information sharing.
In the embodiment, before the operating system installation file is sent, the address book of the brushed mobile terminal is obtained, the success of installing the operating system on the mobile terminal to be brushed is confirmed, and the address book is sent to the mobile terminal to be brushed; the address book is backed up in advance, and after the machine is refreshed successfully, the address book is restored, so that convenience is brought to users. Acquiring application installation list information of the mobile terminal to be brushed, confirming that the mobile terminal to be brushed is successfully installed with the operating system, downloading the application according to the application installation list information, and installing the application to the mobile terminal to be brushed; the application installation list information is backed up in advance, and after the flash is successful, the application is restored according to the application installation list information, so that convenience is brought to a user. The method comprises the steps of obtaining a current recovery mode file and a current operating system backup file of the mobile terminal to be refreshed, and conducting operating system restoration on the mobile terminal to be refreshed by using the current recovery mode file and the current operating system backup file after the refresh failure, so that convenience is brought to a user, and the situation that the refresh failure needs to be maintained in a factory is avoided.
According to the technical scheme, the first mobile terminal acquires the kernel command use permission, acquires the operating system installation file according to the attribute information of the mobile terminal to be refreshed, controls the mobile terminal to be refreshed to install the operating system installation file, achieves the purpose that the mobile terminal to be refreshed is refreshed by using one mobile terminal, and is rapid and convenient in the refreshing process.
The following is an embodiment of a brushing apparatus according to an embodiment of the present invention, and an embodiment of a brushing method according to the present invention is the same as the embodiment of the brushing apparatus, and details that are not described in detail in the embodiment of the brushing apparatus may refer to the embodiment of the brushing method described above.
Fig. 3 is a flowchart of a method of a first embodiment of a flashing device of a mobile terminal according to an embodiment of the present invention. This embodiment corresponds to the first embodiment of the flashing method.
The brushing device of the embodiment comprises:
a kernel command permission obtaining unit 301, configured to submit a token to a permission manager of the first mobile terminal system, and obtain a kernel command permission;
an attribute information obtaining unit 302, configured to obtain attribute information of the mobile terminal to be refreshed;
an installation file obtaining unit 303, configured to obtain an operating system installation file adapted to the attribute information;
an installation file sending unit 304, configured to send an operating system installation file to the mobile terminal to be refreshed;
and a system installation unit 305, configured to control the to-be-flushed mobile terminal to install the operating system installation file.
According to the technical scheme, the first mobile terminal acquires the kernel command use permission, acquires the operating system installation file according to the attribute information of the mobile terminal to be refreshed, controls the mobile terminal to be refreshed to install the operating system installation file, achieves the purpose that the mobile terminal to be refreshed is refreshed by using one mobile terminal, and is rapid and convenient in the refreshing process.
Fig. 4 is a flowchart of a method of a second embodiment of a flashing device of a mobile terminal according to an embodiment of the present invention. This embodiment corresponds to the second embodiment of the flashing method.
A kernel command permission obtaining unit 301, configured to submit a token to a permission manager of the first mobile terminal system, and obtain a kernel command permission;
an attribute information obtaining unit 302, configured to obtain attribute information of the mobile terminal to be refreshed;
an installation file obtaining unit 303, configured to obtain an operating system installation file adapted to the attribute information;
an installation file sending unit 304, configured to send an operating system installation file to the mobile terminal to be refreshed;
and a system installation unit 305, configured to control the to-be-flushed mobile terminal to install the operating system installation file.
As an embodiment, the kernel command permission obtaining unit 301 is specifically configured to submit a token to a permission manager of the first mobile terminal system, and obtain a kernel command usage permission for enabling the mobile terminal to be refreshed to enter a Linux environment execution instruction after the token passes identity authentication.
As an embodiment, the attribute information obtaining unit 302 is specifically configured to control the mobile terminal to be refreshed to enter a Linux environment, and call a first kernel command of a command parser shell to obtain attribute information of the mobile terminal to be refreshed;
the installation file sending unit 304 is specifically configured to call a second kernel command of the command parser shell to send an operating system installation file to the mobile terminal to be refreshed;
the system installation unit 305 is specifically configured to call a third kernel command of the command parser shell to control the to-be-refreshed mobile terminal to install the operating system installation file.
As one embodiment, the operating system installation files include an operating system installation package and a recovery mode file; the installation file acquiring unit 303 includes:
an attribute information reading unit 306, configured to read attribute information of the first mobile terminal;
an information confirming and same unit 310, configured to confirm that the attribute information of the first mobile terminal is the same as the attribute information of the mobile terminal to be refreshed;
a resume file reading unit 311 for reading a resume mode file of the first mobile terminal;
an installation package storage determining unit 315, configured to determine that an operating system installation package of the first mobile terminal is stored;
an installation package reading unit 316, configured to read the operating system installation package.
As an embodiment, the installation file acquiring unit 303 includes:
an installation package non-storage determining unit 312, configured to determine that the operating system installation package of the first mobile terminal is not stored;
a first adaptation request sending unit 313, configured to send an operating system installation package adaptation request including attribute information to the server after determining that the operating system installation package of the first mobile terminal is not stored;
and the installation package receiving unit 314 is configured to receive the operating system installation package adapted to the attribute information and sent by the server.
As an embodiment, the installation file acquiring unit 303 further includes:
an information confirmation inequality unit 307, configured to determine that the attribute information of the first mobile terminal is different from the attribute information of the mobile terminal to be refreshed;
a second adaptation request sending unit 308, configured to send an operating system installation package containing attribute information and a recovery mode file adaptation request to the server after determining that the attribute information of the first mobile terminal is different from the attribute information of the mobile terminal to be refreshed;
and a first installation file receiving unit 309, configured to receive the operating system installation package and the recovery mode file that are sent by the server and adapted to the attribute information.
As an embodiment, further comprising:
the first network information acquisition unit is used for acquiring the connection network information of the first mobile terminal before receiving the operating system installation package which is sent by the server and is adaptive to the attribute information;
the first download duration calculation unit is used for calculating download duration according to the network speed of the connection network and the size of the operating system installation package;
and the first prompt information unit is used for sending out prompt information of the connection network information, the size of the operating system installation package and the downloading time length.
As an embodiment, further comprising:
a second network information obtaining unit, configured to obtain connection network information of the first mobile terminal before receiving the operating system installation package and the recovery mode file that are adapted to the attribute information and sent by the server,
the second download duration calculation unit is used for calculating download duration according to the network speed of the connected network and the sizes of the operating system installation package and the recovery mode file;
and the second prompt information unit is used for sending the prompt information of the connection network information, the sizes of the operating system installation package and the recovery mode file and the downloading time length.
As an embodiment, further comprising:
the transmission duration calculation unit is used for calculating the transmission duration according to the transmission speed of the mobile terminal to be refreshed and the size of the operating system installation file before the operating system installation file is sent to the mobile terminal to be refreshed;
the estimated installation time acquiring unit is used for acquiring estimated installation time;
and the third prompt information unit is used for sending prompt information of the size of the installation file of the operating system, the transmission time length and the estimated installation time length.
As an embodiment, further comprising:
an address book obtaining unit 317, configured to obtain an address book of the brushed mobile terminal;
and an address book sending unit 320, configured to confirm that the operating system is successfully installed on the mobile terminal to be refreshed, and send an address book to the mobile terminal to be refreshed.
As an embodiment, further comprising:
an application list information acquisition unit 318 for acquiring application installation list information of the brushed mobile terminal;
the application installation unit 321 is configured to confirm that the installation of the operating system on the mobile terminal to be refreshed is successful, download the application according to the application installation list information, and install the application on the mobile terminal to be refreshed.
As an embodiment, further comprising:
a backup file obtaining unit 319, configured to obtain a current recovery mode file and a current operating system backup file of the mobile terminal to be refreshed;
and the system restoring unit 322 is configured to determine that the installation of the operating system on the mobile terminal to be refreshed fails, and perform operating system restoration on the mobile terminal to be refreshed by using the current recovery mode file and the current operating system backup file.
As an embodiment, the installation file acquiring unit 303 includes:
a third adaptation request sending unit, configured to send an operating system installation package containing attribute information and a recovery mode file adaptation request to the server;
and the second installation file receiving unit is used for receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information.
As an embodiment, the attribute information acquisition unit 302 includes:
the model acquisition unit is used for acquiring the model of the mobile terminal to be brushed;
the attribute information reading unit 306 is configured to, if the first mobile terminal and the to-be-refreshed mobile terminal are the same in model, read the attribute information of the first mobile terminal, and use the attribute information of the first mobile terminal as the attribute information of the to-be-refreshed mobile terminal.
As an embodiment, further comprising:
and the installation instruction acquisition unit is used for acquiring an instruction which is sent by a user through the first mobile terminal operating system and used for installing the first mobile terminal operating system to the mobile terminal to be brushed.
As an embodiment, the installation file transmitting unit 304 includes:
the installation package sending unit is used for sending the operating system installation package to the mobile terminal to be refreshed in the operating system running mode;
the starting instruction sending unit is used for sending a starting instruction of a quick starting mode to the mobile terminal to be brushed;
the recovery file sending unit is used for sending a recovery mode file to the mobile terminal to be refreshed in the quick starting mode;
the file replacement unit is used for controlling the mobile terminal to be refreshed to replace the recovery mode file;
and the installation unit is used for controlling the mobile terminal to be refreshed to run the recovery mode file to enter the recovery mode and installing the operating system installation package in the recovery mode.
According to the technical scheme, the first mobile terminal acquires the kernel command use permission, acquires the operating system installation file according to the attribute information of the mobile terminal to be refreshed, controls the mobile terminal to be refreshed to install the operating system installation file, achieves the purpose that the mobile terminal to be refreshed is refreshed by using one mobile terminal, and is rapid and convenient in the refreshing process.
Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer readable storage medium, and the storage medium may include a memory, a magnetic disk, an optical disk, or the like.
The above description is only a preferred embodiment of the present invention, and for those skilled in the art, the present invention should not be limited by the description of the present invention, which should be interpreted as a limitation.

Claims (26)

1. A flashing method of a mobile terminal is characterized by comprising the following steps:
submitting a token to a permission manager of a first mobile terminal system to acquire a kernel command use permission;
calling a first kernel command of a command parser shell to acquire attribute information of the mobile terminal to be refreshed;
acquiring an operating system installation file matched with the attribute information;
acquiring one or any combination of the following data of the mobile terminal to be brushed: the method comprises the steps of obtaining an address book, an application installation list, a current recovery mode file and a current operating system backup file;
sending the operating system installation file to the mobile terminal to be refreshed;
controlling the mobile terminal to be refreshed to install the operating system installation file;
confirming that the mobile terminal to be refreshed is successfully installed with the operating system, sending the address list to the mobile terminal to be refreshed, or downloading an application according to the application installation list information, and installing the application to the mobile terminal to be refreshed;
and confirming that the mobile terminal to be refreshed fails to install the operating system, and restoring the operating system of the mobile terminal to be refreshed by using the current recovery mode file and the current operating system backup file.
2. The method of claim 1, wherein submitting the token to the rights manager of the first mobile terminal system and obtaining the kernel command usage rights comprises:
and submitting a token to a permission manager of the first mobile terminal system, and obtaining the kernel command use permission for enabling the mobile terminal to be refreshed to enter a Linux environment execution instruction after the token passes identity authentication.
3. The method of claim 1, wherein:
the method for acquiring the attribute information of the mobile terminal to be refreshed by the first kernel command of the call command parser shell comprises the following steps: controlling the mobile terminal to be brushed to enter a Linux environment, and calling a first kernel command of a command parser shell to acquire attribute information of the mobile terminal to be brushed;
the sending the operating system installation file to the mobile terminal to be refreshed comprises: calling a second kernel command of a command parser shell to send the operating system installation file to the mobile terminal to be refreshed;
the controlling the mobile terminal to be refreshed to install the operating system installation file comprises the following steps: and calling a third kernel command of a command parser shell to control the mobile terminal to be refreshed to install the operating system installation file.
4. The method of claim 1, wherein the operating system installation files comprise an operating system installation package and a recovery mode file;
the obtaining of the operating system installation file adapted to the attribute information includes:
reading attribute information of a first mobile terminal;
confirming that the attribute information of the first mobile terminal is the same as the attribute information of the mobile terminal to be refreshed, and reading a recovery mode file of the first mobile terminal;
and determining an operating system installation package stored with the first mobile terminal, and reading the operating system installation package.
5. The method according to claim 4, wherein after confirming that the attribute information of the first mobile terminal is the same as the attribute information of the mobile terminal to be refreshed, the method further comprises:
determining that the operating system installation package of the first mobile terminal is not stored, and sending an operating system installation package adaptation request containing the attribute information to a server;
and receiving the operating system installation package which is sent by the server and is adaptive to the attribute information.
6. The method according to claim 4, wherein after reading the attribute information of the first mobile terminal, further comprising:
confirming that the attribute information of the first mobile terminal is different from the attribute information of the mobile terminal to be refreshed, and sending an operating system installation package containing the attribute information and a recovery mode file adaptation request to a server; and receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information.
7. The method of claim 5, wherein before receiving the operating system installation package adapted to the attribute information sent by the server, the method further comprises:
the method comprises the steps of obtaining connection network information of a first mobile terminal, calculating downloading time according to the network speed of a connection network and the size of an operating system installation package, and sending prompt information of the connection network information, the size of the operating system installation package and the downloading time.
8. The method of claim 6, wherein before receiving the operating system installation package and the recovery mode file adapted to the attribute information sent by the server, the method further comprises:
the method comprises the steps of obtaining connection network information of a first mobile terminal, calculating downloading time according to the network speed of a connection network and the sizes of an operating system installation package and a recovery mode file, and sending prompt information of the connection network information, the sizes of the operating system installation package and the recovery mode file and the downloading time.
9. The method according to claim 1, wherein before sending the operating system installation file to the mobile terminal to be refreshed, the method further comprises:
calculating transmission time according to the transmission speed of the mobile terminal to be refreshed and the size of the operating system installation file, acquiring estimated installation time, and sending prompt information of the size of the operating system installation file, the transmission time and the estimated installation time.
10. The method of claim 1, wherein obtaining the operating system installation file adapted to the attribute information comprises:
sending an operating system installation package containing the attribute information and a recovery mode file adaptation request to a server;
and receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information.
11. The method according to claim 1, wherein the first kernel command for calling the command parser shell acquires attribute information of the mobile terminal to be refreshed, and the method comprises the following steps:
obtaining the model of the mobile terminal to be brushed;
and if the first mobile terminal is the same as the mobile terminal to be refreshed in model, reading the attribute information of the first mobile terminal, and taking the attribute information of the first mobile terminal as the attribute information of the mobile terminal to be refreshed.
12. The method of claim 1, wherein prior to submitting the token to the rights manager of the first mobile terminal system, further comprising;
and acquiring an instruction which is sent by a user through the first mobile terminal operating system and used for installing the first mobile terminal operating system into the mobile terminal to be refreshed.
13. The method according to claim 1, wherein the controlling the to-be-brushed mobile terminal to install the operating system installation file comprises:
sending the operating system installation package to the mobile terminal to be refreshed in an operating system running mode;
sending a starting instruction of a quick starting mode to the mobile terminal to be brushed;
sending a recovery mode file to the mobile terminal to be refreshed in the quick starting mode,
controlling the mobile terminal to be refreshed to replace the recovery mode file;
and controlling the mobile terminal to be refreshed to run the recovery mode file to enter a recovery mode, and installing the operating system installation package in the recovery mode.
14. A mobile terminal's flashing device characterized in that includes:
the kernel command permission obtaining unit is used for submitting a token to a permission manager of the first mobile terminal system and obtaining the kernel command use permission;
the attribute information acquisition unit is used for calling a first kernel command of the command parser shell to acquire the attribute information of the mobile terminal to be refreshed;
the installation file acquisition unit is used for acquiring the operating system installation file matched with the attribute information;
the installation file sending unit is used for sending the operating system installation file to the mobile terminal to be refreshed;
the system installation unit is used for controlling the mobile terminal to be refreshed to install the operating system installation file;
any one or any combination of the following is also included:
the system comprises an address book acquisition unit and an address book sending unit, wherein the address book acquisition unit is used for acquiring an address book of the mobile terminal to be refreshed, confirming that the mobile terminal to be refreshed is successfully provided with an operating system, and sending the address book to the mobile terminal to be refreshed;
the system comprises an application list information acquisition unit and an application installation unit, wherein the application list information acquisition unit is used for acquiring application installation list information of the mobile terminal to be refreshed, confirming that the mobile terminal to be refreshed is successfully installed with an operating system, downloading an application according to the application installation list information, and installing the application to the mobile terminal to be refreshed;
the system comprises a backup file acquisition unit and a system restoration unit, wherein the backup file acquisition unit is used for acquiring a current recovery mode file and a current operating system backup file of the mobile terminal to be refreshed, confirming that the operating system installation of the mobile terminal to be refreshed fails, and restoring the operating system of the mobile terminal to be refreshed by using the current recovery mode file and the current operating system backup file.
15. The apparatus of claim 14, wherein:
and the kernel command permission obtaining unit is specifically used for submitting a token to a permission manager of the first mobile terminal system, and obtaining kernel command use permission for enabling the mobile terminal to be refreshed to enter a Linux environment execution instruction after the token passes identity authentication.
16. The apparatus of claim 14, wherein:
the attribute information acquisition unit is specifically used for controlling the mobile terminal to be refreshed to enter a Linux environment and calling a first kernel command of a command parser shell to acquire the attribute information of the mobile terminal to be refreshed;
the installation file sending unit is specifically used for calling a second kernel command of a command parser shell to send the operating system installation file to the mobile terminal to be refreshed;
and the system installation unit is specifically used for calling a third kernel command of the command parser shell to control the mobile terminal to be refreshed to install the operating system installation file.
17. The apparatus of claim 14, wherein the operating system installation files comprise an operating system installation package and a recovery mode file; the installation file acquiring unit includes:
the attribute information reading unit is used for reading the attribute information of the first mobile terminal;
the information confirmation same unit is used for confirming that the attribute information of the first mobile terminal is the same as the attribute information of the mobile terminal to be refreshed;
a recovery file reading unit for reading a recovery mode file of the first mobile terminal;
the installation package storage determining unit is used for determining that the operating system installation package of the first mobile terminal is stored;
and the installation package reading unit is used for reading the operating system installation package.
18. The apparatus according to claim 17, wherein the installation file acquiring unit includes:
the installation package non-storage determining unit is used for determining that the operating system installation package of the first mobile terminal is not stored;
a first adaptation request sending unit, configured to send an operating system installation package adaptation request including the attribute information to a server after determining that the operating system installation package of the first mobile terminal is not stored;
and the installation package receiving unit is used for receiving the operating system installation package which is sent by the server and is adaptive to the attribute information.
19. The apparatus according to claim 17, wherein the installation file acquiring unit further comprises:
the information confirmation inequality unit is used for determining that the attribute information of the first mobile terminal is different from the attribute information of the mobile terminal to be refreshed;
the second adaptation request sending unit is used for sending an operating system installation package containing the attribute information and a recovery mode file adaptation request to the server after determining that the attribute information of the first mobile terminal is different from the attribute information of the mobile terminal to be refreshed;
and the first installation file receiving unit is used for receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information.
20. The apparatus of claim 18, further comprising:
the first network information acquisition unit is used for acquiring the connection network information of the first mobile terminal before receiving the operating system installation package which is sent by the server and is adaptive to the attribute information;
the first downloading time length calculating unit is used for calculating the downloading time length according to the network speed of the connecting network and the size of the operating system installation package;
and the first prompt information unit is used for sending out prompt information of the connection network information, the size of the operating system installation package and the downloading time length.
21. The apparatus of claim 19, further comprising:
a second network information obtaining unit, configured to obtain connection network information of the first mobile terminal before receiving the operating system installation package and the recovery mode file that are sent by the server and are adapted to the attribute information,
the second download duration calculation unit is used for calculating download duration according to the network speed of the connected network and the sizes of the operating system installation package and the recovery mode file;
and the second prompt information unit is used for sending out the prompt information of the connection network information, the sizes of the operating system installation package and the recovery mode file and the download duration.
22. The apparatus of claim 14, further comprising:
the transmission duration calculation unit is used for calculating the transmission duration according to the transmission speed of the mobile terminal to be refreshed and the size of the operating system installation file before the operating system installation file is sent to the mobile terminal to be refreshed;
the estimated installation time acquiring unit is used for acquiring estimated installation time;
and the third prompt information unit is used for sending prompt information of the size of the operating system installation file, the transmission time length and the estimated installation time length.
23. The apparatus according to claim 14, wherein the installation file acquiring unit includes:
a third adaptation request sending unit, configured to send an operating system installation package containing the attribute information and a recovery mode file adaptation request to a server;
and the second installation file receiving unit is used for receiving the operating system installation package and the recovery mode file which are sent by the server and are adaptive to the attribute information.
24. The apparatus according to claim 14, wherein the attribute information acquisition unit includes:
the model acquisition unit is used for acquiring the model of the mobile terminal to be brushed;
and the attribute information reading unit is used for reading the attribute information of the first mobile terminal if the model of the first mobile terminal is the same as that of the mobile terminal to be refreshed, and taking the attribute information of the first mobile terminal as the attribute information of the mobile terminal to be refreshed.
25. The apparatus of claim 14, further comprising:
and the installation instruction acquisition unit is used for acquiring an instruction which is sent by a user through the first mobile terminal operating system and used for installing the first mobile terminal operating system to the mobile terminal to be brushed.
26. The apparatus of claim 14, wherein the installation file transmitting unit comprises:
the installation package sending unit is used for sending the operating system installation package to the mobile terminal to be refreshed in the operating system running mode;
the starting instruction sending unit is used for sending a starting instruction of a quick starting mode to the mobile terminal to be brushed;
the recovery file sending unit is used for sending a recovery mode file to the mobile terminal to be refreshed in the quick starting mode;
the file replacing unit is used for controlling the mobile terminal to be refreshed to replace the recovery mode file;
and the installation unit is used for controlling the mobile terminal to be refreshed to run the recovery mode file to enter a recovery mode, and installing the operating system installation package in the recovery mode.
CN201611230421.9A 2016-12-27 2016-12-27 Mobile terminal flashing method and device Expired - Fee Related CN106791124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611230421.9A CN106791124B (en) 2016-12-27 2016-12-27 Mobile terminal flashing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611230421.9A CN106791124B (en) 2016-12-27 2016-12-27 Mobile terminal flashing method and device

Publications (2)

Publication Number Publication Date
CN106791124A CN106791124A (en) 2017-05-31
CN106791124B true CN106791124B (en) 2020-10-20

Family

ID=58922873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611230421.9A Expired - Fee Related CN106791124B (en) 2016-12-27 2016-12-27 Mobile terminal flashing method and device

Country Status (1)

Country Link
CN (1) CN106791124B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333181A (en) * 2017-08-11 2017-11-07 四川长虹电器股份有限公司 Linux system intelligent television software upgrade method
CN110489272A (en) * 2019-07-03 2019-11-22 浙江大华技术股份有限公司 The operating system recovery method, apparatus and web camera of web camera
CN112817634B (en) * 2021-01-29 2024-03-19 Oppo广东移动通信有限公司 COTA package downloading method and device
CN114968657A (en) * 2021-02-20 2022-08-30 华为技术有限公司 Data backup method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN103729210A (en) * 2013-12-06 2014-04-16 广东欧珀移动通信有限公司 Method and device for supporting intelligent terminals of multiple sorts of modes with one flashing package
CN104915232A (en) * 2015-06-08 2015-09-16 山东超越数控电子有限公司 Method for achieving multi-platform installation of domestic operating system
CN105511911A (en) * 2015-11-27 2016-04-20 青岛海信移动通信技术股份有限公司 System firmware upgrade package generation method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202075B (en) * 2010-03-26 2013-12-04 联想(北京)有限公司 Data sharing method and portable terminal
EP2675110B1 (en) * 2011-05-04 2015-09-02 Huawei Device Co., Ltd. Method, system and terminal for system update between mobile communication terminals
CN103164232B (en) * 2011-12-08 2017-08-18 腾讯科技(深圳)有限公司 Update method, system and the computer of intelligent terminal operation system
CN104156252A (en) * 2014-08-28 2014-11-19 广州金山网络科技有限公司 Application software installation method and device
CN104506639A (en) * 2014-12-29 2015-04-08 北京奇虎科技有限公司 Root right acquiring method and device
CN104750516A (en) * 2015-03-09 2015-07-01 航天科工深圳(集团)有限公司 Upgrading method for terminal equipment operating system
CN105119991A (en) * 2015-08-20 2015-12-02 深圳市金立通信设备有限公司 Application sharing method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN103729210A (en) * 2013-12-06 2014-04-16 广东欧珀移动通信有限公司 Method and device for supporting intelligent terminals of multiple sorts of modes with one flashing package
CN104915232A (en) * 2015-06-08 2015-09-16 山东超越数控电子有限公司 Method for achieving multi-platform installation of domestic operating system
CN105511911A (en) * 2015-11-27 2016-04-20 青岛海信移动通信技术股份有限公司 System firmware upgrade package generation method and device

Also Published As

Publication number Publication date
CN106791124A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106791124B (en) Mobile terminal flashing method and device
TWI363298B (en) Communication device and firmware update method thereof
US20170206079A1 (en) Method and Device for Upgrading Software
WO2014146256A1 (en) Upgrade method, intelligent terminal, and upgrade system
CN107995284B (en) OTA (over the air) upgrading method suitable for POS (point of sale) machine
US20100132042A1 (en) Method for upgrading antivirus software and terminal and system thereof
JP2006252547A (en) Application method of portable software
WO2014194865A1 (en) Firmware upgrade method and apparatus, and communication device
WO2018032757A1 (en) Method and device for updating component
CN104375857A (en) Method and device for enabling application program to operate multiple instances and terminal equipment
CN113434182A (en) Method and device for realizing immediate effect of firmware upgrade of solid state disk and computer equipment
KR20190109979A (en) Electronic device and method for controling update thereof
CN114398048A (en) Method and device for automatically upgrading APP and computer equipment
WO2020057134A1 (en) Mobile terminal control method, and mobile terminal
US11789746B2 (en) Computing device reboot
KR102124330B1 (en) Method for updating of application and apparatus for the same
US20090157908A1 (en) Software Driver Device
CN109428936B (en) APP upgrading method, device, system, electronic equipment and storage medium
CN113422791B (en) Cloud service configuration method and device, electronic equipment and computer readable storage medium
WO2017096889A1 (en) Method and device for upgrading and downgrading system
CN105243325A (en) Method for residual process file in mobile terminal, mobile terminal and server
CN112860300A (en) Distributed SDK (software development kit) hot update processing method and application server cluster
CN112559248B (en) Preprocessing service recovery method, device, equipment and storage medium
EP4350516A1 (en) Control method and electronic device
CN111443933A (en) Mobile terminal chip online updating method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201020

Termination date: 20201227