CN105912369A - System upgrading method and device - Google Patents

System upgrading method and device Download PDF

Info

Publication number
CN105912369A
CN105912369A CN201610269903.9A CN201610269903A CN105912369A CN 105912369 A CN105912369 A CN 105912369A CN 201610269903 A CN201610269903 A CN 201610269903A CN 105912369 A CN105912369 A CN 105912369A
Authority
CN
China
Prior art keywords
physical equipment
logical device
system upgrade
equipment
upgrade bag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610269903.9A
Other languages
Chinese (zh)
Inventor
朱晓亮
张景新
高存欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610269903.9A priority Critical patent/CN105912369A/en
Publication of CN105912369A publication Critical patent/CN105912369A/en
Pending legal-status Critical Current

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)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention relates to the field of the computer technology, in particular to a system upgrading method and device. The system upgrading method and device is used for upgrading a system when equipment which stores a system upgrade package is encrypted. In the embodiment of the invention, in a process of entering a recovery mode, when physical equipment which stores the system upgrade package is determined to be under an encryption state, logical equipment corresponding to the physical equipment is created, the identifier of the equipment which stores the system upgrade package in a recovery partition table is changed into the identifier of the logical equipment from the identifier of the physical equipment, and therefore, the logical equipment is mounted when the recovery mode is successfully begun so as to avoid the problem in the prior art that the encrypted physical equipment needs to be directly mounted. In addition, since the logical equipment is not encrypted, the logical equipment can be successfully mounted, and then, the logical equipment can be used for calling an encryption interface to access the system upgrade package stored on the physical equipment.

Description

A kind of method for upgrading system and device
Technical field
The present embodiments relate to field of computer technology, particularly relate to a kind of method for upgrading system and device.
Background technology
Along with the development of communication technology, the terminal such as computer, smart mobile phone is more and more universal.Terminal In built-in system be usually open source system, owing to using the continuous change of demand, with a terminal built-in System generally requires constantly upgrading.Such as, firmware operation system during a smart mobile phone shipment is Android (Android) 4.4, subsequent upgrade is to Android 5.0 even more highest version.
System upgrade has various ways, be most commonly that over the air (Over-the-Air Technology, It is called for short OTA) upgrading.But in order to increase the safety of android terminal device, from Android4.4 it After introduce equipment encryption function.Such as user data (userdata) subregion in Android terminal is entered Row encryption, and/or the flash memory cards (Trans FLash is called for short T card) of terminal is encrypted.If userdata Subregion is encrypted, and now system upgrade bag is positioned at encrypted userdata subregion, now due to encrypted Userdata subregion cannot be performed carry operation, the most also cannot run and be positioned at encrypted userdata subregion On system upgrade bag, now system upgrade can failure.
Summary of the invention
The embodiment of the present invention provides a kind of method for upgrading system and device, in order to stored at system upgrade bag System upgrade is carried out when equipment is encrypted.
The embodiment of the present invention provides a kind of method for upgrading system, including:
During entering recovery recovery pattern, and determining the physical equipment of storage system upgrade bag When being in encrypted state, create the logical device corresponding with physical equipment;
Storage system upgrade bag device identification in recovery partition table is replaced with by the mark of physical equipment and patrols The mark of the equipment of collecting;
When being successfully entered recovery pattern, carry logical device, and call solution contiguity by logical device The system upgrade bag of storage on mouth access physical equipment.
The embodiment of the present invention provides a kind of system upgrade device, including:
Creating unit, during recovering recovery pattern in entrance, and is determining storage system liter When the physical equipment of level bag is in encrypted state, create the logical device corresponding with physical equipment;
Updating block, for storing system upgrade bag device identification by physical equipment in recovery partition table Mark replace with the mark of logical device;
Upgrade unit, is used for when being successfully entered recovery pattern, carry logical device, and passes through logic Equipment calls decryption interface accesses the system upgrade bag of storage on physical equipment.
In the embodiment of the present invention, during entering recovery pattern, and determining storage system upgrade When the physical equipment of bag is in encrypted state, create the logical device corresponding with physical equipment, by recovery Partition table stores system upgrade bag device identification and is replaced with the mark of logical device by the mark of physical equipment, So, can be when being successfully entered recovery pattern, carry logical device, thus avoid in prior art The problem needing the encrypted physical equipment of direct carry, and owing to logical device is the most encrypted, therefore can become This logical device of merit carry, and can call decryption interface by logical device afterwards and accesses storage on physical equipment System upgrade bag.Method that is visible, that provided by the embodiment of the present invention, is stored at system upgrade bag Physical equipment when being in encrypted state, it is possible to successfully carry out system upgrade.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below The accompanying drawing used is needed to briefly introduce.
Fig. 1 is the structural representation of a kind of terminal that the embodiment of the present invention is suitable for;
A kind of method for upgrading system schematic flow sheet that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of method for upgrading system that Fig. 2 a provides for the embodiment of the present invention;
The structural representation of a kind of system upgrade device that Fig. 3 provides for the embodiment of the present invention.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and beneficial effect clearer, below in conjunction with accompanying drawing And embodiment, the present invention is further elaborated.Should be appreciated that described herein being embodied as Example only in order to explain the present invention, is not intended to limit the present invention.
The terms "and/or", a kind of incidence relation describing affiliated partner, expression can exist Three kinds of relations, such as, A and/or B, can represent: individualism A, there is A and B, individually simultaneously There is B these three situation.It addition, character "/" herein, typically represent forward-backward correlation to as if a kind of "or" Relation.
In the embodiment of the present invention, term " terminal " can be mobile phone terminal, personal computer (personal computer, It is called for short PC) terminal, tablet terminal etc..System in terminal can include multiple, alternatively, and the embodiment of the present invention In system in terminal as android system as a example by be introduced.The embodiment of the present invention provide one be used for The method and apparatus of the system that upgrading terminals is installed.System upgrade includes multiple, such as passes through recovery The OTA upgrading realized, and the method carrying out system upgrade by upgrading tool that system platform manufacturer provides, The embodiment of the present invention is applicable to multiple systems upgrade environments, convenient for introducing, and fits with the embodiment of the present invention below It is introduced as a example by OTA upgrades.
In the embodiment of the present invention, what physical equipment (physical device) referred to that hard disk and system are mounted various sets Standby, physical equipment is in esse.Logical device for can carry out logical operations (with, or, non-etc.) Equipment, is made up of logic element.
In the embodiment of the present invention, physical equipment is likely to be at encrypted state, it is also possible to be in unencrypted state.Fig. 1 Illustrate the structural representation of a kind of terminal that the embodiment of the present invention is suitable for, as it is shown in figure 1, terminal Physical equipment can be userdata subregion, T card or caching (cache) subregion.Android6.0 opens Force encryption, after i.e. terminal first powers on, userdata subregion will be forced encryption.And T card increases newly and is adopted By (adopted) function, the T card after carrying out adopted becomes the built-in storage of the ext4 form of encryption Equipment, i.e. this T card are only used for the terminal that this T card is corresponding, if use other-end to access this T card, This T card is in encrypted state.
A solution is, when system performs OTA online upgrading, and system upgrade bag is positioned at userdata During subregion, after terminal success download system AKU online, automatically restart, and enter recovery pattern, Terminal is during restarting, and terminal is called AES (uncrypt) service and be will be stored in being in encryption shape The AKU of the userdata subregion of state is mapped to unencrypted cache subregion, and produces a block map (block.map), block.map have recorded be in encrypted state physical equipment implementor name, equipment big Little, and the mark of the block at system upgrade bag place.Terminal is directly by block (block) operational access block The block that mark is corresponding, obtains system upgrade bag from the block corresponding to the mark of block, and then runs this system liter Level bag, it is achieved system upgrade.
In above-mentioned solution, it is not necessary to carry is in the physical equipment of encrypted state, but is used only for working as System performs OTA online upgrading, and when system upgrade bag is positioned at userdata subregion in the case of.If it is logical Cross manual type download system AKU, and enter recovery pattern, the most above-mentioned solution by manual type Scheme cannot be successfully generated block.map, and then cannot successfully obtain the mark of the block at AKU place, it is impossible to Successfully carry out system upgrade.Or AKU is also not located at userdata subregion, and is in other subregion, than Such as T card, if now T card is in encrypted state, above-mentioned solution also cannot successful operation.
For the problems referred to above, the embodiment of the present invention provides a kind of system upgrade scheme, is entering recovery mould During formula, and when the physical equipment determining storage system upgrade bag is in encrypted state, create and thing The logical device that reason equipment is corresponding, will store system upgrade bag device identification by physics in recovery partition table The mark of equipment replaces with the mark of logical device, so, can hang when being successfully entered recovery pattern Carry logical device, thus avoid the problem of the physical equipment needing direct carry encrypted in prior art, And owing to logical device is the most encrypted, therefore can success this logical device of carry, can and be set by logic afterwards The standby decryption interface that calls accesses the system upgrade bag of storage on physical equipment.Visible, pass through the embodiment of the present invention The method provided, when the physical equipment that system upgrade bag is positioned at is in encrypted state, it is possible to successfully enter Row system upgrade.And the scheme that provided of the embodiment of the present invention does not limit which kind of mode of use and obtains system upgrade Bag, such as by online, off-line or artificial by the way of obtain system upgrade bag etc., all can use the present invention The scheme that embodiment provides.It addition, the scheme that the embodiment of the present invention is provided the most not limit physical equipment concrete For userdata subregion, such as, in the scheme that the embodiment of the present invention is provided, system upgrade bag can be located at terminal Any one physical equipment in, such as can be located in userdata subregion, T card or cache.
Fig. 2 illustrates the schematic flow sheet of a kind of method for upgrading system that the embodiment of the present invention provides.
Based on foregoing, a kind of method for upgrading system that the embodiment of the present invention provides, as in figure 2 it is shown, be somebody's turn to do Method includes:
Step 201, during entering recovery pattern, and is determining the physics of storage system upgrade bag When equipment is in encrypted state, create the logical device corresponding with physical equipment;
Step 202, will store system upgrade bag device identification by the mark of physical equipment in recovery partition table Replace with the mark of logical device;
Step 203, when being successfully entered recovery pattern, carry logical device, and adjusted by logical device The system upgrade bag of storage on physical equipment is accessed with decryption interface.
Alternatively, before above-mentioned steps 201, obtain system upgrade bag.Such as, can from network, from On the operation website of the supplier of system upgrade bag, or obtain system upgrade bag, specifically side from other terminal Formula is varied, such as by online, off-line or artificial by the way of obtain system upgrade bag etc..Work as successfully After obtaining system upgrade bag, terminal is restarted, and initially enters recovery pattern after restarting, and performs Step 201.
In the embodiment of the present invention, before above-mentioned steps 201, also can obtain the relevant information of system data bag, The such as mark of the physical equipment that system data bag is stored, physical equipment is in encrypted state or physical equipment It is in unencrypted state etc. information.
Alternatively, during entering recovery recovery pattern, and determining storage system upgrade bag When physical equipment is in encrypted state, create the logical device corresponding with physical equipment, including: extensive entering During multiple recovery pattern, and need to perform OTA updating operation and storage system upgrade determining When the physical equipment of bag is in encrypted state, create the logical device corresponding with physical equipment.
Specifically, having multiple operational circumstances under recovery pattern, different operational circumstances can be corresponding different Operating process, therefore, alternatively, after terminal enters recovery pattern, it is determined whether need to perform OTA Updating operation, if desired, then judge that the physical equipment of storage system upgrade bag is in encrypted state, the most again Perform the sequence of operations of above-mentioned steps 201 to step 203.So, can avoid entering recovery every time Pattern all carries out the establishment operation of logical device, improves user's impression.
Alternatively, terminal determines that the physical equipment of storage system upgrade bag is in encrypted state in the following manner:
Determine the mark of the physical equipment of storage system upgrade bag;Obtain the mark for indicating physical equipment right Whether the physical equipment answered is in the instruction information of encrypted state, is used for indicating whether physical equipment is in encryption The instruction information of state can be the attribute information of physical equipment.Alternatively, the storage road of system upgrade bag is obtained Footpath, determines the mark of the physical equipment of storage system upgrade bag afterwards according to store path.In being embodied as, The store path of system upgrade bag can be determined by the information of some subregions or memory block, and be used for referring to Show the physical equipment instruction information whether being in encrypted state etc. information.
Alternatively, in Recovery partition table record have the device identification of physical equipment, the type of logistics equipment, The mount point of this physical equipment, and the carry parameter of this physical equipment.The device identification of physical equipment can be The title of this physical equipment.Can determine that from recovery partition table the physics that system upgrade bag is stored sets Standby mark.
In being embodied as, terminal is when start for the first time, and terminal can judge whether each equipment of terminal needs to add Close.First start specifically refers to terminal after using factory's brush machine bag upgrading or after execution factory reset First time start.For as a example by the userdata subregion of terminal, terminal, when start for the first time, can judge The encryption configuration situation of userdata subregion, the encryption configuration situation of userdata subregion is to userdata subregion Force encryption, encryption or not encryption etc..If the encryption configuration situation of userdata subregion is to userdata Subregion forces encryption, then can be encrypted by userdata subregion when terminal start for the first time;If The encryption configuration situation of userdata subregion is encryption, then user can be voluntarily by arranging function pair in terminal Userdata subregion is encrypted.Illustrate as a example by the T card of terminal again, when terminal monitoring is to when having T card to insert, Meeting pop-up dialogue box, this dialog box, for allowing user select the existence form of T card, can be such as portable setting Standby, or internal storage device, if user selects the existence form of T card to be internal storage device, then eventually T card is formatted as the built-in device of encryption by end.
Further, terminal is when determining each equipment needing encryption and encrypting successfully, then by the equipment of encryption Identify, and the instruction information for indicating physical equipment whether to be in encrypted state store in certain subregion, On such as misc subregion.If the equipment to this encryption has carried out decryption oprerations afterwards, then need to update for Whether instruction physical equipment is in the instruction information of encrypted state.
Alternatively, restart and initially enter recovery pattern afterwards, and start initial (init) process, now The most unsuccessful entrance recovery pattern, can be described as recovery initialization procedure, after starting init process, Judge whether the physical equipment storing system upgrade bag is in encrypted state.
Alternatively, if in above-mentioned steps 201, during entering recovery pattern, and deposit determining When the physical equipment of storage system AKU is in unencrypted state, directly when entering recovery pattern, hang Carry physical equipment, and access the system upgrade bag of storage on physical equipment, carry out system upgrade.
Illustrate in conjunction with concrete process, alternatively, after rebooting into recovery pattern, enter First process, generally, the first process can be init process, and this first process is alternatively referred to as host process.One Process includes that multiple service, each service can perform an order, such as, exists in the embodiment of the present invention One service, this service can be monitored, and when listening to meet trigger condition, triggers opening of the second process Move and notify the second process creation logical device.Trigger condition is to determine the physical equipment of storage system upgrade bag It is in encrypted state.When listening to be unsatisfactory for trigger condition, i.e. determine that the physics of storage system upgrade bag sets For when being in unencrypted state, it is directly entered recovery pattern, and carry physical equipment, and accesses physics On equipment, the system upgrade bag of storage, carries out system upgrade.
Alternatively, in the embodiment of the present invention, running the first process, the service in the first process is listening to When meeting trigger condition, trigger the startup of the second process and notify the second process creation logical device;Trigger bar Part is that the physical equipment determining storage system upgrade bag is in encrypted state;Receive establishment in the second process to patrol After the order of the equipment of collecting, the second process creates the logical device corresponding with physical equipment.Alternatively, Two processes can be vold process.
Based on above-mentioned discussion, in order to become apparent from introducing said method flow process, the embodiment of the present invention reoffers one Concrete example.Fig. 2 a illustrates the flow process of the another kind of method for upgrading system that the embodiment of the present invention provides Schematic diagram, as shown in Figure 2 a:
Step 2101, after terminal downloads system upgrade bag, deposits in physical equipment by this system upgrade bag In.Terminal is restarted afterwards, and enters recovery pattern.The mode rebooting into recovery pattern has many Kind, such as user, under the off-mode of terminal, presses Macintosh (under such as volume+power key), now Terminal carries out restarting and enter recovery pattern.Or another way, online mode, such as select end Factory reset in the setting command of end or system upgrade menu, now terminal can automatically be restarted and gone forward side by side Enter recovery pattern.
Step 2102, terminal is restarted, and now, starts boot bootloader and determines the most eventually The reason that end is restarted is for entering recovery pattern, then terminal starts the first process of recovery pattern, the One process can be init process, the most unsuccessful entrance recovery pattern, after starting init process, obtains Take the store path of system upgrade bag, and obtain the mark of the physical equipment at system upgrade bag place, alternatively, Determine whether this physical equipment is in encryption shape from the subregion of record upgrading path and equipment encrypted state information State.
Step 2103, determines whether this physical equipment is in encrypted state, if being in unencrypted state, then holds Row step 2104;If being in encrypted state, then perform step 2105;
Step 2104, however, it is determined that this physical equipment is in unencrypted state, then be successfully entered recovery mould After formula, determine and need to perform system upgrade operation, then carry physical equipment, and access and deposit on physical equipment The system upgrade bag of storage, carries out system upgrade.
Step 2105, however, it is determined that this physical equipment is in encrypted state, and determines that needing to perform system upgrade grasps Making, then open the trigger condition that the service of triggering starts in init process, now this service is opened for the second process Move and notify the second process creation logical device, when trigger condition meets, opening this service, thus open Second process.Alternatively, also creating and have to monitor a service in recovery flow process, this monitoring service is used for supervising Listen whether the second process successfully creates logical device.After second process of entrance, this monitoring service is i.e. opened.
In the second process, by calling a series of function creation logical device, and by logical device with Physical equipment associates.
Step 2106, the monitoring service in Recovery flow process listens to the second process and has been successfully established logic Equipment, and have built up the corresponding relation of logical device and physical equipment, afterwards, alternatively, at recovery Also create a thread under pattern, start this thread, by the mark of this physical equipment in recovery partition table Replace with the mark of logical device.Alternatively, the mark of physical equipment can be the implementor name of physical equipment, patrols The mark of the equipment of collecting can be the implementor name of logical device.
Step 2107, is successfully entered recovery pattern, carry logical device, and is called by logical device Decryption interface accesses the system upgrade bag of storage on physical equipment.
Alternatively, decryption interface is the algorithm being decrypted physical equipment;Deciphering is called by logical device The system upgrade bag of storage on interface accessing physical equipment, including: call decryption interface by logical device, Physical equipment is decrypted;Read the system upgrade bag of storage in the physical equipment after deciphering.
Specifically, logical device includes a series of logical algorithm, alternatively, is encapsulated by decipherment algorithm For decryption interface.Alternatively, for the AES of equipment in the embodiment of the present invention, and and AES Corresponding decipherment algorithm is all default, and therefore, terminal can obtain physical equipment from default information The decipherment algorithm that AES is corresponding, is encapsulated as the decryption interface in this logical device by this decipherment algorithm afterwards.
Alternatively, call the system upgrade bag of storage on encryption and decryption interface accessing physical equipment by logical device, Including: the decryption interface being called bottom core (kernel) by logical device accesses storage on physical equipment System upgrade bag.
Alternatively, the embodiment of the present invention there is various ways create logical device, one is described below alternatively Embodiment.This alternatively embodiment based on Disk Mapping (device mapper, be called for short dm) mechanism.
Device mapper embodies the principle that strategy and mechanism separate in linux kernel designs, by any It is put into user's space with policy-related (noun) work to complete, kernel mainly provides required for these strategies Mechanism.Device mapper user's space relevant portion is mainly responsible for the concrete strategy of configuration and controls logic, Such as logical device and which physical equipment are set up and are mapped, and how to set up these mapping relations etc., and concrete The work that filtration and redirection input/output (Input/Output is called for short I/O) are asked is by correlative code in kernel Complete.The most whole device mapper mechanism is made up of two parts--and the device mapper of kernel spacing drives The instrument of the establishment logical device that dynamic, the device mapper storehouse of user's space provides together with it.
When creating logical device, the device mapper being first turned on kernel spacing drives, for concrete use Implementing of space, family request.Create device mapper equipment afterwards, i.e. command parameter is passed through ioctl Tell kernel.3rd, the state and the device mapper equipment that obtain device mapper equipment are supported Function (target);Specifically, the state of device mapper equipment can be the parameter of version number one class, It is to say, determine whether the version number of device mapper equipment supports to create the corresponding operating of logical device The function (target) that device mapper equipment is supported can be the encryption solution that device mapper equipment is corresponding Close (crypt) registration entries, i.e. whether device mapper equipment has deciphering function.4th, crypt is set Mapping table, sets up the association between crypt and physical equipment, and mapping relations is loaded into device mapper In equipment;I.e. create a mapping table, be used for making to set up between logical device and physical equipment mapping relations, Then incoming for this mapping table kernel, kernel is allowed to set up the Disk Mapping table that device mapper equipment is corresponding (Device Mapper table is called for short dm_table) structure, activates the logical device created.
In the embodiment of the present invention, alternatively, the corresponding relation setting up physical equipment and logical device can be based on Device mapper mechanism is set up, and alternatively, tells kernel by user's space layer by ioctl order Operation to be performed, specifically has kernel to complete.
It may be seen from the foregoing that in the embodiment of the present invention, during entering recovery pattern, and When the physical equipment determining storage system upgrade bag is in encrypted state, create patrol corresponding with physical equipment The equipment of collecting, will store system upgrade bag device identification and be replaced by the mark of physical equipment in recovery partition table For the mark of logical device, so, can be when being successfully entered recovery pattern, carry logical device, from And avoid the problem of the physical equipment needing direct carry encrypted in prior art, and due to logical device The most encrypted, therefore can success this logical device of carry, and decryption interface can be called by logical device afterwards Access the system upgrade bag of storage on physical equipment.Method that is visible, that provided by the embodiment of the present invention, When the physical equipment that system upgrade bag is stored is in encrypted state, it is possible to successfully carry out system upgrade.
Fig. 3 illustrates the structural representation of a kind of system upgrade device that the embodiment of the present invention provides.
Based on same idea, the embodiment of the present invention provides a kind of system upgrade device, is used for performing said method Flow process, as it is shown on figure 3, this device includes creating unit 301, updating block 302 and upgrade unit 303:
Creating unit 301, during recovering recovery pattern in entrance, and is determining storage system When the physical equipment of AKU is in encrypted state, create the logical device corresponding with physical equipment;
Updating block 302, for being set storing system upgrade bag device identification in recovery partition table by physics Standby mark replaces with the mark of logical device;
Upgrade unit 303, is used for when being successfully entered recovery pattern, carry logical device, and by patrolling Collect equipment calls decryption interface and access the system upgrade bag of storage on physical equipment.
Alternatively, decryption interface is the algorithm being decrypted physical equipment;Upgrade unit 303, is used for: logical Cross logical device and call decryption interface, physical equipment is decrypted;Read in the physical equipment after deciphering and deposit The system upgrade bag of storage.
Alternatively, creating unit 301, it is additionally operable to:
Determine the mark of the physical equipment of storage system upgrade bag;Obtain the mark for indicating physical equipment right Whether the physical equipment answered is in the instruction information of encrypted state;Right according to the mark for indicating physical equipment Whether the physical equipment answered is in the instruction information of encrypted state, determines the physical equipment of storage system upgrade bag Whether it is in encrypted state.
Alternatively, creating unit 301, it is used for:
Running the first process, the service in the first process, when listening to meet trigger condition, triggers second The startup of process also notifies the second process creation logical device;Trigger condition is to determine storage system upgrade bag Physical equipment is in encrypted state;After the second process receives the order of establishment logical device, enter second Journey creates the logical device corresponding with physical equipment.
Alternatively, creating unit 301, it is used for:
During entering recovery recovery pattern, and need to perform over the air OTA determining When the physical equipment of updating operation and storage system upgrade bag is in encrypted state, create and physical equipment pair The logical device answered.
It may be seen from the foregoing that in the embodiment of the present invention, during entering recovery pattern, and When the physical equipment determining storage system upgrade bag is in encrypted state, create patrol corresponding with physical equipment The equipment of collecting, will store system upgrade bag device identification and be replaced by the mark of physical equipment in recovery partition table For the mark of logical device, so, can be when being successfully entered recovery pattern, carry logical device, from And avoid the problem of the physical equipment needing direct carry encrypted in prior art, and due to logical device The most encrypted, therefore can success this logical device of carry, and decryption interface can be called by logical device afterwards Access the system upgrade bag of storage on physical equipment.Method that is visible, that provided by the embodiment of the present invention, When the physical equipment that system upgrade bag is stored is in encrypted state, it is possible to successfully carry out system upgrade.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method or computer journey Sequence product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or combine software Form with the embodiment of hardware aspect.And, the present invention can use and wherein include meter one or more The computer-usable storage medium of calculation machine usable program code (include but not limited to disk memory, CD-ROM, optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program according to embodiments of the present invention Flow chart and/or block diagram describe.It should be understood that can by computer program instructions flowchart and/ Or flow process in each flow process in block diagram and/or square frame and flow chart and/or block diagram and/or The combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedded The processor of datatron or other programmable data processing device is to produce a machine so that pass through computer Or the instruction that the processor of other programmable data processing device performs produces for realizing at flow chart one stream The device of the function specified in journey or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device In the computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produces the manufacture including command device, and this command device realizes at one flow process of flow chart or multiple stream The function specified in journey and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know base This creativeness concept, then can make other change and amendment to these embodiments.So, appended right is wanted Ask and be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a method for upgrading system, it is characterised in that including:
During entering recovery recovery pattern, and determining the physical equipment of storage system upgrade bag When being in encrypted state, create the logical device corresponding with described physical equipment;
Recovery partition table will store described system upgrade bag device identification by the mark of described physical equipment Replace with the mark of described logical device;
When being successfully entered described recovery pattern, logical device described in carry, and set by described logic The standby decryption interface that calls accesses the described system upgrade bag of storage on described physical equipment.
2. the method for claim 1, it is characterised in that described decryption interface is for set described physics The standby algorithm being decrypted;
Described call decryption interface by described logical device and access the described system of storage on described physical equipment AKU, including:
Call decryption interface by described logical device, described physical equipment is decrypted;
Read the described system upgrade bag of storage in the described physical equipment after deciphering.
3. the method for claim 1, it is characterised in that described establishment is corresponding with described physical equipment Logical device before, in the following manner determine storage system upgrade bag physical equipment whether be in encryption State:
Determine the mark of the physical equipment storing described system upgrade bag;
Obtain the finger whether being in encrypted state for the physical equipment indicating the mark of described physical equipment corresponding Show information;
Whether it is in encrypted state according to the described physical equipment for indicating the mark of described physical equipment corresponding Instruction information, determine storage system upgrade bag physical equipment whether be in encrypted state.
4. the method for claim 1, it is characterised in that described establishment is corresponding with described physical equipment Logical device, including:
Running the first process, the service in described first process, when listening to meet trigger condition, triggers The startup of the second process also notifies the second process creation logical device;Described trigger condition is for determining storage system The physical equipment of AKU is in encrypted state;
After described second process receives the order of described establishment logical device, create in described second process Build the logical device corresponding with described physical equipment.
5. the method for claim 1, it is characterised in that described in entrance recovery recovery pattern During, and when the physical equipment determining storage system upgrade bag is in encrypted state, create with described The logical device that physical equipment is corresponding, including:
During entering recovery recovery pattern, and need to perform over the air OTA determining When the physical equipment of updating operation and storage system upgrade bag is in encrypted state, creates and set with described physics Standby corresponding logical device.
6. a system upgrade device, it is characterised in that including:
Creating unit, during recovering recovery pattern in entrance, and is determining storage system liter When the physical equipment of level bag is in encrypted state, create the logical device corresponding with described physical equipment;
Updating block, for storing described system upgrade bag device identification by described in recovery partition table The mark of physical equipment replaces with the mark of described logical device;
Upgrade unit, is used for when being successfully entered described recovery pattern, logical device described in carry, and Call decryption interface by described logical device and access the described system upgrade bag of storage on described physical equipment.
7. device as claimed in claim 6, it is characterised in that described decryption interface is for set described physics The standby algorithm being decrypted;
Described upgrade unit, is used for:
Call decryption interface by described logical device, described physical equipment is decrypted;
Read the described system upgrade bag of storage in the described physical equipment after deciphering.
8. device as claimed in claim 6, it is characterised in that described creating unit, is additionally operable to:
Determine the mark of the physical equipment storing described system upgrade bag;
Obtain the finger whether being in encrypted state for the physical equipment indicating the mark of described physical equipment corresponding Show information;
Whether it is in encrypted state according to the described physical equipment for indicating the mark of described physical equipment corresponding Instruction information, determine storage system upgrade bag physical equipment whether be in encrypted state.
9. device as claimed in claim 6, it is characterised in that described creating unit, is used for:
Running the first process, the service in described first process, when listening to meet trigger condition, triggers The startup of the second process also notifies the second process creation logical device;Described trigger condition is for determining storage system The physical equipment of AKU is in encrypted state;
After described second process receives the order of described establishment logical device, create in described second process Build the logical device corresponding with described physical equipment.
10. device as claimed in claim 6, it is characterised in that described creating unit, is used for:
During entering recovery recovery pattern, and need to perform over the air OTA determining When the physical equipment of updating operation and storage system upgrade bag is in encrypted state, creates and set with described physics Standby corresponding logical device.
CN201610269903.9A 2016-04-26 2016-04-26 System upgrading method and device Pending CN105912369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610269903.9A CN105912369A (en) 2016-04-26 2016-04-26 System upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610269903.9A CN105912369A (en) 2016-04-26 2016-04-26 System upgrading method and device

Publications (1)

Publication Number Publication Date
CN105912369A true CN105912369A (en) 2016-08-31

Family

ID=56752736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610269903.9A Pending CN105912369A (en) 2016-04-26 2016-04-26 System upgrading method and device

Country Status (1)

Country Link
CN (1) CN105912369A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528249A (en) * 2016-11-30 2017-03-22 北京小米移动软件有限公司 Storage method and device of upgrade package, and terminal
CN107526608A (en) * 2017-06-08 2017-12-29 青岛海信移动通信技术股份有限公司 A kind of OTA AKUs upgrade method and equipment
CN108228388A (en) * 2018-01-10 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of method and terminal for restoring setting
CN108762785A (en) * 2018-05-29 2018-11-06 四川斐讯信息技术有限公司 Restore the method and system of manufacture in a kind of firmware upgrade process
CN108985104A (en) * 2018-07-20 2018-12-11 南昌黑鲨科技有限公司 The encryption method and intelligent terminal of intelligent terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530142A (en) * 2013-05-08 2014-01-22 Tcl集团股份有限公司 Android system upgrading method and system based on storage device
CN105183517A (en) * 2015-09-14 2015-12-23 广东欧珀移动通信有限公司 Method and device for mounting external storage equipment in recovery mode and electronic device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530142A (en) * 2013-05-08 2014-01-22 Tcl集团股份有限公司 Android system upgrading method and system based on storage device
CN105183517A (en) * 2015-09-14 2015-12-23 广东欧珀移动通信有限公司 Method and device for mounting external storage equipment in recovery mode and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JASON_LEEEE: ""深入理解Android之设备加密Device Encryption"", 《HTTPS://WWW.CNBLOGS.COM/JASONLEEEE/P/4503571.HTML》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528249A (en) * 2016-11-30 2017-03-22 北京小米移动软件有限公司 Storage method and device of upgrade package, and terminal
CN106528249B (en) * 2016-11-30 2019-10-25 北京小米移动软件有限公司 Storage method, device and the terminal of upgrade package
CN107526608A (en) * 2017-06-08 2017-12-29 青岛海信移动通信技术股份有限公司 A kind of OTA AKUs upgrade method and equipment
CN107526608B (en) * 2017-06-08 2021-05-25 青岛海信移动通信技术股份有限公司 OTA upgrade package upgrading method and device
CN108228388A (en) * 2018-01-10 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of method and terminal for restoring setting
CN108762785A (en) * 2018-05-29 2018-11-06 四川斐讯信息技术有限公司 Restore the method and system of manufacture in a kind of firmware upgrade process
CN108985104A (en) * 2018-07-20 2018-12-11 南昌黑鲨科技有限公司 The encryption method and intelligent terminal of intelligent terminal
CN108985104B (en) * 2018-07-20 2022-01-21 南昌黑鲨科技有限公司 Encryption method of intelligent terminal and intelligent terminal

Similar Documents

Publication Publication Date Title
CN105912369A (en) System upgrading method and device
CN104915224B (en) A kind of processing method and processing device of affiliate application
CN112612214B (en) Method and system for generating functional interface and electronic equipment
CN108073423B (en) Accelerator loading method and system and accelerator loading device
CN107632901A (en) A kind of self-repair method and device of application program operation exception
CN105765533A (en) Method and apparatus for firmware virtualization
CN104133699A (en) Equipment system software updating method and equipment system software updating system
CN109492181A (en) Method for page jump, device, computer equipment and storage medium
CN110968343A (en) Resource file configuration method, configuration device, refrigerator and readable storage medium
CN112100027A (en) Server maintenance method, device, equipment and machine readable storage medium
CN104699503A (en) Method and device for replacing function execution logic in Android system
CN107463492A (en) Application failure localization method and device
CN106649113A (en) Testing equipment control system and realization method
CN104461621B (en) A kind of method and device of Update attribute information
CN108062239B (en) Accelerator loading method and system and accelerator loading device
CN103984621B (en) log separation method and system
CN113596077A (en) Program downloading method, device, computer equipment and storage medium
EP3817415A1 (en) Method and device for configuring nfc smart card
CN105159673A (en) Method and device for setting control style
CN111417927A (en) Resource authority processing method and device, storage medium and chip
CN105373415A (en) Virtualization based application storage method, execution method, apparatus and system
CN105988785A (en) RPC (remote procedure call) service development method and device
CN104317645B (en) A kind of method and device of Application Instance listening port
TWI716320B (en) Security task processing method, device, electronic equipment and storage medium
CN114461964A (en) Webpage skipping method and system

Legal Events

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

Application publication date: 20160831

RJ01 Rejection of invention patent application after publication