CN107844306A - Restorative procedure, device, storage medium and the terminal of application program - Google Patents
Restorative procedure, device, storage medium and the terminal of application program Download PDFInfo
- Publication number
- CN107844306A CN107844306A CN201710677088.4A CN201710677088A CN107844306A CN 107844306 A CN107844306 A CN 107844306A CN 201710677088 A CN201710677088 A CN 201710677088A CN 107844306 A CN107844306 A CN 107844306A
- Authority
- CN
- China
- Prior art keywords
- application program
- hotfix
- redaction
- application
- renewal process
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The present invention is applied to communication technical field, there is provided a kind of restorative procedure of application program, device, storage medium and terminal, methods described include:When receiving the enabled instruction of application program, start the application process of the application program, and synchronously register, start the renewal process of the application program;The version number of the application program or MD5 check informations are sent to server by the renewal process;Server is obtained according to the version number or the first download address of MD5 check informations return by the renewal process, the HotFix files of redaction are downloaded according to first download address, and HotFix running environment is initialized, use downloaded HotFix files to repair the application program after the completion of initialization.The embodiment of the present invention realizes that HotFix hot repairs are answered by opening up other process, avoids the running environment that HotFix is initialized in the application process of application program and carries out HotFix reparations, is effectively improved the stability of application program operation.
Description
Technical field
The invention belongs to communication technical field, more particularly to a kind of restorative procedure of application program, device, storage medium and
Terminal.
Background technology
HotFix, also known as hot repair are answered, and refer to the technology of the urgent Bug of dynamic restoring in a manner of patch, and developer is not required to
Again the application program of redaction is issued, user is also without the application program for re-downloading redaction.Prior art be
HotFix running environment is initialized in application process, such as, when application program has APPLICATION objects, application program
APPLICATION objects can be created during startup, and simultaneously in APPLICATION message response function oncreate
In initialize HotFix running environment;When application program does not have APPLICATION objects, then MainActivity can be performed
Logic, and HotFix initialization is placed on during MainActivity establishment.However, when application program is initializing
Generating program collapses when APPLICATION objects, or generating program collapses when MainActivity logics are performed
When bursting, then HotFix initialization can not be performed, HotFix still can not repair the application program that has released online
Crash issue.
The content of the invention
It is existing to solve the embodiments of the invention provide a kind of restorative procedure of application program, device, storage medium and terminal
There is application program asking of can not repairing of HotFix when initializing the collapse of APPLICATION or MainActivity generating programs
Topic.
The embodiments of the invention provide a kind of restorative procedure of application program, the restorative procedure includes:
When receiving the enabled instruction of application program, start the application process of the application program, and synchronously register, open
Move the renewal process of the application program;
The version number of the application program or MD5 check informations are sent to server by the renewal process;
Server is obtained by the renewal process to download according to the first of the version number or the return of MD5 check informations
Address, first download address are the download address of the HotFix files of redaction, are downloaded according to first download address
The HotFix files of redaction, and HotFix running environment is initialized, downloaded HotFix is used after the completion of initialization
File repairs the application program.
Further, the restorative procedure also includes:
Server is obtained by the renewal process to download according to the second of the version number or the return of MD5 check informations
Address, second download address are the download address of the application program installation kit of redaction, and call getRunningTasks
Interface obtains task list, and the task list includes the application process that system is currently running;
The application process that whether there is the application program is inquired about in the task list by the renewal process;
If the application process of the application program is not present in the task list, and the HotFix files can not be repaired
During the application program, the application program for downloading redaction according to second download address by the renewal process is installed
Bag;
After the download is complete, prompt message is exported by the renewal process, to prompt the user whether to install redaction
Application program, and the application program using installation kit installation redaction is instructed according to the confirmation of user.
Further, the restorative procedure also includes:
If the application process of the application program in the task list be present, determine that the application program is in operation
State, prompt message is exported by the renewal process, to prompt the user whether to upgrade to the application program of redaction.
Further, the restorative procedure also includes:
After the application program installation of redaction, start the application program of the redaction;
The token tokens of login account are obtained, the token tokens are sent to server and verified, and are being verified
Pass through the rear application program for logging in the redaction.
The embodiment of the present invention additionally provides a kind of prosthetic device of application program, and the prosthetic device includes:
Starting module, for when receiving the enabled instruction of application program, starting the application process of the application program,
And synchronously register, start the renewal process of the application program;
Sending module, for being sent out the version number of the application program or MD5 check informations by the renewal process
Deliver to server;
Repair module, for obtaining server according to the version number or MD5 check informations by the renewal process
The first download address returned, first download address for the HotFix files of redaction download address, according to described the
One download address downloads the HotFix files of redaction, and initializes HotFix running environment, is used after the completion of initialization
The HotFix files downloaded repair the application program.
Further, the prosthetic device also includes:
Acquisition module, for obtaining server according to the version number or MD5 check informations by the renewal process
The second download address returned, second download address are the download address of the application program installation kit of redaction, and call
GetRunningTasks interfaces obtain task list, and the task list includes the application process that system is currently running;
Enquiry module, for being inquired about by the renewal process in the task list with the presence or absence of the application program
Application process;
Force download module, if the application process for the application program to be not present in the task list, and it is described
When HotFix files can not repair the application program, new edition is downloaded according to second download address by the renewal process
This application program installation kit;
Installation suggestion module, for after the download is complete, prompt message being exported by the renewal process, to prompt user
Whether the application program of redaction is installed, and the application journey of installation kit installation redaction is used according to the confirmation instruction of user
Sequence.
Further, the prosthetic device also includes:
Reminding module is updated, if during for the application process of the application program be present in the task list, determining institute
State application program and be in running status, prompt message is exported by the renewal process, to prompt the user whether to upgrade to new edition
This application program.
Further, the prosthetic device also includes:
Starting module, for after the application program installation of redaction, starting the application program of the redaction;
Login module, for obtaining the token tokens of login account, the token tokens are sent to server and carried out
Verify, and the application program of the redaction is logged in after being verified.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, the journey
Sequence is as the step described in the update method of application program as described above is realized during computing device.
The embodiment of the present invention additionally provides a kind of terminal, including memory, processor and storage are on a memory and can be
The computer program run on processor, following steps are realized during computer program described in the computing device:
When receiving the enabled instruction of application program, start the application process of the application program, and synchronously register, open
Move the renewal process of the application program;
The version number of the application program or MD5 check informations are sent to server by the renewal process;
Server is obtained by the renewal process to download according to the first of the version number or the return of MD5 check informations
Address, first download address are the download address of the HotFix files of redaction, are downloaded according to first download address
The HotFix files of redaction, and HotFix running environment is initialized, downloaded HotFix is used after the completion of initialization
File repairs the application program.
Compared with prior art, the embodiment of the present invention is by when receiving the enabled instruction of application program, described in startup
The application process of application program, and synchronously register, start the renewal process of the application program;Will by the renewal process
The version number of the application program or MD5 check informations are sent to server, to inquire about the HotFix with the presence or absence of redaction
File;If in the presence of, the first download address of server return is obtained by the renewal process, is downloaded according to described first
The HotFix files of redaction are downloaded in address, and initialize HotFix running environment, use and are downloaded after the completion of initialization
HotFix files repair the application program.The embodiment of the present invention realizes HotFix hot repairs by opening up other process
It is multiple, the running environment that HotFix is initialized in the application process of application program is avoided, application program is solved and is initializing
The problem of HotFix can not be repaired when generating program collapses when APPLICATION or MainActivity, effectively improves
The stability of application program operation.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the first implementation process figure of the restorative procedure of application program provided in an embodiment of the present invention;
Fig. 2 is the second implementation process figure of the restorative procedure of application program provided in an embodiment of the present invention;
Fig. 3 is the composition structure chart of the prosthetic device of application program provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of terminal provided in an embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Prior art is in application initialization APPLICATION objects or execution MainActivity logics
Initialization HotFix is waited, generating program collapses when application program is initializing APPLICATION objects, or is holding
When generating program collapses when row MainActivity logics, then application process can not perform HotFix initialization logic,
HotFix still can not repair the crash issue of the application program released online.The embodiment of the present invention is by starting
The renewal process of the application program during application process of the application program, is synchronously registered, starts, i.e., in application program launching
Shi Kaiqi dual-threads, the start-up course of application program is completed by the application process, and by the renewal process by described in
The version number of application program or MD5 check informations are sent to server, newest whether there is to server lookup
HotFix files;If in the presence of, the first download address returned by the renewal process according to server downloads redaction
HotFix files, and initialize HotFix running environment, use downloaded HotFix files to repair after the completion of initialization
The multiple application program.It can be seen that the embodiment of the present invention realizes that HotFix hot repairs are answered by opening up other process, avoid
HotFix running environment is initialized in the application process of application program, solves application program in initialization APPLICATION
Or HotFix the problem of can not repairing when generating program collapses when MainActivity, even if application process is collapsed,
Also the HotFix for not interfering with renewal process is repaired, and is effectively improved the stability of application program operation.The present invention is implemented
Example additionally provides corresponding device, terminal and storage medium, is described in detail individually below.
Fig. 1 shows the first implementation process of the restorative procedure of application program provided in an embodiment of the present invention.
In embodiments of the present invention, the restorative procedure of the application program is applied to terminal, and the terminal sets for client
It is standby, including but not limited to smart mobile phone, tablet personal computer and computer, preferably carry the terminal of android system.User can be with
Installed in the terminal, run Android application programs.
Refering to Fig. 1, the restorative procedure of the application program includes:
In step S101, when receiving the enabled instruction of application program, start the application process of the application program,
And synchronously register, start the renewal process of the application program.
In embodiments of the present invention, user can be inputted by such as touching the application program login interface on terminal desktop
Enabled instruction, terminal starts the application process of the application program when detecting the enabled instruction, and synchronously registers, opens
Move another process, i.e., the renewal process of described application program.Herein, the application process and renewal process are mutually solely
Two vertical processes.Wherein, the application process is used for the startup for completing application program, including:There are APPLICATON objects
When initialize APPLICATION objects, if performing MainActivity logics during without APPLICATION objects.It is described update into
Journey is used for the reparation for completing application program, is the reparation process of the application program.It can be seen that unlike the prior art, this
Inventive embodiments open dual-thread in application program launching, by the startup of application program and repair complete by different processes respectively
Into.
In step s 102, the version number of the application program or MD5 check informations are sent out by the renewal process
Deliver to server.
In embodiments of the present invention, the renewal process can use http agreements or Transmission Control Protocol to apply journey by described
The version number of sequence or MD5 check informations are sent to server, with the HotFix texts to server lookup with the presence or absence of redaction
Part.For the version number of application program, android system is recorded in AndroidManifest.xml configuration files.
All information for being obtained from the configuration file of PackageInfo class wrappers.Therefore, it is possible to use PackageInfo objects
To obtain the version number of application program, including:First, the getPackageManager () sides provided using Context objects
Method obtains PackageManager.Then, PackageInfo objects are obtained by the PackageManager objects.
Herein, PackageManager is the various information of the current related application bag being arranged in terminal of a retrieval
Class, specifically two parameters can be transmitted by the getPackageInfo methods into PackageManager objects, using journey
Sequence bag name and condition, to obtain PackageInfo objects.Alternatively, application package name can by Activity or
Context getPackageName () method obtains.Finally come using the versionName attributes of PackageInfo objects
Obtain the version number of application program.For the MD5 check informations of application program, then can be obtained by signature tool Apk,
It can be obtained by PackageInfo objects.
The server then compares the version number and current newest version number, or compares the MD5 check informations
With the MD5 check informations of latest edition, to judge whether the HotFix files of redaction, as the HotFix that redaction be present
During file, then confirmation message being returned to terminal, the confirmation message includes the download address of the HotFix files of the redaction,
The embodiment of the present invention is designated as the first download address.
In step s 103, server is obtained according to the version number or MD5 check informations by the renewal process
The first download address returned, the HotFix files of redaction are downloaded according to first download address, and initialize HotFix
Running environment, use downloaded HotFix files to repair the application program after the completion of initialization.
Herein, the renewal process obtains the confirmation message that server returns, when there is the HotFix files of redaction,
Then the first download address in the confirmation message downloads from a server HotFix files, and calls third party HotFix
The running environment for the interface initialization HotFix that storehouse provides, including but not limited to initializes patch versions, and loading has added to
Patch in patchManager, add patch.It can be seen that in embodiments of the present invention, download HotFix files, initialization
HotFix and using HotFix files repaired by renewal process complete, separated with application process, avoid should
What HotFix can not be repaired when with program, generating program collapses when APPLICATION or MainActivity is initialized asks
Topic.And due to open dual-thread, even if application process when initializing APPLICATION or MainActivity there occurs
Program crashing, renewal process are also unaffected, and can carry out HotFix reparations to crash issue by updating process, are had
Improve to effect the stability of application program operation.
Alternatively, the possibility of packet loss when being transmitted in order to avoid http, server can be when to HotFix file designations
The MD5 information of this document is generated, the filename of HotFix files is named as the MD5 information.Renewal process is downloading to
After stating HotFix files, the MD5 information of downloaded HotFix files is calculated, then by the MD5 information and HotFix files
Filename be compared, HotFix running environment is just initialized when both are identical, so as to further improve it is described more
The reliability of new process.
In actual applications, HotFix also can not be repaired the problem of all.It can not be repaired for HotFix serious
Problem, such as resource produced problem, prior art are mainly solved by reinstalling the application program of redaction, now needed
User is wanted to arrive the installation kit of official website or third-party application shop download redaction again, user's physical examination is bad.
In consideration of it, the first implementation process of the restorative procedure of the application program provided based on the embodiments of the present invention, is carried
Go out the second implementation process of the restorative procedure of application program provided in an embodiment of the present invention.As it was noted above, lead in step S102
Cross the renewal process to send the version number of the application program or MD5 check informations to server, the server
The application program of redaction can also be judged whether according to the version number or MD5 check informations, when redaction being present
Application program when, confirmation message can be also returned to terminal, the application program of the confirmation message including the redaction is installed
The download address of bag.In embodiments of the present invention, the restorative procedure also includes:
In step S104, server is obtained according to the version number or MD5 check informations by the renewal process
The second download address returned, and call getRunningTasks interfaces to obtain task list.
Herein, second download address for the redaction application program installation kit download address, described
Business list includes the application process that system is currently running.Version number or MD5 of the server according to the application program
When check information judges to have the application program of redaction, confirmation message, the confirmation message bag are returned to the renewal process
Include the second download address of the application program installation kit of the redaction.The renewal process receives the confirmation message, parsing
The confirmation message learns the application program that redaction be present, and obtains second download address.
In step S105, inquired about by the renewal process in the task list with the presence or absence of the application program
Application process.
After the renewal process is according to the confirmation information query that server returns to the application program of redaction, further sentence
Whether the application process of disconnected current application program is also present, i.e., whether terminal is also running the application process.It is alternatively possible to
Current Task List are obtained by calling the native interface getRunningTasks interfaces in android system, that is, are appointed
Business list, it have recorded all processes that terminal is currently running.Therefore, by inquiring about the task list, when the task arranges
When table also includes the application process of the application program, show that the application process is also present, the application program is in operation shape
State;If the task list does not include the application process of the application program, show that the application process has terminated, the application
Program has dropped out.
In step s 106, if the application process of the application program is not present in the task list, and it is described
When HotFix files can not repair the application program, new edition is downloaded according to second download address by the renewal process
This application program installation kit.
In step s 107, after the download is complete, prompt message is exported by the renewal process, to prompt the user whether
The application program of redaction is installed, and the application program of installation kit installation redaction is used according to the confirmation instruction of user.
Herein, when the renewal process using HotFix files also can not repairing applications crash issue when, this
Inventive embodiments will by updating process mandatory upgrade application program, by the renewal process using server return second under
Set address downloads the application program installation kit of redaction, and after the download is complete, notice prompting user installation upgrading, so as to realize
The mandatory upgrade of application program so that user need not go to official website or third-party application shop to download the installation of redaction
Bag, further improve the experience sense of user.
Alternatively, the restorative procedure also includes:
In step S108, if the application process of the application program in the task list be present, it is determined that described should
Running status is in program, prompt message is exported by the renewal process, to prompt the user whether to upgrade to redaction
Application program.
In embodiments of the present invention, when detection has the application program of redaction, and application program is still in running status
When, then it can prompt the user whether to upgrade by aidl methods, and when detecting the confirmation instruction of user's input according to service
The second download address that device returns downloads the application program installation kit of the redaction, it is achieved thereby that automatic upgrade tip,
User can be avoided to download the installation kit of redaction to official website or third-party application shop again.
In summary, the embodiment of the present invention completes the renewal upgrade logic of application program by renewal process, even if should
Collapsed with the application process of program, renewal process is also unaffected, additionally it is possible to normally download the application of redaction
Program, and realize mandatory upgrade application program.And prior art is to realize that HotFix is repaired in the application process of application program
, when application process goes wrong and HotFix files can not also repair, application process can only be moved towards to collapse, and can not more realize
Mandatory upgrade to application program.
Alternatively, the restorative procedure can also include:
After the application program installation of redaction, start the application program of the redaction;
The token tokens of login account are obtained, the token tokens are sent to server and verified, and are being verified
Pass through the rear application program for logging in the redaction.
Herein, the token tokens are corresponding to repair the login account that the preceding last time of preceding or renewal logins successfully
Logging on authentication.The renewal process obtains token after the application program for detecting redaction installs from terminal internal memory
Token, and the token tokens are sent to server and verified, if server authentication by when if log in the account,
It is achieved thereby that after repair or renewal after automated log on.
Alternatively, the renewal process can also start answering for the redaction after the application program installation of redaction
With program, login interface is loaded, to prompt user to input login account and password.
It should be understood that in the above-described embodiments, the size of the sequence number of each step is not meant to the priority of execution sequence, each step
Rapid execution sequence should determine that the implementation process without tackling the embodiment of the present invention forms any limit with its function and internal logic
It is fixed.
It should be noted that one of ordinary skill in the art will appreciate that realize all or part of step of above-described embodiment
It can be completed by hardware, by program the hardware of correlation can also be instructed to complete, described program can be stored in one
In kind of computer-readable recording medium, the storage medium can be read-only storage, disk or CD etc..
Fig. 3 shows the composition structure chart of the updating device of application program provided in an embodiment of the present invention, for the ease of saying
It is bright, it illustrate only the part related to the embodiment of the present invention.
In embodiments of the present invention, the updating device of the application program is used to realize institute in above-mentioned Fig. 1, Fig. 2 embodiment
The update method for the application program stated, can be the list for being built in the software unit of terminal, hardware cell or software and hardware combining
Member, the terminal are preferably client device, including but not limited to smart mobile phone, tablet personal computer and computer.
Refering to Fig. 3, the updating device of the application program includes:
Starting module 31, for when receiving the enabled instruction of application program, the application for starting the application program to be entered
Journey, and synchronously register, start the renewal process of the application program;
Sending module 32, for by the renewal process by the version number of the application program or MD5 check informations
Send to server;
Repair module 33, for obtaining server according to the version number or MD5 verification letters by the renewal process
The first download address returned is ceased, first download address is the download address of the HotFix files of redaction, according to described
First download address downloads the HotFix files of redaction, and initializes HotFix running environment, makes after the completion of initialization
The application program is repaired with the HotFix files downloaded.
In embodiments of the present invention, starting module 31 starts the application of the application program when detecting enabled instruction
Process, and synchronously register, start another process, i.e., the renewal process of described application program.Herein, the application process
It is two separate processes with renewal process.Wherein, the application process is used for the startup for completing application program, including:
APPLICATION objects are initialized when there are APPLICATON objects, if performing during without APPLICATION objects
MainActivity logics.The renewal process is used for the reparation for completing application program, is the reparation process of the application program.
It can be seen that unlike the prior art, the embodiment of the present invention opens dual-thread in application program launching, by opening for application program
Dynamic and reparation is completed by different processes respectively.
Alternatively, after renewal process is started, the sending module 32 uses http agreements by the renewal process
Either Transmission Control Protocol sends the version number of the application program or MD5 check informations to server, to cause the server
The HotFix files of redaction are judged whether according to the version number or MD5 check informations, when redaction being present
During HotFix files, then confirmation message is returned to terminal, the confirmation message is included under the HotFix files of the redaction
Set address, the embodiment of the present invention are designated as the first download address.
After server returns to confirmation message, if having the HotFix files of redaction in server, the reparation mould
Block 33 downloads from a server HotFix files by updating process, using the first download address in the confirmation message, and
The interface initialization HotFix of third party HotFix storehouses offer running environment is provided, including but not limited to initializes patch versions
This, loads the patch having added in patchManager, adds patch.It can be seen that in embodiments of the present invention, download
HotFix files, initialize HotFix and repaired using HotFix files and completed by renewal process, with application process
Separate, avoid application program when APPLICATION or MainActivity is initialized generating program collapse when
The problem of HotFix can not be repaired.And due to open dual-thread, even if application process initialization APPLICATION or
There occurs program crashing, renewal process when MainActivity to be also unaffected, and can be by renewal process to collapsing
The problem of bursting carries out HotFix reparations, is effectively improved the stability of application program operation.
Alternatively, the possibility of packet loss when being transmitted in order to avoid http, server can be when to HotFix file designations
The MD5 information of this document is generated, the filename of HotFix files is named as the MD5 information.Repair module 33 passes through renewal
After process downloads to the HotFix files, the MD5 information of downloaded HotFix files is calculated, then by the MD5 information
It is compared with the filename of HotFix files, HotFix running environment is just initialized when both are identical, can be further
Improve the reliability of the renewal process.
Further, the prosthetic device also includes:
Acquisition module 34, for obtaining server according to the version number or MD5 verification letters by the renewal process
The second download address returned is ceased, second download address is the download address of the application program installation kit of redaction, and adjusts
Task list is obtained with getRunningTasks interfaces, the task list includes the application that system is currently running and entered
Journey;
Enquiry module 35, it whether there is the application program for being inquired about by the renewal process in the task list
Application process;
Force download module 36, if the application process for the application program to be not present in the task list, and institute
When the application program can not be repaired by stating HotFix files, downloaded newly according to second download address by the renewal process
The application program installation kit of version;
Installation suggestion module 37, for after the download is complete, prompt message being exported by the renewal process, to prompt to use
Whether family installs the application program of redaction, and the application of installation kit installation redaction is used according to the confirmation instruction of user
Program.
Herein, the acquisition module 34 is by application program of the renewal process to server lookup to redaction,
The enquiry module 35 determines whether the application process of current application program is also present, i.e., whether terminal is also in operation institute
State application process.It is alternatively possible to by calling the native interface getRunningTasks interfaces in android system to obtain
Current Task List, i.e. task list are taken, it have recorded all processes that terminal is currently running.Therefore, by described in inquiry
Task list, when the task list also includes the application process of the application program, show that the application process is also present, institute
State application program and be in running status;If the task list does not include the application process of the application program, show that this should
Terminated with process, the application program has dropped out.
In actual applications, the HotFix files are also not capable of all problems of repairing applications completely.For
The problem of HotFix files can not be repaired, the force download module 36 then by updating process mandatory upgrade application program, by
The second download address that the renewal process is returned using server downloads the application program installation kit of redaction, and is downloading
Cheng Hou, by the installation suggestion module 37 notify prompt user installation upgrading so that user need not go official website or
The installation kit of redaction is downloaded in third-party application shop, further improves the experience sense of user.
Further, the prosthetic device also includes:
Reminding module 38 is updated, if during for the application process of the application program be present in the task list, it is determined that
The application program is in running status, and prompt message is exported by the renewal process, new to prompt the user whether to upgrade to
The application program of version.
In embodiments of the present invention, when in the running in application program, if detecting the application program of redaction
When, the renewal reminding module 38 then prompts the user whether to upgrade by such as aidl methods, and is detecting user's input
The second download address for confirming to be returned according to server during instruction downloads the application program installation kit of the redaction, so as to realize
Automatic upgrade tip, user can also be avoided to download the installation kit of redaction to official website or third-party application shop.
Further, the prosthetic device also includes:
Starting module 39, for after the application program installation of redaction, starting the application program of the redaction;
Login module 310, for obtaining the token tokens of login account, the token tokens are sent to server
Row is verified, and the application program of the redaction is logged in after being verified.
Herein, the token tokens are corresponding to repair the login account that the preceding last time of preceding or renewal logins successfully
Logging on authentication.After login module 310 is installed by the renewal process detection to the application program of redaction, out of terminal
Deposit middle acquisition token tokens, and the token tokens sent to server and verified, if server authentication by when if
Log in the account, it is achieved thereby that after repair or renewal after automated log on.
Alternatively, the application program of the redaction can also be installed and activated in the login module 310, only load
Login interface, user is prompted to input login account and password.
It should be noted that the terminal in the embodiment of the present invention can be used for realizing whole skills in above method embodiment
Art scheme.It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
The division progress of unit, module, can be as needed and by above-mentioned function distribution by different work(for example, in practical application
Energy unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, to complete to retouch above
The all or part of function of stating.Each functional unit, module in embodiment can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit, above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each functional unit,
The specific name of module is not limited to the protection domain of the application also only to facilitate mutually distinguish.Said units, mould
The specific work process of block, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment
The part of load, it may refer to the associated description of other embodiments.
Fig. 4 is a kind of schematic diagram of terminal provided in an embodiment of the present invention.As shown in figure 4, the terminal 4 of the embodiment is wrapped
Include:Processor 40, memory 41 and it is stored in the computer that can be run in the memory 41 and on the processor 40
Program 42.The processor 40 is realized when performing the computer program 42 in the restorative procedure embodiment of above-mentioned application program
Step, such as the step S101 to the step S104 to S108 shown in S103, Fig. 2 shown in Fig. 1.Or the processor 40 is held
The function of each module/unit in the device embodiment of the reparation of above-mentioned application program, example are realized during the row computer program 42
The function of module 31 to 310 as shown in Figure 3.
Exemplary, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are performed by the processor 40, to complete the present invention.Described one
Individual or multiple module/units can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used for
Implementation procedure of the computer program 42 in the terminal 4 is described.For example, the computer program 42 can be divided into
Starting module, sending module, repair module, each module concrete function are as follows:
Starting module, for when receiving the enabled instruction of application program, starting the application process of the application program,
And synchronously register, start the renewal process of the application program;
Sending module, for being sent out the version number of the application program or MD5 check informations by the renewal process
Deliver to server;
Repair module, for obtaining server according to the version number or MD5 check informations by the renewal process
The first download address returned, first download address for the HotFix files of redaction download address, according to described the
One download address downloads the HotFix files of redaction, and initializes HotFix running environment, is used after the completion of initialization
The HotFix files downloaded repair the application program.
Further, the computer program 42 can also be partitioned into:
Acquisition module, for obtaining server according to the version number or MD5 check informations by the renewal process
The second download address returned, second download address are the download address of the application program installation kit of redaction, and call
GetRunningTasks interfaces obtain task list, and the task list includes the application process that system is currently running;
Enquiry module, for being inquired about by the renewal process in the task list with the presence or absence of the application program
Application process;
Force download module, if the application process for the application program to be not present in the task list, and it is described
When HotFix files can not repair the application program, new edition is downloaded according to second download address by the renewal process
This application program installation kit;
Installation suggestion module, for after the download is complete, prompt message being exported by the renewal process, to prompt user
Whether the application program of redaction is installed, and the application journey of installation kit installation redaction is used according to the confirmation instruction of user
Sequence.
Further, the computer program 42 can also be partitioned into:
Reminding module is updated, if during for the application process of the application program be present in the task list, determining institute
State application program and be in running status, prompt message is exported by the renewal process, to prompt the user whether to upgrade to new edition
This application program.
Further, the computer program 42 can also be partitioned into:
Starting module, for after the application program installation of redaction, starting the application program of the redaction;
Login module, for obtaining the token tokens of login account, the token tokens are sent to server and carried out
Verify, and the application program of the redaction is logged in after being verified.
The terminal 4 can be the computing devices such as desktop PC, notebook, palm PC and cloud server.Institute
Stating terminal may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 is only eventually
The restriction of the example, not structure paired terminal 4 at end 4, it can include than illustrating more or less parts, or some portions of combination
Part, or different parts, such as the terminal can also include input-output equipment, network access equipment, bus etc..
Alleged processor 40 can be CPU (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng the processor is the control centre of the terminal, utilizes various interfaces and the various pieces of the whole terminal of connection.
The memory 41 can be used for storing the computer program and/or module, and the processor is by running or holding
Row is stored in computer program and/or module in the memory, and calls the data being stored in memory, realizes institute
State the various functions of terminal.The memory can mainly include storing program area and storage data field, wherein, storing program area can
Application program (such as sound-playing function, image player function etc.) needed for storage program area, at least one function etc.;Deposit
Storage data field can store uses created data etc. according to terminal.In addition, memory can be deposited including high random access
Reservoir, nonvolatile memory, such as hard disk, internal memory, plug-in type hard disk, intelligent memory card (Smart Media can also be included
Card, SMC), safe digital card (Secure Digital, SD), flash card (Flash Card), at least one magnetic disk storage
Part, flush memory device or other volatile solid-state parts.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal and method, can pass through
Other modes are realized.For example, device described above/terminal device embodiment is only schematical, for example, the mould
The division of block or unit, only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple
Unit or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another
Point, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device or
The INDIRECT COUPLING of unit or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and as independent production marketing or
In use, it can be stored in a computer-readable recording medium.Based on such understanding, the present invention realizes above-described embodiment
All or part of flow in method, by computer program the hardware of correlation can also be instructed to complete, described calculating
Machine program can be stored in a computer-readable recording medium, and the computer program can be achieved above-mentioned when being executed by processor
The step of each embodiment of the method.Wherein, the computer program includes computer program code, the computer program code
Can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable storage medium
Matter can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk, mobile hard disk,
Magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described
It is appropriate that the content that computer-readable recording medium includes can be carried out according to legislation in jurisdiction and the requirement of patent practice
Increase and decrease, such as in some jurisdictions, according to legislation and patent practice, it is electric load that computer-readable recording medium, which does not include,
Ripple signal and telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality
Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each
Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed
Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should
Within protection scope of the present invention..
Claims (10)
1. a kind of restorative procedure of application program, it is characterised in that the restorative procedure includes:
When receiving the enabled instruction of application program, start the application process of the application program, and synchronously register, start institute
State the renewal process of application program;
The version number of the application program or MD5 check informations are sent to server by the renewal process;
Server is obtained by the renewal process and downloads ground according to the first of the version number or the return of MD5 check informations
Location, first download address are the download address of the HotFix files of redaction, are downloaded according to first download address new
The HotFix files of version, and HotFix running environment is initialized, downloaded HotFix texts are used after the completion of initialization
Part repairs the application program.
2. the restorative procedure of application program as claimed in claim 1, it is characterised in that the restorative procedure also includes:
Server is obtained by the renewal process and downloads ground according to the second of the version number or the return of MD5 check informations
Location, second download address are the download address of the application program installation kit of redaction, and call getRunningTasks to connect
Mouth obtains task list, and the task list includes the application process that system is currently running;
The application process that whether there is the application program is inquired about in the task list by the renewal process;
If the application process of the application program is not present in the task list, and the HotFix files can not repair it is described
During application program, the application program installation kit of redaction is downloaded according to second download address by the renewal process;
After the download is complete, prompt message is exported by the renewal process, to prompt the user whether to install the application of redaction
Program, and the application program using installation kit installation redaction is instructed according to the confirmation of user.
3. the restorative procedure of application program as claimed in claim 2, it is characterised in that the restorative procedure also includes:
If the application process of the application program in the task list be present, determine that the application program is in operation shape
State, prompt message is exported by the renewal process, to prompt the user whether to upgrade to the application program of redaction.
4. the restorative procedure of application program as claimed in claim 2 or claim 3, it is characterised in that the restorative procedure also includes:
After the application program installation of redaction, start the application program of the redaction;
The token tokens of login account are obtained, the token tokens are sent to server and verified, and are being verified
The application program of the redaction is logged in afterwards.
5. a kind of prosthetic device of application program, it is characterised in that the prosthetic device includes:
Starting module, for when receiving the enabled instruction of application program, starting the application process of the application program, and together
Step registration, the renewal process for starting the application program;
Sending module, for by the renewal process by the version number of the application program or MD5 check informations send to
Server;
Repair module, returned for obtaining server by the renewal process according to the version number or MD5 check informations
The first download address, first download address for redaction HotFix files download address, according under described first
Set address downloads the HotFix files of redaction, and initializes HotFix running environment, using under institute after the completion of initialization
The HotFix files of load repair the application program.
6. the prosthetic device of application program as claimed in claim 5, it is characterised in that the prosthetic device also includes:
Acquisition module, returned for obtaining server by the renewal process according to the version number or MD5 check informations
The second download address, second download address is the download address of the application program installation kit of redaction, and is called
GetRunningTasks interfaces obtain task list, and the task list includes the application process that system is currently running;
Enquiry module, it whether there is the application of the application program for being inquired about by the renewal process in the task list
Process;
Force download module, if the application process for the application program to be not present in the task list, and it is described
When HotFix files can not repair the application program, new edition is downloaded according to second download address by the renewal process
This application program installation kit;
Installation suggestion module, for after the download is complete, prompt message being exported by the renewal process, to prompt the user whether
The application program of redaction is installed, and the application program of installation kit installation redaction is used according to the confirmation instruction of user.
7. the prosthetic device of application program as claimed in claim 6, it is characterised in that the prosthetic device also includes:
Reminding module is updated, if during for the application process of the application program be present in the task list, it is determined that described should
Running status is in program, prompt message is exported by the renewal process, to prompt the user whether to upgrade to redaction
Application program.
8. the prosthetic device of application program as claimed in claims 6 or 7, it is characterised in that the prosthetic device also includes:
Starting module, for after the application program installation of redaction, starting the application program of the redaction;
Login module, for obtaining the token tokens of login account, the token tokens are sent to server and verified,
And the application program of the redaction is logged in after being verified.
9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor
The step described in the restorative procedure of the application program described in any one of Claims 1-4 is realized during row.
10. a kind of terminal, including memory, processor and storage are on a memory and the computer journey that can run on a processor
Sequence, it is characterised in that realize following steps during computer program described in the computing device:
When receiving the enabled instruction of application program, start the application process of the application program, and synchronously register, start institute
State the renewal process of application program;
The version number of the application program or MD5 check informations are sent to server by the renewal process;
Server is obtained by the renewal process and downloads ground according to the first of the version number or the return of MD5 check informations
Location, first download address are the download address of the HotFix files of redaction, are downloaded according to first download address new
The HotFix files of version, and HotFix running environment is initialized, downloaded HotFix texts are used after the completion of initialization
Part repairs the application program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710677088.4A CN107844306B (en) | 2017-08-09 | 2017-08-09 | Application program repairing method and device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710677088.4A CN107844306B (en) | 2017-08-09 | 2017-08-09 | Application program repairing method and device, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107844306A true CN107844306A (en) | 2018-03-27 |
CN107844306B CN107844306B (en) | 2020-04-03 |
Family
ID=61682959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710677088.4A Active CN107844306B (en) | 2017-08-09 | 2017-08-09 | Application program repairing method and device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107844306B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918113A (en) * | 2019-01-17 | 2019-06-21 | 平安城市建设科技(深圳)有限公司 | Multiple/hot update method of IOS application hot repair, server and storage medium |
CN110262838A (en) * | 2019-06-14 | 2019-09-20 | 深圳乐信软件技术有限公司 | A kind of processing method of program crashing, device, terminal and storage medium |
CN111475220A (en) * | 2019-01-23 | 2020-07-31 | 阿里巴巴集团控股有限公司 | Cold start method and device, electronic equipment and computer storage medium |
WO2020233044A1 (en) * | 2019-05-21 | 2020-11-26 | 深圳壹账通智能科技有限公司 | Plug-in verification method and device, and server and computer-readable storage medium |
CN112328283A (en) * | 2020-11-12 | 2021-02-05 | 北京字节跳动网络技术有限公司 | Application program updating method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120066484A1 (en) * | 2009-05-18 | 2012-03-15 | Huawei Technologies Co., Ltd. | Patching method and patching device in multi-core environment |
CN102546246A (en) * | 2011-12-28 | 2012-07-04 | 创新科存储技术(深圳)有限公司 | Method and system for automatic upgrade of software |
CN105740001A (en) * | 2014-12-10 | 2016-07-06 | 中兴通讯股份有限公司 | Method and apparatus for hot patch upgrading in process initialization stage, and terminal device |
CN106775671A (en) * | 2016-11-30 | 2017-05-31 | 武汉虹信通信技术有限责任公司 | A kind of hot patch restorative procedure in the linux environment for communication system |
-
2017
- 2017-08-09 CN CN201710677088.4A patent/CN107844306B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120066484A1 (en) * | 2009-05-18 | 2012-03-15 | Huawei Technologies Co., Ltd. | Patching method and patching device in multi-core environment |
CN102546246A (en) * | 2011-12-28 | 2012-07-04 | 创新科存储技术(深圳)有限公司 | Method and system for automatic upgrade of software |
CN105740001A (en) * | 2014-12-10 | 2016-07-06 | 中兴通讯股份有限公司 | Method and apparatus for hot patch upgrading in process initialization stage, and terminal device |
CN106775671A (en) * | 2016-11-30 | 2017-05-31 | 武汉虹信通信技术有限责任公司 | A kind of hot patch restorative procedure in the linux environment for communication system |
Non-Patent Citations (1)
Title |
---|
REGISTERING: ""什么场景下你们会用多进程"", 《HTTPS://WWW.V2EX.COM/T/234148》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918113A (en) * | 2019-01-17 | 2019-06-21 | 平安城市建设科技(深圳)有限公司 | Multiple/hot update method of IOS application hot repair, server and storage medium |
CN111475220A (en) * | 2019-01-23 | 2020-07-31 | 阿里巴巴集团控股有限公司 | Cold start method and device, electronic equipment and computer storage medium |
CN111475220B (en) * | 2019-01-23 | 2023-04-25 | 阿里巴巴集团控股有限公司 | Cold start method and device, electronic equipment and computer storage medium |
WO2020233044A1 (en) * | 2019-05-21 | 2020-11-26 | 深圳壹账通智能科技有限公司 | Plug-in verification method and device, and server and computer-readable storage medium |
CN110262838A (en) * | 2019-06-14 | 2019-09-20 | 深圳乐信软件技术有限公司 | A kind of processing method of program crashing, device, terminal and storage medium |
CN112328283A (en) * | 2020-11-12 | 2021-02-05 | 北京字节跳动网络技术有限公司 | Application program updating method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN107844306B (en) | 2020-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107844306A (en) | Restorative procedure, device, storage medium and the terminal of application program | |
CN107273156A (en) | A kind of OTA upgrade methods and device | |
US20150100955A1 (en) | Method and System for Updating Software | |
CN106201607A (en) | The upgrade method of a kind of software version and equipment | |
CN109558160A (en) | Upgrade method, embedded system | |
US20130311599A1 (en) | Updating Web Resources | |
CN107992308A (en) | A kind of plug-in unit management method of android terminal application program | |
CN109857423B (en) | Program version updating method and device, server and readable storage medium | |
CN107707584A (en) | One kind applies loading method, terminal and Platform Server | |
CN107391193A (en) | A kind of client, the system and method for configuration server | |
CN106445580A (en) | Method and device for BMC (Baseboard Management Controller) with external upgrading | |
CN109840096A (en) | The installation method and device of operating system | |
JP2007528064A (en) | Running unverified programs in a wireless device operating environment | |
CN105786636B (en) | A kind of system repair and device | |
CN108418787A (en) | Acquisition method, terminal device and the medium of Enterprise Resources Plan data | |
CN110147242A (en) | Upgrading in the downloading of space relies on inspection method and device, storage medium and terminal | |
US20170163787A1 (en) | Method and electronic device for upgrading or downgrading system | |
CN108132832B (en) | Application program starting method and device | |
CN106934272B (en) | Application information verification method and device | |
CN115220767A (en) | Software upgrading method, system, electronic equipment and storage medium | |
CN107741853A (en) | A kind of method, system and the information management platform of deployment services device | |
CN107729043B (en) | Method and device for checking increment upgrade package and computer readable storage medium | |
CN106095486A (en) | Online updating method, system, terminal unit and the server of application program | |
CN107528713B (en) | A kind of upgrade method and device of data transfer SDK | |
CN111679842B (en) | Application program hot update processing method, device and 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 |