CN106708548A - Program upgrading method and terminal device - Google Patents

Program upgrading method and terminal device Download PDF

Info

Publication number
CN106708548A
CN106708548A CN201510780807.6A CN201510780807A CN106708548A CN 106708548 A CN106708548 A CN 106708548A CN 201510780807 A CN201510780807 A CN 201510780807A CN 106708548 A CN106708548 A CN 106708548A
Authority
CN
China
Prior art keywords
data
size
terminal device
rompaq
subregion
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.)
Pending
Application number
CN201510780807.6A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510780807.6A priority Critical patent/CN106708548A/en
Publication of CN106708548A publication Critical patent/CN106708548A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The invention discloses a program upgrading method and a terminal device. The program upgrading method provided by an embodiment of the invention comprises the steps of judging whether a free storage space of the terminal device accommodates an upgrading program sufficiently or not when a system of the terminal device is upgraded; if not, calculating a required storage space size, determining migration data in the terminal device according to the required storage space size, and migrating the determined migration data to a cloud server; and downloading the upgrading program to the terminal device through an upgrading server, and performing program upgrading. Through the method and the terminal device, the system upgrading operation under the condition of an insufficient local storage space of the terminal device is realized.

Description

Programme upgrade method and terminal device
Technical field
The application is related to intelligent terminal technical field, more particularly to a kind of programme upgrade method and terminal device.
Background technology
With developing rapidly for Internet technology, mobile terminal, family's internet terminal to system iteration more New increasingly faster, common upgrading is more and more frequent.And terminal application, system firmware upgrading be all by According to will apply, the locally downloading memory space of firmware;Then applied again, the replacement of system firmware is pacified Dress etc. operates to be upgraded.After terminal is in user's hand using some time, installation application, The storage sky of terminal can be consumed using taking caching, downloading the events such as audio frequency and video, the loss of storage medium bad block Between, local storage space is less and less, just occurs many terminal devices due to locally depositing in this case Storage insufficient space causes to complete to apply, the situation of system upgrade.
Therefore, can terminal system (application) successfully upgrade successfully, and the storage with terminal local is remaining Spatial relationship is close.How in the case of local storage space deficiency, the terminal to expecting upgrading is carried out Download program and installation are the problems of urgent need to resolve.
A kind of scheme of the prior art is:Terminal reserves enough firmware upgrades and downloads partition holding, than Such as on memory space reserve 500M space be dedicated for firmware updating download storage use, system is each Firmware can all be downloaded to the area of isolation by download, and firmware upgrade operation is carried out after the completion of download.But on Scheme is stated relatively to be wasted for local storage space utiliztion ratio, and reserved upgrading memory space cannot predict solid The dynamic need of part size, such as reserved the upgrading space of 500M at that time, but later system adds Enter new demand, or change new SDK (Software Development Kit, software development Kit) after, when firmware program has all accomplished more than 500M, the area of isolation function is lost simultaneously It is likely to system upgrade and runs into obstruction.
Another scheme of the prior art is:The mode that terminal is upgraded using firmware difference bag, specifically The last time version of firmware program is exactly carried out into algorithm contrast with the current version for needing upgrading, will wherein be had The place of differentiation is extracted and packs and used for system upgrade, after the system downloads difference bags, by difference The content of change is replaced upgrading.
But with the extension of terminal use time, storage area still has and becomes closer in warning value Situation so that idle storage space deficiency causes system upgrade to run into obstruction.
The content of the invention
The main purpose of the application is to provide a kind of programme upgrade method and terminal device, existing to overcome Terminal storage space deficiency in technology causes the problem that application program, system cannot upgrade.
A kind of programme upgrade method is provided according to the embodiment of the present application, it includes:In terminal device system liter During level, judge whether the idle storage space of terminal device is large enough to hold ROMPaq;If it is not, then calculating Still need storage size, the migrating data in the terminal device determined according to storage size of still needing, And migrate to cloud server the migrating data of the determination;By upgrade server by the upgrading journey Sequence be downloaded to the terminal device go forward side by side line program upgrading.
A kind of terminal device is also provided according to the embodiment of the present application, it includes:Space judge module, is used for In terminal device system upgrade, judge whether the idle storage space of terminal device is large enough to hold upgrading journey Sequence;Data Migration module, ROMPaq can not be accommodated for the idle storage space in terminal device In the case of, storage size of still needing is calculated, the terminal device is determined according to storage size of still needing In migrating data, and the migrating data of the determination is migrated to cloud server;Download program and liter Level module, goes forward side by side stroke for the ROMPaq to be downloaded into the terminal device by upgrade server Sequence is upgraded.
A kind of programme upgrade method is also provided according to the embodiment of the present application, it includes:In terminal device system During upgrading, judge whether the idle storage space of the first subregion of terminal device is large enough to hold ROMPaq; If it is not, then calculating storage size of still needing, first subregion is determined according to storage size of still needing In migrating data, and the migrating data of the determination is migrated to the second subregion of the terminal device; By upgrade server by the ROMPaq be downloaded to first subregion go forward side by side line program upgrade.
A kind of terminal device is also provided according to the embodiment of the present application, it includes:Space judge module, is used for In terminal device system upgrade, judge whether the idle storage space of the first subregion of terminal device is enough Accommodate ROMPaq;Data Migration module, can not for the idle storage space in first subregion In the case of accommodating ROMPaq, storage size of still needing is calculated, it is true according to storage size of still needing Migrating data in fixed first subregion, and the migrating data of the determination is migrated to the terminal set The second standby subregion;Download program and upgraded module, for by upgrade server by the ROMPaq Be downloaded to first subregion go forward side by side line program upgrading.
According to the technical scheme of the application, when terminal system current memory space is less than the storage that upgrading is required Behind space, the data file of terminal local is moved into cloud server so as to vacate enough being locally stored Space, and then the ROMPaqs such as application program, system firmware are smoothly downloaded into terminal local and is System upgrading.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes of the application Point, the schematic description and description of the application is used to explain the application, does not constitute to the application's Improper restriction.In the accompanying drawings:
Fig. 1 is the flow chart of the programme upgrade method according to the application one embodiment;
Fig. 2 is the flow chart of the programme upgrade method according to another embodiment of the application;
Fig. 3 is the flow chart of the programme upgrade method according to the application another embodiment;
Fig. 4 is the structured flowchart of the terminal device according to the application one embodiment;
Fig. 5 is the structured flowchart of the terminal device according to another embodiment of the application;
Fig. 6 is the structured flowchart of the terminal device according to the application another embodiment.
Specific embodiment
It is specific below in conjunction with the application to make the purpose, technical scheme and advantage of the application clearer Embodiment and corresponding accompanying drawing are clearly and completely described to technical scheme.Obviously, retouched The embodiment stated only is some embodiments of the present application, rather than whole embodiments.Based in the application Embodiment, it is all that those of ordinary skill in the art are obtained under the premise of creative work is not made Other embodiment, belongs to the scope of the application protection.
Fig. 1 is the flow chart of the programme upgrade method according to the application one embodiment, as shown in figure 1, The described method comprises the following steps:
Step S102, in terminal device system upgrade, judge terminal device idle storage space whether It is large enough to hold ROMPaq.
In the embodiment of the present application, the terminal device include but is not limited to smart mobile phone, panel computer, The terminal devices such as computer, the system upgrade of terminal device can be to systems soft ware, firmware program or answer With etc. carry out updating operation.In this case, the ROMPaq size is obtained respectively and terminal sets Standby idle storage space size, and judge whether the idle storage space of terminal device is large enough to hold upgrading journey Sequence, that is to say, that whether judge the idle storage space size of terminal device more than ROMPaq size, If otherwise continuing executing with step S104.
Step S104, if it is not, storage size of still needing then is calculated, it is true according to storage size of still needing Migrating data in the fixed terminal device, and the migrating data of the determination is migrated to cloud server.
If it is determined that the idle storage space size of terminal device is less than ROMPaq size, now terminal sets It is standby to store ROMPaq without enough memory spaces, i.e., can not normally carry out download program and journey Sequence installation operation.In the embodiment of the present application, Data Migration terminal device being locally stored to high in the clouds takes Business device, to vacate necessary local storage space so that system upgrade operation is smooth.In this Shen In one embodiment please, described Data Migration refers to just by terminal local data backup to cloud service Device, then deletes local data again.In this application, the corresponding data of Data Migration are referred to as transport number According to.It is determined that during the local migrating data of terminal device, according to the ROMPaq size and this is air-ground Not busy storage size is still needed storage size described in calculating.Memory space of still needing is the ROMPaq The difference of size and idle storage space.Local transportable number is selected according to predetermined Data Migration principle According to for example can be according to data type, data storage location, size of data, and/or last use time Determine transportable data etc. dimension, that is, require that the migrating data for determining can not influence the normal fortune of system OK;Finally according to still needing, storage size determines the migrating data in the transportable data.
Step S106, by the ROMPaq is downloaded to the terminal device and carries out by upgrade server Program is upgraded.
After terminal device has enough idle storage spaces, system carry out the download of ROMPaq with And the operation such as replacement is installed, here is omitted.It should be noted that after the completion of system program upgrading, The ROMPaq (ROMPaq downloaded by upgrade server) that this system upgrade is downloaded is deleted, And the data file backed up from before the download of cloud backup server, carry out local data recovery.
By above-described embodiment, the system in the case of terminal device local storage space deficiency is realized Updating operation.
Describe the details of above-mentioned each treatment in detail with reference to Fig. 2.Fig. 2 is according to another implementation of the application The flow chart of the programme upgrade method of example, is retouched by taking the upgrading of system firmware program as an example in the present embodiment State.As shown in Fig. 2 the described method comprises the following steps:
Step S202, terminal device carries out system upgrade, obtains the document size information of firmware upgrade procedure The idle storage space size local with terminal device.
In one embodiment of the application, during terminal device system upgrade, terminal device is connected by network Upgrade server is connect, and upgrade information is obtained by upgrade server, then can by the upgrade information To get the size of the firmware upgrade procedure;On the other hand, terminal device can be local by scanning The data of storage are so as to obtain the size of local idle storage space.
Step S204, judges whether the idle storage space of terminal device is large enough to hold firmware upgrade procedure, Needed into backup operation of racking if not enough accommodating, described cloud backup is exactly by the data of terminal local Migrate to cloud server.For example:Firmware upgrade procedure size is 600M, and the free time of terminal local deposits Storage space size is 500M, and now the idle storage space of terminal device is not enough to accommodate firmware upgrade journey Sequence is, it is necessary to carry out data cloud backup operation.Specifically, if the idle storage space size of terminal local Less than firmware upgrade procedure size, then step S206 is performed, otherwise directly perform step S208.
Step S206, Data Migration rule or direct access terminal local are obtained by cloud server The Data Migration rule for prestoring, the transportable data of terminal local are determined according to Data Migration rule, The transportable data refer to the data for not influenceing terminal system to run and temporarily take less than;Then according to still Migrating data in needing storage size to determine the transportable data.In the present embodiment, it is described Data Migration rule can be configured according to three below dimension:
(1) data storage location.Set data storage where subregion priority, for example for For Windows systems, the subregion where data file including C disks, D disks, E disks etc., Ke Yishe The high priority data of D disks or E disks is put in the data of C disks;For linux system, data file institute Subregion including cache, data, system, sdcard etc., the data of sdcard subregions can be set Prior to the data of data subregions.
(2) size of data (or shatter value).Larger high priority data is set in less data, for example One big file 40M is than multiple files (10 files) 40M priority treatments.
(3) data type.The data type of transportable data is set and data are set according to data type The priority of type.For example, audio-video document is prior to application cache file.
It is determined that after migrating data, the cloud backup server that migrating data is packaged and communicated to specify is carried out Backup.Hold above-mentioned example, terminal local still need 100M memory space, it is necessary to by local at least 100M Data Migration to cloud server.
Step S208, after system gets enough memory spaces, system is carried out under firmware program Carry and install replacement operation.
Step S210, after the completion of the upgrading of system firmware program, the firmware updating program that deletion is downloaded, and from The data file that cloud server is backed up before downloading, carries out local data recovery.
It is described above carrying out terminal local Data Migration to cloud server the technical side of data backup Case, each subregion is locally stored with reference to Fig. 3 descriptions carries out the scheme of Data Migration.In the present embodiment, During terminal device system upgrade, it is desirable to which ROMPaq is downloaded to fixed subregion.In this case, such as The fixed subregion idle storage space of fruit is not enough to accommodate ROMPaq, it is not necessary to by Data Migration to outside Cloud server, and only need to be by Data Migration to the other idle subregions of terminal.
Fig. 3 is the flow chart of the programme upgrade method according to another embodiment of the application, as shown in figure 3, Methods described includes:
Step S302, in terminal device system upgrade, judges that the free time of the first subregion of terminal device deposits Whether ROMPaq is large enough to hold in storage space.
Step S304, if it is not, storage size of still needing then is calculated, it is true according to storage size of still needing Migrating data in fixed first subregion, and the migrating data of the determination is migrated to the terminal set The second standby subregion.
For example, for linux system, the first above-mentioned subregion can be data subregions, second point Area can be sdcard subregions or cache subregions.Certainly difference can also be chosen in other examples Subregion, the application is not limited to this.
Further, the idle storage that the ROMPaq size and first subregion are obtained respectively is empty Between size, further according to the ROMPaq size and the big subtotal of idle storage space of first subregion Still needed storage size described in calculating.
Step S306, by the ROMPaq is downloaded to first subregion and carries out by upgrade server Program is upgraded.
After the completion of program upgrading, the ROMPaq is deleted, and moving to second subregion will be migrated Move data recovery to first subregion.
By above-described embodiment, in the case of the first local partitioned storage insufficient space of terminal device, By the Data Migration of the first subregion to the second subregion so that the first subregion possesses enough space upgradings Program, it is achieved thereby that system upgrade is operated.
Fig. 4 is the structured flowchart of the terminal device according to the application one embodiment, as shown in figure 4, institute Stating terminal device at least includes:Space judge module 410, Data Migration module 420 and download program and Upgraded module 430, is described below in detail the 26S Proteasome Structure and Function of each module.
Space judge module 410, in terminal device system upgrade, judging the free time of terminal device Whether memory space is large enough to hold ROMPaq;
Data Migration module 420, upgrading journey can not be accommodated for the idle storage space in terminal device In the case of sequence, storage size of still needing is calculated, the terminal is determined according to storage size of still needing Migrating data in equipment, and the migrating data of the determination is migrated to cloud server;Wherein, institute State Data Migration module 420 and scan the data stored in the terminal device, according to data type and/or most Use time determines the migrating data in the terminal device afterwards;
Download program and upgraded module 430, for being downloaded to the ROMPaq by upgrade server The terminal device go forward side by side line program upgrading.
Fig. 5 is the structured flowchart of the terminal device according to another embodiment of the application, as shown in figure 5, institute Stating terminal device includes:Space judge module 510, Data Migration module 520, download program and upgrading mould Block 530, acquisition module 540, removing module 550 and data recovery module 560.
Wherein, space judge module 510, Data Migration module 520 and download program and upgraded module 530 Respectively with the space judge module 410 shown in Fig. 4, Data Migration module 420 and download program and liter Level module 430 is similar to, and here is omitted.
Acquisition module 540 is used to obtain respectively the free time of the ROMPaq size and the terminal device Storage size, further, the acquisition module 540 can be obtained by the upgrade server Upgrade information, and the ROMPaq size is obtained according to the upgrade information.Further, the number It is used for according to transferring module 520 empty according to the idle storage of the ROMPaq size and the terminal device Between size calculate described in still need storage size.
Removing module 550 is used for after the completion of program upgrading, deletes the ROMPaq;Data recovery module 560 are used to migrate to the migrating data of the cloud server to recover to the terminal device.
Embodiment shown in Fig. 4 and Fig. 5 describes to enter terminal local Data Migration to cloud server The technical scheme of row data backup.
Fig. 6 is the structured flowchart of the terminal device according to another embodiment of the application, as shown in fig. 6, institute Stating terminal device includes:
Space judge module 610, in terminal device system upgrade, judging the first of terminal device Whether the idle storage space of subregion is large enough to hold ROMPaq.
Data Migration module 620, for liter can not to be accommodated in the idle storage space of first subregion In the case of level program, storage size of still needing is calculated, according to storage size of still needing determines Migrating data in first subregion, and the migrating data of the determination is migrated to the of the terminal device Two subregions.
For example, for linux system, the first above-mentioned subregion can be data subregions, second point Area can be sdcard subregions or cache subregions.Certainly difference can also be chosen in other examples Subregion, the application is not limited to this.
Further, the idle storage that the ROMPaq size and first subregion are obtained respectively is empty Between size, further according to the ROMPaq size and the big subtotal of idle storage space of first subregion Still needed storage size described in calculating.
Download program and upgraded module 630, for being downloaded to the ROMPaq by upgrade server First subregion go forward side by side line program upgrading.
Additionally, after the completion of program upgrading, deleting the ROMPaq, and will migrate to described second point The migrating data in area is recovered to first subregion.
Embodiment shown in Fig. 6 is described each subregion is locally stored and carries out the technical scheme of Data Migration.
The operating procedure of the present processes is corresponding with the architectural feature of device, can be with cross-referenced, no longer Repeat one by one.
In sum, according to the technical scheme of the application, when terminal system current memory space is less than upgrading It is required that memory space after, by the data file of terminal local move to cloud server so as to vacate enough Local storage space, and then the ROMPaqs such as application program, system firmware are smoothly downloaded into terminal sheet Ground simultaneously carries out system upgrade.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer Program product.Therefore, the application can be soft using complete hardware embodiment, complete software embodiment or combination The form of the embodiment of part and hardware aspect.And, the application can be used and wherein included at one or more Have computer usable program code computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) on implement computer program product form.
In a typical configuration, computing device include one or more processors (CPU), input/ Output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory And/or the form, such as read-only storage (ROM) or flash memory (flash such as Nonvolatile memory (RAM) RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by Any method or technique realizes information Store.Information can be computer-readable instruction, data structure, The module of program or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), Other kinds of random access memory (RAM), read-only storage (ROM), electrically erasable Read-only storage (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be counted The information that calculation equipment is accessed.Defined according to herein, computer-readable medium does not include that temporary computer can Read media (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, commodity or equipment including a series of key elements are not only Including those key elements, but also other key elements including being not expressly set out, or also include being this Process, method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by language The key element that sentence "including a ..." is limited, it is not excluded that in the process including the key element, method, business Also there is other identical element in product or equipment.
Embodiments herein is the foregoing is only, the application is not limited to.For this area For technical staff, the application can have various modifications and variations.It is all spirit herein and principle it Interior made any modification, equivalent substitution and improvements etc., should be included in claims hereof scope Within.

Claims (20)

1. a kind of programme upgrade method, it is characterised in that including:
In terminal device system upgrade, judge whether the idle storage space of terminal device is large enough to hold liter Level program;
If it is not, then calculating storage size of still needing, the terminal is determined according to storage size of still needing Migrating data in equipment, and the migrating data of the determination is migrated to cloud server;
By upgrade server by the ROMPaq be downloaded to the terminal device go forward side by side line program upgrade.
2. method according to claim 1, it is characterised in that also include:
After the completion of program upgrading, the ROMPaq is deleted, and moving to the cloud server will be migrated Move data recovery to the terminal device.
3. method according to claim 1, it is characterised in that calculating memory space of still needing is big It is small, including:
The idle storage space size of the ROMPaq size and the terminal device is obtained respectively;
Described in idle storage space size according to the ROMPaq size and the terminal device is calculated Still need storage size.
4. method according to claim 3, it is characterised in that the acquisition ROMPaq is big It is small, including:
Upgrade information is obtained by the upgrade server, and the upgrading is obtained according to the upgrade information Program size.
5. method according to claim 1, it is characterised in that basis memory space of still needing is big The small migrating data determined in the terminal device, including:
The data stored in the terminal device are scanned, and institute is determined according to one or a combination set of following dimension State the transportable data in terminal device:Data storage location, size of data, data type;
Migrating data in the transportable data is determined according to storage size of still needing.
6. a kind of terminal device, it is characterised in that including:
Space judge module, the idle storage in terminal device system upgrade, judging terminal device Whether ROMPaq is large enough to hold in space;
Data Migration module, ROMPaq can not be accommodated for the idle storage space in terminal device In the case of, storage size of still needing is calculated, the terminal device is determined according to storage size of still needing In migrating data, and the migrating data of the determination is migrated to cloud server;
Download program and upgraded module, it is described for being downloaded to the ROMPaq by upgrade server Terminal device go forward side by side line program upgrading.
7. terminal device according to claim 6, it is characterised in that also include:
Removing module, after the completion of upgrading for program, deletes the ROMPaq;
Data recovery module, recovers to the end for will migrate to the migrating data of the cloud server End equipment.
8. terminal device according to claim 6, it is characterised in that also include:
Acquisition module, the free time for obtaining the ROMPaq size and the terminal device respectively deposits Storage space size;The acquisition module obtains upgrade information by the upgrade server, and according to described Upgrade information obtains the ROMPaq size.
9. terminal device according to claim 8, it is characterised in that the Data Migration module is used According to the idle storage space size of the ROMPaq size and the terminal device calculate described in still Need storage size.
10. terminal device according to claim 6, it is characterised in that the Data Migration module For scanning the data stored in the terminal device, and institute is determined according to one or a combination set of following dimension State the transportable data in terminal device:Data storage location, size of data, data type;According to still Migrating data in needing storage size to determine the transportable data.
A kind of 11. programme upgrade methods, it is characterised in that including:
In terminal device system upgrade, judge terminal device the first subregion idle storage space whether It is large enough to hold ROMPaq;
If it is not, then calculating storage size of still needing, described first is determined according to storage size of still needing Migrating data in subregion, and the migrating data of the determination is migrated to second point of the terminal device Area;
By upgrade server by the ROMPaq be downloaded to first subregion go forward side by side line program upgrade.
12. methods according to claim 11, it is characterised in that also include:
After the completion of program upgrading, the ROMPaq is deleted, and will migrate to the migration of second subregion Data recovery is to first subregion.
13. methods according to claim 11, it is characterised in that the calculating is still needed memory space Size, also includes:
The idle storage space size of the ROMPaq size and first subregion is obtained respectively;
Described in idle storage space size according to the ROMPaq size and first subregion is calculated Still need storage size.
14. methods according to claim 13, it is characterised in that the acquisition ROMPaq Size, including:
Upgrade information is obtained by the upgrade server, and the upgrading is obtained according to the upgrade information Program size.
15. methods according to claim 11, it is characterised in that the basis is still needed memory space Size determines the migrating data in first subregion, including:
The data stored in first subregion are scanned, and institute is determined according to one or a combination set of following dimension State the transportable data in the first subregion:Data storage location, size of data, data type;
Migrating data in the transportable data is determined according to storage size of still needing.
A kind of 16. terminal devices, it is characterised in that including:
Space judge module, in terminal device system upgrade, judging the first subregion of terminal device Idle storage space whether be large enough to hold ROMPaq;
Data Migration module, for upgrading journey can not to be accommodated in the idle storage space of first subregion In the case of sequence, storage size of still needing is calculated, described first is determined according to storage size of still needing Migrating data in subregion, and the migrating data of the determination is migrated to second point of the terminal device Area;
Download program and upgraded module, it is described for being downloaded to the ROMPaq by upgrade server First subregion go forward side by side line program upgrading.
17. terminal devices according to claim 16, it is characterised in that also include:
Removing module, after the completion of upgrading for program, deletes the ROMPaq;
Data recovery module, recovers to described first for will migrate to the migrating data of second subregion Subregion.
18. terminal devices according to claim 16, it is characterised in that also include:
Acquisition module, the free time for obtaining the ROMPaq size and first subregion respectively deposits Storage space size;The acquisition module obtains upgrade information by the upgrade server, and according to described Upgrade information obtains the ROMPaq size.
19. terminal devices according to claim 18, it is characterised in that the Data Migration module Described in being calculated according to the idle storage space size of the ROMPaq size and first subregion Still need storage size.
20. terminal devices according to claim 16, it is characterised in that the Data Migration module For scanning the data stored in first subregion, and institute is determined according to one or a combination set of following dimension State the transportable data in the first subregion:Data storage location, size of data, data type;According to still Migrating data in needing storage size to determine the transportable data.
CN201510780807.6A 2015-11-13 2015-11-13 Program upgrading method and terminal device Pending CN106708548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510780807.6A CN106708548A (en) 2015-11-13 2015-11-13 Program upgrading method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510780807.6A CN106708548A (en) 2015-11-13 2015-11-13 Program upgrading method and terminal device

Publications (1)

Publication Number Publication Date
CN106708548A true CN106708548A (en) 2017-05-24

Family

ID=58930438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510780807.6A Pending CN106708548A (en) 2015-11-13 2015-11-13 Program upgrading method and terminal device

Country Status (1)

Country Link
CN (1) CN106708548A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357617A (en) * 2017-06-30 2017-11-17 广东欧珀移动通信有限公司 Using update method, device, storage medium and electronic equipment
CN107491659A (en) * 2017-09-20 2017-12-19 上海联影医疗科技有限公司 A kind of medical apparatus system upgrade method and device
CN107729037A (en) * 2017-11-14 2018-02-23 上海电子信息职业技术学院 A kind of method that embedded software independently quickly upgrades
CN108011935A (en) * 2017-11-27 2018-05-08 海信集团有限公司 A kind of programme upgrade method of NB-IOT equipment, server and NB-IOT equipment
CN108228218A (en) * 2018-01-31 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of electric terminal method for upgrading system and device
CN110083380A (en) * 2018-01-26 2019-08-02 和硕联合科技股份有限公司 Firmware update and the electronic device for using the method
CN110209652A (en) * 2019-05-20 2019-09-06 平安科技(深圳)有限公司 Tables of data moving method, device, computer equipment and storage medium
CN110581877A (en) * 2018-06-11 2019-12-17 佛山市顺德区美的电热电器制造有限公司 Communication method and device, electronic equipment and readable storage medium
CN111352730A (en) * 2020-02-11 2020-06-30 浙江大华技术股份有限公司 Caching method and device for application program upgrading, computer equipment and storage medium
CN112202896A (en) * 2020-09-30 2021-01-08 中移(杭州)信息技术有限公司 Edge calculation method, frame, terminal and storage medium
CN112379838A (en) * 2020-11-13 2021-02-19 Oppo广东移动通信有限公司 Data downloading method and device, storage medium and electronic equipment
CN112925541A (en) * 2021-02-22 2021-06-08 西安巴比特信息科技有限公司 OTA cloud upgrading method for gas meter of Internet of things
WO2023045090A1 (en) * 2021-09-24 2023-03-30 成都市卡蛙科技有限公司 Terminal state-based firmware upgrade method
WO2023201650A1 (en) * 2022-04-21 2023-10-26 宇龙计算机通信科技(深圳)有限公司 File operation method and apparatus, computer device, and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050257023A1 (en) * 2002-11-18 2005-11-17 Doongo Technologies, Inc. Device memory management during electronic file updating
US20110119662A1 (en) * 2009-11-18 2011-05-19 Inventec Corporation Method for updating firmware of embedded system
CN103186387A (en) * 2011-12-27 2013-07-03 宏碁股份有限公司 Electronic device and updating method for operating system thereof
CN105138420A (en) * 2015-07-31 2015-12-09 小米科技有限责任公司 Data backup method, apparatus and system and data recovery method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050257023A1 (en) * 2002-11-18 2005-11-17 Doongo Technologies, Inc. Device memory management during electronic file updating
US20110119662A1 (en) * 2009-11-18 2011-05-19 Inventec Corporation Method for updating firmware of embedded system
CN103186387A (en) * 2011-12-27 2013-07-03 宏碁股份有限公司 Electronic device and updating method for operating system thereof
CN105138420A (en) * 2015-07-31 2015-12-09 小米科技有限责任公司 Data backup method, apparatus and system and data recovery method, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡君 等: ""系统盘空间不足时安装软件方法的探讨"", 《光学机械》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357617A (en) * 2017-06-30 2017-11-17 广东欧珀移动通信有限公司 Using update method, device, storage medium and electronic equipment
CN107357617B (en) * 2017-06-30 2020-12-15 Oppo广东移动通信有限公司 Application updating method and device, storage medium and electronic equipment
CN107491659A (en) * 2017-09-20 2017-12-19 上海联影医疗科技有限公司 A kind of medical apparatus system upgrade method and device
CN107729037A (en) * 2017-11-14 2018-02-23 上海电子信息职业技术学院 A kind of method that embedded software independently quickly upgrades
CN108011935A (en) * 2017-11-27 2018-05-08 海信集团有限公司 A kind of programme upgrade method of NB-IOT equipment, server and NB-IOT equipment
CN110083380A (en) * 2018-01-26 2019-08-02 和硕联合科技股份有限公司 Firmware update and the electronic device for using the method
CN108228218A (en) * 2018-01-31 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of electric terminal method for upgrading system and device
CN110581877A (en) * 2018-06-11 2019-12-17 佛山市顺德区美的电热电器制造有限公司 Communication method and device, electronic equipment and readable storage medium
CN110209652B (en) * 2019-05-20 2024-02-02 平安科技(深圳)有限公司 Data table migration method, device, computer equipment and storage medium
CN110209652A (en) * 2019-05-20 2019-09-06 平安科技(深圳)有限公司 Tables of data moving method, device, computer equipment and storage medium
CN111352730A (en) * 2020-02-11 2020-06-30 浙江大华技术股份有限公司 Caching method and device for application program upgrading, computer equipment and storage medium
CN111352730B (en) * 2020-02-11 2023-07-14 浙江大华技术股份有限公司 Caching method and device for application program upgrade, computer equipment and storage medium
CN112202896A (en) * 2020-09-30 2021-01-08 中移(杭州)信息技术有限公司 Edge calculation method, frame, terminal and storage medium
CN112379838A (en) * 2020-11-13 2021-02-19 Oppo广东移动通信有限公司 Data downloading method and device, storage medium and electronic equipment
WO2022100202A1 (en) * 2020-11-13 2022-05-19 Oppo广东移动通信有限公司 Data download method and apparatus, and storage medium and electronic device
CN112925541A (en) * 2021-02-22 2021-06-08 西安巴比特信息科技有限公司 OTA cloud upgrading method for gas meter of Internet of things
WO2023045090A1 (en) * 2021-09-24 2023-03-30 成都市卡蛙科技有限公司 Terminal state-based firmware upgrade method
WO2023201650A1 (en) * 2022-04-21 2023-10-26 宇龙计算机通信科技(深圳)有限公司 File operation method and apparatus, computer device, and readable storage medium

Similar Documents

Publication Publication Date Title
CN106708548A (en) Program upgrading method and terminal device
KR102240557B1 (en) Method, device and system for storing data
US10496627B2 (en) Consistent ring namespaces facilitating data storage and organization in network infrastructures
EP2288975B1 (en) Method for optimizing cleaning of maps in flashcopy cascades containing incremental maps
US8954398B1 (en) Systems and methods for managing deduplication reference data
CN110347651A (en) Method of data synchronization, device, equipment and storage medium based on cloud storage
CN110333876A (en) A kind of data clearing method and control equipment
CN108255989A (en) Picture storage method, device, terminal device and computer storage media
CN112965761A (en) Data processing method, system, electronic equipment and storage medium
US9177177B1 (en) Systems and methods for securing storage space
CN106055372A (en) Method and device for uninstalling application
US9588884B2 (en) Systems and methods for in-place reorganization of device storage
CN110119386A (en) Data processing method, data processing equipment, medium and calculating equipment
CN114138558A (en) Object storage method and device, electronic equipment and storage medium
CN111143113A (en) Method, electronic device and computer program product for copying metadata
CN108205559B (en) Data management method and equipment thereof
CN109726039B (en) Method and apparatus for managing virtual machines
CN108984102B (en) Method, system and computer program product for managing a storage system
CN104063377A (en) Information processing method and electronic equipment using same
WO2019041891A1 (en) Method and device for generating upgrade package
CN112631621A (en) Dependency package management method, device, server and storage medium
CN105528302B (en) A kind of method and system of the dynamic hyperdisk of logic-based volume
CN111767417A (en) Application picture management method, device, equipment and storage medium
CN115202934A (en) Data backup method, device, equipment and storage medium
CN112905541B (en) Mirror image warehouse garbage cleaning method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170524