CN109710286B - System upgrading method, device, equipment and storage medium - Google Patents

System upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN109710286B
CN109710286B CN201811457537.5A CN201811457537A CN109710286B CN 109710286 B CN109710286 B CN 109710286B CN 201811457537 A CN201811457537 A CN 201811457537A CN 109710286 B CN109710286 B CN 109710286B
Authority
CN
China
Prior art keywords
new
original
user data
partition
address
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
Application number
CN201811457537.5A
Other languages
Chinese (zh)
Other versions
CN109710286A (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.)
Goertek Inc
Original Assignee
Goertek Optical 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 Goertek Optical Technology Co Ltd filed Critical Goertek Optical Technology Co Ltd
Priority to CN201811457537.5A priority Critical patent/CN109710286B/en
Publication of CN109710286A publication Critical patent/CN109710286A/en
Application granted granted Critical
Publication of CN109710286B publication Critical patent/CN109710286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a system upgrading method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring original user data partition information stored in an original partition table, wherein the original user data partition information comprises an original starting address and an original ending address of a user data partition, and the original user data partition information is positioned at the starting position of the original partition table; acquiring new user data partition information stored in a new partition table, wherein the new user data partition information comprises a new start address and a new end address of a user data partition, and the new user data partition information is positioned at the start position of the new partition table; and if the original starting address is the same as the new starting address and the original ending address is different from the new ending address, upgrading the system according to the new partition table. Based on the over-the-air technology, the upgrading of the system and the partition table can be realized without carrying out data backup on the user data partition, and meanwhile, the user data partition is not cleared; the partition table upgrading process is simplified, and the system and partition table upgrading efficiency are improved.

Description

System upgrading method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for system upgrade.
Background
Currently, when an operating system of an electronic device (e.g., a mobile phone, a smart watch, smart glasses, etc.) having an operating system (e.g., an Android system) is upgraded, the system upgrade may be performed by using a line brush (system upgrade is performed through a data line), a card brush (system upgrade is performed through a memory card), or an Over-the-Air (OTA) technology. Some upgrading modes can only upgrade the operating system, and some upgrading modes can simultaneously upgrade the partition table and the operating system.
In the prior art, if the partition table and the system are to be upgraded simultaneously, a card swiping mode is often adopted, and the upgrading mode of the over-the-air technology does not support the upgrading of the partition table; moreover, the updating of the partition table can cause the data in the user data partition to be erased; if the data in the user data partition is to be prevented from being erased, the data in the user data partition can be backed up in advance, and then the system is upgraded, so that the upgrading process is complex and inconvenient.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for system upgrade, so as to implement a scheme for upgrading a partition table and a system based on an over-the-air technology.
In a first aspect, an embodiment of the present invention provides a system upgrade method, where the method includes:
acquiring original user data partition information stored in an original partition table, wherein the original user data partition information comprises an original starting address and an original ending address of a user data partition, and the original user data partition information is located at the starting position of the original partition table;
acquiring new user data partition information stored in a new partition table, wherein the new user data partition information comprises a new start address and a new end address of the user data partition, and the new user data partition information is located at the start position of the new partition table;
and if the original starting address is the same as the new starting address and the original ending address is different from the new ending address, upgrading the system according to the new partition table.
Further, the acquiring of the new user data partition information stored in the new partition table includes:
acquiring a system upgrading data packet based on an over-the-air downloading mode;
and analyzing the new partition table in the system upgrading data packet to obtain the new user data partition information.
Further, after the new user data partition information stored in the new partition table is obtained, the method further includes:
determining a preset storage space of the user data partition corresponding to the new partition table based on the new starting address and the new ending address;
comparing the data occupation space in the user data partition corresponding to the original partition table with the preset storage space;
and if the occupied space of the data is larger than the preset storage space, terminating the system upgrading according to the new partition table.
Further, still include: and if the data occupation space is smaller than or equal to the preset storage space, comparing whether the original starting address is the same as the new starting address.
Further, comparing whether the original start address is the same as the new start address comprises:
and if the original starting address is different from the new starting address, terminating the system upgrading according to the new partition table.
Further, still include: if the original starting address is the same as the new starting address, the original starting address of the user data partition is stored and unchanged, and the original ending address of the user data partition is updated to be the new ending address.
Further, after parsing the new partition table in the system upgrade data packet, the method further includes:
acquiring the partition information of other data partitions in the new partition table;
and updating the starting address and the ending address of the other data partitions according to the information of the other partitions.
Further, the upgrading the system according to the new partition table includes:
loading the new partition table;
and writing the upgrade partition data in the system upgrade data packet obtained by analysis into the other updated data partitions.
In a second aspect, an embodiment of the present invention provides a system upgrading apparatus, where the apparatus includes:
a first obtaining module, configured to obtain original user data partition information stored in an original partition table, where the original user data partition information includes an original start address and an original end address of a user data partition, and the original user data partition information is located at a start position of the original partition table;
a second obtaining module, configured to obtain new user data partition information stored in a new partition table, where the new user data partition information includes a new start address and a new end address of the user data partition, and the new user data partition information is located at a start position of the new partition table;
and the upgrading module is used for upgrading the system according to the new partition table if the original starting address is the same as the new starting address and the original ending address is different from the new ending address.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor; wherein the content of the first and second substances,
the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method of system upgrade as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, where the computer program is used to make a computer implement the method for upgrading a system according to the first aspect when executed.
In the system upgrading method provided by the embodiment of the invention, when the partition table is set, the original user data partition information of the user data partition is stored at the initial position of the original partition table; and when the system is upgraded subsequently, the new user data partition information in the new partition table in the system upgrade data packet is also positioned at the initial position. Meanwhile, the new start address of the user data partition in the new partition table is the same as the original start address of the user data partition in the original partition table, and if the original end address is different from the new end address, system upgrading is carried out according to the new partition table. By the technical scheme, based on the over-the-air download technology, the upgrading of the system and the partition table can be realized without carrying out data backup on the user data partition, and meanwhile, the user data partition is not cleared; the partition table upgrading process is simplified, and the system and partition table upgrading efficiency are 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 embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a system upgrade method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an original partition table and a new partition table according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a system upgrading apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device for implementing the method shown in fig. 1 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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 terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "the plural" typically includes at least two, but does not exclude the presence of at least one.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship.
The words "if", as used herein, may be interpreted as "at \8230; \8230when" or "when 8230; \823030, when" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (a stated condition or event)" may be interpreted as "upon determining" or "in response to determining" or "upon detecting (a stated condition or event)" or "in response to detecting (a stated condition or event)", depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in articles of commerce or systems including such elements.
It should be noted that the original partition table may be understood as a partition table currently in use in the device, and the new partition table may be understood as a partition table to be used soon.
In the existing system upgrade scheme, the storage order of each partition information in the partition table is not fixed, for example, under the condition of factory setting, the user data partition information in the initial partition table is located at the last position of the partition table, and after one upgrade is performed, the user data partition information may be stored at the initial position of the partition table. Since the location of the user data partition information in the partition table changes, the user data partition information may also be modified, which may result in data loss in the user data partition. In addition, data loss may also occur if the storage address of the user data partition changes, specifically, if the start address of the user data partition changes, the content in the user data partition is lost or completely erased. If the user data is not lost due to the upgrade of the partition table, it is necessary to ensure that the position of the user data partition information in the partition table is not modified and the initial address of the user data partition is not changed.
Fig. 1 is a schematic flow chart of a system upgrading method according to an embodiment of the present invention, where the method mainly includes the following steps:
101: the method comprises the steps of obtaining original user data partition information stored in an original partition table, wherein the original user data partition information comprises an original starting address and an original ending address of a user data partition, and the original user data partition information is located at the starting position of the original partition table.
In the original partition table, many data partition information, such as user data partition (userdata) information, kernel partition information, system partition information, and the like, are stored at the same time. In the original user data partition information, an original start address (e.g., original user data partition start header number, sector number, etc.), an original end address (e.g., original user data partition end header number, sector number, etc.), a file system flag, and the like may be included. The original user data partition information is located at the start position of the original partition table, and it is understood that the original user data partition information is located at a position earlier than the positions of other partition information in the partition table, in other words, the user data partition information is located at the first position in all partition information. When other partition information is changed or the storage sequence of other partition information in the partition table is changed, the original user data partition information is stored in the initial position of the original partition table in order that the original user data partition information is not changed.
102: acquiring new user data partition information stored in a new partition table, wherein the new user data partition information comprises a new start address and a new end address of the user data partition, and the new user data partition information is located at the start position of the new partition table.
In practical applications, the new partition table is parsed from the system upgrade data packet obtained by Over The Air (OTA) technique. When the operating system and the partition table are upgraded subsequently, it is necessary to ensure that the new user data partition information is located at the initial position of the new partition table. The new user data partition information is located at the start position of the new staging table, which is understood to mean that the new user data partition information is located at a position earlier than the other partition information in the partition table, in other words, the user data partition information is located at the first position in all the partition information. The storage locations of the partition information in the original partition table and the new partition table are shown in fig. 2.
It should be noted that the order of steps 101 and 102 is not limited strictly, that is, step 101 may be executed first and then step 102 may be executed, or step 102 may be executed first and then step 101 may be executed.
103: and if the original starting address is the same as the new starting address and the original ending address is different from the new ending address, upgrading the system according to the new partition table.
After the original partition table and the new partition table are obtained, the start address and the end address are compared. Specifically, the original start address and the new start address are compared, and if the original start address is the same as the new start address, the original end address and the new end address may be further compared.
If the original starting address is the same as the new starting address and the original ending address is the same as the new ending address, the user data partition information in the partition table is not changed, and the data in the user data partition and the user data partition information in the partition table do not need to be upgraded. For example, if the user data partition does not need to be upgraded, part of the upgrade may be performed when the system upgrade data packet is generated, and the system upgrade data packet may not include user data partition data, user data partition information, and the like; therefore, the upgrading operation can be simplified, and the upgrading efficiency is improved.
If the original starting address is the same as the new starting address and the original ending address is different from the new ending address, the partition table is changed, and the size of the corresponding partition storage space is also changed. The partition table and operating system need to be upgraded simultaneously.
In one or more embodiments of the present invention, the obtaining of the new user data partition information stored in the new partition table may specifically include: acquiring a system upgrading data packet based on an over-the-air downloading mode; and analyzing the new partition table in the system upgrading data packet to obtain the new user data partition information.
For example, assuming that the operating system to be upgraded is a mobile phone terminal operating system, when a new system version exists, the server pushes a new system upgrade prompt message to each mobile phone terminal. If the user wants to upgrade the system, the user can select to download the corresponding system upgrade data packet. The mobile phone terminal device analyzes the system upgrading data packet to obtain a new partition table (of course, other data to be written in the upgrading packet) contained in the upgrading packet, so that the new user data partition information in the new partition table can be determined.
In one or more embodiments of the present invention, after obtaining the new user data partition information stored in the new partition table, the method may further include: determining a preset storage space of the user data partition corresponding to the new partition table based on the new starting address and the new ending address; comparing the data occupation space in the user data partition corresponding to the original partition table with the preset storage space; and if the occupied space of the data is larger than the preset storage space, terminating the system upgrading according to the new partition table.
For example, according to the new start address and the new end address, the preset storage space of the user data partition corresponding to the new partition table is determined to be 1G space, where the preset storage space may be understood as a storage space set when the system upgrade data packet is made. The data occupation space stored in the user data partition corresponding to the original partition table is 1.2G, and it can be known that the data occupation space 1.2G is significantly larger than the size of the preset storage space 1G, and if the ending address of the user data partition is changed according to the new partition table, the user data is lost, so that the upgrade of the operating system according to the new partition table needs to be terminated. Since the size of the preset storage space cannot satisfy the requirement of storing the existing user data, the comparison between the original start address and the new start address is not required.
In one or more embodiments of the present invention, the method may further include: and if the data occupation space is smaller than or equal to the preset storage space, comparing whether the original starting address is the same as the new starting address.
For example, if the occupied space of the data is 1G and the preset storage space is 1.2G, the occupied space of the data is significantly smaller than the preset storage space, and the comparison between the original start address and the new start address can be continued. So that it can be further judged whether the partition table and the system can be upgraded based on the new partition table.
In one or more embodiments of the present invention, comparing whether the original start address is the same as the new start address may further include: and if the original starting address is different from the new starting address, terminating the system upgrading according to the new partition table.
If the original starting address in the original partition table is different from the new starting address in the new partition table, it indicates that the partition table and the actual storage address of the corresponding user data partition have changed, and if the operation of system upgrade is continuously executed according to the new partition table, the user data in the user data partition will be deleted. Therefore, if the original start address is different from the new start address according to the comparison, the original end address and the new end address do not need to be compared, and the operation of upgrading the system according to the new partition table can be terminated.
In one or more embodiments of the present invention, the method may further include: if the original starting address is the same as the new starting address and the original ending address is different from the new ending address, the original starting address of the user data partition is kept unchanged, and the original ending address of the user data partition is updated to be the new ending address.
In practical application, if the comparison shows that the original start address is the same as the new start address and the original end address is different from the new end address, the end address of the user data partition is updated to the new end address under the condition that the current start address of the user data partition (the current start address is the same as the original start address and the new start address) is kept unchanged in order to avoid the data in the user data partition from being erased. For example, the Resize2fs instruction may be used to adjust the user data partition end address to an end address in the new partition table.
In one or more embodiments of the present invention, after parsing the new partition table in the system upgrade data packet, the method may further include: acquiring the partition information of other data partitions in the new partition table; and updating the starting address and the ending address of the other data partitions according to the information of the other partitions.
In practical application, if the operating system needs to be upgraded, it may be necessary to upgrade multiple data partitions and corresponding partition information in the partition table at the same time. Therefore, other data partitions and corresponding partition information also need to be acquired. Other data partitions as referred to herein may be understood as data partitions in the system other than user data partitions. If the information of other data partitions changes, the upgrading operation of each data partition needs to be further performed according to the information of other data partitions.
In one or more embodiments of the present invention, the performing system upgrade according to the new partition table may specifically include: loading the new partition table; and writing the upgrade partition data in the system upgrade data packet obtained by analysis into the other updated data partitions.
And after the new partition table is confirmed to be available, loading the new partition table and refreshing the corresponding block device. And writing the data corresponding to each data partition contained in the system upgrading data packet into the corresponding updated other data partitions.
Based on the same idea, as shown in fig. 3, a schematic structural diagram of a system upgrading apparatus provided in an embodiment of the present invention is shown. The embodiment of the present invention further provides a system upgrading apparatus, including:
a first obtaining module 31, configured to obtain original user data partition information stored in an original partition table, where the original user data partition information includes an original start address and an original end address of a user data partition, and the original user data partition information is located at a start position of the original partition table;
a second obtaining module 32, configured to obtain new user data partition information stored in a new partition table, where the new user data partition information includes a new start address and a new end address of the user data partition, and the new user data partition information is located at a start position of the new partition table;
and the upgrading module 33 is configured to, if the original start address is the same as the new start address and the original end address is different from the new end address, upgrade the system according to the new partition table.
Further, the first obtaining module 31 is configured to obtain a system upgrade data package based on an over-the-air download manner;
and analyzing the new partition table in the system upgrading data packet to obtain the new user data partition information.
Further, still include: a comparing module 34, configured to determine, based on the new start address and the new end address, a preset storage space of the user data partition corresponding to the new partition table;
comparing the data occupation space in the user data partition corresponding to the original partition table with the preset storage space;
and if the occupied space of the data is larger than the preset storage space, terminating the system upgrading according to the new partition table.
Further, the method also comprises the following steps: after the comparison by the comparison module 34, if the occupied space of the data is smaller than or equal to the preset storage space, comparing whether the original start address is the same as the new start address.
Further, comprising: after the comparison by the comparison module 34, if the original start address is different from the new start address, the system upgrade according to the new partition table is terminated.
Further, still include: after comparison by the comparison module 34, if the original start address is the same as the new start address, the original start address of the user data partition is saved and the original end address of the user data partition is updated to the new end address.
Further, the upgrading module 33 is configured to obtain partition information of other data partitions in the new partition table;
and updating the starting address and the ending address of the other data partitions according to the information of the other partitions.
Further, the upgrading module 33 is configured to load the new partition table; and writing the upgrade partition data in the system upgrade data packet obtained by analysis into the other updated data partitions.
Based on the same idea, as shown in fig. 4, an embodiment of the present invention further provides an electronic device, which is characterized by including: a memory 41, a processor 42; wherein, the first and the second end of the pipe are connected with each other,
the memory 41 is used for storing one or more computer instructions, wherein the one or more computer instructions, when executed by the processor 42, implement the method for system upgrade as described in the above embodiments.
Based on the same idea, an embodiment of the present invention further provides a computer storage medium for storing a computer program, where the computer program enables a computer to implement the method for upgrading a system according to the above embodiment when executed.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described solutions and/or portions thereof that are prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein (including but not limited to disk storage, CD-ROM, optical storage, etc.).
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable coordinate determination device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable coordinate determination device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable coordinate determination apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable coordinate determination device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A system upgrade method, comprising:
acquiring original user data partition information stored in an original partition table, wherein the original user data partition information comprises an original starting address and an original ending address of a user data partition, and the original user data partition information is located at the starting position of the original partition table;
acquiring new user data partition information stored in a new partition table, wherein the new user data partition information comprises a new start address and a new end address of the user data partition, and the new user data partition information is located at the start position of the new partition table;
determining a preset storage space of the user data partition corresponding to the new partition table based on the new starting address and the new ending address; comparing the data occupation space in the user data partition corresponding to the original partition table with the preset storage space; if the occupied space of the data is larger than the preset storage space, terminating the system upgrading according to the new partition table; if the occupied space of the data is smaller than or equal to the preset storage space, comparing whether the original starting address is the same as the new starting address or not;
if the original starting address is the same as the new starting address and the original ending address is different from the new ending address, upgrading the system according to the new partition table;
if the original starting address is the same as the new starting address, and the original ending address is the same as the new ending address, system upgrading is carried out according to data except for the data in the original user data partition and the user data partition information in the original partition table.
2. The method of claim 1, wherein obtaining new user data partition information stored in a new partition table comprises:
acquiring a system upgrading data packet based on an over-the-air downloading mode;
and analyzing the new partition table in the system upgrading data packet to obtain the new user data partition information.
3. The method of claim 1, wherein comparing whether the original start address is the same as the new start address comprises:
and if the original starting address is different from the new starting address, terminating the system upgrading according to the new partition table.
4. The method of claim 1, further comprising:
if the original starting address is the same as the new starting address and the original ending address is different from the new ending address, the original starting address of the user data partition is kept unchanged, and the original ending address of the user data partition is updated to be the new ending address.
5. The method of claim 2, after parsing the new partition table in the system upgrade data packet, further comprising:
acquiring the partition information of other data partitions in the new partition table;
and updating the starting address and the ending address of the other data partitions according to the information of the other partitions.
6. The method of claim 5, wherein the performing a system upgrade according to the new partition table comprises:
loading the new partition table;
and writing the upgrade partition data in the system upgrade data packet obtained by analysis into the other updated data partitions.
7. A system upgrade apparatus, comprising:
a first obtaining module, configured to obtain original user data partition information stored in an original partition table, where the original user data partition information includes an original start address and an original end address of a user data partition, and the original user data partition information is located at a start position of the original partition table;
a second obtaining module, configured to obtain new user data partition information stored in a new partition table, where the new user data partition information includes a new start address and a new end address of the user data partition, and the new user data partition information is located at a start position of the new partition table; determining a preset storage space of the user data partition corresponding to the new partition table based on the new starting address and the new ending address; comparing the data occupation space in the user data partition corresponding to the original partition table with the preset storage space; if the occupied space of the data is larger than the preset storage space, terminating the system upgrading according to the new partition table; if the occupied space of the data is smaller than or equal to the preset storage space, comparing whether the original starting address is the same as the new starting address or not;
the upgrading module is used for upgrading the system according to the new partition table if the original starting address is the same as the new starting address and the original ending address is different from the new ending address; and if the original starting address is the same as the new starting address and the original ending address is the same as the new ending address, performing system upgrade according to data except the data in the original user data partition and the user data partition information in the original partition table.
8. An electronic device, comprising: a memory, a processor; wherein the content of the first and second substances,
the memory is to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement a method of system upgrade of any one of claims 1 to 6.
9. A computer storage medium storing a computer program which, when executed, causes a computer to perform a method of upgrading a system as claimed in any one of claims 1 to 6.
CN201811457537.5A 2018-11-30 2018-11-30 System upgrading method, device, equipment and storage medium Active CN109710286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811457537.5A CN109710286B (en) 2018-11-30 2018-11-30 System upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811457537.5A CN109710286B (en) 2018-11-30 2018-11-30 System upgrading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109710286A CN109710286A (en) 2019-05-03
CN109710286B true CN109710286B (en) 2022-11-15

Family

ID=66254510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811457537.5A Active CN109710286B (en) 2018-11-30 2018-11-30 System upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109710286B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495744A (en) * 2020-03-19 2021-10-12 华为技术有限公司 Version upgrading method and related device
CN115514741A (en) * 2021-06-23 2022-12-23 华为技术有限公司 OTA (over the air) upgrading method and device and computer readable storage medium
CN113741812B (en) * 2021-08-09 2024-04-12 浙江大华技术股份有限公司 Memory partition updating method and device, electronic device and storage medium
CN114780120B (en) * 2022-04-02 2023-06-09 荣耀终端有限公司 Upgrade method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455348A (en) * 2013-08-27 2013-12-18 小米科技有限责任公司 Subarea adjustment method, device, terminal, server and system
CN106484448A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device
CN106708543A (en) * 2015-07-22 2017-05-24 Tcl集团股份有限公司 OTA upgrading method and apparatus for operation system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8631239B2 (en) * 2012-01-12 2014-01-14 Facebook, Inc. Multiple system images for over-the-air updates
CN103473099B (en) * 2013-09-13 2017-02-01 惠州Tcl移动通信有限公司 Software upgrading method and system for mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455348A (en) * 2013-08-27 2013-12-18 小米科技有限责任公司 Subarea adjustment method, device, terminal, server and system
CN106708543A (en) * 2015-07-22 2017-05-24 Tcl集团股份有限公司 OTA upgrading method and apparatus for operation system
CN106484448A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device

Also Published As

Publication number Publication date
CN109710286A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN109710286B (en) System upgrading method, device, equipment and storage medium
CN110058873B (en) Application page updating method, device, equipment and storage medium
CN105867947B (en) Data processing method and device after preset application program updating
US11086638B2 (en) Method and apparatus for loading application
CN110716845B (en) Log information reading method of Android system
EP3244320A1 (en) File path storing and local file accessing method and device
CN111475142A (en) Method, device and equipment for generating applet file package
CN111198777A (en) Data processing method, device, terminal and storage medium
CN111857712A (en) Form processing method, device, terminal and medium
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN108920159B (en) Security upgrading method and device and electronic equipment
CN110928946A (en) Document editing method and device and terminal equipment
WO2020135129A1 (en) Method and device for loading plug-in of application, and terminal
CN110968888B (en) Data processing method and device
CN109688578B (en) Method and equipment for adapting SIM card and mobile terminal equipment
CN111736895A (en) Method, equipment and storage medium for merging and upgrading version numbers of software products
CN113051105A (en) Data processing method, device, equipment and storage medium
CN112230975A (en) Firmware differential upgrading method, device and equipment
CN111367540B (en) eMMC firmware upgrading method and device
CN108427678B (en) Method for searching application resource file by android system
CN111190549A (en) Method, device, equipment and medium for acquiring available capacity of shared volume
CN110968552B (en) Application information storage method and device
CN114816862B (en) Data recovery method and device, computing device and readable storage medium
CN106899650B (en) Data updating method and device
CN111726373B (en) Communication link construction method, device and equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201030

Address after: 261061 north of Yuqing East Street, east of Dongming Road, Weifang High tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building)

Applicant after: GoerTek Optical Technology Co.,Ltd.

Address before: 266104 Laoshan Qingdao District North House Street investment service center room, Room 308, Shandong

Applicant before: GOERTEK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 261061 east of Dongming Road, north of Yuqing East Street, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Applicant after: GoerTek Optical Technology Co.,Ltd.

Address before: 261061 east of Dongming Road, north of Yuqing East Street, Weifang High tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Applicant before: GoerTek Optical Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221117

Address after: 261031 No. 268 Dongfang Road, hi tech Industrial Development Zone, Shandong, Weifang

Patentee after: GOERTEK Inc.

Address before: 261061 east of Dongming Road, north of Yuqing East Street, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building)

Patentee before: GoerTek Optical Technology Co.,Ltd.