CN105893068A - Offline upgrading method and device of intelligent equipment - Google Patents
Offline upgrading method and device of intelligent equipment Download PDFInfo
- Publication number
- CN105893068A CN105893068A CN201510476863.0A CN201510476863A CN105893068A CN 105893068 A CN105893068 A CN 105893068A CN 201510476863 A CN201510476863 A CN 201510476863A CN 105893068 A CN105893068 A CN 105893068A
- Authority
- CN
- China
- Prior art keywords
- file
- aku
- smart machine
- mated
- offline
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Embodiments of the invention provide an offline upgrading method and device of intelligent equipment. The method comprises the following steps: when offline upgrading needs to be carried out on the intelligent equipment, searching upgrading package files matched with the intelligent equipment in an appointed storage space, wherein equipment identification information of the upgrading package files is compatible with the intelligent equipment identification information of the intelligent equipment; carrying out offline upgrading by utilizing one upgrading package file in the upgrading package files matched with the intelligent equipment. According to the method and device provided by the invention, the upgrading package files are identified through the equipment identification information in the files, and the users do not need to manually modify names of the upgrading package files and store the upgrading package files in appointed directories, so that the upgrading failure caused by incorrect operations of the users is avoided; if the equipment identification information in the files is compatible with the equipment identification information of the intelligent equipment, the upgrading package files are compatible with the intelligent equipment, so that the upgrading failure caused by carrying out upgrading through using incompatible upgrading package files is reduced, and the success rate of the offline upgrading is improved.
Description
Technical field
The present embodiments relate to upgraded in offline technical field, particularly relate to the off-line liter of a kind of smart machine
Level method and device.
Background technology
When the systematic function of smart machine or application performance can not meet user's request, need intelligence
System upgrade can be carried out by equipment.Existing a kind of system upgrade mode is upgraded in offline mode.Off-line liter
Level requires that AKU file must be put into external storage equipment (such as USB flash disk, portable hard drive etc.) by user
Assigned catalogue under, and manually the name of AKU file is revised as unified name by user,
Smart machine just can recognize that AKU file.This implementation, exists during user operation
The risk of operational error is the highest, reduces the success rate of upgrading.
Summary of the invention
The embodiment of the present invention provides the upgraded in offline method and device of a kind of smart machine, existing in order to solve
Upgraded in offline mode, the highest because there is the risk of operational error during user operation, reduce
The problem of success rate for upgrading.
The embodiment of the present invention provides a kind of upgraded in offline method of smart machine, including:
When needing that smart machine is carried out upgraded in offline, search and described intelligence in the memory space specified
The AKU file of equipment coupling, the AKU file mated with described smart machine refers to the equipment comprised
The AKU file that identification information is compatible with the equipment identification information of described smart machine;
An AKU file in the AKU file mated with described smart machine is utilized to carry out off-line liter
Level.
Optionally, equipment identification information includes unit type and logical identifier;Or, equipment identification information
Including unit type.
Optionally, the described AKU that lookup is mated with described smart machine in the memory space specified literary composition
Part, including:
Whether it is the liter mated with described smart machine by judging the file in the memory space specified successively
The mode of level APMB package, searches the AKU file mated with described smart machine
Optionally, the described AKU that lookup is mated with described smart machine in the memory space specified literary composition
Part, including:
In the file more than default byte of the memory space storage specified, search and described smart machine
The AKU file of coupling.
Optionally, the described AKU that lookup is mated with described smart machine in the memory space specified literary composition
Part, including:
In the root file of the memory space specified, search the AKU mated with described smart machine
File.
Optionally, search in the memory space specified the AKU file that mates with described smart machine it
After, utilize an AKU file in the AKU file mated with described smart machine to carry out off-line liter
Before Ji, the method also includes: obtain AKU from the AKU file mated with described smart machine
The version information of file, described version information at least includes version number;
An AKU file in the AKU file mated with described smart machine is utilized to carry out off-line liter
Level, including:
The AKU file that in the AKU file mated with described smart machine, version number is the highest is utilized to carry out
Upgraded in offline;Or,
The version information of the AKU file mated with described smart machine that display finds, for user
Select;The AKU file that in the AKU file mated with described smart machine, user selects is utilized to carry out
Upgraded in offline.
The embodiment of the present invention provides the upgraded in offline device of a kind of smart machine, including:
AKU ff module, is used for: when needing that smart machine is carried out upgraded in offline, is specifying
Memory space in search the AKU file that mates with described smart machine, mate with described smart machine
AKU file refer to that the equipment identification information of equipment identification information and the described smart machine comprised is compatible
AKU file;
Upgraded in offline module, is used for: utilize in the AKU file mated with described smart machine
AKU file carries out upgraded in offline.
Optionally, equipment identification information includes unit type and logical identifier;Or, equipment identification information
Including unit type.
Optionally, described AKU ff module, specifically for:
Whether it is the liter mated with described smart machine by judging the file in the memory space specified successively
The mode of level APMB package, searches the AKU file mated with described smart machine.
Optionally, described AKU ff module, specifically for:
In the file more than default byte of the memory space storage specified, search and described smart machine
The AKU file of coupling.
Optionally, described AKU searches module, specifically for:
In the root file of the memory space specified, search the AKU mated with described smart machine
File.
Optionally, also include version information acquisition module, be used for: described file bag is searched module and specified
Memory space in search the AKU file that mates with described smart machine after, described upgraded in offline mould
Before block utilizes the AKU file mated with described smart machine to carry out upgraded in offline, from described
Obtaining the version information of AKU file in the AKU file of smart machine coupling, described version information is extremely
Include version number less;
Described upgraded in offline module, specifically for:
Utilize the AKU literary composition that a version number in the AKU file mated with described smart machine is the highest
Part carries out upgraded in offline;Or,
The version information of the AKU file mated with described smart machine that display finds, for user
Select;The AKU file that in the AKU file mated with described smart machine, user selects is utilized to carry out
Upgraded in offline.
The upgraded in offline method and device of the smart machine that the embodiment of the present invention provides, owing to carrying out off-line liter
The AKU file of level is the AKU file mated with smart machine obtained by lookup, should be with intelligence
The AKU file of equipment coupling refers to the equipment identification information of equipment identification information and the smart machine comprised
Compatible AKU file.It is to say, in the embodiment of the present invention, be by the device identification in file
Information identifies AKU file, it is not necessary to the name of user's manual modification AKU file is also left in
Assigned catalogue, it is to avoid the upgrading failure that user misoperation causes.If it addition, the equipment mark in file
Knowledge information is compatible with the equipment identification information of smart machine, shows that this AKU file is compatible with smart machine.
Therefore, by equipment identification information identification AKU file, it is also possible to reduce because using incompatible liter
Level APMB package carries out the upgrading failure caused of upgrading, and improves the success rate of upgraded in offline further.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to embodiment or existing
In technology description, the required accompanying drawing used is briefly described, it should be apparent that, in describing below
Accompanying drawing is some embodiments of the present invention, for those of ordinary skill in the art, is not paying creation
Property work on the premise of, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The upgraded in offline method flow diagram of a kind of smart machine that Fig. 1 provides for the embodiment of the present invention;
The upgraded in offline method flow diagram of the another kind of smart machine that Fig. 2 provides for the embodiment of the present invention;
The schematic diagram of the display lookup result that Fig. 3 provides for the embodiment of the present invention;
The upgraded in offline device schematic diagram of a kind of smart machine that Fig. 4 provides for the embodiment of the present invention;
The upgraded in offline device schematic diagram of the another kind of smart machine that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, the embodiment of the present invention provides a kind of upgraded in offline method of smart machine, its tool
Body step is as follows:
Step 110: when needing that smart machine is carried out upgraded in offline, searches in the memory space specified
The AKU file mated with smart machine, the AKU file mated with smart machine refers to that comprise sets
The AKU file that standby identification information is compatible with the equipment identification information of smart machine.
Step 120: utilize an AKU file in the AKU file mated with smart machine to carry out
Upgraded in offline.
In the embodiment of the present invention, due to carry out the AKU file of upgraded in offline be obtained by lookup with
The AKU file of smart machine coupling, the AKU file mated with smart machine refers to the equipment comprised
The AKU file that identification information is compatible with the equipment identification information of smart machine.It is to say, the present invention
In embodiment, it is to identify AKU file by the equipment identification information in file, it is not necessary to user
The name of manual modification AKU file also leaves assigned catalogue in, it is to avoid the liter that user misoperation causes
Level failure.If it addition, the equipment identification information in file is compatible with the equipment identification information of smart machine,
Show that this AKU file is compatible with smart machine.Therefore, by equipment identification information identification AKU literary composition
Part, it is also possible to reducing because using incompatible AKU file to carry out the upgrading failure caused of upgrading, entering
One step improves the success rate of upgraded in offline.
Optionally, in above-described embodiment, equipment identification information includes unit type (such as product character string)
With logical identifier (such as ID character string).The unit type that AKU file comprises is identical, indicates that this liter
The equipment identification information that level APMB package comprises is compatible with the equipment identification information of smart machine, therefore, and equipment
Identification information can also only include unit type.
With the concrete intelligence equipment using Android system, as a example by AKU file is compressed file, can
So that the metadata file under the META-INF/com/android/ path from AKU file to obtain
Product character string and ID character string, it is also possible to from the system/build.prop file of AKU file
Obtain product character string and ID character string.
If only judging whether coupling according to product character string, the product character obtained from file
Go here and there identical with the product character string of smart machine, represent equipment identification information and the smart machine of this document
Equipment identification information compatible.If judging whether coupling according to product character string and ID character string,
The product character string obtained from file is identical with the product character string of smart machine, and from file
The ID character string of middle acquisition identical with the ID character string of smart machine or with the ID of compatible equipment recorded
Character string is identical, represents that the equipment identification information of this document is compatible with the equipment identification information of smart machine.
Optionally, the implementation of above-mentioned steps 110 has multiple, and two of which implementation is set forth below.
The first of above-mentioned steps 110 is achieved in that: by judging successively in the memory space specified
Whether file is the mode of the AKU file mated with smart machine, searches the liter mated with smart machine
Level APMB package.
Wherein, judge whether the file in the memory space specified is the upgrading mated with smart machine successively
The mode of APMB package refers to, according to a definite sequence, directly carries out each file in designated memory space
Following judgement: judge whether this document is the AKU file mated with smart machine, judges this document
After, then judge whether next file is the AKU file mated with smart machine.
In the present embodiment, due to by once judging i.e. to can get as a result, it is possible to increase treatment effeciency.
The second of above-mentioned steps 110 is achieved in that: by presetting meeting in the memory space specified
The file of condition determines whether the mode of the AKU file mated with smart machine, searches and sets with intelligence
The AKU file of standby coupling.
Wherein, pre-conditioned can be to preset byte, preset format, predetermined directory etc., and different presets
Condition correspond to different implementations, and the implementation of several different pre-conditioned correspondence is set forth below.
Optionally, if above-mentioned pre-conditioned be preset byte, the second realization side of above-mentioned steps 110
Formula is specifically: the memory space storage specified more than the file presetting byte in, search and set with intelligence
The AKU file of standby coupling.
Wherein, the value presetting byte can be arranged according to practical situation.Such as, the upgrading of smart machine
Bag is certainly more than in the case of 150M, and the value arranging default byte is 150M.
In the embodiment of the present invention, only to the upgrading carrying out mating with smart machine more than the file presetting byte
The lookup of APMB package, no longer makes a look up other file, improves treatment effeciency.
Concrete, one is achieved in that: search big from the All Files of the memory space storage specified
File in default byte;From the file more than default byte found, search and smart machine
The AKU file joined.Another kind is achieved in that: in a predetermined sequence, successively to the storage specified
Each file in the All Files of space storage makes the following judgment: judge that the size of this document is the biggest
In default byte, if it is, continue to judge whether this document is the AKU literary composition mated with smart machine
Part.
Optionally, if above-mentioned pre-conditioned be preset format, the second realization side of above-mentioned steps 110
Formula is specifically: in the file meeting preset format of the memory space storage specified, searches and sets with intelligence
The AKU file of standby coupling.
Wherein, preset format is the form of AKU file of smart machine of regulation.For example, it is possible to set
Putting preset format is zip form, etc..
In the embodiment of the present invention, only the file meeting preset format is carried out the upgrading mated with smart machine
The lookup of APMB package, no longer makes a look up the file of other form, improves treatment effeciency.
Concrete, one is achieved in that: search full from the All Files of the memory space storage specified
The file of foot preset format;From the file meeting preset format found, search and smart machine
The AKU file joined.Another kind is achieved in that: in a predetermined sequence, successively to the storage specified
Each file in the All Files of space storage makes the following judgment: whether the form judging this document is
Preset format, if it is, continue to judge whether this document is the AKU file mated with smart machine.
Optionally, except can the All Files from the memory space specified be searched and smart machine
The AKU file of coupling, it is also possible in the file under the partial list of the memory space specified, searches
The AKU file mated with smart machine.If above-mentioned pre-conditioned be predetermined directory, accordingly, on
State the second implementation of step 110 specifically: only in the root file of the memory space specified,
Search the AKU file mated with smart machine.Or, the second implementation of above-mentioned steps 110
Specifically: only in the first class catalogue of the memory space specified and the file of second-level directory, search and intelligence
The AKU file of equipment coupling.
Wherein, first class catalogue is the catalogue of root or specified path, and second-level directory is first class catalogue
Subdirectory.First class catalogue is the parent directory of second-level directory.
As a example by root, it is assumed that have 10 files and 3 files under root, then, these are 10 years old
Individual file is root file, and these 3 files are the second-level directory of root.These 3 files
File in folder not root file.
In the embodiment of the present invention, looking into of the AKU file only carrying out at partial list mating with smart machine
Look for, no longer other subdirectory is made a look up, improve treatment effeciency.
In the All Files of the memory space specified, either search the AKU literary composition mated with smart machine
Part, or in the file under partial list, search the AKU file mated with smart machine, it is concrete,
The upgrading mated with smart machine can be made a look up successively under each catalogue according to the directory order specified
APMB package.Such as, the AKU mated with smart machine according to the sequential search of first subdirectory parent directory again
File, it is also possible to according to first parent directory, then the AKU that the sequential search of subdirectory mates with smart machine
File.
Each embodiment that the second implementation of above-mentioned steps 110 is corresponding can coordinate enforcement.With only
Illustrate as a example by root and its subdirectory make a look up the AKU file mated with smart machine.
First in the All Files under root, in a predetermined sequence, successively each file is sentenced as follows
Disconnected: to judge whether the size of this document is more than and preset byte, if it does, continue to judge the lattice of this document
Whether formula meets preset format, if it is, continue to judge whether this document preserves equipment identification information,
If it has, then continue to judge the equipment identification information of this document whether with the equipment identification information of smart machine
Compatible.After All Files under root has all judged, in a predetermined sequence, successively to root mesh
The All Files in each subdirectory under Lu judges, to the judgment mode of each file with aforementioned
Judgment mode in catalogue is identical.
It should be pointed out that, corresponding each of the above the second implementation being merely illustrative of step 110
The embodiment of individual lookup AKU file coordinates the mode implemented, and non-limiting.
Optionally, in above-mentioned any embodiment, search and smart machine in the memory space specified
After the AKU file joined, utilize an AKU literary composition in the AKU file mated with smart machine
Before part carries out upgraded in offline, from the AKU file mated with smart machine, also obtain AKU file
Version information, this version information at least includes version number.It is, of course, also possible to include version date issued,
Version name etc..
As a example by the concrete intelligence equipment using Android system, can be from AKU file
System/build.prop file obtains the version number of AKU file, version date issued and version name
Etc..
After the version information obtaining AKU file, accordingly, the one side of implementing of step 120
Formula may is that the AKU utilizing a version number in the AKU file mated with smart machine the highest
File carries out upgraded in offline.
The second implementation of step 120 may is that the liter mated with smart machine that display finds
The version information of level APMB package, selects for user;Utilize in the AKU file mated with smart machine
The AKU file that user selects carries out upgraded in offline.
Concrete, the version information obtained from the AKU file of each coupling is converted into a user
Discernible information shows at display interface, selects for user;When wherein an information is selected,
AKU file corresponding to this selected information is the AKU file that user selects.
For example, it is possible to the information of display is " being upgraded to * * * version ".
Optionally, in above-described embodiment, when the display interface display discernible information of user, can be by
According to version Time alignment.
If it addition, in the AKU file mated with smart machine found, having version information identical
AKU file, then deduplication operation can be carried out, to avoid showing repetition version on display interface
This AKU file.Concrete, in order to save display space, simplify display, can before display,
The AKU file version information of the repetition found is deleted, the version information after duplicate removal is shown,
Select for user.
It should be pointed out that, in each embodiment above-mentioned, it is intended that memory space can be that external storage sets
Standby, such as USB flash disk, portable hard drive etc., it is also possible to be the memory space within smart machine.
Below as a example by this smart machine upgraded in offline of Intelligent set top box, this smart machine uses peace
Tall and erect system, is carried out in further detail the upgraded in offline method of a kind of smart machine that the embodiment of the present invention provides
Ground explanation, its specific implementation is as follows:
Receive the upgraded in offline instruction of user, from the root of the portable hard drive being connected with Intelligent set top box
All Files is searched the AKU file mated with Intelligent set top box, after having searched root, from root mesh
The All Files of each subdirectory of record is searched the AKU file mated with Intelligent set top box.Search
During, either to each file in root or its subdirectory, according to default order, depend on
Secondary each file is judged according to step shown in Fig. 2:
Step 210: judge whether the size of this document is more than 150M, if it is, perform step 220,
Otherwise, the process to this document is abandoned.
Step 220: judge that whether the form of this document is the file of zip form, if it is, perform step
230, otherwise, abandon the process to this document.
In the present embodiment, the form of the AKU file of the regulation of Intelligent set top box is zip form.
Step 230: judge whether this document preserves product character string and ID character string, if it is,
Perform step 240, otherwise, abandon the process to this document.
Step 240: judge the product character string of product character string and the Intelligent set top box obtained, ID
The ID character string of the compatible Intelligent set top box of character string and the ID character string of Intelligent set top box or record,
The most identical, if identical, represent the equipment identification information of this document and the device identification of Intelligent set top box
Information is compatible, then this document is the AKU file mated with Intelligent set top box, performs step 250, no
Then, the process to this document is abandoned.
Step 250: record the relevant information of this AKU file.
Concrete, record the version information of this AKU file, it is also possible to record depositing of this AKU file
Storage address.
In the present embodiment, only search the side of the AKU file mated with smart machine with above-mentioned one of which
Formula is illustrated, but is not limited to this kind of implementation.
Obtain 3 AKU files mated with Intelligent set top box according to above-mentioned steps, and from each with
The build.prop file of the AKU file of Intelligent set top box coupling obtains the version of each AKU file
This information, the version information of AKU file all differs, and the version information of each AKU file is as follows:
0617 (version date issued), 5.0.144T (version number), HongKong version (version name), 0617,
5.0.144T, FULL, 0616,5.0.144T, FULL.These version informations are converted into following user
Discernible information shows: is upgraded to 5.0.144T on June 17 (HongKong version), is upgraded to June 17
Day 5.0.144T (global function version), it is upgraded to 5.0.144T on June 16 (global function version).Such as Fig. 3
Shown in, display interface selects for user according to these version informations of version time showing.
When wherein an information is selected, utilize the upgrading mated with Intelligent set top box that this user selects
Bag carries out upgraded in offline.If have recorded the storage address of this AKU file, then according to this storage address
Obtain corresponding AKU file and carry out upgraded in offline.
Based on same inventive concept, as shown in Figure 4, the embodiment of the present invention provides a kind of smart machine
Upgraded in offline device, including AKU ff module 401 and upgraded in offline module 402.
AKU ff module 401, is used for: when needing that smart machine is carried out upgraded in offline,
The memory space specified is searched the AKU file mated with smart machine, the liter mated with smart machine
Level APMB package refers to the AKU that the equipment identification information of equipment identification information and the smart machine comprised is compatible
File;
Upgraded in offline module 402, is used for: utilize in the AKU file mated with smart machine
AKU file carries out upgraded in offline.
In the embodiment of the present invention, owing to upgraded in offline module 402 carries out the AKU file of upgraded in offline it is
The AKU file mated with smart machine that AKU ff module 401 is obtained by lookup, with
The AKU file of smart machine coupling refers to the device identification of equipment identification information and the smart machine comprised
The AKU file that information is compatible.It is to say, in the embodiment of the present invention, be by the equipment in file
Identification information identifies AKU file, it is not necessary to the name of user's manual modification AKU file is also deposited
It is placed on assigned catalogue, it is to avoid the upgrading failure that user misoperation causes.If it addition, setting in file
Standby identification information is compatible with the equipment identification information of smart machine, shows this AKU file and smart machine
Compatible.Therefore, by equipment identification information identification AKU file, it is also possible to reduce because using and not holding concurrently
The AKU file held is carried out upgrading the upgrading failure caused, improve further upgraded in offline module 402 from
The success rate of line upgrading.
Optionally, in above-described embodiment, equipment identification information includes unit type (such as product character string)
With logical identifier (such as ID character string).The unit type that AKU file comprises is identical, indicates that this liter
The equipment identification information that level APMB package comprises is compatible with the equipment identification information of smart machine, therefore, and equipment
Identification information can also only include unit type.
With the concrete intelligence equipment using Android system, as a example by AKU file is compressed file, rise
Level APMB package is searched module 401 and be may be used for the META-INF/com/android/ from AKU file
Metadata file under path obtains product character string and ID character string, it is also possible to from upgrading
The system/build.prop file of APMB package obtains product character string and ID character string.
If only judging whether coupling according to product character string, the product character obtained from file
Go here and there identical with the product character string of smart machine, represent equipment identification information and the smart machine of this document
Equipment identification information compatible.If judging whether coupling according to product character string and ID character string,
The product character string obtained from file is identical with the product character string of smart machine, and from file
The ID character string of middle acquisition identical with the ID character string of smart machine or with the ID of compatible equipment recorded
Character string is identical, represents that the equipment identification information of this document is compatible with the equipment identification information of smart machine.
Optionally, the implementation of AKU ff module 401 has multiple, is set forth below wherein two
Plant implementation.
Optionally, in the first implementation of AKU ff module 401, AKU file is looked into
Look for module 401, specifically for: by judging that whether file in the memory space specified is and intelligence successively
The mode of the AKU file of energy equipment coupling, searches the AKU file mated with smart machine.
Wherein, judge whether the file in the memory space specified is the upgrading mated with smart machine successively
The mode of APMB package refers to, according to a definite sequence, directly carries out each file in designated memory space
Following judgement: judge whether this document is the AKU file mated with smart machine, judges this document
After, then judge whether next file is the AKU file mated with smart machine.
In the present embodiment, due to by once judging i.e. to can get as a result, it is possible to increase treatment effeciency.
Optionally, in the second implementation of AKU ff module 401, AKU file is looked into
Look for module 401 specifically for: by the memory space specified meets pre-conditioned file judging being
No is the mode of the AKU file mated with smart machine, searches the AKU mated with smart machine civilian
Part.
Wherein, pre-conditioned can be to preset byte, preset format, predetermined directory etc., and different presets
Condition correspond to different implementations, and the implementation of several different pre-conditioned correspondence is set forth below.
Optionally, if above-mentioned pre-conditioned be preset byte, optionally, AKU ff module
In the second implementation of 401, AKU ff module 401, specifically for:
In the file more than default byte of the memory space storage specified, search and mate with smart machine
AKU file.
Wherein, the value presetting byte can be arranged according to practical situation.Such as, the upgrading of smart machine
Bag is certainly more than in the case of 150M, and the value arranging default byte is 150M.
In the embodiment of the present invention, AKU ff module 401 is only entered more than the file presetting byte
The lookup of the AKU file that row mates with smart machine, no longer makes a look up other file, improves
Treatment effeciency.
Concrete, AKU ff module 401 is used for: from owning of the memory space storage specified
File is searched more than the file presetting byte;From the file more than default byte found, search
The AKU file mated with smart machine.Or, AKU ff module 401 is used for: according to
Predetermined order, carries out as follows to each file in the All Files of the memory space storage specified successively
Judge: judge whether the size of this document is more than and preset byte, if it is greater, then continue to judge this document
Whether it is the AKU file mated with smart machine.
Optionally, if above-mentioned pre-conditioned be preset format, the of AKU ff module 401
In two kinds of implementations, AKU ff module 401, specifically for:
In the file meeting preset format of the memory space storage specified, search and mate with smart machine
AKU file.
Wherein, preset format is the form of AKU file of smart machine of regulation.For example, it is possible to set
Putting preset format is zip form, etc..
In the embodiment of the present invention, the file meeting preset format is only entered by AKU ff module 401
The lookup of the AKU file that row mates with smart machine, no longer makes a look up the file of other form,
Improve treatment effeciency.
Concrete, AKU ff module 401 is used for: from owning of the memory space storage specified
File is searched the file meeting preset format;From the file meeting preset format found, search
The AKU file mated with smart machine.Or, AKU ff module 401 is used for: according to
Predetermined order, carries out as follows to each file in the All Files of the memory space storage specified successively
Judge: whether the form judging this document is preset format, if it is, whether continuation judges this document
For the AKU file mated with smart machine.
Optionally, AKU ff module 401 is except can all from the memory space specified
In file, search the AKU file mated with smart machine, it is also possible in the portion of the memory space specified
In file under sectional lists, search the AKU file mated with smart machine.If it is above-mentioned pre-conditioned
It is predetermined directory, accordingly, in the second implementation of AKU ff module 401, upgrading
APMB package searches module 401, specifically for: only in the root file of the memory space specified, look into
Look for the AKU file mated with smart machine.Or, the second of AKU ff module 401
In implementation, AKU ff module 401, specifically for: only at the memory space specified
In the file of first class catalogue and second-level directory, search the AKU file mated with smart machine.
Wherein, primary target is the catalogue of root or specified path, and Secondary objective is first class catalogue
Subdirectory.First class catalogue is the parent directory of second-level directory.
As a example by root, it is assumed that have 10 files and 3 files under root, then, these are 10 years old
Individual file is root file, and these 3 files are the second-level directory of root.These 3 files
File in folder not root file.
In the embodiment of the present invention, AKU ff module 401 only carries out setting with intelligence at partial list
The lookup of the AKU file of standby coupling, no longer makes a look up other subdirectory, improves treatment effeciency.
In the All Files of the memory space specified, either search the AKU literary composition mated with smart machine
Part, or in the file under partial list, search the AKU file mated with smart machine, it is concrete,
The upgrading mated with smart machine can be made a look up successively under each catalogue according to the directory order specified
APMB package.Such as, the AKU mated with smart machine according to the sequential search of first subdirectory parent directory again
File, it is also possible to according to first parent directory, then the AKU that the sequential search of subdirectory mates with smart machine
File.
Each lookup upgrading corresponding in the second implementation of above-mentioned AKU ff module 401
The embodiment of APMB package can coordinate enforcement.Set with intelligence only to make a look up at root and its subdirectory
Illustrate as a example by the AKU file of standby coupling.AKU ff module 401 is first under root
All Files in, in a predetermined sequence, successively each file is made the following judgment: judge this article
Whether the size of part is more than presetting byte, if it does, continue to judge whether the form of this document meets pre-
If form, if it is, continue to judge whether this document preserves equipment identification information, if it has, then
Continue to judge that the equipment identification information of this document is the most compatible with the equipment identification information of smart machine.Root mesh
After All Files under Lu has all judged, in a predetermined sequence, each under root successively
All Files in subdirectory judges, to the judgment mode of each file and sentencing in aforementioned root
Disconnected mode is identical.
It is merely illustrative of the second of AKU ff module 401 in fact it should be pointed out that, above
Each embodiment searching AKU file corresponding in existing mode coordinates the mode implemented, and non-limiting.
Optionally, in each embodiment above-mentioned, as it is shown in figure 5, also include version information acquisition module 403,
For: file packet file is searched module and is searched the upgrading mated with smart machine in the memory space specified
After APMB package, upgraded in offline module 402 utilizes the AKU file mated with smart machine to carry out
Before upgraded in offline, from the AKU file mated with smart machine, obtain the version letter of AKU file
Breath, version information at least includes version number.It is, of course, also possible to include version date issued, version name
Etc..
As a example by the concrete intelligence equipment using Android system, can be from AKU file
System/build.prop file obtains the version number of AKU file, version date issued and version name
Etc..
Accordingly, upgraded in offline module 402, specifically for:
The AKU file utilizing a version number in the AKU file mated with smart machine the highest enters
Row upgraded in offline.
Or, upgraded in offline module 402, specifically for: what display found mates with smart machine
The version information of AKU file, selects for user;Utilize the AKU file mated with smart machine
The AKU file that middle user selects carries out upgraded in offline.
Concrete, upgraded in offline module 402 is used for: by obtain from the AKU file of each coupling
Version information is converted into the discernible information of user and shows at display interface, selects for user;When
When wherein an information is selected, AKU file corresponding to this selected information is what user selected
AKU file.
For example, it is possible to the information of display is " being upgraded to * * * version ".
Optionally, in above-described embodiment, when the display interface display discernible information of user, can be by
According to version Time alignment.
If it addition, in the AKU file mated with smart machine found, having version information identical
AKU file, then deduplication operation can be carried out, to avoid showing repetition version on display interface
This AKU file.Concrete, in order to save display space, simplify display, can before display,
The AKU file version information of the repetition found is deleted, the version information after duplicate removal is shown,
Select for user.
It should be pointed out that, in each embodiment above-mentioned, it is intended that memory space can be that external storage sets
Standby, such as USB flash disk, portable hard drive etc., it is also possible to be the memory space within smart machine.
Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit can be or may not be physically separate, the parts shown as unit can be or
Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network
On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment
The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible
Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality
The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly
Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words
Dividing and can embody with the form of software product, this computer software product can be stored in computer can
Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one
Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented
The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it
Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area
Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or
Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill
The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (12)
1. the upgraded in offline method of a smart machine, it is characterised in that including:
When needing that smart machine is carried out upgraded in offline, search and described intelligence in the memory space specified
The AKU file of equipment coupling, the AKU file mated with described smart machine refers to the equipment comprised
The AKU file that identification information is compatible with the equipment identification information of described smart machine;
An AKU file in the AKU file mated with described smart machine is utilized to carry out off-line liter
Level.
Method the most according to claim 1, it is characterised in that equipment identification information includes equipment type
Number and logical identifier;Or, equipment identification information includes unit type.
Method the most according to claim 1 and 2, it is characterised in that described empty in the storage specified
The AKU file mated with described smart machine is searched between, including:
Whether it is the liter mated with described smart machine by judging the file in the memory space specified successively
The mode of level APMB package, searches the AKU file mated with described smart machine.
Method the most according to claim 1 and 2, it is characterised in that described empty in the storage specified
The AKU file mated with described smart machine is searched between, including:
In the file more than default byte of the memory space storage specified, search and described smart machine
The AKU file of coupling.
Method the most according to claim 1 and 2, it is characterised in that described empty in the storage specified
The AKU file mated with described smart machine is searched between, including:
In the root file of the memory space specified, search the AKU mated with described smart machine
File.
Method the most according to claim 1 and 2, it is characterised in that in the memory space specified
After searching the AKU file mated with described smart machine, utilize the liter mated with described smart machine
Before an AKU file in level APMB package carries out upgraded in offline, the method also includes: from described
Obtaining the version information of AKU file in the AKU file of smart machine coupling, described version information is extremely
Include version number less;
An AKU file in the AKU file mated with described smart machine is utilized to carry out off-line liter
Level, including:
The AKU file that in the AKU file mated with described smart machine, version number is the highest is utilized to carry out
Upgraded in offline;Or,
The version information of the AKU file mated with described smart machine that display finds, for user
Select;The AKU file that in the AKU file mated with described smart machine, user selects is utilized to carry out
Upgraded in offline.
7. the upgraded in offline device of a smart machine, it is characterised in that including:
AKU ff module, is used for: when needing that smart machine is carried out upgraded in offline, is specifying
Memory space in search the AKU file that mates with described smart machine, mate with described smart machine
AKU file refer to that the equipment identification information of equipment identification information and the described smart machine comprised is compatible
AKU file;
Upgraded in offline module, is used for: utilize in the AKU file mated with described smart machine
AKU file carries out upgraded in offline.
Device the most according to claim 7, it is characterised in that equipment identification information includes equipment type
Number and logical identifier;Or, equipment identification information includes unit type.
9. according to the device described in claim 7 or 8, it is characterised in that described AKU ff
Module, specifically for:
Whether it is the liter mated with described smart machine by judging the file in the memory space specified successively
The mode of level APMB package, searches the AKU file mated with described smart machine.
10. according to the device described in claim 7 or 8, it is characterised in that described AKU file is looked into
Look for module, specifically for:
In the file more than default byte of the memory space storage specified, search and described smart machine
The AKU file of coupling.
11. according to the device described in claim 7 or 8, it is characterised in that described AKU searches mould
Block, specifically for:
In the root file of the memory space specified, search the AKU mated with described smart machine
File.
12. according to the device described in claim 7 or 8, it is characterised in that also include that version information obtains
Delivery block, is used for: described file bag lookup module is searched in the memory space specified and set with described intelligence
After the AKU file of standby coupling, described upgraded in offline module utilizes mated with described smart machine
Before individual AKU file carries out upgraded in offline, obtain from the AKU file mated with described smart machine
Taking the version information of AKU file, described version information at least includes version number;
Described upgraded in offline module, specifically for:
Utilize the AKU literary composition that a version number in the AKU file mated with described smart machine is the highest
Part carries out upgraded in offline;Or,
The version information of the AKU file mated with described smart machine that display finds, for user
Select;The AKU file that in the AKU file mated with described smart machine, user selects is utilized to carry out
Upgraded in offline.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510476863.0A CN105893068A (en) | 2015-08-06 | 2015-08-06 | Offline upgrading method and device of intelligent equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510476863.0A CN105893068A (en) | 2015-08-06 | 2015-08-06 | Offline upgrading method and device of intelligent equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105893068A true CN105893068A (en) | 2016-08-24 |
Family
ID=57002785
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510476863.0A Pending CN105893068A (en) | 2015-08-06 | 2015-08-06 | Offline upgrading method and device of intelligent equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105893068A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106959870A (en) * | 2017-02-20 | 2017-07-18 | 北京数字联盟网络科技有限公司 | Nginx dynamic module loading method and device |
CN107193584A (en) * | 2017-04-10 | 2017-09-22 | 广州视源电子科技股份有限公司 | Software upgrading method and device |
CN110377317A (en) * | 2019-07-25 | 2019-10-25 | 新奥(中国)燃气投资有限公司 | A kind of gateway upgrade method and device |
CN110740154A (en) * | 2018-07-20 | 2020-01-31 | 视联动力信息技术股份有限公司 | streaming media service upgrading method, device and equipment |
CN110769057A (en) * | 2019-10-25 | 2020-02-07 | 广东博智林机器人有限公司 | Automatic upgrading method, device and system based on cascade system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101183312A (en) * | 2007-12-12 | 2008-05-21 | 中兴通讯股份有限公司 | Method for realizing version upgrade and backup of terminal by switch-in USB memory apparatus |
CN103488516A (en) * | 2013-10-15 | 2014-01-01 | 乐视致新电子科技(天津)有限公司 | System repair method and electronic equipment |
CN103997684A (en) * | 2014-05-13 | 2014-08-20 | 深圳创维数字技术股份有限公司 | Method and device for updating operating system |
-
2015
- 2015-08-06 CN CN201510476863.0A patent/CN105893068A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101183312A (en) * | 2007-12-12 | 2008-05-21 | 中兴通讯股份有限公司 | Method for realizing version upgrade and backup of terminal by switch-in USB memory apparatus |
CN103488516A (en) * | 2013-10-15 | 2014-01-01 | 乐视致新电子科技(天津)有限公司 | System repair method and electronic equipment |
CN103997684A (en) * | 2014-05-13 | 2014-08-20 | 深圳创维数字技术股份有限公司 | Method and device for updating operating system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106959870A (en) * | 2017-02-20 | 2017-07-18 | 北京数字联盟网络科技有限公司 | Nginx dynamic module loading method and device |
CN107193584A (en) * | 2017-04-10 | 2017-09-22 | 广州视源电子科技股份有限公司 | Software upgrading method and device |
CN110740154A (en) * | 2018-07-20 | 2020-01-31 | 视联动力信息技术股份有限公司 | streaming media service upgrading method, device and equipment |
CN110377317A (en) * | 2019-07-25 | 2019-10-25 | 新奥(中国)燃气投资有限公司 | A kind of gateway upgrade method and device |
CN110769057A (en) * | 2019-10-25 | 2020-02-07 | 广东博智林机器人有限公司 | Automatic upgrading method, device and system based on cascade system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105893068A (en) | Offline upgrading method and device of intelligent equipment | |
CN102707990B (en) | Container based processing method and device | |
CN102214109B (en) | Method and device for loading plug-ins | |
CN102279749B (en) | Method and equipment for merging codes | |
CN103473296A (en) | Recycle bin mechanism and recycle bin system applicable to cloud computing | |
CN103473076A (en) | Issuing method and issuing system for code version | |
CN105956123A (en) | Local updating software-based data processing method and apparatus | |
CN102567053A (en) | Method and device for downgrading software version | |
CN104199750A (en) | File recovery method and device of linux system | |
CN104376073A (en) | Database recovery method and device | |
CN101082930A (en) | Apparatus and method for storing and managing data | |
WO2010104568A1 (en) | Method and system for updating images in an image database | |
CN103246549B (en) | A kind of method and system of data conversion storage | |
CN102393848B (en) | Method and system for acquiring identification information of data terminal equipment | |
CN107111460A (en) | Use the data de-duplication of block file | |
CN103688257A (en) | Method and device for managing metadata | |
CN102726002A (en) | Data configuration, and back off method and device for data configuration | |
CN109101599A (en) | A kind of increment index update method and system | |
CN104915462A (en) | File management method and system | |
CN106802928B (en) | Power grid historical data management method and system | |
CN109062515B (en) | Disk management method, system and related components | |
CN112202909B (en) | Online upgrading method and system for computer storage system | |
CN106446133A (en) | Method and device for simultaneous butt joint of two databases | |
CN105786939A (en) | Memory database optimization method and apparatus | |
CN110673849B (en) | Method and device for presetting file security contexts in batches |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160824 |
|
WD01 | Invention patent application deemed withdrawn after publication |