CN106528249B - Storage method, device and the terminal of upgrade package - Google Patents

Storage method, device and the terminal of upgrade package Download PDF

Info

Publication number
CN106528249B
CN106528249B CN201611092764.3A CN201611092764A CN106528249B CN 106528249 B CN106528249 B CN 106528249B CN 201611092764 A CN201611092764 A CN 201611092764A CN 106528249 B CN106528249 B CN 106528249B
Authority
CN
China
Prior art keywords
upgrade package
encrypted partition
space size
module
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
Application number
CN201611092764.3A
Other languages
Chinese (zh)
Other versions
CN106528249A (en
Inventor
李明浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611092764.3A priority Critical patent/CN106528249B/en
Publication of CN106528249A publication Critical patent/CN106528249A/en
Application granted granted Critical
Publication of CN106528249B publication Critical patent/CN106528249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The disclosure is directed to the storage method of upgrade package, device and terminal, this method may include: the packet size of the upgrade package of determining newest downloading;Determine the remaining space size of not encrypted partition;When the packet size is less than the remaining space size, the upgrade package is stored in the not encrypted partition.Using the embodiment of the present disclosure, when restarting the progress OTA upgrading of recovery mode, without being decrypted to OTA upgrade package and saving its storage location, it is directly based upon storage location decryption OTA upgrade package and carries out OTA upgrading, accelerate the speed of OTA upgrading, update time is shortened, user without waiting, optimizes user experience.

Description

Storage method, device and the terminal of upgrade package
Technical field
This disclosure relates to field of terminal technology more particularly to a kind of storage method of upgrade package, device and terminal.
Background technique
In the related technology, OTA (Over-the-Air Technology, over the air) the upgrading process of terminal is big Cause includes: that the OTA upgrade package that will be downloaded from server is saved in data (userdate) subregion, if the data subregion is encryption point Area then reads the information of OTA upgrade package, and OTA upgrade package is decrypted, then by the OTA upgrade package storage after decryption to original Position, and by the location information for storing OTA upgrade package be stored in unencryption subregion (cache, caching) /cache/ In blocks.map file.
Seen from the above description, it before terminal restarts the progress OTA upgrading of recovery (recovery) mode, will start as above The movement for generating blocks.map file, during this, reading rate 70MB/s, writing rate is the EMMC of 40MB/s The time that (Embedded Multi Media Card, embedded multi-media card) generates blocks.map file is about 140s, This is resulted in front of restarting reforestation practices, and user needs the time for waiting at least 2 minutes just to can enter normal upgrading process, The time of user is wasted, user experience is not good enough.
Summary of the invention
To overcome the problems in correlation technique, present disclose provides a kind of storage method of upgrade package, device and ends End.
According to the first aspect of the embodiments of the present disclosure, a kind of storage method of upgrade package is provided, comprising:
Determine the packet size of the upgrade package of newest downloading;
Determine the remaining space size of not encrypted partition;
When the packet size is less than the remaining space size, the upgrade package is stored in the not encrypted partition.
In one embodiment, before the packet size of the upgrade package of the newest downloading of the determination, the method also includes:
Upgrade package, which is sent, to server updates detection request;
Receive the newest upgrade package that the server returns.
In one embodiment, the packet size of the upgrade package of the newest downloading of the determination, comprising:
Parse the package informatin of the upgrade package;
The packet size of the upgrade package is obtained based on the package informatin.
In one embodiment, the remaining space size of the determination not encrypted partition, comprising:
Read the luv space size of the not encrypted partition;
Calculate the use space size of the not encrypted partition;
The remaining space size is calculated based on the luv space size and the use space size.
In one embodiment, the method also includes:
When restarting reforestation practices, the upgrade package is read from the not encrypted partition;
Upgraded based on the upgrade package.
In one embodiment, it is described the upgrade package is stored in the not encrypted partition after, the method also includes:
When the packet size is not less than the remaining space size, the upgrade package is stored in encrypted partition;
Location information by the upgrade package in the encrypted partition is stored in the not encrypted partition.
In one embodiment, the location information by the upgrade package in the encrypted partition is stored in the unencryption After subregion, the method also includes:
When restarting reforestation practices, the location information is read from the not encrypted partition;
It is read based on the location information from the encrypted partition and decrypts the upgrade package;
Upgraded based on the upgrade package after the decryption.
According to the second aspect of an embodiment of the present disclosure, a kind of storage device of upgrade package is provided, comprising:
First determining module is configured to determine that the packet size of the upgrade package of newest downloading;
Second determining module is configured to determine that the remaining space size of not encrypted partition;
First memory module is configured as when the packet size is less than the remaining space size, by the upgrade package It is stored in the not encrypted partition.
In one embodiment, described device further include:
Sending module is configured as sending upgrade package update detection request to server;
Receiving module is configured as receiving the newest upgrade package that the server returns.
In one embodiment, first determining module includes:
Analyzing sub-module is configured as parsing the package informatin of the upgrade package;
It determines submodule, is configured as obtaining the packet size of the upgrade package based on the package informatin.
In one embodiment, second determining module includes:
Reading submodule is configured as reading the luv space size of the not encrypted partition;
First computational submodule is configured as calculating the use space size of the not encrypted partition;
Second computational submodule is configured as calculating institute based on the luv space size and the use space size State remaining space size.
In one embodiment, described device further include:
First read module is configured as when restarting reforestation practices, reads the upgrading from the not encrypted partition Packet;
Upgraded module is configured as being upgraded based on the upgrade package.
In one embodiment, described device further include:
Second memory module is configured as when the packet size is not less than the remaining space size, by the upgrading Packet is stored in encrypted partition;
Third memory module, be configured as by the upgrade package the location information of the encrypted partition be stored in it is described not Encrypted partition.
In one embodiment, described device further include:
Second read module is configured as when restarting reforestation practices, reads the position from the not encrypted partition Information;
Deciphering module is configured as being read from the encrypted partition based on the location information and being decrypted the upgrade package;
Upgraded module is configured as being upgraded based on the upgrade package after the decryption.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Determine the packet size of the upgrade package of newest downloading;
Determine the remaining space size of not encrypted partition;
When the packet size is less than the remaining space size, the upgrade package is stored in the not encrypted partition.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Terminal can be in the case where the packet size of upgrade package be not less than the not remaining space of encrypted partition in the disclosure, will OTA upgrade package is encrypted and stored in encrypted partition, and then storage location is stored in not encrypted partition.To restart When recovery mode carries out OTA upgrading, it is not necessary that its storage location is decrypted and saved to OTA upgrade package, it is directly based upon and deposits Storage space sets decryption OTA upgrade package and carries out OTA upgrading, accelerates the speed of OTA upgrading, shortens update time, Yong Huwu It needs to wait for, optimizes user experience.
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 the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Figure 1A is a kind of disclosure storage method flow chart of upgrade package shown according to an exemplary embodiment.
Figure 1B is that a kind of disclosure application scenarios of the storage method of upgrade package shown according to an exemplary embodiment show It is intended to.
Fig. 2 is the flow chart of the storage method of the disclosure another upgrade package shown according to an exemplary embodiment.
Fig. 3 is the flow chart of the storage method of the disclosure another upgrade package shown according to an exemplary embodiment.
Fig. 4 is the flow chart of the storage method of the disclosure another upgrade package shown according to an exemplary embodiment.
Fig. 5 is a kind of disclosure storage device block diagram of upgrade package shown according to an exemplary embodiment.
Fig. 6 is the storage device block diagram of the disclosure another upgrade package shown according to an exemplary embodiment.
Fig. 7 is the storage device block diagram of the disclosure another upgrade package shown according to an exemplary embodiment.
Fig. 8 is the storage device block diagram of the disclosure another upgrade package shown according to an exemplary embodiment.
Fig. 9 is the storage device block diagram of the disclosure another upgrade package shown according to an exemplary embodiment.
Figure 10 is the storage device block diagram of the disclosure another upgrade package shown according to an exemplary embodiment.
Figure 11 is the storage device block diagram of the disclosure another upgrade package shown according to an exemplary embodiment.
Figure 12 is an a kind of disclosure structure of the storage device for upgrade package shown according to an exemplary embodiment Schematic diagram.
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 implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses. The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Figure 1A is a kind of storage method flow chart of upgrade package shown according to an exemplary embodiment, and Figure 1B is according to one A kind of application scenario diagram of the storage method of upgrade package shown in exemplary embodiment.This method can be used in terminal, this public affairs Terminal in opening can be any intelligent terminal with function of surfing the Net, for example, can be specially mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant) etc..Wherein, terminal can access road by WLAN By device, and pass through the server on router access public network.This approach includes the following steps 101-103:
In a step 101, the packet size of the upgrade package of newest downloading is determined.
In the embodiment of the present disclosure, the upgrade package be OTA upgrade package, terminal can periodically or every setting time to Server sends upgrade package and updates detection request, when server has detected newest OTA upgrade package, by the OTA upgrade package It is sent to terminal, or replies to terminal check information, terminal is downloaded OTA upgrade package.
In a step 102, the remaining space size of not encrypted partition is determined.
In the embodiment of the present disclosure, encrypted partition does not refer to caching (cache) subregion, determines that the residue of not encrypted partition is empty Between method can be using method in the related technology, details are not described herein.
In step 103, when packet size is less than remaining space size, upgrade package is stored in not encrypted partition.
In one embodiment, without encrypting to OTA upgrade package, OTA upgrade package is directly stored in not encrypted partition ?.
In conjunction with shown in Figure 1B, in fig. ib, including server and as the smart phone of terminal, smart phone is from server After downloading OTA upgrade package, the packet size of OTA upgrade package and the remaining space size of the not encrypted partition of itself are determined, When packet size is less than remaining space size, OTA upgrade package is directly stored in not encrypted partition, thus, it is possible to avoid an OTA Upgrade package is stored in encrypted partition, caused by need decrypt can enter upgrading process, save OTA update time, it is excellent User experience is changed.
As shown in Fig. 2, Fig. 2 is the storage method flow chart of another upgrade package shown according to an exemplary embodiment, The above method that the present embodiment utilizes the embodiment of the present disclosure to provide, is schematically illustrated for how storing upgrade package, should Method includes the following steps 201-209:
In step 201, upgrade package is sent to server update detection request.
In one embodiment, terminal can send upgrade package update detection request to server every the time of setting, with This determines whether that newest OTA upgrade package can be downloaded.
In step 202, the newest upgrade package that server returns is received.
When server has detected newest OTA upgrade package, OTA upgrade package is sent to terminal.
In step 203, the package informatin of upgrade package is parsed.
In step 204, the packet size of upgrade package is obtained based on package informatin.
The OTA upgrade package that end-on receives is parsed, and is obtained package informatin, is contained packet size in package informatin, thus eventually Hold the packet size for determining OTA.
In step 205, the luv space size of not encrypted partition is read.
In one embodiment, terminal can determine the luv space size of not encrypted partition by reading configuration information.
In step 206, the use space size of encrypted partition is calculated.
In one embodiment, terminal can determine that the use of not encrypted partition is empty by detecting the size of stored file Between size.
In step 207, remaining space size is calculated based on luv space size and use space size.
To which terminal can calculate remaining space size by the way that luv space size is subtracted use space size.
In a step 208, judge whether packet size is greater than remaining space size.
In step 209, when being judged as that packet size is less than remaining space size, upgrade package is stored in and is not encrypted point Area.
In one embodiment, OTA upgrade package can be stored directly in not encrypted partition, and without encryption.
Through the foregoing embodiment, update time can be reduced significantly, when restarting reply mode user without waiting, Ji Kejin Enter normal upgrading process, optimizes user experience.
As shown in figure 3, Fig. 3 is the storage method flow chart of another upgrade package shown according to an exemplary embodiment, The above method that the present embodiment utilizes the embodiment of the present disclosure to provide, is schematically illustrated, this method packet for how upgrading Include following steps 301-303:
In step 301, when restarting reforestation practices, never upgrade package is read in encrypted partition.
In disclosure step, terminal when restarting recovery mode and being upgraded, directly never read by encrypted partition OTA upgrade package is taken, without as being decrypted in the prior art.
In step 302, upgraded based on upgrade package.
In step 303, when being judged as packet size not less than remaining space size, upgrade package is stored in encryption point Area, and the location information by upgrade package in encrypted partition is stored in not encrypted partition.
In one embodiment, encrypted partition can be userdate subregion, when not encrypted partition memory space inadequate with When storing OTA upgrade package, it is stored in encrypted partition after OTA upgrade package being encrypted, and by the OTA upgrade package in encrypted partition Storage location, such as block message is stored in not encrypted partition, be generally stored inside not encrypted partition /cache/blocks.map In file.
As shown in figure 4, Fig. 4 is the storage method flow chart of another upgrade package shown according to an exemplary embodiment, The above method that the present embodiment utilizes the embodiment of the present disclosure to provide, is schematically illustrated, this method packet for how upgrading Include following steps 401-403:
In step 401, when restarting reforestation practices, never encrypted partition reading position information.
In one embodiment, when Yao Jinhang OTA upgrades, need first to determine the storage location of OTA upgrade package.
In step 402, it is read based on location information from encrypted partition and decrypts upgrade package.
In step 403, upgraded based on the upgrade package after decryption.
In the embodiments of the present disclosure, in the case where the packet size of upgrade package is not less than the not remaining space of encrypted partition, OTA upgrade package is encrypted and stored in encrypted partition, then storage location is stored in not encrypted partition.To restart When recovery mode carries out OTA upgrading, it is not necessary that its storage location is decrypted and saved to OTA upgrade package, it is directly based upon and deposits Storage space sets decryption OTA upgrade package and carries out OTA upgrading, accelerates the speed of OTA upgrading, shortens update time, Yong Huwu It needs to wait for, optimizes user experience.
It is corresponding with the storage method embodiment of aforementioned upgrade package, the disclosure additionally provide upgrade package storage device and its The embodiment of applied terminal.
As shown in figure 5, Fig. 5 is a kind of disclosure storage device frame of upgrade package shown according to an exemplary embodiment Figure, the device can be applied in terminal, and the method for executing Figure 1A illustrated embodiment, the apparatus may include: first Determining module 510, the second determining module 520 and the first memory module 530.
First determining module 510 is configured to determine that the packet size of the upgrade package of newest downloading;
Second determining module 520 is configured to determine that the remaining space size of not encrypted partition;
First memory module 530 is configured as in the determining packet size of the first determining module 510 less than the second determining module When 520 determining remaining space size, upgrade package is stored in not encrypted partition.
In above-described embodiment, terminal can reduce OTA update time significantly, when restarting reply mode user without waiting, Normal upgrading process can be entered, optimize user experience.
As shown in fig. 6, Fig. 6 is the storage device frame of the disclosure another upgrade package shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 5, which can also include: sending module 540 and receiving module 550。
Sending module 540 is configured as sending upgrade package update detection request to server;
Receiving module 550 is configured as receiving the newest upgrade package that server returns.
As shown in fig. 7, Fig. 7 is the storage device frame of the disclosure another upgrade package shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 6, the first determining module 510 may include: analyzing sub-module 511 With determining submodule 512.
Analyzing sub-module 511 is configured as the package informatin of parsing upgrade package;
It determines submodule 512, is configured as obtaining the packet of upgrade package based on the package informatin that the parsing of analyzing sub-module 511 obtains Size.
As shown in figure 8, Fig. 8 is the storage device frame of the disclosure another upgrade package shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 5, the second determining module 520 includes: reading submodule 521, first Computational submodule 522 and the second computational submodule 523.
Reading submodule 521 is configured as reading the luv space size of not encrypted partition;
First computational submodule 522 is configured as calculating the use space size of not encrypted partition;
Second computational submodule 523 is configured as based on the luv space size and first that reading submodule 521 is read The use space size that operator module 522 calculates calculates remaining space size.
As shown in figure 9, Fig. 9 is the storage device frame of the disclosure another upgrade package shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 5, which can also include: the first read module 560 and first Upgraded module 570.
First read module 560, is configured as when restarting reforestation practices, and never upgrade package is read in encrypted partition;
First upgraded module 570 is configured as being upgraded based on the upgrade package that the first read module 560 is read.
As shown in Figure 10, Figure 10 is the storage device of the disclosure another upgrade package shown according to an exemplary embodiment Block diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 5, which can also include: the second memory module 580 and Three memory modules 590.
Second memory module 580 is configured as being stored in upgrade package when packet size is not less than remaining space size and adding Close subregion;
Third memory module 590 is configured as upgrade package being stored in not encrypted partition in the location information of encrypted partition.
As shown in figure 11, Figure 11 is the storage device of the disclosure another upgrade package shown according to an exemplary embodiment Block diagram, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 5, which can also include: the second read module 5100, solution Close module 5110 and the second upgraded module 5120.
Second read module 5100, is configured as when restarting reforestation practices, never encrypted partition reading position information;
Deciphering module 5110 is configured as the location information read based on the second read module 5100 and read from encrypted partition And decrypt upgrade package;
Second upgraded module 5120 is configured as the upgrade package after being decrypted based on deciphering module 5110 and is upgraded.
The memory device embodiment of upgrade package shown in above-mentioned Fig. 5 to Figure 11 can be using in the terminal.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
Correspondingly, the disclosure also provides a kind of terminal, the terminal includes processor;It is executable for storage processor The memory of instruction;Wherein, the processor is configured to:
Determine the packet size of the upgrade package of newest downloading;
Determine the remaining space size of not encrypted partition;
When the packet size is less than the remaining space size, the upgrade package is stored in the not encrypted partition.
As shown in figure 12, Figure 12 is a kind of disclosure storage dress for upgrade package shown according to an exemplary embodiment Set 1200 structural schematic diagram.For example, device 1200 can be the mobile phone with routing function, computer, number is extensively Broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig.1 2, 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 component 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 device 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.
Power supply module 1206 provides electric power for the various assemblies of device 1200.Power supply module 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 device 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 device 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, microwave remote 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 1220 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..
Wherein, processor 1220 is configured as:
Determine the packet size of the upgrade package of newest downloading;
Determine the remaining space size of not encrypted partition;
When the packet size is less than the remaining space size, the upgrade package is stored in the not encrypted partition.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.The disclosure 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.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all essences in the disclosure Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of disclosure protection.

Claims (13)

1. a kind of storage method of upgrade package characterized by comprising
Determine the packet size of the upgrade package of newest downloading;
Determine the remaining space size of not encrypted partition;
When the packet size is less than the remaining space size, the upgrade package is stored in the not encrypted partition;
When the packet size is not less than the remaining space size, the upgrade package is stored in encrypted partition;
Location information by the upgrade package in the encrypted partition is stored in the not encrypted partition.
2. the method according to claim 1, wherein the packet size of the upgrade package of the newest downloading of the determination it Before, the method also includes:
Upgrade package, which is sent, to server updates detection request;
Receive the newest upgrade package that the server returns.
3. according to the method described in claim 2, it is characterized in that, the packet size of the upgrade package of the newest downloading of the determination, packet It includes:
Parse the package informatin of the upgrade package;
The packet size of the upgrade package is obtained based on the package informatin.
4. the method according to claim 1, wherein the remaining space size of the determination not encrypted partition, packet It includes:
Read the luv space size of the not encrypted partition;
Calculate the use space size of the not encrypted partition;
The remaining space size is calculated based on the luv space size and the use space size.
5. the method according to claim 1, wherein the method also includes:
When restarting reforestation practices, the upgrade package is read from the not encrypted partition;
Upgraded based on the upgrade package.
6. the method according to claim 1, wherein it is described by the upgrade package the encrypted partition position Information is stored in after the not encrypted partition, the method also includes:
When restarting reforestation practices, the location information is read from the not encrypted partition;
It is read based on the location information from the encrypted partition and decrypts the upgrade package;
Upgraded based on the upgrade package after the decryption.
7. a kind of storage device of upgrade package characterized by comprising
First determining module is configured to determine that the packet size of the upgrade package of newest downloading;
Second determining module is configured to determine that the remaining space size of not encrypted partition;
First memory module is configured as storing the upgrade package when the packet size is less than the remaining space size In the not encrypted partition;
Described device further include:
Second memory module is configured as depositing the upgrade package when the packet size is not less than the remaining space size Storage is in encrypted partition;
Third memory module, is configured as the upgrade package being stored in the location information of the encrypted partition and described does not encrypt Subregion.
8. device according to claim 7, which is characterized in that described device further include:
Sending module is configured as sending upgrade package update detection request to server;
Receiving module is configured as receiving the newest upgrade package that the server returns.
9. device according to claim 8, which is characterized in that first determining module includes:
Analyzing sub-module is configured as parsing the package informatin of the upgrade package;
It determines submodule, is configured as obtaining the packet size of the upgrade package based on the package informatin.
10. device according to claim 7, which is characterized in that second determining module includes:
Reading submodule is configured as reading the luv space size of the not encrypted partition;
First computational submodule is configured as calculating the use space size of the not encrypted partition;
Second computational submodule is configured as calculating based on the luv space size and the use space size described surplus Complementary space size.
11. device according to claim 7, which is characterized in that described device further include:
First read module is configured as when restarting reforestation practices, reads the upgrade package from the not encrypted partition;
Upgraded module is configured as being upgraded based on the upgrade package.
12. device according to claim 7, which is characterized in that described device further include:
Second read module is configured as when restarting reforestation practices, reads the location information from the not encrypted partition;
Deciphering module is configured as being read from the encrypted partition based on the location information and being decrypted the upgrade package;
Upgraded module is configured as being upgraded based on the upgrade package after the decryption.
13. a kind of terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Determine the packet size of the upgrade package of newest downloading;
Determine the remaining space size of not encrypted partition;
When the packet size is less than the remaining space size, the upgrade package is stored in the not encrypted partition;
The processor is also configured to
When the packet size is not less than the remaining space size, the upgrade package is stored in encrypted partition;
Location information by the upgrade package in the encrypted partition is stored in the not encrypted partition.
CN201611092764.3A 2016-11-30 2016-11-30 Storage method, device and the terminal of upgrade package Active CN106528249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611092764.3A CN106528249B (en) 2016-11-30 2016-11-30 Storage method, device and the terminal of upgrade package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611092764.3A CN106528249B (en) 2016-11-30 2016-11-30 Storage method, device and the terminal of upgrade package

Publications (2)

Publication Number Publication Date
CN106528249A CN106528249A (en) 2017-03-22
CN106528249B true CN106528249B (en) 2019-10-25

Family

ID=58354478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611092764.3A Active CN106528249B (en) 2016-11-30 2016-11-30 Storage method, device and the terminal of upgrade package

Country Status (1)

Country Link
CN (1) CN106528249B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273156A (en) * 2017-06-06 2017-10-20 珠海全志科技股份有限公司 A kind of OTA upgrade methods and device
CN109343885B (en) * 2018-11-01 2022-02-25 阿波罗智能技术(北京)有限公司 System upgrading method and multi-system equipment
CN110134416A (en) * 2019-04-12 2019-08-16 平安普惠企业管理有限公司 Oftware updating method, device and computer readable storage medium
CN110221856B (en) * 2019-06-25 2024-03-19 努比亚技术有限公司 Wearable device upgrading method, wearable device and storage medium
CN111104137B (en) * 2019-12-06 2023-10-20 山东信通电子股份有限公司 OTA equipment upgrading method and device
CN113495729A (en) * 2020-03-20 2021-10-12 株洲中车时代电气股份有限公司 Software upgrading method and device
EP4092539B1 (en) 2021-05-17 2024-09-18 Elektrobit Automotive GmbH Re-partitioning of a flash memory device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924607A (en) * 2010-08-27 2010-12-22 华为终端有限公司 Firmware processing method based on firmware air transmission technology, device and system thereof
CN103383660A (en) * 2013-04-01 2013-11-06 华为终端有限公司 Method and device for realizing functions of cache partition of Android system as well as terminal equipment
CN105912369A (en) * 2016-04-26 2016-08-31 青岛海信移动通信技术股份有限公司 System upgrading method and device
CN105930184A (en) * 2016-04-19 2016-09-07 青岛海信移动通信技术股份有限公司 System upgrade method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924607A (en) * 2010-08-27 2010-12-22 华为终端有限公司 Firmware processing method based on firmware air transmission technology, device and system thereof
CN103383660A (en) * 2013-04-01 2013-11-06 华为终端有限公司 Method and device for realizing functions of cache partition of Android system as well as terminal equipment
CN105930184A (en) * 2016-04-19 2016-09-07 青岛海信移动通信技术股份有限公司 System upgrade method and device
CN105912369A (en) * 2016-04-26 2016-08-31 青岛海信移动通信技术股份有限公司 System upgrading method and device

Also Published As

Publication number Publication date
CN106528249A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN106528249B (en) Storage method, device and the terminal of upgrade package
EP3151507B1 (en) Methods and apparatuses for controlling device
CN104461666B (en) The firmware upgrade method and device of equipment primary processor
JP7204680B2 (en) METHOD, APPARATUS, PROGRAM, AND STORAGE MEDIUM FOR CONTROLLING DOOR GUARD
CN104484200A (en) Method and device for updating firmware
KR101642019B1 (en) Method, apparatus, program, and recording medium of verifying terminal
JP6101863B2 (en) Information transmission method, apparatus, program, and recording medium for voice service
CN104320774A (en) Updating method, device and facility
CN104811776A (en) Multimedia playing method and device
CN103970576A (en) Installation information displaying method, obtaining method and device
EP4132052A1 (en) Network connection method and device and readable storage medium
CN105957011B (en) Image processing method and device
CN105282162A (en) Processing method and device for account management business
CN104837133A (en) SIM card authentication method and device
CN104967966B (en) A kind of method and device of binding bluetooth equipment
CN106789070A (en) The decryption method of data, device and terminal
US10402562B2 (en) Method and device for encrypting application
CN107733674B (en) Component upgrading method and terminal
CN104866349A (en) Application updating method and device
US10681533B2 (en) Information writing method and device
CN104822083B (en) Control method, file sharing method and the device of file-sharing
CN112733092B (en) Information processing method and device
CN110072226B (en) Card writing method and device
CN105100103B (en) Information filtering method, device, server and terminal
CN110062373A (en) A kind of card writing method and device

Legal Events

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