CN109976794A - Update method, more new system and electronic equipment - Google Patents

Update method, more new system and electronic equipment Download PDF

Info

Publication number
CN109976794A
CN109976794A CN201910254417.3A CN201910254417A CN109976794A CN 109976794 A CN109976794 A CN 109976794A CN 201910254417 A CN201910254417 A CN 201910254417A CN 109976794 A CN109976794 A CN 109976794A
Authority
CN
China
Prior art keywords
file
update
target
content information
attribute information
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.)
Granted
Application number
CN201910254417.3A
Other languages
Chinese (zh)
Other versions
CN109976794B (en
Inventor
闫磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910254417.3A priority Critical patent/CN109976794B/en
Publication of CN109976794A publication Critical patent/CN109976794A/en
Application granted granted Critical
Publication of CN109976794B publication Critical patent/CN109976794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

This application discloses a kind of update method, more new system and electronic equipments, when technical scheme carries out file update, obtain the target update file including attribute information and content information, based on the target update file, after being at least updated to the content information of the operating file of target application, the operating file is obtained, to start the target application, so as to realize effective update of file in electronic equipment.

Description

Update method, more new system and electronic equipment
Technical field
This application involves technical field of electronic equipment, more specifically, being related to a kind of update method, more new system and electricity Sub- equipment.
Background technique
With being constantly progressive for science and technology, miscellaneous electronic equipment is widely used in daily life And in work, huge convenience is brought for daily life and work, it is indispensable to become current people Important tool.
In order to facilitate the use of the user, electronic equipment needs to carry out file update.How file in a kind of electronic equipment is provided It is effective update be one urgent problem to be solved of technical field of electronic equipment.
Summary of the invention
In view of this, technical scheme provides a kind of update method, more new system and electronic equipment, Ke Yishi Effective update of file in existing electronic equipment.
To achieve the goals above, this application provides following technical solutions:
A kind of update method, comprising:
Target update file is obtained, the target update file includes attribute information and content information;
Based on the target update file, at least the content information of the operating file of target application is updated;
The operating file is obtained, to start the target application.
Preferably, described to be based on the target update file in above-mentioned update method, at least to the operation of target application The content information of file is updated, comprising:
According to the target update file, the attribute information and content information of the operating file are updated.
Preferably, in above-mentioned update method, the acquisition operating file, to start the target application, comprising:
If the content information of the operating file can not be obtained, the attribute letter based on the pre-stored operating file Breath restores the attribute information before the operating file updates, and keeps the updated content information of operating file.
Preferably, in above-mentioned update method, the target update file includes multiple target update subfiles, the fortune Part of composing a piece of writing includes multiple operation subfiles;
Wherein, described to restore the attribute information before the operating file updates, including following manner at least one:
Restore the attribute information before all operation subfiles update;
Or, restoring the attribute information before all operation subfiles for not obtaining content information update;
Or, restoring currently obtain the attribute information before the operation subfile update of content information.
Preferably, in above-mentioned update method, the target update file includes multiple target update subfiles, the fortune Part of composing a piece of writing includes multiple operation subfiles;
It is wherein, described to restore the attribute information before the operating file updates, comprising:
Only restore the attribute information for the operation subfile that can not currently obtain content information, and cumulative acquisition failure time After number, it is again started up the target application;
If obtaining the frequency of failure is more than given threshold, restore all operation subfiles for not obtaining content information more Attribute information before new.
Preferably, described to be based on the target update file in above-mentioned update method, at least to the operation of target application The content information of file is updated, comprising:
According to the target update file, the content information of the operating file is updated, and keeps the operating file Attribute information is constant.
Preferably, described to be based on the target update file in above-mentioned update method, at least to the operation of target application The content information of file is updated, comprising:
The first renewal model or the second renewal model based on selection, are updated the operating file;
The attribute of the operating file is updated according to the target update file if executing first renewal model Information and content information;
The content of the operating file is updated according to the target update file if executing second renewal model Information, and keep the attribute information of the operating file constant.
Preferably, in above-mentioned update method, further includes:
Show the progress msg for obtaining the operation subfile;
Wherein, the progress msg includes the quantity of all operation subfiles and has obtained the described of content information Run the quantity of subfile;
Or, the progress msg includes the quantity of all operation subfiles and the fortune for not obtaining content information The quantity of row subfile.
Present invention also provides a kind of more new systems, comprising:
Obtaining unit, the first obtains unit include belonging to for obtaining target update file, the target update file Property information and content information;
Updating unit, the updating unit is used to be based on the target update file, at least to the operation text of target application The content information of part is updated;
Processing unit, the processing unit is for obtaining operating file, to start the target application.
Present invention also provides a kind of electronic equipment, comprising:
Memory, the memory are used to store the target update file obtained, and the target update file includes attribute Information and content information;
Controller, the controller is used to be based on the target update file, at least to the operating file of target application Content information is updated, and operating file is obtained, to start the target application.
As can be seen from the above description, in update method provided by the present application, more new system and electronic equipment, file is carried out When update, the target update file including attribute information and content information is obtained, the target update file is based on, at least to mesh After the content information of the operating file of mark application is updated, the operating file is obtained, to start the target application, thus Effective update of file in electronic equipment may be implemented.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only embodiments herein, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to the attached drawing of offer other Attached drawing.
Fig. 1 is a kind of flow diagram for update method that technical scheme provides;
Fig. 2 is the flow diagram of another update method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another update method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another update method provided by the embodiments of the present application;
Fig. 5 is the flow diagram of another update method provided by the embodiments of the present application;
Fig. 6 is the flow diagram of another update method provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of more new system provided by the embodiments of the present application;
Fig. 8 is the structural schematic diagram of another more new system provided by the embodiments of the present application;
Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
With reference to Fig. 1, Fig. 1 is a kind of flow diagram for update method that technical scheme provides, this method comprises:
Step S11: target update file is obtained, the target update file includes attribute information and content information.
Update method described in the embodiment of the present application carries out data update for electronic equipment.Specifically, for being set to electronics Standby operating system or application software is updated.Before executing the update method, need to trigger for file download instructions, This document download instruction is executed, downloads and stores the target update file.After triggering more new command, more new command is executed, To execute the update method, the target update file is obtained, executes and updates operation.
Step S12: it is based on the target update file, at least the content information of the operating file of target application is carried out more Newly.
After obtaining the target update file, based on the renewal model of setting to the operating file of the target application more Newly.Specifically, the instruction for executing file update can be extracted from the target update file, the instruction is executed, with right The operating file of the target application is updated, which includes carrying out to the existing operating file of the target application It updates, or, under the target application catalogue, new operating file is installed.
Wherein, the target application includes aforesaid operations system and/or application software.The application software includes that system is answered With software and nonsystematic application software.
Step S13: obtaining the operating file, to start the target application.
After completing to the update of the operating file of the target application, after executing corresponding enabled instruction, the target is obtained The operating file of application, to start the target application.
In the embodiment of the present application, it is based on the target update file, at least in the operating file of the target application After appearance information is updated, the operating file is obtained, to start the target application, so as to realize the electronic equipment Effective update of middle file.
It is described to be based on the target update file in step S12 in mode shown in Fig. 1, at least to the operation of target application The method that the content information of file is updated can be as shown in step S22 in Fig. 2.
With reference to Fig. 2, Fig. 2 is the flow diagram of another update method provided by the embodiments of the present application, this method comprises:
Step S21: target update file is obtained, the target update file includes attribute information and content information.The step Suddenly identical as step S11 in Fig. 1, details are not described herein.
Step S22: according to the target update file, the attribute information and content information of the operating file are updated.
In the embodiment, when being updated to the operating file of the target application, while the operating file is updated Attribute information and content information.The target update file has scheduled attribute information, in the embodiment, is based on the mesh When mark update file is updated the operating file of the target application, allow the category of the operating file to the target application Property information is once updated.That is, if having updated the attribute of the operating file of the target application in renewal process Information, then the attribute information of the updated operating file be with the corresponding preset attribute information of target update file Different.
After the update of attribute information and content information for completing the operating file of the target application, S23 is entered step, is held Row enabled instruction starts the target application to obtain the operating file.
Step S23: obtaining the operating file, to start the target application.The step is identical as step S13 in Fig. 1, Details are not described herein.
Mode shown in Fig. 2 allows once to update the attribute information of the operating file of the target application, is suitable for Need the update mode of Update attribute information.
In mode shown in Fig. 2, the acquisition operating file can be as walked to start the method for the target application in Fig. 3 Shown in rapid S33.
With reference to Fig. 3, Fig. 3 is the flow diagram of another update method provided by the embodiments of the present application, this method comprises:
Step S31: target update file is obtained, the target update file includes attribute information and content information.
Step S32: according to the target update file, the attribute information and content information of the operating file are updated.
Step S31- step S32 is identical as above-mentioned steps S21- step S22, and details are not described herein.
After the update of attribute information and content information for completing the operating file of the target application, S33 is entered step, is held Row enabled instruction starts the target application to obtain the operating file.
Step S33: if the content information of the operating file can not be obtained, it is based on the pre-stored operating file Attribute information, restore the attribute information before the operating file updates, and keep the updated content letter of the operating file Breath.
In the embodiment of the present application, the attribute information includes but is not limited to: it is whether readable, whether be hide, whether be System file and whether be one in history file or multiple.In the embodiment of the present application, the operating file packet is obtained It includes but is not limited to read the content information of the operating file, at this point, the operating file can not be obtained, indicate the operation The content information of file reads failure, leads to not start the target application.
In mode shown in Fig. 3, before executing step S32, need to obtain and store attribute information before update, before the update Attribute information includes at least the attribute information before all operating files updates to be updated of the target application.In this way, if institute It is errorless to state target update file, then its corresponding described updated content information of operating file is errorless, at this point, if due to more The problem of new attribute information for having updated the operating file in the process, appearance can not obtain the operating file, cause to start The target application can restore the attribute information of the operating file, to overcome the above problem, so that the target application is suitable Benefit starting.At this point, at least the content information of the operating file of target application is updated include: in the operating file extremely Small part operation subfile content information is updated;The attribute information and content information for updating the operating file include: pair It at least partly runs subfile content information in the operating file to be updated, and to needing to carry out content information updating extremely Small part runs subfile and carries out attribute information update.
If the operating file is existing operating file before updating, its attribute information is reverted into the category before updating Property information;If the operating file is the operating file increased newly after updating, its attribute information is reverted to corresponding described The attribute information of target update file.It further includes the category of the target update file which, which needs the close attribute information of the update, Property information.
In mode shown in Fig. 3, operation updates the attribute information of operation subfile.If since there are attribute informations to update mistake Operation subfile accidentally, can be by restoring the attribute information for running subfile, so that the target application can be just Often starting.
In the embodiment of the present application, the target update file includes multiple target update subfiles, the operating file Including multiple operation subfiles;The corresponding updated operation subfile of one target update subfile.It updates Operation subfile afterwards includes: to have operation subfile before updating to be based on updated operation of corresponding target update subfile File, and/or, the operation subfile newly increased under the target application catalogue based on corresponding target update subfile.Belong to Property information update operation subfile include: update before existing operation subfile based on corresponding target update subfile progress It the operation subfile that is formed after update and/or is installed under the catalogue of the target application based on corresponding target update subfile New operation subfile.
It is described to restore the attribute information before the operating file updates, including following manner at least one in above-mentioned steps S33 Kind:
Mode one restores the attribute information before all operation subfiles update.In which, completes the target and answer After being updated with the operating file of program, during the destination application described in one-shot, institute can not be obtained by first appearing When stating operation subfile, just restore the attribute information before all operation subfiles update, when being again started up the target application, It can guarantee that all operation subfiles can successfully obtain.Which only needs an attribute recovery operation and twice starting behaviour Make, so that it may realize successfully starting up for the target application, attribute information that may be present is avoided to update multiple operations of mistake The problem of operating file content information can not be obtained caused by subfile, avoid the target application as caused by the problem without The problem of method starts.Since attribute information updates the operation subfile for leading to not obtain operating file content information for attribute letter Breath updates the operation subfile of mistake.
Mode two restores the attribute information before all operation subfiles for not obtaining content information update.If institute The operating file for stating target application is completed after updating, and there are multiple operation subfiles that attribute information updates, which equally may be used To pass through an attribute recovery operation and start-up operation twice, so that it may realize successfully starting up for the target application, avoiding can Attribute information existing for energy updates asking for the content information that operating file can not be obtained caused by multiple operation subfiles of mistake Topic, avoids the problem that the target application as caused by the problem can not start.And relative to mode one, which is not necessarily to Attribute information recovery is carried out to the operation subfile for having successfully obtained content information, can be retained in having successfully obtained Hold update of the operation subfile attribute information of information in this renewal process.
Mode three restores currently obtain the attribute information before the operation subfile update of content information.The party In formula, during the destination application described in one-shot, after appearance can not obtain the operation subfile, only restore Attribute information before the operation subfile update of content information can not currently be obtained.In which, the number of start-up operation It is identical as the number of operation subfile that attribute information updates mistake.Relative to first two mode, which be may be implemented only Restore the operation subfile that attribute information updates mistake, updates errorless operation subfile without restoring attribute information.Attribute letter It is that attribute information updates errorless operation subfile that breath, which updates the operation subfile for not influencing to obtain operating file content information,.
Sequence based on setting successively obtains the operation subfile of the target application.Multiple start-up operation if necessary, Each start-up operation can be obtained since first operation subfile that the sequence is set according to the sequence one by one The content information of each row subfile.
In the embodiment of the present application, it is preferred that start-up operation for the first time is according to the sequence, first set from the sequence Operation subfile starts, and obtains the content information of each row subfile one by one.It is updated described in mistake if there is attribute information Subfile is run, after executing above-mentioned recovery process, is again started up operation, it, can not from last start-up operation according to the sequence The operation subfile of acquisition starts, and obtains the content information of each row subfile one by one.Which is needing to be implemented multiple starting When operation, the operation subfile for not influencing target application and normally starting is read without repeating, improves the starting of the target application Speed.
In above-mentioned steps S33, the attribute information before the recovery operating file updates can also be such as step in Fig. 4 Shown in S43 and step S44.
With reference to Fig. 4, Fig. 4 is the flow diagram of another update method provided by the embodiments of the present application, this method comprises:
Step S41: target update file is obtained, the target update file includes attribute information and content information.
Step S42: according to the target update file, the attribute information and content information of the operating file are updated.
Step S41- step S42 is identical as above-mentioned steps S31- step S32, and details are not described herein.
Step S43: only restore the attribute information for the operation subfile that can not currently obtain content information, and add up and obtain After obtaining the frequency of failure, it is again started up the target application.
Step S44: if obtaining the frequency of failure is more than given threshold, restore all operations for not obtaining content information Attribute information before subfile update.
The frequency of failure indicates that attribute information updates wrong operation subfile and leads to the number of reboot operation.In this way, If the operation subfile number that attribute information updates mistake is not more than a threshold value of the setting, pass through less start-up operation The success that the target application can be realized in (number of starts is equal to the number that attribute information updates the operation subfile of mistake) is opened It is dynamic;If attribute information updates a threshold value of the operation subfile number more than the setting of mistake, in start-up operation number etc. After the given threshold adds 1, directly restore the attribute letter before all operation subfiles for not obtaining content information update Breath, avoids multiple start-up operation.
Wherein, the given threshold is adjustable.It is any just whole that the given threshold, which can be arranged, in user based on demand Number.The given threshold can be set before executing the update method.
In other embodiments, described to be based on the target update file for the step S12 of mode shown in Fig. 1, at least The method being updated to the content information of the operating file of target application can be as shown in step S52 in Fig. 5.
With reference to Fig. 5, Fig. 5 is the flow diagram of another update method provided by the embodiments of the present application, this method comprises:
Step S51: target update file is obtained, the target update file includes attribute information and content information.The step Suddenly identical as step S11 in Fig. 1, details are not described herein.
Step S52: according to the target update file, the content information of the operating file is updated, and keeps the fortune The attribute information of style of writing part is constant.
Step S53: obtaining the operating file, to start the target application.The step is identical as step S13 in Fig. 1, Details are not described herein.
In mode shown in Fig. 5, the content information of operating file is only updated, does not change its attribute information, this way it is possible to avoid Since there are can not read operating file content information caused by the operating file that attribute information updates mistake in renewal process Problem, so that the target application can be completed to start with one-shot operation.It in which, equally can be set, institute Stating target update file includes multiple target update subfiles, and the operating file includes multiple operation subfiles.In which, The content information of the operating file is updated, and keeping the attribute information of the operating file constant includes: to the operation text Subfile content information is at least partly run in part to be updated, and keeps the attribute information of all operation subfiles constant, with The attribute information of corresponding target update subfile is identical.
In other embodiments, described to be based on the target update file for the step S12 of mode shown in Fig. 1, at least The method being updated to the content information of the operating file of target application can also be as shown in step S62 in Fig. 6.
With reference to Fig. 6, Fig. 6 is the flow diagram of another update method provided by the embodiments of the present application, this method comprises:
Step S61: target update file is obtained, the target update file includes attribute information and content information.The step Suddenly identical as step S11 in Fig. 1, details are not described herein.
Step S62: the first renewal model or the second renewal model based on selection are updated the operating file.
The attribute of the operating file is updated according to the target update file if executing first renewal model Information and content information;The operating file is updated according to the target update file if executing second renewal model Content information, and keep the attribute information of the operating file constant.
In which, for tool there are two types of renewal model, user, which can choose, executes the first renewal model or the second update mould Formula, the selection instruction based on user execute first renewal model or second renewal model.
Step S63: obtaining the operating file, to start the target application.
In real mode shown in Fig. 6, it is updated if executing first renewal model, the update mode of operating file And the starting of the target application can refer to the implementation of attribute information and content information above-mentioned while that update operating file Example, such as the mode with reference to shown in Fig. 2-Fig. 4, details are not described herein.
In real mode shown in Fig. 6, it is updated if executing second renewal model, the update mode of operating file And the starting of the target application can such as refer to Fig. 5 with reference to the embodiment of the above-mentioned content information for only updating operating file Shown mode, details are not described herein.
In herein described each update method embodiment, further includes: show the progress letter for obtaining the operation subfile Breath;Wherein, the progress msg includes the quantity of all operation subfiles and the operation for having obtained content information The quantity of subfile;Or, the progress msg includes the quantity of all operation subfiles and does not obtain content information The quantity of the operation subfile.
Existing electronic device data updates show it is percentage progress bar, and the percentage progress bar is to have updated file Relative to the percentage of all files to be updated, the tempo instructions of the start-up operation after the completion of not file updates.
In the embodiment of the present application, after the completion of showing that file updates, the progress of subfile is run described in start-up operation Information can make the progress that the operation subfile is obtained in user's more intuitive determination target application start-up course Information.
In existing electronic equipment, with smart phone or smart television particle, need to be updated target application, example When being such as updated ROM, inevitably need to be updated system operating file, and system operating file once occurs Problem, will lead to can not upgrade or cannot be started up.For this problem, conventional solution is the md5 for carrying out system file (Message Digest 5) file verification, verification is by just can be carried out upgrading, but which is not avoided that the content of operating file The problem of the correct still escalation process mistake of information, if file content is correct, but attribute information updates mistake and causes to start The problem of document content information can not be obtained in journey, a common factors for the problem occur are the categories of updated operating file Property information errors, content information are errorless.In the embodiment of the present application, a kind of mode is that operating file is only updated in renewal process Content information keeps its attribute information constant, i.e., does not allow to modify the attribute information of operating file, can ask in this way to avoid above-mentioned Topic, another way is permission Update attribute information while more new content information, if operating file has mistake more New attribute information, can be by restoring attribute information to solve the above problems, so that system can normally start, in this way, nothing Not expected exception occurs for renewal process, or distorts system by some rogue softwares by being, once occur to believe due to attribute Breath, which updates mistake, leads to the problem of system can not start occur, based on update method described in the embodiment of the present application, can make be System self-regeneration simultaneously normally starts.
Based on above-mentioned update method embodiment, another embodiment of the application has also proposed a kind of more new system, and the application is implemented The example more new system is for executing above-mentioned update method, and the more new system is as shown in fig. 7, Fig. 7 provides for the embodiment of the present application A kind of more new system structural schematic diagram, which includes: obtaining unit 11, and the first obtains unit 11 is for obtaining Target update file is obtained, the target update file includes attribute information and content information;Updating unit 12, the updating unit 12, for being based on the target update file, are at least updated the content information of the operating file of target application;Processing is single Member 13, the processing unit 13 is for obtaining operating file, to start the target application.
Optionally, the updating unit 12 is used to update the attribute of the operating file according to the target update file Information and content information.At this point, the processing unit 13 is for being based on if the content information of the operating file can not be obtained The attribute information of the pre-stored operating file restores the attribute information before the operating file updates, and described in holding The updated content information of operating file.
The target update file includes multiple target update subfiles, and the operating file includes multiple operation Ziwens Part.
The processing unit 13 restore the attribute information before the operating file updates mode include following manner at least It is a kind of: to restore the attribute information before all operation subfiles update;Or, restoring all fortune for not obtaining content information Attribute information before the update of row subfile;Or, before the operation subfile that recovery can not currently obtain content information updates Attribute information.
Or, the mode that the processing unit 13 restores the attribute information before the operating file updates includes: only to restore to work as Before can not obtain content information the operation subfile attribute information, and it is cumulative obtain the frequency of failure after, be again started up institute State target application;If obtaining the frequency of failure is more than given threshold, restore all operation Ziwens for not obtaining content information Attribute information before part update.It is described to handle but to be also used to instruct the size that the given threshold is arranged based on setting there are also 13. It is any positive integer that the given threshold, which can be arranged, in user based on demand.
Optionally, the updating unit 12 is used to update the content of the operating file according to the target update file Information, and keep the attribute information of the operating file constant.
Optionally, the updating unit 12 is used for the first renewal model or the second renewal model based on selection, to described Operating file is updated;If executing first renewal model, according to the target update file, the operation text is updated The attribute information and content information of part;If executing second renewal model, according to the target update file, described in update The content information of operating file, and keep the attribute information of the operating file constant.
The more new system can with as shown in figure 8, Fig. 8 be another more new system provided by the embodiments of the present application knot Structure schematic diagram, it further includes display unit 14 that the more new system mode basis shown in Fig. 7 is above-mentioned, and the processing unit 13 is also The progress msg of the acquisition operation subfile is shown for controlling the display unit 14;Wherein, the progress msg includes The quantity of all operation subfiles and the quantity for the operation subfile for having obtained content information;Or, the progress Information includes the quantity of all operation subfiles and the quantity for the operation subfile for not obtaining content information.
In the embodiment of the present application, effective update of file in electronic equipment is may be implemented in the more new system, can be to avoid Electronic equipment can not start target application problem caused by updating as operating file.
Based on above-mentioned more new system and update method embodiment, another embodiment of the application has also proposed a kind of electronic equipment, The electronic equipment is as shown in figure 9, Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application, the electronics Equipment includes: memory 21, and the memory 21 is used to store the target update file obtained, and the target update file includes Attribute information and content information;Controller 22, the controller 22 are used to be based on the target update file, at least answer target The content information of operating file is updated, and operating file is obtained, to start the target application.The controller 22 wraps Above-mentioned more new system is included, above-mentioned update method can be executed.The electronic equipment includes but is not limited to smart phone, intelligence electricity Depending on electronic equipments such as, computer and wearable devices.
Optionally, the processor 22 is used to update the attribute letter of the operating file according to the target update file Breath and content information.
Optionally, if the content information of the operating file can not be obtained, the processor 22 is used to be based on to deposit in advance The attribute information of the operating file of storage restores the attribute information before the operating file updates, and keeps the operation text The updated content information of part.
Optionally, the target update file includes multiple target update subfiles, and the operating file includes multiple fortune Row subfile;The processor 22 is used to restore the attribute information before all operation subfiles update;Or, recovery is all not Attribute information before obtaining the operation subfile update of content information;Or, restoring the institute that can not currently obtain content information State the attribute information before operation subfile updates.
Optionally, the processor 22 is used to only restore currently obtain the category of the operation subfile of content information Property information, and it is cumulative obtain the frequency of failure after, be again started up the target application;If obtaining the frequency of failure is more than setting threshold Value restores the attribute information before all operation subfiles for not obtaining content information update.
Optionally, the processor 22 is used to update the content letter of the operating file according to the target update file Breath, and keep the attribute information of the operating file constant.
Optionally, the processor 22 is used for the first renewal model or the second renewal model based on selection, to the fortune Style of writing part is updated;The operating file is updated according to the target update file if executing first renewal model Attribute information and content information;The fortune is updated according to the target update file if executing second renewal model The content information of style of writing part, and keep the attribute information of the operating file constant.
Optionally, the electronic equipment further includes display, and the processor 22 is also used to control the display exhibits Obtain the progress msg of the operation subfile;Wherein, the progress msg include it is all it is described operation subfiles quantity with And the quantity of the operation subfile of content information is obtained;Or, the progress msg includes all operation subfiles Quantity and do not obtain content information the operation subfile quantity.
In the embodiment of the present application, effective update of file in electronic equipment is may be implemented in the more new system, can be to avoid Electronic equipment can not start target application problem caused by updating as operating file.
Each embodiment is described in a progressive manner in present specification, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts in each embodiment may refer to each other.For disclosed in embodiment For more new system and electronic equipment, since it is corresponding with update method disclosed in embodiment, so be described relatively simple, Related place illustrates referring to update method corresponding part.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that article or equipment including a series of elements not only include those elements, but also It including other elements that are not explicitly listed, or further include for this article or the intrinsic element of equipment.Do not having In the case where more limitations, the element that is limited by sentence "including a ...", it is not excluded that in the article including above-mentioned element Or there is also other identical elements in equipment.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of update method, comprising:
Target update file is obtained, the target update file includes attribute information and content information;
Based on the target update file, at least the content information of the operating file of target application is updated;
The operating file is obtained, to start the target application.
2. update method according to claim 1, described to be based on the target update file, at least to the fortune of target application The content information of style of writing part is updated, comprising:
According to the target update file, the attribute information and content information of the operating file are updated.
3. update method according to claim 2, the acquisition operating file, to start the target application, comprising:
If the content information of the operating file can not be obtained, based on the attribute information of the pre-stored operating file, Restore the attribute information before the operating file updates, and keeps the updated content information of operating file.
4. update method according to claim 3, the target update file includes multiple target update subfiles, described Operating file includes multiple operation subfiles;
Wherein, described to restore the attribute information before the operating file updates, including following manner at least one:
Restore the attribute information before all operation subfiles update;
Or, restoring the attribute information before all operation subfiles for not obtaining content information update;
Or, restoring currently obtain the attribute information before the operation subfile update of content information.
5. update method according to claim 3, the target update file includes multiple target update subfiles, described Operating file includes multiple operation subfiles;
It is wherein, described to restore the attribute information before the operating file updates, comprising:
Only restore the attribute information for the operation subfile that can not currently obtain content information, and the cumulative acquisition frequency of failure Afterwards, it is again started up the target application;
If obtaining the frequency of failure is more than given threshold, before restoring all operation subfiles updates for not obtaining content information Attribute information.
6. update method according to claim 1, described to be based on the target update file, at least to the fortune of target application The content information of style of writing part is updated, comprising:
According to the target update file, the content information of the operating file is updated, and keeps the attribute of the operating file Information invariability.
7. update method according to claim 1, described to be based on the target update file, at least to the fortune of target application The content information of style of writing part is updated, comprising:
The first renewal model or the second renewal model based on selection, are updated the operating file;
The attribute information of the operating file is updated according to the target update file if executing first renewal model And content information;
The content information of the operating file is updated according to the target update file if executing second renewal model, And keep the attribute information of the operating file constant.
8. update method according to claim 4 or 5, further includes:
Show the progress msg for obtaining the operation subfile;
Wherein, the progress msg includes the quantity of all operation subfiles and the operation for having obtained content information The quantity of subfile;
Or, the progress msg includes the quantity of all operation subfiles and the operation for not obtaining content information The quantity of file.
9. a kind of more new system, comprising:
Obtaining unit, the first obtains unit include attribute letter for obtaining target update file, the target update file Breath and content information;
Updating unit, the updating unit is used to be based on the target update file, at least to the operating file of target application Content information is updated;
Processing unit, the processing unit is for obtaining operating file, to start the target application.
10. a kind of electronic equipment, comprising:
Memory, the memory are used to store the target update file obtained, and the target update file includes attribute information And content information;
Controller, the controller are used to be based on the target update file, at least content to the operating file of target application Information is updated, and operating file is obtained, to start the target application.
CN201910254417.3A 2019-03-31 2019-03-31 Updating method, updating system and electronic equipment Active CN109976794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910254417.3A CN109976794B (en) 2019-03-31 2019-03-31 Updating method, updating system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910254417.3A CN109976794B (en) 2019-03-31 2019-03-31 Updating method, updating system and electronic equipment

Publications (2)

Publication Number Publication Date
CN109976794A true CN109976794A (en) 2019-07-05
CN109976794B CN109976794B (en) 2021-02-19

Family

ID=67081945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910254417.3A Active CN109976794B (en) 2019-03-31 2019-03-31 Updating method, updating system and electronic equipment

Country Status (1)

Country Link
CN (1) CN109976794B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174217A (en) * 2007-11-22 2008-05-07 上海交通大学 Method for implementing dynamic update of Java program
CN101212267A (en) * 2007-12-21 2008-07-02 北京创毅视讯科技有限公司 FTP service data based method, system, and device for broadcast system
CN101483552A (en) * 2009-02-24 2009-07-15 中兴通讯股份有限公司 Method and system for terminal configuration upgrading
CN102012232A (en) * 2010-11-11 2011-04-13 清华大学 Method for updating map data of vehicle-mounted navigation system
CN104461622A (en) * 2014-11-28 2015-03-25 广州视睿电子科技有限公司 System update method and system update device for intelligent terminal
US20150370845A1 (en) * 2014-06-18 2015-12-24 International Business Machines Corporation Storage device data migration
CN105279005A (en) * 2015-11-30 2016-01-27 北京奇艺世纪科技有限公司 Application software updating method and device
CN105389187A (en) * 2015-11-26 2016-03-09 普华基础软件股份有限公司 System update method
WO2016037314A1 (en) * 2014-09-09 2016-03-17 华为技术有限公司 Software version upgrade method, apparatus and device
CN105912540A (en) * 2015-12-11 2016-08-31 乐视移动智能信息技术(北京)有限公司 Method and device for synchronizing file system
CN106096447A (en) * 2016-06-15 2016-11-09 杭州华三通信技术有限公司 A kind of document protection method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174217A (en) * 2007-11-22 2008-05-07 上海交通大学 Method for implementing dynamic update of Java program
CN101212267A (en) * 2007-12-21 2008-07-02 北京创毅视讯科技有限公司 FTP service data based method, system, and device for broadcast system
CN101483552A (en) * 2009-02-24 2009-07-15 中兴通讯股份有限公司 Method and system for terminal configuration upgrading
CN102012232A (en) * 2010-11-11 2011-04-13 清华大学 Method for updating map data of vehicle-mounted navigation system
US20150370845A1 (en) * 2014-06-18 2015-12-24 International Business Machines Corporation Storage device data migration
WO2016037314A1 (en) * 2014-09-09 2016-03-17 华为技术有限公司 Software version upgrade method, apparatus and device
CN104461622A (en) * 2014-11-28 2015-03-25 广州视睿电子科技有限公司 System update method and system update device for intelligent terminal
CN105389187A (en) * 2015-11-26 2016-03-09 普华基础软件股份有限公司 System update method
CN105279005A (en) * 2015-11-30 2016-01-27 北京奇艺世纪科技有限公司 Application software updating method and device
CN105912540A (en) * 2015-12-11 2016-08-31 乐视移动智能信息技术(北京)有限公司 Method and device for synchronizing file system
CN106096447A (en) * 2016-06-15 2016-11-09 杭州华三通信技术有限公司 A kind of document protection method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
许盛伟 等: "支持文件动态更新的基于属性可搜索加密方案", 《计算机应用研究》 *

Also Published As

Publication number Publication date
CN109976794B (en) 2021-02-19

Similar Documents

Publication Publication Date Title
US9354982B2 (en) Manipulating electronic backups
CN102946599A (en) Method for downloading application programs of mobile terminal and mobile terminal
CN105159718B (en) Firmware upgrade method and device
CN102609328A (en) System difference upgrade method and device and mobile terminal
CN105607972B (en) A kind of method and device repaired extremely
US20090031299A1 (en) Systems and methods for firmware cloning
CN111130962B (en) Automatic configuration method, equipment, system and storage medium for switch
CN106775610A (en) A kind of electronic equipment starts method and a kind of electronic equipment
CN107391188A (en) A kind of method and apparatus for controlling timed task
CN107168813A (en) Task processing method and system
CN104571916A (en) Method and device for executing terminal operating information
CN103997684A (en) Method and device for updating operating system
CN107908737A (en) File declustering control method and device
CN109976794A (en) Update method, more new system and electronic equipment
CN110083493A (en) A kind of embedded system failure self-recovery method, terminal device and storage medium
CN106506163B (en) ROM packet processing method and device
CN105468379B (en) A kind of script file execution method and device
CN110007946A (en) A kind of update method of algorithm model, device, equipment and medium
CN109976814A (en) A kind of method, apparatus that building LCB server and medium
CN111857475B (en) Icon display method and device and electronic equipment
CN113010059B (en) Application icon management method and device and electronic equipment
CN106598687B (en) Script preheating method and device
CN105302425B (en) A kind of processing method and electronic equipment of application
CN114840263A (en) Network card management method, device, equipment and storage medium
CN113176920A (en) Universal RPA element selector management system

Legal Events

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