CN105068848B - Method for upgrading system and device - Google Patents
Method for upgrading system and device Download PDFInfo
- Publication number
- CN105068848B CN105068848B CN201510543589.4A CN201510543589A CN105068848B CN 105068848 B CN105068848 B CN 105068848B CN 201510543589 A CN201510543589 A CN 201510543589A CN 105068848 B CN105068848 B CN 105068848B
- Authority
- CN
- China
- Prior art keywords
- delta package
- version
- current device
- installation
- size
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The disclosure is directed to method for upgrading system and devices.This method comprises: generating the delta package of this system upgrade;Obtain the size of the system Free Partition of current device and the delta package of this system upgrade;Judge whether the size of the delta package is more than or equal to the system Free Partition of the current device;When the size of the delta package is more than or equal to the system Free Partition of the current device, prompt information, the delta package that the prompt information is used to prompt this that can not install this system upgrade are issued;When the size of the delta package is less than the system Free Partition of the current device, the delta package is installed.The technical solution effectively prevents during system upgrade, the delay machine accident that may cause due to system space deficiency.
Description
Technical field
This disclosure relates to Internet technical field more particularly to method for upgrading system and device.
Background technique
Currently, with the continuous continuous change increased and application version is issued of android system application volume, user
Terminal device system upgrade at a problem, more new system has bigger loss to customer flow, using OTA
The upgrading of (Over-the-Air Technology, over the air) increment can largely reduce the flow damage of user
Consumption.
Summary of the invention
The embodiment of the present disclosure provides method for upgrading system and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of method for upgrading system is provided, comprising:
Generate the delta package of this system upgrade;
Obtain the size of the system Free Partition of current device and the delta package of this system upgrade;
Judge whether the size of the delta package is more than or equal to the system Free Partition of the current device;
When the size of the delta package is more than or equal to the system Free Partition of the current device, prompt letter is issued
Breath, the delta package that the prompt information is used to prompt this that can not install this system upgrade;
When the size of the delta package is less than the system Free Partition of the current device, the delta package is installed.
In one embodiment, the method may also include that
Whether the system Free Partition of monitoring current device has variation;
When the system Free Partition of the current device has variation, it is described to judge whether the size of the delta package is less than
System Free Partition after current device variation;
When the size of the delta package is less than the system Free Partition after the current device changes, the increment is installed
Packet.
In one embodiment, the method may also include that
When the size of the delta package is more than or equal to the system Free Partition of the current device, monitor whether to obtain
Get the delta package remake;
When getting the delta package remake, whether the size for the delta package remake described in judgement is less than
The system Free Partition of the current device;
When the size of the delta package remake is less than the system Free Partition of the current device, described in installation
The delta package remake.
In one embodiment, the method may also include that
When the size of the delta package remake is more than or equal to the system Free Partition of the current device,
Issue prompt information, the delta package that the prompt information is used to prompt this that can not install this system upgrade.
In one embodiment, the delta package for generating this system upgrade, it may include:
The system for obtaining the current device is currently installed on the installation kit of version and the peace of the pre-installation version of system first
Dress packet;The installation kit of the first pre-installation version is that the system compares the installation kit for being currently installed on the version of edition upgrading;
The installation kit that the system is currently installed on the installation kit of version and described first pre-installs version is done into difference, is obtained
The delta package of the system.
It is in one embodiment, described to monitor whether to get the delta package remake, it may include:
Monitor whether to receive the installation kit of the second pre-installation version, the installation kit of the second pre-installation version is through essence
What the installation kit that letter first pre-installs version obtained;The installation kit of the first pre-installation version is the system compared to current peace
Fill the installation kit of the version of edition upgrading;
The installation kit that the system is currently installed on the installation kit of version and described second pre-installs version is done into difference, is obtained
The delta package remake.
According to the second aspect of an embodiment of the present disclosure, a kind of system upgrade device is provided, comprising:
Generation module, for generating the delta package of this system upgrade;
Module is obtained, for obtaining the system Free Partition of current device and the delta package of this system upgrade
Size;
First judgment module is for judge whether the size of the delta package be more than or equal to the current device
System Free Partition;
First cue module, the system for being more than or equal to the current device for the size when the delta package are idle
When subregion, prompt information, the delta package that the prompt information is used to prompt this that can not install this system upgrade are issued;
First installation module, when for being less than the system Free Partition of the current device when the size of the delta package,
The delta package is installed.
In one embodiment, described device may also include that
Whether the first monitoring modular, the system Free Partition for monitoring current device have variation;
Second judgment module, for judging the delta package when the system Free Partition of the current device has variation
Size whether be less than the system Free Partition after the current device changes;
Second installation module is less than the system free time point after the current device changes for the size when the delta package
Qu Shi installs the delta package.
In one embodiment, described device may also include that
Second monitoring modular, the system for being more than or equal to the current device for the size when the delta package are idle
When subregion, monitor whether to get the delta package remake;
Third judgment module, the increasing for being remake described in judgement when getting the delta package remake
Whether the size of amount packet is less than the system Free Partition of the current device;
Third installs module, and the system for being less than the current device when the size of the delta package remake is empty
When not busy subregion, the delta package remake described in installation.
In one embodiment, described device may also include that
Second cue module, for being more than or equal to the current device when the size of the delta package remake
System Free Partition when, issue prompt information, the prompt information is for prompting this that can not install described subsystem liter
The delta package of grade.
In one embodiment, the generation module, it may include:
Acquisition submodule, the system for obtaining the current device are currently installed on the installation kit and system first of version
Pre-install the installation kit of version;The installation kit of the first pre-installation version is compared for the system is currently installed on edition upgrading
The installation kit of version;
First difference submodule, installation kit and described first for the system to be currently installed on to version pre-install version
Installation kit do difference, obtain the delta package of the system.
In one embodiment, second monitoring modular, it may include:
Monitoring submodule, for monitoring whether to receive the installation kit of the second pre-installation version, the second pre-installation version
This installation kit is to be simplified the installation kit of the first pre-installation version to obtain;The installation kit of the first pre-installation version is institute
It states system and compares the installation kit for being currently installed on the version of edition upgrading;
Second difference submodule, installation kit and described second for the system to be currently installed on to version pre-install version
Installation kit do difference, obtain the delta package remake.
According to the third aspect of an embodiment of the present disclosure, a kind of system upgrade device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Generate the delta package of this system upgrade;
Obtain the size of the system Free Partition of current device and the delta package of this system upgrade;
Judge whether the size of the delta package is more than or equal to the system Free Partition of the current device;
When the size of the delta package is more than or equal to the system Free Partition of the current device, prompt letter is issued
Breath, the delta package that the prompt information is used to prompt this that can not install this system upgrade;
When the size of the delta package is less than the system Free Partition of the current device, the delta package is installed.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Above-mentioned technical proposal, by comparing the size relation of the system Free Partition of the size and current device of delta package;
When the size of delta package is more than or equal to the system Free Partition of current device, prompting user, this can not install this and is
The delta package upgraded of uniting installs delta package when the size of delta package is less than the system Free Partition of current device.To effectively
It avoids during system upgrade, the delay machine accident that may cause due to system space deficiency.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the flow chart of method for upgrading system shown according to an exemplary embodiment.
Fig. 2 is the flow chart of another method for upgrading system shown according to an exemplary embodiment.
Fig. 3 is the flow chart of another method for upgrading system shown according to an exemplary embodiment.
Fig. 4 is the flow chart of another method for upgrading system shown according to an exemplary embodiment.
Fig. 5 is the flow chart of step S101 in method for upgrading system shown according to an exemplary embodiment.
Fig. 6 is the flow chart of step S109 in method for upgrading system shown according to an exemplary embodiment.
Fig. 7 is the block diagram of system upgrade device shown according to an exemplary embodiment.
Fig. 8 is the block diagram of another system upgrade device shown according to an exemplary embodiment.
Fig. 9 is the block diagram of another system upgrade device shown according to an exemplary embodiment.
Figure 10 is the block diagram of another system upgrade device shown according to an exemplary embodiment.
Figure 11 is the block diagram of generation module 71 in system upgrade device shown according to an exemplary embodiment.
Figure 12 is the block diagram of the second monitoring modular 79 in system upgrade device shown according to an exemplary embodiment.
Figure 13 is the block diagram shown according to an exemplary embodiment suitable for system upgrade device.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
The technical solution that the embodiment of the present disclosure provides before installing delta package, can first judge in the upgrading of system increment
Size relation between the system Free Partition of current device and the delta package of this system upgrade, when the size of delta package is greater than
Or equal to current device system Free Partition when, prompt user that the delta package of this system upgrade can not be installed, work as increment
When the size of packet is less than the system Free Partition of current device, normal mounting delta package.To effectively prevent in system upgrade
In the process, due to delay machine accident that system space deficiency may cause.
Fig. 1 is a kind of flow chart of method for upgrading system shown according to an exemplary embodiment, as shown in Figure 1, the party
Method is in terminal, and terminal can be mobile phone, palm PC, notebook, computer, digital broadcasting terminal, messaging device,
Game console, tablet device, Medical Devices, body-building equipment, the terminal devices such as personal digital assistant.Include the following steps
S101-S105:
In step s101, the delta package of this system upgrade is generated.
System has legacy version (current version) and new version (compared with the version after current version upgrading) by new version and old edition
Originally difference is done, the delta package of this system upgrade is generated.
In step s 102, the big of the system Free Partition of current device and the delta package of this system upgrade is obtained
It is small.
In step s 103, judge whether the size of delta package is more than or equal to the system Free Partition of current device.
In this step, before the delta package for installing this system upgrade, the size and current device of delta package are first judged
System Free Partition between size relation, when delta package size be more than or equal to current device system Free Partition
When, turn to step S104;When the size of delta package is less than the system Free Partition of current device, step S105 is turned to.
In step S104, when the size of delta package is more than or equal to the system Free Partition of current device, issue
Prompt information, prompt information is for prompting this that can not install the delta package of this system upgrade.
When the size of delta package is more than or equal to the system Free Partition of current device, carried out using this delta package
Upgrading will cause system space insufficient in escalation process and upgrade failure, once this mistake occur is to cause for users
Life, it is most likely that cause user's machine can not normal boot-strap starting.Therefore, in this step, when the size of delta package is greater than
Or equal to current device system Free Partition when, illustrate, illustrate that the remaining space of current system is not enough to install the increment
Packet, at this point, issuing prompt information, may prompt to use if continuing installation because system space deficiency leads to delay machine accident at this time
Family can not install the delta package of this system upgrade.After user takes further measures, it is further continued for installing.
In step s105, when the size of delta package is less than the system Free Partition of current device, delta package is installed.
When the size of delta package is less than the system Free Partition of current device, illustrate that the remaining space of current system is enough
The delta package is installed, at this point, normal mounting delta package.
The above method can be used for android system, in IOS system.The above method can also be used for the visitor of upgrading terminals
Family end, process are similar with the above method.
The above method of the embodiment of the present disclosure, by comparing the system Free Partition of the size and current device of delta package
Size relation;When the size of delta package is more than or equal to the system Free Partition of current device, prompting user, this can not
The delta package for installing this system upgrade installs increment when the size of delta package is less than the system Free Partition of current device
Packet.To effectively prevent during system upgrade, the delay machine accident that may cause due to system space deficiency.
In one embodiment, as shown in Fig. 2, method can also include the steps of S106-S108:
In step s 106, whether the system Free Partition for monitoring current device has variation.
When the size of delta package is more than or equal to the system Free Partition of current device, it can prompt user that this can not be installed
The delta package of subsystem upgrading.After user receives the prompt information, further step can be taken, for example simplified system is each
A subregion makes system Free Partition become larger.In this step, whether the system Free Partition for monitoring current device has variation, when having
When variation, step S107 is turned to, the size of the system Free Partition after rejudging delta package and changing.
In step s 107, when the system Free Partition of current device has variation, judge whether the size of delta package is small
System Free Partition after current device variation.
In this step, when the size of delta package is less than the system Free Partition after current device changes, step is turned to
S108。
In step S108, when the size of delta package is less than the system Free Partition after current device changes, installation increases
Amount packet.
In the present embodiment, when the delta package of this system upgrade can not be installed, system is simplified, and be simplifying
After system, rejudge delta package and change after system Free Partition between size relation, when system Free Partition abundance,
Normal mounting delta package, in the case where delta package can not be installed so as to insufficient in system Free Partition, by system
It is simplified, delta package is simply and easily successfully installed.
In one embodiment, as shown in figure 3, the above method can also include the steps of S109-S111:
In step S109, when the size of delta package is more than or equal to the system Free Partition of current device, monitoring
Whether the delta package remake is got.
When the size of delta package is more than or equal to the system Free Partition of current device, it can prompt user can not at this time
The delta package of this system upgrade is installed.After user receives the prompt information, further step can be taken, for example make again
Make delta package, reduce the size of delta package, in this step, monitor whether to get the delta package remake, when getting weight
When the delta package of new production, the big of the system Free Partition of delta package and current device that step S110 judgement is remake is turned to
Small relationship.
In step s 110, when getting the delta package remake, judge that the size for the delta package remake is
The no system Free Partition less than current device.
When the size for the delta package remake is less than the system Free Partition of current device, step S111 is turned to, just
The delta package remake often is installed, when the system that the size for the delta package remake is more than or equal to current device is idle
When subregion, step S112 is turned to, prompting user, this can not install the delta package remake.
In step S111, when the size for the delta package remake is less than the system Free Partition of current device, peace
Fill the delta package remake.
In the present embodiment, when this can not installation system upgrading delta package when, remake delta package, and making again
When the delta package of work is less than system Free Partition, the delta package remake is installed.To ensure that system normally upgrades.
In one embodiment, as shown in figure 4, the above method can also include the steps of S112:
In step S112, when the size for the delta package remake is more than or equal to the system free time point of current device
Qu Shi issues prompt information, and prompt information is for prompting this that can not install the delta package of this system upgrade.
In the present embodiment, when the delta package remake is more than or equal to the system Free Partition of current device, say
Bright system spare insufficient space issues prompt information at this time, prompts user that can not install the delta package remake.Thus into
One step avoids the generation of delay machine accident.
In one embodiment, as shown in figure 5, step S101 is implementable for following steps S501-S502:
In step S501, the system for obtaining current device is currently installed on the installation kit of version and system first pre-installs
The installation kit of version;The installation kit of first pre-installation version is that system compares the installation kit for being currently installed on the version of edition upgrading.
System is currently installed on the version installed before version is system upgrade, and the first pre-installation version is compared to being currently installed on
Edition upgrading version.
In step S502, the installation kit that system is currently installed on the installation kit of version and first pre-installs version is made the difference
Point, obtain the delta package of system.
In the present embodiment, the installation kit of the installation kit for being currently installed on version of system and the first pre-installation version is made the difference
Point, the patch of the part updated, that is, the delta package of system.
For example, the installation kit size that system is currently installed on version is 500M, the installation kit of the first pre-installation version
Size is 550M, and the part of update may then only have 50M or so, what needs to be explained here is that, difference packet size is not simple
Subtract each other because needing in fact comprising some context-sensitive things, carrying out upgrading using delta package, not need downloading complete
550M file, it is only necessary to downloading update part be delta package, and update part may there was only 50M~60M, can be very
The loss of flow is reduced in big degree.
In one embodiment, as shown in fig. 6, step S109 is implementable for following steps S601-S602:
In step s 601, monitor whether to receive the installation kit of the second pre-installation version, the peace of the second pre-installation version
Dress packet is obtained through simplifying the installation kit of the first pre-installation version;The installation kit of first pre-installation version is system compared to current
The installation kit of the version of edition upgrading is installed.
In step S602, the installation kit that system is currently installed on the installation kit of version and second pre-installs version is made the difference
Point, obtain the delta package remake.
In the present embodiment, when remaking delta package, the installation kit of the first pre-installation version is simplified, obtains the second pre- peace
The installation kit of loading sheet, the then size for the delta package remake also accordingly become smaller, at this point, judging the delta package remake again
With the size relation between system Free Partition, when the delta package remake is less than system Free Partition, normal mounting increases
Amount packet.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 7 is a kind of block diagram of system upgrade device shown according to an exemplary embodiment, which can be by soft
Part, hardware or both are implemented in combination with as some or all of of electronic equipment.As shown in fig. 7, the system upgrade device
Include:
Generation module 71 is configurable to generate the delta package of this system upgrade;
Module 72 is obtained, is configured as obtaining the system Free Partition of current device and the delta package of this system upgrade
Size;
First judgment module 73 is configured as judging the system whether size of delta package is more than or equal to current device
Free Partition;
First cue module 74 is configured as being more than or equal to the system free time point of current device when the size of delta package
Qu Shi issues prompt information, and prompt information is for prompting this that can not install the delta package of this system upgrade;
First installation module 75 is configured as when the size of delta package is less than the system Free Partition of current device, peace
Fill delta package.
In one embodiment, as shown in figure 8, above-mentioned apparatus may also include that
Whether the first monitoring modular 76, the system Free Partition for being configured as monitoring current device have variation;
Second judgment module 77 is configured as judging delta package when the system Free Partition of current device has variation
Whether size is less than the system Free Partition after current device changes;
Second installation module 78 is configured as being less than system Free Partition after current device changes when the size of delta package
When, delta package is installed.
In one embodiment, as shown in figure 9, above-mentioned apparatus may also include that
Second monitoring modular 79 is configured as being more than or equal to the system free time point of current device when the size of delta package
Qu Shi monitors whether to get the delta package remake;
Third judgment module 80 is configured as when getting the delta package remake, and judges the increment remake
Whether the size of packet is less than the system Free Partition of current device;
Third installs module 81, and the system for being configured as being less than when the size for the delta package remake current device is idle
When subregion, the delta package remake is installed.
In one embodiment, as shown in Figure 10, above-mentioned apparatus may also include that
Second cue module 82 is configured as being more than or equal to current device when the size for the delta package remake
When system Free Partition, prompt information is issued, prompt information is for prompting this that can not install the delta package of this system upgrade.
In one embodiment, as shown in figure 11, generation module 71, it may include:
Acquisition submodule 111, the system for being configured as obtaining current device are currently installed on the installation kit and system of version
The installation kit of first pre-installation version;The installation kit of first pre-installation version is that system compares the version for being currently installed on edition upgrading
Installation kit;
First difference submodule 112 is configured as system being currently installed on the installation kit of version and the first pre-installation version
Installation kit do difference, obtain the delta package of system.
In one embodiment, as shown in figure 12, the second monitoring modular 79, it may include:
Monitoring submodule 121 is configured as monitoring whether to receive the installation kit of the second pre-installation version, the second pre-installation
The installation kit of version is to be simplified the installation kit of the first pre-installation version to obtain;The installation kit of first pre-installation version is system
Compared to the installation kit for the version for being currently installed on edition upgrading;
Second difference submodule 122 is configured as system being currently installed on the installation kit of version and the second pre-installation version
Installation kit do difference, obtain the delta package remake.
The above-mentioned apparatus of the embodiment of the present disclosure, by comparing the system Free Partition of the size and current device of delta package
Size relation;When the size of delta package is more than or equal to the system Free Partition of current device, prompting user, this can not
The delta package for installing this system upgrade installs increment when the size of delta package is less than the system Free Partition of current device
Packet.To effectively prevent during system upgrade, the delay machine accident that may cause due to system space deficiency.
The embodiment of the present disclosure also provides a kind of system upgrade device, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Generate the delta package of this system upgrade;
Obtain the size of the system Free Partition of current device and the delta package of this system upgrade;
Judge whether the size of the delta package is more than or equal to the system Free Partition of the current device;
When the size of the delta package is more than or equal to the system Free Partition of the current device, prompt letter is issued
Breath, the delta package that the prompt information is used to prompt this that can not install this system upgrade;
When the size of the delta package is less than the system Free Partition of the current device, the delta package is installed.
Above-mentioned processor is also configured to:
Whether the system Free Partition of monitoring current device has variation;
When the system Free Partition of the current device has variation, it is described to judge whether the size of the delta package is less than
System Free Partition after current device variation;
When the size of the delta package is less than the system Free Partition after the current device changes, the increment is installed
Packet.
Above-mentioned processor is also configured to:
When the size of the delta package is more than or equal to the system Free Partition of the current device, monitor whether to obtain
Get the delta package remake;
When getting the delta package remake, whether the size for the delta package remake described in judgement is less than
The system Free Partition of the current device;
When the size of the delta package remake is less than the system Free Partition of the current device, described in installation
The delta package remake.
Above-mentioned processor is also configured to:
When the size of the delta package remake is more than or equal to the system Free Partition of the current device,
Issue prompt information, the delta package that the prompt information is used to prompt this that can not install this system upgrade.
In one embodiment, the delta package for generating this system upgrade, it may include:
The system for obtaining the current device is currently installed on the installation kit of version and the peace of the pre-installation version of system first
Dress packet;The installation kit of the first pre-installation version is that the system compares the installation kit for being currently installed on the version of edition upgrading;
The installation kit that the system is currently installed on the installation kit of version and described first pre-installs version is done into difference, is obtained
The delta package of the system.
Above-mentioned processor is also configured to:
Monitor whether to receive the installation kit of the second pre-installation version, the installation kit of the second pre-installation version is through essence
What the installation kit that letter first pre-installs version obtained;The installation kit of the first pre-installation version is the system compared to current peace
Fill the installation kit of the version of edition upgrading;
The installation kit that the system is currently installed on the installation kit of version and described second pre-installs version is done into difference, is obtained
The delta package remake.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Figure 13 is a kind of block diagram for system upgrade device shown according to an exemplary embodiment, which is suitable for
Terminal device.For example, device 1200 can be mobile phone, computer, digital broadcasting terminal, messaging device, game control
Platform processed, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 1200 may include following one or more components: processing component 1202, memory 1204, power supply module
1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module 1214, and
Communication component 1216.
The integrated operation of the usual control device 1200 of processing component 1202, such as with display, telephone call, data communication,
Camera operation and record operate associated operation.Processing element 1202 may include one or more processors 1220 to execute
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds
Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module,
To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in equipment 1200.These data
Example includes the instruction of any application or method for operating on device 1200, contact data, telephone book data,
Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Electric power assembly 1206 provides electric power for the various assemblies of device 1200.Electric power assembly 1206 may include power management
System, one or more power supplys and other with for device 1200 generate, manage, and distribute the associated component of electric power.
Multimedia component 1208 includes the screen of one output interface of offer between described device 1200 and user.?
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 1208 includes a front camera and/or rear camera.When equipment 1200 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat
Gram wind (MIC), when device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 1204 or via communication
Component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, is used for output audio signal.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module
It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and
Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented
Estimate.For example, sensor module 1214 can detecte the state that opens/closes of equipment 1200, the relative positioning of component, such as institute
The display and keypad that component is device 1200 are stated, sensor module 1214 can be with detection device 1200 or device 1,200 1
The position change of a component, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and dress
Set 1200 temperature change.Sensor module 1214 may include proximity sensor, be configured in not any physics
It is detected the presence of nearby objects when contact.Sensor module 1214 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by setting 1200,2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1216 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 820 of device 1200 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 1200
When device executes, so that device 1200 is able to carry out above system upgrade method, which comprises
Generate the delta package of this system upgrade;
Obtain the size of the system Free Partition of current device and the delta package of this system upgrade;
Judge whether the size of the delta package is more than or equal to the system Free Partition of the current device;
When the size of the delta package is more than or equal to the system Free Partition of the current device, prompt letter is issued
Breath, the delta package that the prompt information is used to prompt this that can not install this system upgrade;
When the size of the delta package is less than the system Free Partition of the current device, the delta package is installed.
In one embodiment, the method may also include that
Whether the system Free Partition of monitoring current device has variation;
When the system Free Partition of the current device has variation, it is described to judge whether the size of the delta package is less than
System Free Partition after current device variation;
When the size of the delta package is less than the system Free Partition after the current device changes, the increment is installed
Packet.
In one embodiment, the method may also include that
When the size of the delta package is more than or equal to the system Free Partition of the current device, monitor whether to obtain
Get the delta package remake;
When getting the delta package remake, whether the size for the delta package remake described in judgement is less than
The system Free Partition of the current device;
When the size of the delta package remake is less than the system Free Partition of the current device, described in installation
The delta package remake.
In one embodiment, the method may also include that
When the size of the delta package remake is more than or equal to the system Free Partition of the current device,
Issue prompt information, the delta package that the prompt information is used to prompt this that can not install this system upgrade.
In one embodiment, the delta package for generating this system upgrade, it may include:
The system for obtaining the current device is currently installed on the installation kit of version and the peace of the pre-installation version of system first
Dress packet;The installation kit of the first pre-installation version is that the system compares the installation kit for being currently installed on the version of edition upgrading;
The installation kit that the system is currently installed on the installation kit of version and described first pre-installs version is done into difference, is obtained
The delta package of the system.
It is in one embodiment, described to monitor whether to get the delta package remake, it may include:
Monitor whether to receive the installation kit of the second pre-installation version, the installation kit of the second pre-installation version is through essence
What the installation kit that letter first pre-installs version obtained;The installation kit of the first pre-installation version is the system compared to current peace
Fill the installation kit of the version of edition upgrading;
The installation kit that the system is currently installed on the installation kit of version and described second pre-installs version is done into difference, is obtained
The delta package remake.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (9)
1. a kind of method for upgrading system characterized by comprising
Generate the delta package of this system upgrade;
Obtain the size of the system Free Partition of current device and the delta package of this system upgrade;
Judge whether the size of the delta package is more than or equal to the system Free Partition of the current device;
When the size of the delta package is more than or equal to the system Free Partition of the current device, prompt information is issued,
The delta package that the prompt information is used to prompt this that can not install this system upgrade;
When the size of the delta package is less than the system Free Partition of the current device, the delta package is installed;
The method also includes:
When the size of the delta package is more than or equal to the system Free Partition of the current device, monitor whether to get
The delta package remake;
When getting the delta package remake, whether the size for the delta package remake described in judgement is less than described
The system Free Partition of current device;
When the size of the delta package remake is less than the system Free Partition of the current device, installation is described again
The delta package of production;
It is described to monitor whether to get the delta package remake, comprising:
Monitor whether to receive the installation kit of the second pre-installation version, the installation kit of the second pre-installation version is to be simplified the
What the installation kit of one pre-installation version obtained;The installation kit of the first pre-installation version is compared for the system is currently installed on version
The installation kit of the version of this upgrading;
The installation kit that the system is currently installed on the installation kit of version and described second pre-installs version is done into difference, is obtained again
The delta package of production.
2. the method as described in claim 1, which is characterized in that the method also includes:
Whether the system Free Partition of monitoring current device has variation;
When the system Free Partition of the current device has variation, it is described current to judge whether the size of the delta package is less than
System Free Partition after equipment variation;
When the size of the delta package is less than the system Free Partition after the current device changes, the delta package is installed.
3. the method as described in claim 1, which is characterized in that the method also includes:
When the size of the delta package remake is more than or equal to the system Free Partition of the current device, issue
Prompt information, the delta package that the prompt information is used to prompt this that can not install this system upgrade.
4. the method as described in claim 1, which is characterized in that the delta package for generating this system upgrade, comprising:
The system for obtaining the current device is currently installed on the installation kit of version and the installation kit of the pre-installation version of system first;
The installation kit of the first pre-installation version is that the system compares the installation kit for being currently installed on the version of edition upgrading;
The system is currently installed on the installation kit of version and the installation kit of the first pre-installation version does difference, described in acquisition
The delta package of system.
5. a kind of system upgrade device characterized by comprising
Generation module, for generating the delta package of this system upgrade;
Module is obtained, for obtaining the big of the system Free Partition of current device and the delta package of this system upgrade
It is small;
First judgment module, for judging whether the size of the delta package is more than or equal to the system sky of the current device
Not busy subregion;
First cue module is more than or equal to the system Free Partition of the current device for the size when the delta package
When, issue prompt information, the delta package that the prompt information is used to prompt this that can not install this system upgrade;
First installation module, when for being less than the system Free Partition of the current device when the size of the delta package, installation
The delta package;
Described device further include:
Second monitoring modular is more than or equal to the system Free Partition of the current device for the size when the delta package
When, it monitors whether to get the delta package remake;
Third judgment module, the delta package for being remake described in judgement when getting the delta package remake
Size whether be less than the system Free Partition of the current device;
Third installs module, for being less than the system free time point of the current device when the size of the delta package remake
Qu Shi, the delta package remake described in installation;
Second monitoring modular, comprising:
Monitoring submodule, for monitoring whether to receive the installation kit of the second pre-installation version, the second pre-installation version
Installation kit is to be simplified the installation kit of the first pre-installation version to obtain;The installation kit of the first pre-installation version is the system
Installation kit of the system compared to the version for being currently installed on edition upgrading;
Second difference submodule, for the system to be currently installed on to the installation kit of version and the peace of the second pre-installation version
Dress packet does difference, obtains the delta package remake.
6. device as claimed in claim 5, which is characterized in that described device further include:
Whether the first monitoring modular, the system Free Partition for monitoring current device have variation;
Second judgment module, for judging the big of the delta package when the system Free Partition of the current device has variation
It is small whether to be less than the system Free Partition after the current device changes;
Second installation module is less than the system Free Partition after current device changes for the size when the delta package
When, the delta package is installed.
7. device as claimed in claim 5, which is characterized in that described device further include:
Second cue module, for being when what the size of the delta package remake was more than or equal to the current device
When system Free Partition, prompt information is issued, the prompt information is used to prompt this that can not install this system upgrade
Delta package.
8. device as claimed in claim 5, which is characterized in that the generation module, comprising:
Acquisition submodule, the system for obtaining the current device is currently installed on the installation kit of version and system first is pacified in advance
The installation kit of loading sheet;The installation kit of the first pre-installation version is that the system compares the version for being currently installed on edition upgrading
Installation kit;
First difference submodule, for the system to be currently installed on to the installation kit of version and the peace of the first pre-installation version
Dress packet does difference, obtains the delta package of the system.
9. a kind of system upgrade device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Generate the delta package of this system upgrade;
Obtain the size of the system Free Partition of current device and the delta package of this system upgrade;
Judge whether the size of the delta package is more than or equal to the system Free Partition of the current device;
When the size of the delta package is more than or equal to the system Free Partition of the current device, prompt information is issued,
The delta package that the prompt information is used to prompt this that can not install this system upgrade;
When the size of the delta package is less than the system Free Partition of the current device, the delta package is installed;
When the size of the delta package is more than or equal to the system Free Partition of the current device, monitor whether to get
The delta package remake;
When getting the delta package remake, whether the size for the delta package remake described in judgement is less than described
The system Free Partition of current device;
When the size of the delta package remake is less than the system Free Partition of the current device, installation is described again
The delta package of production;
It is described to monitor whether to get the delta package remake, comprising:
Monitor whether to receive the installation kit of the second pre-installation version, the installation kit of the second pre-installation version is to be simplified the
What the installation kit of one pre-installation version obtained;The installation kit of the first pre-installation version is compared for the system is currently installed on version
The installation kit of the version of this upgrading;
The installation kit that the system is currently installed on the installation kit of version and described second pre-installs version is done into difference, is obtained again
The delta package of production.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510543589.4A CN105068848B (en) | 2015-08-28 | 2015-08-28 | Method for upgrading system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510543589.4A CN105068848B (en) | 2015-08-28 | 2015-08-28 | Method for upgrading system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105068848A CN105068848A (en) | 2015-11-18 |
CN105068848B true CN105068848B (en) | 2018-12-11 |
Family
ID=54498226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510543589.4A Active CN105068848B (en) | 2015-08-28 | 2015-08-28 | Method for upgrading system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105068848B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105740017B (en) * | 2016-01-29 | 2019-06-04 | 贵阳海信电子有限公司 | The upgrade method and device of cloud television system |
CN105912373A (en) * | 2016-05-12 | 2016-08-31 | 乐视控股(北京)有限公司 | Application program installing method and device |
CN106648723A (en) * | 2016-05-26 | 2017-05-10 | 广州优视网络科技有限公司 | Upgrading method and device of iOS system application program and system |
CN106231140B (en) * | 2016-09-30 | 2020-01-24 | 深圳市微网力合信息技术有限公司 | Mobile terminal fota upgrade fault-tolerant device and method |
US10970063B2 (en) * | 2017-04-12 | 2021-04-06 | Sumitomo Electric Industries, Ltd. | Relay apparatus, transfer method, and computer program |
CN107291490A (en) * | 2017-05-03 | 2017-10-24 | 上海上讯信息技术股份有限公司 | A kind of method and apparatus of system upgrade |
CN110083381B (en) * | 2018-01-26 | 2023-04-28 | 启碁科技股份有限公司 | Incremental upgrading method and device |
CN111061506A (en) * | 2019-12-17 | 2020-04-24 | 努比亚技术有限公司 | Application management and control method, wearable device and computer-readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081536A (en) * | 2010-12-30 | 2011-06-01 | 华为终端有限公司 | Method for updating increment, and server |
CN103577202A (en) * | 2012-07-23 | 2014-02-12 | 深圳市中兴移动通信有限公司 | Software upgrading method and system |
CN104052818A (en) * | 2014-06-27 | 2014-09-17 | 青岛海信移动通信技术股份有限公司 | Version upgrade method and device for mobile terminal |
-
2015
- 2015-08-28 CN CN201510543589.4A patent/CN105068848B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081536A (en) * | 2010-12-30 | 2011-06-01 | 华为终端有限公司 | Method for updating increment, and server |
CN103577202A (en) * | 2012-07-23 | 2014-02-12 | 深圳市中兴移动通信有限公司 | Software upgrading method and system |
CN104052818A (en) * | 2014-06-27 | 2014-09-17 | 青岛海信移动通信技术股份有限公司 | Version upgrade method and device for mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105068848A (en) | 2015-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105068848B (en) | Method for upgrading system and device | |
EP2523107B1 (en) | Mobile terminal and system for managing applications using the same | |
CN104951335B (en) | The processing method and processing device of application program installation kit | |
US9886264B2 (en) | Method and device for upgrading firmware | |
CN105511907B (en) | Application program upgrading method, device and system | |
WO2016011743A1 (en) | Storage space saving method and apparatus | |
CN104484200A (en) | Method and device for updating firmware | |
CN107102772B (en) | Touch control method and device | |
CN104394263A (en) | Accessing point list displaying method and device | |
CN104536783B (en) | Headspace method to set up and device | |
EP3133466A1 (en) | Method and device for reminding in shutdown state | |
CN103916468B (en) | Method for upgrading system, terminal, server and upgrade-system | |
CN104486451A (en) | Application program recommendation method and device | |
CN104376239A (en) | Terminal unlocking method and device | |
CN105530384A (en) | Method and device for power reminding based on alarm clock | |
CN105094904A (en) | Application program installation method and device | |
CN104657172A (en) | System upgrading method and device | |
CN111198706A (en) | Method for updating system function, apparatus for updating system function and storage medium | |
CN106990984B (en) | Method and device for updating system | |
CN106502740B (en) | Using installation method and device | |
CN106162612B (en) | Control the method and device of Root authority | |
CN107632835A (en) | Using installation method and device | |
CN114416127A (en) | Terminal software upgrading method, terminal software upgrading device and storage medium | |
CN104866353A (en) | Method and device for displaying buttons | |
CN108829532B (en) | Fingerprint detection method, device and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |