CN105278980B - System updating method, device and server - Google Patents
System updating method, device and server Download PDFInfo
- Publication number
- CN105278980B CN105278980B CN201410359809.3A CN201410359809A CN105278980B CN 105278980 B CN105278980 B CN 105278980B CN 201410359809 A CN201410359809 A CN 201410359809A CN 105278980 B CN105278980 B CN 105278980B
- Authority
- CN
- China
- Prior art keywords
- terminal
- updating
- information
- configuration information
- update
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a system updating method, a device and a server, wherein the method comprises the following steps: when a terminal carries out system updating, acquiring characteristic information of the terminal; searching for updating configuration information corresponding to the characteristic information of the terminal; distributing updating resources in the terminal according to the updating configuration information; and updating the terminal from the source system to the target system by adopting the updating resource. The invention can carry out automatic system updating on the terminal, reduce resource consumption and improve the updating efficiency of the system.
Description
Technical Field
The invention relates to the technical field of internet, in particular to the technical field of terminal processing, and particularly relates to a system updating method, a device and a server.
Background
The terminal system update process refers to a process of reinstalling the operating system by the terminal, and the process may be called a flush, for example: a mobile phone of an Android (Android, a mobile operating system) system is updated from an Android4.0 system to an Android4.3 system, and so on. Generally, the update resource needs to be confirmed first before the flash; at present, the confirmation of updating resources is mainly performed manually, specifically: the machine-brushing personnel manually detect the space configuration condition of the terminal, for example: detecting the size of a built-in SD (Secure digital memory Card), or detecting whether an external SD Card is configured, or detecting whether a DATA (DATA) partition available for swiping a machine exists, and the like; and then the flashing personnel manually selects the space resource of the flashing to execute the flashing operation. The current system updating process needs to select updating resources manually, consumes a large amount of human resources and reduces the system updating efficiency.
Disclosure of Invention
The embodiment of the invention provides a system updating method, a system updating device and a server, which can be used for carrying out automatic system updating on a terminal, reducing resource consumption and improving system updating efficiency.
A first aspect of an embodiment of the present invention provides a system update method, which may include:
when a terminal carries out system updating, acquiring characteristic information of the terminal;
searching for updating configuration information corresponding to the characteristic information of the terminal;
distributing updating resources in the terminal according to the updating configuration information;
and updating the terminal from the source system to the target system by adopting the updating resource.
A second aspect of an embodiment of the present invention provides a system update apparatus, which may include:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the characteristic information of the terminal when the terminal carries out system updating;
the searching module is used for searching the updating configuration information corresponding to the characteristic information of the terminal;
the distribution module is used for distributing the updating resources in the terminal according to the updating configuration information;
and the updating module is used for updating the terminal from the source system to the target system by adopting the updating resource.
A third aspect of an embodiment of the present invention provides a server, which may include the system updating apparatus provided in the second aspect.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, 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 drawings without creative efforts.
FIG. 1 is a flow chart of a system update method according to an embodiment of the present invention;
fig. 2 is a flowchart of another system updating method according to an embodiment of the present invention;
FIG. 3 is a flow chart of yet another system upgrade method provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of a system update apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another system updating apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a lookup module according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an allocation module according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an update module according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a detection module according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a setting module according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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.
The system updating method provided by the embodiment of the invention will be described in detail below with reference to fig. 1 to 3.
Please refer to fig. 1, which is a flowchart illustrating a system updating method according to an embodiment of the present invention; the method may comprise the following steps S101-S104.
S101, when the terminal carries out system updating, the characteristic information of the terminal is obtained.
The terminal may include, but is not limited to: cell phones, smart phones, PADs (tablets), smart wearable devices, and the like. The system of the terminal refers to the operating system of the terminal, and may include but is not limited to: android (an Android, a mobile operating system) system, saiban system, windows system, and the like. The system update process of the terminal refers to a process of reinstalling an operating system of the terminal, which may also be referred to as a flush, for example: and updating the Android system mobile phone from the Android4.0 system to the Android4.3 system, and the like. The characteristic information of the terminal may include: the identification information of the terminal and the model information of the terminal. The model information of the terminal comprises: the model information of the terminal and/or the kernel information of the terminal.
S102, searching for the updating configuration information corresponding to the characteristic information of the terminal.
The update configuration information may be a configuration file in an XML (Extensible Markup Language) format, and may be used to describe the configured flashing scheme, including: the terminal updates the configuration information of the space, the operation configuration information and the like, and the terminal performs the flashing according to the flashing scheme described by the updating configuration information. Because the model information is different, the updated configuration information of the terminal may also be different, in a specific implementation, the feature information of one terminal may correspond to one updated configuration information, and in this step, the updated configuration information corresponding to the feature information of the terminal acquired in step S101 is searched.
S103, distributing the updating resources in the terminal according to the updating configuration information.
The update resource refers to a resource necessary for the terminal to be booted, and may include a space resource required for the terminal to be booted, and in a specific implementation, the update resource may further include an environment resource required for the terminal to be booted, for example: and (4) flashing in a system environment, flashing in a recovery (engineering mode) environment and the like. The update configuration information describes the configured flashing scheme, and the step can allocate update resources in the terminal according to the update configuration information.
And S104, updating the terminal from the source system to the target system by adopting the updating resource.
The process of updating the terminal from the source system to the target system, that is, the system update process of the terminal, refers to a process of reinstalling the operating system by the terminal, which may also be referred to as a flush, for example: and updating the Android system mobile phone from the Android4.0 system to the Android4.3 system, and the like. In this step, the terminal can be updated from the source system to the target system by using the update resource.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
Referring to fig. 2, a flowchart of another system updating method according to an embodiment of the present invention is shown; the method may include the following steps S201 to S206.
S201, when the terminal carries out system updating, the characteristic information of the terminal is obtained.
S202, searching for the updating configuration information corresponding to the characteristic information of the terminal.
S203, distributing the updating resources in the terminal according to the updating configuration information.
And S204, updating the terminal from the source system to the target system by adopting the updating resource.
Steps S201 to S204 of this embodiment can refer to steps S101 to S104 of the embodiment shown in fig. 1, which are not described herein again.
S205, detecting whether the terminal is successfully updated from the source system to the target system.
S206, setting the state of the terminal according to the detection result.
Step S205 to step S206 are processes of testing the terminal, and a state of the terminal is set by detecting whether the terminal is successfully updated from a source system to a target system, where the state of the terminal can be used to indicate a test result of the terminal. In practical application, if a plurality of terminals need to be tested, a scheduling and polling mechanism can be adopted, and after the state of the current tested terminal is obtained, the testing process of the next tested terminal can be automatically switched until the states of all the tested terminals are obtained.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
Referring to fig. 3, a flow chart of another system updating method according to an embodiment of the present invention is shown; the method may include the following steps S301 to S316.
S301, when the terminal carries out system updating, the characteristic information of the terminal is obtained.
Step S301 of this embodiment can refer to step S101 of the embodiment shown in fig. 1, and is not described herein again.
S302, a preset configuration table is obtained, and the preset configuration table comprises at least one piece of feature information and updating configuration information corresponding to each piece of feature information.
The preset configuration table records a corresponding relationship between the feature information and the updated configuration information, and the corresponding relationship may include: one feature information corresponds to one update configuration information. The characteristic information can be used for uniquely characterizing a terminal and can comprise identification information of the terminal and model information of the terminal. The updating configuration information may include: the spatial configuration information and the operational configuration information. The space configuration information is used for indicating space resources required by the flash, and the operation configuration information is used for indicating operations required to be executed for obtaining the space resources required by the flash. In a specific implementation, the preset configuration table may be represented by an example shown in the following table one:
table one: preset configuration table
It is understood that, in the above table one, the characteristic information is expressed by "ID (Identity) + model". The items shown in table one are only examples, and other cases, for example: the representation mode of the feature information is changed, or the operation configuration information is changed, and the like, which can be similarly expressed by referring to the first table.
S303, searching for updated configuration information corresponding to the characteristic information of the terminal from the preset configuration table.
According to the example shown in step S302, this step may search the first table for the updated configuration information corresponding to the feature information of the terminal.
The steps S302 to S303 of the present embodiment may be a specific refinement step of the step S102 of the embodiment shown in fig. 1, or a specific refinement step of the step S202 of the embodiment shown in fig. 2.
S304, selecting space resources for updating the system in the terminal according to the space configuration information.
The space configuration information is used for indicating space resources required by the flashing. In this step, according to the space configuration information, space resources for system update (i.e., flashing) are selected from the terminal. According to the example shown in this embodiment, it is assumed that the characteristic information of the terminal is "IDxx-i 699+ model xxi 699", the spatial configuration information obtained from the first table is "use DATA partition to flush", and in this step, the DATA partition is selected as a spatial resource required by the flush in the terminal.
S305, calling a base class function to release the space resource according to the operation configuration information.
The base class function is a common function which can be called and is used for executing corresponding operation; for example: an internal SD card release operation function, an internal SD card fill operation function, an external SD card release operation function, an external SD card unmount function, a DATA partition release operation function, and the like. According to the example shown in step S304, the operation configuration information obtained from the first table in this step is "DATA partition release", and this step may call a DATA partition release operation function, clear the DATA in the DATA partition, and release the space resources in the DATA partition.
S306, determining the space resource obtained by releasing as an updating resource.
Steps S304-S306 of the present embodiment may be a specific refinement step of step S103 of the embodiment shown in fig. 1, or a specific refinement step of step S203 of the embodiment shown in fig. 2.
S307, formatting the data partition occupied by the source system in the terminal.
The step can be a preprocessing process before the terminal is refreshed, and the preprocessing process is actually to clear cache data of a source system, so that the refreshing process can be normally carried out. For the Android system, this step may be referred to as a double clear process.
S308, pushing the system file of the target system into the updating resource to perform system updating operation, so that the terminal is updated from the source system to the target system.
In this step, the system file of the target system can be pushed into the update resource by a flashing tool such as a flashing sprite, so as to complete the flashing process of the terminal, and the terminal is updated from a source system to the target system; according to the example shown in this embodiment, this step may push the target system into the DATA partition where the flush process is automatically completed.
Steps S307 to S308 of the present embodiment may be a specific refinement step of step S104 of the embodiment shown in fig. 1, or a specific refinement step of step S204 of the embodiment shown in fig. 2.
S309, analyzing the system file of the target system to obtain target attribute information.
The target attribute information defines the characteristics of parameter attribute, function openness and the like of the target system; for example: assuming that a target system is an Android system, the target attribute information may be a build.prop file in Rom (Firmware, mobile phone system Firmware); the build.
S310, system attribute information is obtained from the terminal.
Since the terminal has completed the flashing process, the step can obtain the system attribute information of the current system of the terminal from the system configuration file of the terminal.
S311, comparing the target attribute information with the system attribute information.
S312, judging whether the target attribute information is the same as the system attribute information; if yes, go to step S313; otherwise, the process proceeds to step S315.
If the target attribute information is the same as the system attribute information, it indicates that the current system of the terminal is the target system, and further indicates that the terminal is successfully booted, and the step S313 may be executed. If the target attribute information is different from the system attribute information, it indicates that the current system of the terminal is not the target system, and further indicates that the terminal has failed to be booted, and the method may proceed to execute step S315.
S313, the terminal is determined to be successfully updated from the source system to the target system.
S314, setting the state of the terminal as a test passing state; and then ends.
S315, determining that the terminal fails to update from the source system to the target system.
And S316, setting the state of the terminal as a test failure state.
Steps S309 to S316 of the present embodiment may be detailed as steps S205 to S206 of the embodiment shown in fig. 2.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
A system updating apparatus provided by the embodiment of the present invention will be described in detail below with reference to fig. 4 to 10. It should be noted that the system updating apparatus shown in fig. 4-10 can be applied to perform the methods shown in fig. 1-3.
Fig. 4 is a schematic structural diagram of a system updating apparatus according to an embodiment of the present invention; the apparatus may include: an acquisition module 101, a search module 102, an allocation module 103, and an update module 104.
An obtaining module 101, configured to obtain characteristic information of a terminal when the terminal performs system update.
The terminal may include, but is not limited to: cell phones, smart phones, PADs, smart wearable devices, and the like. The system of the terminal refers to the operating system of the terminal, and may include but is not limited to: android systems, saiblon systems, windows systems, and the like. The system update process of the terminal refers to a process of reinstalling an operating system of the terminal, which may also be referred to as a flush, for example: and updating the Android system mobile phone from the Android4.0 system to the Android4.3 system, and the like. The characteristic information of the terminal may include: the identification information of the terminal and the model information of the terminal. The model information of the terminal comprises: the model information of the terminal and/or the kernel information of the terminal.
A searching module 102, configured to search for update configuration information corresponding to the characteristic information of the terminal.
The update configuration information may be a configuration file in an XML format, and may be used to describe the configured flashing scheme, including: the terminal updates the configuration information of the space, the operation configuration information and the like, and the terminal performs the flashing according to the flashing scheme described by the updating configuration information. Due to the difference of the model information, the updated configuration information of the terminal may also be different, and in a specific implementation, the feature information of one terminal may correspond to one updated configuration information, and the search module 102 searches for the updated configuration information corresponding to the obtained feature information of the terminal.
An allocating module 103, configured to allocate an update resource in the terminal according to the update configuration information.
The update resource refers to a resource necessary for the terminal to be booted, and may include a space resource required for the terminal to be booted, and in a specific implementation, the update resource may further include an environment resource required for the terminal to be booted, for example: and the system is refreshed in a system environment, the recovery environment is refreshed in a recovery environment and the like. The update configuration information describes the configured flashing scheme, and the allocating module 103 may allocate an update resource in the terminal according to the update configuration information.
An updating module 104, configured to update the terminal from the source system to the target system using the update resource.
The process of updating the terminal from the source system to the target system, that is, the system update process of the terminal, refers to a process of reinstalling the operating system by the terminal, which may also be referred to as a flush, for example: and updating the Android system mobile phone from the Android4.0 system to the Android4.3 system, and the like. The update module 104 may update the terminal from the source system to the target system using the update resource.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
Fig. 5 is a schematic structural diagram of another system updating apparatus according to an embodiment of the present invention; the apparatus may include: the device comprises an acquisition module 101, a search module 102, an allocation module 103, an update module 104, a detection module 105 and a setting module 106.
A detecting module 105, configured to detect whether the terminal is successfully updated from the source system to the target system.
A setting module 106, configured to set a state of the terminal according to the detection result.
The detection module 105 and the setting module 106 are specifically configured to test the terminal, and the detection module 105 detects whether the terminal is successfully updated from a source system to a target system, and the setting module 106 may set a state of the terminal, where the state of the terminal may be used to indicate a test result of the terminal. In practical application, if a plurality of terminals need to be tested, a scheduling and polling mechanism can be adopted, and after the state of the current tested terminal is obtained, the testing process of the next tested terminal can be automatically switched until the states of all the tested terminals are obtained.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
Fig. 6 is a schematic structural diagram of a lookup module according to an embodiment of the present invention; the lookup module 102 may include: an acquisition unit 1201 and a lookup unit 1202.
An obtaining unit 1201, configured to obtain a preset configuration table, where the preset configuration table includes at least one piece of feature information and update configuration information corresponding to each piece of feature information.
The preset configuration table records a corresponding relationship between the feature information and the updated configuration information, and the corresponding relationship may include: one feature information corresponds to one update configuration information. The characteristic information can be used for uniquely characterizing a terminal and can comprise identification information of the terminal and model information of the terminal. The updating configuration information may include: the spatial configuration information and the operational configuration information. The space configuration information is used for indicating space resources required by the flash, and the operation configuration information is used for indicating operations required to be executed for obtaining the space resources required by the flash. In a specific implementation, the preset configuration table may be represented by table one in the embodiment shown in fig. 3.
A searching unit 1202, configured to search, from the preset configuration table, updated configuration information corresponding to the feature information of the terminal.
According to the example shown in this embodiment, the searching unit 1202 may search the first table for the updated configuration information corresponding to the feature information of the terminal.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
Fig. 7 is a schematic structural diagram of an allocation module according to an embodiment of the present invention; the assignment module 103 may include: a selecting unit 1301, a releasing unit 1302 and a determining unit 1303.
A selecting unit 1301, configured to select, according to the spatial configuration information, a spatial resource for system update in the terminal.
The space configuration information is used for indicating space resources required by the flashing. The selecting unit 1301 selects a space resource for system update (i.e., flashing) from the terminal according to the space configuration information. For example: assuming that the characteristic information of the terminal is "IDxx-i 699+ model xxi 699", the spatial configuration information obtained from the first table is "use DATA partition to flush", and the selecting unit 1301 selects the DATA partition as a spatial resource required by flushing in the terminal.
The releasing unit 1302 is configured to call a base class function to release the space resource according to the operation configuration information.
The base class function is a common function which can be called and is used for executing corresponding operation; for example: an internal SD card release operation function, an internal SD card fill operation function, an external SD card release operation function, an external SD card unmount function, a DATA partition release operation function, and the like. According to the example shown in this embodiment, the operation configuration information obtained from the first table is "DATA partition release", and the release unit 1302 may call a DATA partition release operation function, clear DATA in the DATA partition, and release spatial resources of the DATA partition.
A determining unit 1303, configured to determine the released obtained spatial resource as an updated resource.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
Please refer to fig. 8, which is a schematic structural diagram of an update module according to an embodiment of the present invention; the update module 104 may include: a processing unit 1401 and an updating unit 1402.
A processing unit 1401, configured to perform formatting processing on the data partition occupied by the source system in the terminal.
The processing procedure of the processing unit 1401 may be a preprocessing procedure before the terminal is booted, and the preprocessing procedure is actually to clear the cache data of the source system, so as to ensure that the booting procedure can be performed normally. For the Android system, this preprocessing process may be referred to as a double-clear process.
An updating unit 1402, configured to push the system file of the target system into the update resource to perform a system update operation, so that the terminal is updated from a source system to the target system.
The updating unit 1402 may push the system file of the target system to the update resource by means of a flashing tool such as a flashing sprite, complete a flashing process of the terminal, and update the terminal from a source system to a target system; for example: if the update resource is a DATA partition, the update unit 1402 may push the target system into a DATA partition, where the flush process is automatically completed.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
Fig. 9 is a schematic structural diagram of a detection module according to an embodiment of the present invention; the detection module 105 may include: a parsing unit 1501, an attribute acquisition unit 1502, an alignment unit 1503, and a result determination unit 1504.
The parsing unit 1501 is configured to parse the system file of the target system to obtain target attribute information.
The target attribute information defines the characteristics of parameter attribute, function openness and the like of the target system; for example: assuming that the target system is an Android system, the target attribute information may be a build. The parsing unit 1501 may obtain build.prop by parsing Rom of the target system.
An attribute obtaining unit 1502 is configured to obtain system attribute information from the terminal.
Since the terminal has completed the flashing process, the attribute obtaining unit 1502 may obtain the system attribute information of the current system of the terminal from the system configuration file of the terminal.
A comparing unit 1503, configured to compare the target attribute information with the system attribute information.
A result determining unit 1504, configured to determine that the terminal is successfully updated from a source system to a target system if the target attribute information is the same as the system attribute information; otherwise, determining that the terminal fails to update from the source system to the target system.
And if the target attribute information is the same as the system attribute information, indicating that the current system of the terminal is the target system, and further indicating that the terminal is successfully refreshed. And if the target attribute information is different from the system attribute information, indicating that the current system of the terminal is not the target system, and further indicating that the terminal is failed to be refreshed.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
Fig. 10 is a schematic structural diagram of a setup module according to an embodiment of the present invention; the setup module 106 may include: a first setting unit 1601 and a second setting unit 1602.
The first setting unit 1601 is configured to set a state of the terminal as a test-passing state if the terminal is successfully updated from the source system to the target system.
The state of the terminal may be used to indicate a test result of the terminal, and the first setting unit 1601 sets the state of the terminal to be a test pass state, that is, indicates that the test result of the terminal is a test pass.
A second setting unit 1602, configured to set the state of the terminal as a test failure state if the terminal fails to update from the source system to the target system.
The state of the terminal may be used to indicate a test result of the terminal, and the second setting unit 1602 sets the state of the terminal as a test failure state, that is, indicates that the test result of the terminal is a test failure.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
The embodiment of the present invention further discloses a server, which may include a system updating apparatus, and the structure and function of the apparatus may refer to the related descriptions of the embodiments shown in fig. 4 to fig. 10, which are not described herein again.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention; the server of the embodiment of the invention comprises: at least one processor 201, e.g., a CPU, at least one communication bus 202, at least one network interface 203, memory 204. Wherein a communication bus 202 is used to enable the connection communication between these components. The network interface 203 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). The memory 204 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 204 may optionally be at least one storage device located remotely from the processor 201. As shown in fig. 11, the memory 204, which is a kind of computer storage medium, stores an operating system, a network communication module, and a program for performing system update and other programs.
In a possible implementation manner, the processor 201 may be configured to call a program stored in the memory 204 for performing system update, and perform the following steps:
when a terminal carries out system updating, acquiring characteristic information of the terminal;
searching for updating configuration information corresponding to the characteristic information of the terminal;
distributing updating resources in the terminal according to the updating configuration information;
and updating the terminal from the source system to the target system by adopting the updating resource.
Wherein the characteristic information of the terminal includes: the identification information of the terminal and the model information of the terminal; the model information of the terminal comprises: the model information of the terminal and/or the kernel information of the terminal.
Further, when the processor 201 performs the step of searching for the updated configuration information corresponding to the characteristic information of the terminal, the following steps are specifically performed:
acquiring a preset configuration table, wherein the preset configuration table comprises at least one piece of characteristic information and updating configuration information corresponding to each piece of characteristic information;
and searching the updated configuration information corresponding to the characteristic information of the terminal from the preset configuration table.
Further, the updating the configuration information includes: spatial configuration information and operational configuration information; when the processor 201 executes the step of allocating the update resource in the terminal according to the update configuration information, the following steps are specifically executed:
selecting space resources for updating a system in the terminal according to the space configuration information;
calling a base class function to release the space resource according to the operation configuration information;
and determining the space resource obtained by releasing as an updated resource.
Further, when the step of updating the terminal from the source system to the target system by using the update resource is executed, the processor 201 specifically executes the following steps:
formatting the data partition occupied by the source system in the terminal;
and pushing the system file of the target system into the updating resource to perform system updating operation so as to update the terminal from the source system to the target system.
Further, after executing the step of performing the system update operation on the terminal by using the update resource, the processor 201 further executes the following steps:
detecting whether the terminal is successfully updated from a source system to a target system;
and setting the state of the terminal according to the detection result.
Further, when the step of detecting whether the terminal is successfully updated from the source system to the target system is executed, the processor 201 specifically executes the following steps:
analyzing the system file of the target system to obtain target attribute information;
acquiring system attribute information from the terminal;
comparing the target attribute information with the system attribute information;
if the target attribute information is the same as the system attribute information, determining that the terminal is successfully updated from a source system to a target system; otherwise, determining that the terminal fails to update from the source system to the target system.
Further, when the processor 201 executes the step of setting the state of the terminal according to the detection result, the following steps are specifically executed:
if the terminal is successfully updated from the source system to the target system, setting the state of the terminal as a test passing state;
and if the terminal fails to update from the source system to the target system, setting the state of the terminal as a test failure state.
According to the embodiment of the invention, when the terminal carries out system updating, the updating configuration information corresponding to the characteristic information of the terminal is searched, and the updating resource is automatically distributed for carrying out system updating according to the updating configuration information, so that the human resource consumption caused by manually selecting the updating resource is avoided, the resource consumption is saved, and the system updating efficiency is effectively improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (13)
1. A system upgrade method, comprising:
when a terminal carries out system updating, acquiring characteristic information of the terminal;
acquiring a preset configuration table, wherein the preset configuration table comprises at least one piece of characteristic information and updating configuration information corresponding to each piece of characteristic information;
searching for updated configuration information corresponding to the characteristic information of the terminal from the preset configuration table; wherein the update configuration information is used for describing the configured flashing scheme, and the update configuration information includes: spatial configuration information and operational configuration information;
allocating update resources in the terminal according to the update configuration information, including: selecting a space resource for system updating in the terminal according to the space configuration information, calling a base class function to release the space resource according to the operation configuration information, and determining the space resource obtained by releasing as an updated resource;
and updating the terminal from the source system to the target system by adopting the updating resource.
2. The method of claim 1, wherein the characteristic information of the terminal comprises: the identification information of the terminal and the model information of the terminal;
the model information of the terminal comprises: the model information of the terminal and/or the kernel information of the terminal.
3. The method of claim 1, wherein the updating the terminal from a source system to a target system using the update resource comprises:
formatting the data partition occupied by the source system in the terminal;
and pushing the system file of the target system into the updating resource to perform system updating operation so as to update the terminal from the source system to the target system.
4. The method of any of claims 1-3, wherein after updating the terminal from a source system to a target system using the update resource, further comprising:
detecting whether the terminal is successfully updated from a source system to a target system;
and setting the state of the terminal according to the detection result.
5. The method of claim 4, wherein the detecting whether the terminal is successfully updated from a source system to a target system comprises:
analyzing the system file of the target system to obtain target attribute information;
acquiring system attribute information from the terminal;
comparing the target attribute information with the system attribute information;
if the target attribute information is the same as the system attribute information, determining that the terminal is successfully updated from a source system to a target system; otherwise, determining that the terminal fails to update from the source system to the target system.
6. The method of claim 5, wherein the setting the state of the terminal according to the detection result comprises:
if the terminal is successfully updated from the source system to the target system, setting the state of the terminal as a test passing state;
and if the terminal fails to update from the source system to the target system, setting the state of the terminal as a test failure state.
7. A system update apparatus, comprising:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the characteristic information of the terminal when the terminal carries out system updating;
the searching module is used for searching the updating configuration information corresponding to the characteristic information of the terminal;
the searching module comprises:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a preset configuration table, and the preset configuration table comprises at least one piece of characteristic information and updating configuration information corresponding to each piece of characteristic information;
the searching unit is used for searching the updated configuration information corresponding to the characteristic information of the terminal from the preset configuration table; wherein the update configuration information is used for describing the configured flashing scheme, and the update configuration information includes: spatial configuration information and operational configuration information;
the distribution module is used for distributing the updating resources in the terminal according to the updating configuration information; the distribution module includes: the terminal comprises a selecting unit, a releasing unit and a determining unit, wherein the selecting unit is used for selecting space resources used for system updating in the terminal according to space configuration information, the releasing unit is used for calling a base class function to release the space resources according to operation configuration information, and the determining unit is used for determining the space resources obtained by releasing as updating resources;
and the updating module is used for updating the terminal from the source system to the target system by adopting the updating resource.
8. The apparatus of claim 7, wherein the characteristic information of the terminal comprises: the identification information of the terminal and the model information of the terminal;
the model information of the terminal comprises: the model information of the terminal and/or the kernel information of the terminal.
9. The apparatus of claim 7, wherein the update module comprises:
the processing unit is used for formatting the data partition occupied by the source system in the terminal;
and the updating unit is used for pushing the system file of the target system into the updating resource to perform system updating operation so as to update the terminal from the source system to the target system.
10. The apparatus of any of claims 7-9, further comprising:
the detection module is used for detecting whether the terminal is successfully updated from a source system to a target system;
and the setting module is used for setting the state of the terminal according to the detection result.
11. The apparatus of claim 10, wherein the detection module comprises:
the analysis unit is used for analyzing the system file of the target system to obtain target attribute information;
the attribute acquiring unit is used for acquiring system attribute information from the terminal;
the comparison unit is used for comparing the target attribute information with the system attribute information;
a result determining unit, configured to determine that the terminal is successfully updated from a source system to a target system if the target attribute information is the same as the system attribute information; otherwise, determining that the terminal fails to update from the source system to the target system.
12. The apparatus of claim 11, wherein the setup module comprises:
the first setting unit is used for setting the state of the terminal as a test passing state if the terminal is successfully updated from a source system to a target system;
and the second setting unit is used for setting the state of the terminal as a test failure state if the terminal fails to update from the source system to the target system.
13. A server, characterized in that it comprises a system updating device according to any of claims 7-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410359809.3A CN105278980B (en) | 2014-07-25 | 2014-07-25 | System updating method, device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410359809.3A CN105278980B (en) | 2014-07-25 | 2014-07-25 | System updating method, device and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105278980A CN105278980A (en) | 2016-01-27 |
CN105278980B true CN105278980B (en) | 2020-09-15 |
Family
ID=55148036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410359809.3A Active CN105278980B (en) | 2014-07-25 | 2014-07-25 | System updating method, device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105278980B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106911497B (en) * | 2017-02-07 | 2019-12-13 | 腾讯科技(深圳)有限公司 | method and device for identifying and adapting system updating equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102314408A (en) * | 2011-09-05 | 2012-01-11 | 百度在线网络技术(北京)有限公司 | Method, device, equipment and system for acquiring configuration information and configuring |
CN102929676A (en) * | 2012-11-05 | 2013-02-13 | 深圳市信一网络有限公司 | Quick adapting method of terminal device based on Android operation 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 |
-
2014
- 2014-07-25 CN CN201410359809.3A patent/CN105278980B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102314408A (en) * | 2011-09-05 | 2012-01-11 | 百度在线网络技术(北京)有限公司 | Method, device, equipment and system for acquiring configuration information and configuring |
CN102929676A (en) * | 2012-11-05 | 2013-02-13 | 深圳市信一网络有限公司 | Quick adapting method of terminal device based on Android operation 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 |
Also Published As
Publication number | Publication date |
---|---|
CN105278980A (en) | 2016-01-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11429439B2 (en) | Task scheduling based on performance control conditions for multiple processing units | |
CN103559054B (en) | Realization, delet method and the device of intelligent terminal multi-operation system | |
KR101332815B1 (en) | Apparatus and method for handling the rebooting of mobile terminal | |
CN103744824B (en) | One is dispatched from the factory method of testing and test system | |
CN106933593B (en) | System switching method and device based on mobile terminal | |
US20180120826A1 (en) | Server, electronic device, and electronic device information providing method | |
US20170090950A1 (en) | Information processing device, information processing method, and computer readable storage medium | |
CN113672441A (en) | Method and device for testing intelligent equipment | |
CN113268416A (en) | Application program testing method and device, storage medium and terminal | |
CN104915228A (en) | Application program language setting method and device | |
US20170118625A1 (en) | Method and Device for Controlling Subscriber Identity Module Card of Mobile Terminal | |
CN106293790B (en) | application program upgrading method and device based on Firefox operating system | |
CN105278980B (en) | System updating method, device and server | |
CN112817620B (en) | Controller terminal program updating method, device, computer equipment and storage medium | |
CN112558982B (en) | Code detection method and device and computer equipment | |
CN106547583B (en) | Operating system installation method and device | |
CN109857469B (en) | Display screen control method and related product | |
CN109800229B (en) | Data access method and related equipment | |
CN109683965B (en) | BIOS state viewing method and device | |
CN106095445B (en) | Installation method, device and the terminal of driver | |
CN102314353A (en) | Method for changing database during android software update | |
CN106648925B (en) | Mobile terminal and method for acquiring character string information thereof | |
CN105279063B (en) | A kind of test method, device and server | |
CN104090845A (en) | Automatic game testing method and system and related device | |
CN116881001B (en) | Method, device, equipment and medium for managing and controlling cloud platform of multiple DPU hosts |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |