CN106775881B - System upgrading method and device - Google Patents

System upgrading method and device Download PDF

Info

Publication number
CN106775881B
CN106775881B CN201611206457.3A CN201611206457A CN106775881B CN 106775881 B CN106775881 B CN 106775881B CN 201611206457 A CN201611206457 A CN 201611206457A CN 106775881 B CN106775881 B CN 106775881B
Authority
CN
China
Prior art keywords
partition
writable
upgrading
current system
module
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
CN201611206457.3A
Other languages
Chinese (zh)
Other versions
CN106775881A (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.)
Meizu Technology Co Ltd
Original Assignee
Meizu 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201611206457.3A priority Critical patent/CN106775881B/en
Publication of CN106775881A publication Critical patent/CN106775881A/en
Application granted granted Critical
Publication of CN106775881B publication Critical patent/CN106775881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a system upgrading method, which comprises the following steps: receiving a system upgrading instruction; determining whether each partition of the current system is writable; modifying the permission of the non-writable partition in the current system to be writable, and upgrading the writable partition in the current system according to the system upgrading instruction; and when the writable partition is upgraded and the current system is restarted, upgrading the non-writable partition. The embodiment of the invention also discloses a system upgrading device. The embodiment of the invention can update the writable partition in the terminal equipment, adjust the non-writable partition into the writable partition, and then perform system upgrade on the partition which is not finished with the system upgrade, thereby realizing the system upgrade of the non-writable partition.

Description

System upgrading method and device
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for upgrading a system.
Background
The operating system has a concept of partition, wherein, for the partition, the operating system has the authority operations of reading, non-writing, non-reading, writing and the like, and the operating system needs to have an upgrading function, and the upgrading function is to perform writing operation on some partitions.
At present, if a significant technical vulnerability occurs on the hand of a user, the terminal device should update the system of the terminal device, so that a new code needs to be written in the terminal device held by the user. However, a certain partition of the terminal device may be set as a non-writable partition, and then a problem that the upgrade program does not have a right to write the partition is faced.
Disclosure of Invention
The embodiment of the invention provides a method and a device for upgrading a system, which are used for solving the problem that a non-writable partition cannot be upgraded.
In view of the above, a first aspect of the present invention provides a method for system upgrade, including:
receiving a system upgrading instruction;
determining whether each partition of the current system is writable;
modifying the permission of the non-writable partition in the current system to be writable, and upgrading the writable partition in the current system according to the system upgrading instruction;
and when the writable partition is upgraded and the current system is restarted, upgrading the non-writable partition.
With reference to the first aspect of the embodiment of the present invention, in a first possible implementation manner, after the non-writable partition is upgraded, the method further includes:
the current system of the terminal is restarted again.
With reference to the first implementation manner of the first aspect of the embodiment of the present invention, in a second possible implementation manner, the method further includes:
when the non-writable partition exists in the current system, setting a mark A at any position of a writable partition of the current system;
when the non-writable partition finishes upgrading and takes effect, erasing the mark A or modifying the mark A into other marks except the mark A;
before restarting the current system of the terminal again, the method further comprises the following steps:
determining that the flag A exists in the current system.
With reference to the first implementation manner of the first aspect of the embodiment of the present invention, in a third possible implementation manner, before the updating the non-writable partition, the method includes:
and sending a reminding message for judging whether the unwritable partition is upgraded or not.
With reference to the first aspect of the embodiment of the present invention and any one of the first to third implementation manners of the first aspect, in a fourth possible implementation manner, the method is applied to remote upgrade.
The second aspect of the present invention provides a system upgrading apparatus, including:
the receiving module is used for receiving a system upgrading instruction;
the first determining module is used for determining whether each partition of the current system is writable or not after the receiving module receives the system upgrading instruction;
the first upgrading module is used for modifying the permission of the non-writable partition determined by the first determining module in the current system into writable partition, and upgrading the writable partition in the current system according to the system upgrading instruction;
and the second upgrading module is used for upgrading the non-writable partition after the writable partition is upgraded and the current system is restarted.
With reference to the second aspect of the embodiment of the present invention, in a first possible implementation manner, the apparatus further includes:
and the restarting module is used for restarting the current system of the terminal again after the second upgrading module upgrades the non-writable partition.
With reference to the first implementation manner of the second aspect of the embodiment of the present invention, in a second possible implementation manner, the apparatus further includes:
the setting module is used for setting a mark A at any position of a writable partition of the current system when the non-writable partition exists in the current system;
the modifying module is used for erasing the mark A set by the setting module or modifying the mark A into other marks except the mark A after the non-writable partition finishes upgrading and takes effect;
and the second determining module is used for determining that the mark A exists in the current system before the restarting module restarts the current system of the terminal again.
With reference to the first implementation manner of the second aspect of the embodiment of the present invention, in a third possible implementation manner, the apparatus further includes:
and the sending module is used for sending a reminding message for judging whether the unwritable partition is upgraded or not before the second upgrading module upgrades the unwritable partition.
With reference to the second aspect of the embodiment of the present invention and any one of the first to third implementation manners of the second aspect, in a fourth possible implementation manner, the apparatus is applied to remote upgrade.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides a system upgrading method, which comprises the steps that a system upgrading device receives a system upgrading instruction, whether each partition of a current system can be written or not is determined, the permission of a non-writable partition in the current system is modified to be writable by the system upgrading device, the writable partition in the current system is upgraded according to the system upgrading instruction, and when the writable partition is upgraded and the current system is restarted, the non-writable partition is upgraded by the system upgrading device. By the method, the writable partition in the terminal equipment can be updated, the non-writable partition is adjusted to be the writable partition, and then the partition which is not subjected to system upgrade is subjected to system upgrade, so that the system upgrade of the non-writable partition is realized.
Drawings
FIG. 1 is a flowchart illustrating an embodiment of a method for system upgrade according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an embodiment of an apparatus for system upgrade according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of another embodiment of a system upgrading apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another embodiment of an apparatus for upgrading a system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another embodiment of a system upgrading apparatus according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and a device for upgrading a system, which solve the problem of upgrading the system by a non-writable partition.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. 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.
Referring to fig. 1, a method for upgrading a system according to an embodiment of the present invention is described in detail below, where the method for upgrading a system according to the embodiment of the present invention includes:
101. receiving a system upgrading instruction;
in this embodiment, the system upgrade apparatus first receives a system upgrade instruction, where the system upgrade instruction may be triggered or may be automatically triggered when the terminal device detects that the system needs to be updated, and the system upgrade instruction is used to indicate that the terminal device may currently perform system upgrade.
102. Determining whether each partition of the current system is writable;
in this embodiment, the system upgrade apparatus determines whether each partition in the current system is writable, where a partition may refer to a partition in hardware or a partition in code logic. When a developer of an operating system develops the system, for some parts which do not need to be modified frequently or functions with high security, the content of the parts is written into a partition and is set as unwritable, so that a user cannot modify the content of the parts.
103. Modifying the permission of the non-writable partition in the current system into writable partition, and upgrading the writable partition in the current system according to a system upgrading instruction;
in this embodiment, as described in step 102 above, if it is determined that the non-writable partition exists in the current system, the permission corresponding to the non-writable partition in the current system needs to be set as writable. Wherein, the right means that a certain user has a specific system resource usage right. Typically, a system administrator, or a network administrator in a network, may assign different permissions to users for the use of a particular resource, and the system software automatically enforces those permissions.
The device for upgrading the system can upgrade the writable partition in the current system according to the system upgrading instruction while modifying the permission of the non-writable partition in the current system into writable partition. The upgrading process is that the writable partition is upgraded by adopting the upgrading compression packet, and the upgrading of the non-writable partition cannot be finished at this time because the permission of the non-writable partition is only modified to be writable at this time but is not effective yet.
104. And when the writable partition finishes upgrading and the current system is restarted, upgrading the non-writable partition.
In this embodiment, when the writable partition in the current system is upgraded by using the upgrade compression package and the terminal device is restarted, the writable partition in the current system may be upgraded. At this time, since the system is restarted, the new authority of the unwritable partition is already in effect, that is, the unwritable partition is changed into the writable partition, so that the upgrade program can perform write operation on the unwritable partition (changed into the writable partition) to complete update and upgrade.
That is, the reboot at this time is for the newly written content to take effect, the newly written content including the content of the writable partition upgrade and the rights of the modified non-writable partition. When restarted, the original non-writable partition actually becomes a writable partition.
The embodiment of the invention provides a system upgrading method, which comprises the steps that a system upgrading device receives a system upgrading instruction firstly, then whether each partition of a current system can be written or not is determined, the permission of a non-writable partition in the current system is modified to be writable by the system upgrading device, meanwhile, the writable partition in the current system is upgraded according to the system upgrading instruction, and when the writable partition is upgraded and the current system is restarted, the system upgrading device upgrades the non-writable partition. By the mode, the non-writable partition in the terminal equipment can be updated firstly, and then the system is upgraded after the updated writable partition, so that the problem of system upgrade of the non-writable partition is solved.
Optionally, on the basis of the embodiment corresponding to fig. 1, in a first optional embodiment of the method for upgrading a system according to the embodiment of the present invention, after upgrading the non-writable partition, the method may further include:
the current system of the terminal is restarted again.
In this embodiment, the system upgrading apparatus needs to restart the current system of the terminal if it is ensured that the upgrade content in the non-writable partition becomes valid after the non-writable partition is upgraded.
In the upgrading process, the system which leaves the factory and is of a past type cannot control the authority of the system, and the newly added content cannot be enabled to be effective. When the upgrade is completed and the system is restarted, the newly added content will take effect, that is, the system is the current system at the moment, that is, the upgrade package (upgrade content) is controllable, the upgrade process of the upgrade program is controlled through the upgrade script in the upgrade package, and meanwhile, the non-writable partition can be set as the writable partition.
Secondly, in the embodiment of the present invention, after the system upgrading device upgrades the non-writable partition, the current system of the terminal may be restarted again. By the aid of the method, the current system of the terminal equipment can be upgraded, the writable partition of the system is upgraded, and meanwhile the non-writable partition is upgraded, so that reliability and practicability of the scheme are improved.
Optionally, on the basis of the first embodiment corresponding to fig. 1, in a second optional embodiment of the method for upgrading a system according to the embodiment of the present invention, the method may further include:
when the current system has the non-writable partition, setting a mark A at any position of the writable partition of the current system;
when the non-writable partition finishes upgrading and takes effect, erasing the mark A or modifying the mark A into other marks except the mark A;
before restarting the current system of the terminal again, the method may further include:
it is determined that flag a is present in the current system.
In this embodiment, if the system upgrading apparatus determines that the current system still has the unwritable partition, a flag a is set at any position in the writable partition of the current system, that is, the flag a identifies that the current system has the unwritable partition, that is, the partition that has not been upgraded exists. Before the device for upgrading the system finishes the whole upgrading process, the current system of the terminal needs to be restarted, and the device for upgrading the system indicates that a partition which is not upgraded yet (the partition is upgraded but not validated) still exists in the current system under the condition that the flag A exists in the current system, so that the system is restarted, the partition which is upgraded completely is validated, then the flag A in the writable partition is erased, or the flag A is replaced by other flags, and the whole upgrading is finished.
In the embodiment of the present invention, how to verify whether the non-writable partition is updated to be valid by using the flag a is described, that is, when the non-writable partition exists in the current system, the flag a is set at any position of the writable partition of the current system, and then when the non-writable partition is updated and becomes valid, the flag a may be erased or modified to be other flags except for the flag a, and before the current system of the terminal is restarted, it is necessary to determine that the flag a exists in the current system. By the mode, the purpose of upgrading the unwritable partition at one time can be achieved, the device for upgrading the system firstly upgrades the partition which carries the mark A and can be written, then when the partition is restarted, the codes of the writable partition are effective, the device can find out whether the mark A exists, if the mark A exists, the upgrading program needs to be re-entered to upgrade the unwritable partition, namely, the system is upgraded for two times, if the mark A does not exist, the system does not need to be restarted again, namely, the system is upgraded for only one time, so that the purpose of upgrading the system at one time is achieved, and the operation convenience of the scheme is improved.
Optionally, on the basis of the first embodiment corresponding to fig. 1, in a third optional embodiment of the method for upgrading a system according to the embodiment of the present invention, before upgrading the non-writable partition, the method may further include:
and sending a reminding message whether to upgrade the non-writable partition.
In this embodiment, before the device for system upgrade upgrades the non-writable partition, a prompt message indicating whether to upgrade the non-writable partition may be sent in advance, where the prompt message is displayed on a terminal interface, and a user may manually select whether to upgrade the non-writable partition.
The reminding message may include a selection of "yes" or "no", which respectively indicates that the non-writable partition is upgraded and the non-writable partition is not upgraded, and may also be a "temporary non-reminding", and if the operation is selected, the reminding may be performed after a period of default, and the user may view the related service within the period of time.
In the embodiment of the present invention, before the non-writable partition is updated, the system updating apparatus may further send a prompt message indicating whether the non-writable partition is updated. Through the method, the user is inquired whether the non-writable partition needs to be upgraded or not, the user selects and operates the non-writable partition according to the actual condition instead of forcibly upgrading the non-writable partition, and therefore the practicability and flexibility of the scheme are improved.
Optionally, on the basis of any one of the first to third embodiments corresponding to fig. 1 and fig. 1, in a fourth optional embodiment of the method for upgrading a system according to the embodiment of the present invention, the method is specifically applied to remote upgrading.
In this embodiment, the present invention may be applied to local upgrade and remote upgrade. The remote upgrade is to operate the other party by remote assistance of a computer to upgrade the firmware of the current terminal.
In particular, there are various types of remote upgrades, and the remote upgrade employed by the present invention includes, but is not limited to, the following types.
Method one, uses simple batch commands. Firstly, establishing connection with an upgrade server, then copying an upgrade file from a server shared directory to a local directory, and finally deleting the connection with the upgrade server. The method has the advantages that the editing is simple, and only a simple small program for judging whether the database has a new version release is needed.
And secondly, establishing network connection and downloading files by using an Application Programming Interface (API). Firstly, judging whether a new version is released, if so, establishing connection with a server by using an API function, downloading an upgrade file by using other API functions or a file processing function provided by a development tool, then disconnecting the server by using the API function, and finally updating the version record of the local file.
And a third method is that a website is established, and the user can download the software of the new version by himself.
And fourthly, establishing a File Transfer Protocol (File Transfer Protocol, FTP) website to download the upgrade files in batches.
Furthermore, in the embodiment of the present invention, the scheme of the present invention may be specifically applied to remote upgrade, so that the scheme may be more reasonably applied, thereby improving the feasibility and the practicability of the scheme.
Referring to fig. 2, a system upgrading apparatus in the system upgrading method according to the present invention is described in detail below, where the system upgrading apparatus 20 in the embodiment of the present invention includes:
a receiving module 201, configured to receive a system upgrade instruction;
a first determining module 202, configured to determine whether each partition of the current system is writable after the receiving module 201 receives the system upgrade instruction;
a first upgrading module 203, configured to modify the permission of the non-writable partition determined by the first determining module 202 in the current system to be writable, and upgrade the writable partition in the current system according to the system upgrading instruction;
a second upgrade module 204, configured to upgrade the non-writable partition after the writable partition completes upgrading and the current system is restarted.
In this embodiment, a receiving module 201 receives a system upgrade instruction, after the receiving module 201 receives the system upgrade instruction, a first determining module 202 determines whether each partition of a current system is writable, a first upgrade module 203 modifies the permission of a non-writable partition determined by the first determining module 202 in the current system to be writable, and upgrades a writable partition in the current system according to the system upgrade instruction, and after the writable partition is upgraded and the current system is restarted, a second upgrade module 204 upgrades the non-writable partition.
In the embodiment of the present invention, a system upgrading apparatus 20 is provided, where the system upgrading apparatus 20 receives a system upgrading instruction, and then determines whether each partition of a current system is writable, the system upgrading apparatus 20 modifies the permission of a non-writable partition in the current system to be writable, and upgrades the writable partition in the current system according to the system upgrading instruction, and when the writable partition is upgraded and the current system is restarted, the system upgrading apparatus 20 upgrades the non-writable partition. By the mode, the non-writable partition in the terminal equipment can be updated firstly, and then the system is upgraded after the updated writable partition, so that the problem of system upgrade of the non-writable partition is solved.
Referring to fig. 3, another embodiment of the apparatus 20 for system upgrade according to the embodiment of the present invention includes:
a receiving module 201, configured to receive a system upgrade instruction;
a first determining module 202, configured to determine whether each partition of the current system is writable after the receiving module 201 receives the system upgrade instruction;
a first upgrading module 203, configured to modify the permission of the non-writable partition determined by the first determining module 202 in the current system to be writable, and upgrade the writable partition in the current system according to the system upgrading instruction;
a second upgrade module 204, configured to upgrade the non-writable partition after the writable partition completes upgrading and the current system is restarted;
and the restarting module 205 is configured to restart the current system of the terminal again after the second upgrading module 204 upgrades the unwritable partition.
Secondly, in the embodiment of the present invention, after the device 20 for system upgrade upgrades the non-writable partition, the current system of the terminal may be restarted again. By the aid of the method, the current system of the terminal equipment can be upgraded, the writable partition of the system is upgraded, and meanwhile the non-writable partition is upgraded, so that reliability and practicability of the scheme are improved.
Referring to fig. 4, another embodiment of the apparatus 20 for system upgrade according to the embodiment of the present invention includes:
a receiving module 201, configured to receive a system upgrade instruction;
a first determining module 202, configured to determine whether each partition of the current system is writable after the receiving module 201 receives the system upgrade instruction;
a setting module 206, configured to set a flag a at any position of a writable partition of the current system when the non-writable partition exists in the current system;
a modifying module 207, configured to erase the flag a set by the setting module or modify the flag a into a flag other than the flag a after the non-writable partition completes upgrading and takes effect;
a first upgrading module 203, configured to modify the permission of the non-writable partition determined by the first determining module 202 in the current system to be writable, and upgrade the writable partition in the current system according to the system upgrading instruction;
a second upgrade module 204, configured to upgrade the non-writable partition after the writable partition completes upgrading and the current system is restarted;
a second determining module 208, configured to determine that the flag a exists in the current system before the restarting module 205 restarts the current system of the terminal again;
the restarting module 205 is configured to restart the current system of the terminal again after the second upgrading module 204 upgrades the unwritable partition;
in the embodiment of the present invention, how to verify whether the non-writable partition is updated to be valid by using the flag a is described, that is, when the non-writable partition exists in the current system, the flag a is set at any position of the writable partition of the current system, and then when the non-writable partition is updated and becomes valid, the flag a may be erased or modified to be other flags except for the flag a, and before the current system of the terminal is restarted, it is necessary to determine that the flag a exists in the current system. By the mode, the purpose of upgrading the unwritable partition at one time can be achieved, the device 20 for upgrading the system firstly upgrades the partition which carries the mark A and can be written, then when the partition is restarted, the codes of the writable partition are effective, the device can find out whether the mark A exists, if the mark A exists, the device needs to enter an upgrading program again to upgrade the unwritable partition, namely, the system is restarted twice in total after the system is upgraded, if the mark A does not exist, the system does not need to be restarted again, namely, the system is upgraded only once, so that the purpose of upgrading the system at one time is achieved, and the operation convenience of the scheme is improved.
Referring to fig. 5, another embodiment of the apparatus 20 for system upgrade according to the embodiment of the present invention includes:
a receiving module 201, configured to receive a system upgrade instruction;
a first determining module 202, configured to determine whether each partition of the current system is writable after the receiving module 201 receives the system upgrade instruction;
a first upgrading module 203, configured to modify the permission of the non-writable partition determined by the first determining module 202 in the current system to be writable, and upgrade the writable partition in the current system according to the system upgrading instruction;
a sending module 209, configured to send a prompting message indicating whether to upgrade the unwritable partition before the second upgrade module 204 upgrades the unwritable partition;
a second upgrade module 204, configured to upgrade the non-writable partition after the writable partition completes upgrading and the current system is restarted;
and the restarting module 205 is configured to restart the current system of the terminal again after the second upgrading module 204 upgrades the unwritable partition.
In this embodiment of the present invention, the apparatus 20 for system upgrade may further send a warning message whether to upgrade the non-writable partition before upgrading the non-writable partition. Through the method, the user is inquired whether the non-writable partition needs to be upgraded or not, the user selects and operates the non-writable partition according to the actual condition instead of forcibly upgrading the non-writable partition, and therefore the practicability and flexibility of the scheme are improved.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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 (6)

1. A method of system upgrade, comprising:
receiving a system upgrading instruction;
determining whether each partition of the current system is writable;
modifying the permission of the non-writable partition in the current system to be writable, and upgrading the writable partition in the current system according to the system upgrading instruction;
when the writable partition finishes upgrading and the current system is restarted, upgrading the non-writable partition;
after the non-writable partition is upgraded, the method further comprises:
restarting the current system of the terminal again;
the method further comprises the following steps:
when the non-writable partition exists in the current system, setting a mark A at any position of a writable partition of the current system;
when the non-writable partition finishes upgrading and takes effect, erasing the mark A or modifying the mark A into other marks except the mark A;
before restarting the current system of the terminal again, the method further comprises the following steps:
determining that the flag A exists in the current system.
2. The method of claim 1, wherein before the upgrading the non-writable partition, the method further comprises:
and sending a reminding message for judging whether the unwritable partition is upgraded or not.
3. The method according to any one of claims 1 to 2, wherein the method is applied in remote upgrade.
4. An apparatus for system upgrade, comprising:
the receiving module is used for receiving a system upgrading instruction;
the first determining module is used for determining whether each partition of the current system is writable or not after the receiving module receives the system upgrading instruction;
the first upgrading module is used for modifying the permission of the non-writable partition determined by the first determining module in the current system into writable partition, and upgrading the writable partition in the current system according to the system upgrading instruction;
the second upgrading module is used for upgrading the non-writable partition after the writable partition is upgraded and the current system is restarted;
the device further comprises:
the restarting module is used for restarting the current system of the terminal again after the second upgrading module upgrades the non-writable partition;
the device further comprises:
the setting module is used for setting a mark A at any position of a writable partition of the current system when the non-writable partition exists in the current system;
the modifying module is used for erasing the mark A set by the setting module or modifying the mark A into other marks except the mark A after the non-writable partition finishes upgrading and takes effect;
and the second determining module is used for determining that the mark A exists in the current system before the restarting module restarts the current system of the terminal again.
5. The apparatus of claim 4, further comprising:
and the sending module is used for sending a reminding message for judging whether the unwritable partition is upgraded or not before the second upgrading module upgrades the unwritable partition.
6. The device according to any one of claims 4 to 5, wherein the device is used in remote upgrade.
CN201611206457.3A 2016-12-23 2016-12-23 System upgrading method and device Active CN106775881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611206457.3A CN106775881B (en) 2016-12-23 2016-12-23 System upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611206457.3A CN106775881B (en) 2016-12-23 2016-12-23 System upgrading method and device

Publications (2)

Publication Number Publication Date
CN106775881A CN106775881A (en) 2017-05-31
CN106775881B true CN106775881B (en) 2021-02-05

Family

ID=58920249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611206457.3A Active CN106775881B (en) 2016-12-23 2016-12-23 System upgrading method and device

Country Status (1)

Country Link
CN (1) CN106775881B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116400938B (en) * 2023-03-27 2023-11-24 荣耀终端有限公司 Operating system upgrading method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8914774B1 (en) * 2007-11-15 2014-12-16 Appcelerator, Inc. System and method for tagging code to determine where the code runs
CN104836848A (en) * 2015-04-14 2015-08-12 闪联信息技术工程中心有限公司 Method for remotely upgrading intelligent household electrical appliances
CN105094913A (en) * 2015-07-31 2015-11-25 广东欧珀移动通信有限公司 System, base band fastener and system application upgrading method and device
CN105786542A (en) * 2014-12-26 2016-07-20 乐视致新电子科技(天津)有限公司 Intelligent device and system update method of the intelligent device
CN105809055A (en) * 2016-02-26 2016-07-27 深圳天珑无线科技有限公司 Access control method and device, and related equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8914774B1 (en) * 2007-11-15 2014-12-16 Appcelerator, Inc. System and method for tagging code to determine where the code runs
CN105786542A (en) * 2014-12-26 2016-07-20 乐视致新电子科技(天津)有限公司 Intelligent device and system update method of the intelligent device
CN104836848A (en) * 2015-04-14 2015-08-12 闪联信息技术工程中心有限公司 Method for remotely upgrading intelligent household electrical appliances
CN105094913A (en) * 2015-07-31 2015-11-25 广东欧珀移动通信有限公司 System, base band fastener and system application upgrading method and device
CN105809055A (en) * 2016-02-26 2016-07-27 深圳天珑无线科技有限公司 Access control method and device, and related equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
US9389878B1 (en) Pre-boot management of drivers and programs
EP3975503A1 (en) Esim card replacement method and related device
US8874892B1 (en) Assessing BIOS information prior to reversion
US20150220245A1 (en) Branded computer devices and apparatus to connect user and enterprise
CN107122212A (en) Firmware encrypting method
CN107678762B (en) System version upgrading method and device
CN110968280B (en) Application layout reduction method, device, equipment and storage medium
WO2016197461A1 (en) Application software permission recommendation method, apparatus and system, and storage medium
CN107643898A (en) Terminal staging method and device
CN103997684A (en) Method and device for updating operating system
CN105867962A (en) System upgrading method and device
CN106775881B (en) System upgrading method and device
US20080263532A1 (en) Data updating method and electric device using the same
EP3260981B1 (en) Information processing apparatus, information processing system, and information processing method for updating firmware
EP2648092A1 (en) Updating method and multi-domain embedded system
US10262309B1 (en) Augmenting a BIOS with new programs
JP2009265877A (en) Electronic apparatus
CN115344434B (en) Patching method and device, electronic equipment and storage medium
CN110110503B (en) Method and device for managing and controlling specific behaviors of software
CN103777982A (en) System updating method by root permission opening and mobile terminal using same
CN114036491A (en) Software management method, system and storage medium
CN109428936B (en) APP upgrading method, device, system, electronic equipment and storage medium
KR20160134419A (en) Method for changing the subscriber identification information of terminal using smart card including multiple subscriber identification information, terminal and computer program thereof
CN113094048A (en) Data display rule determining method, display method, device, equipment and medium
KR20110137064A (en) Mobile communication terminal and method for updating firmware in mobile communication terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant