CN109002315A - Application program update method, apparatus, terminal and storage medium - Google Patents

Application program update method, apparatus, terminal and storage medium Download PDF

Info

Publication number
CN109002315A
CN109002315A CN201811290592.XA CN201811290592A CN109002315A CN 109002315 A CN109002315 A CN 109002315A CN 201811290592 A CN201811290592 A CN 201811290592A CN 109002315 A CN109002315 A CN 109002315A
Authority
CN
China
Prior art keywords
application
destination
data package
download
updated data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811290592.XA
Other languages
Chinese (zh)
Inventor
杜冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811290592.XA priority Critical patent/CN109002315A/en
Publication of CN109002315A publication Critical patent/CN109002315A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present application discloses a kind of application program update method, apparatus, terminal and storage medium, belongs to application domain.The method is used for terminal, destination application and pre-download application program are installed in terminal, the described method includes: supporting to run independently of destination application using more New Parent by the application more New Parent in pre-download application call destination application;By downloading target application updated data package from destination server using more New Parent, destination server is the background server of destination application;When destination application starting, simultaneously installation targets application updated data package is read.More New Parent is applied by increasing in destination application, and under destination application inactive state, by applying more New Parent pre-download application updated data package, so that destination application directly reads installation during startup, so as to shorten application program update duration, and then shorten the starting duration of application program.

Description

Application program update method, apparatus, terminal and storage medium
Technical field
The invention relates to application domain, in particular to a kind of application program update method, apparatus, terminal and Storage medium.
Background technique
In order to enrich the function of application program, and optimize usage experience, application developers can be periodically to application program Carry out version updating or resource updates.
In the related technology, during application program launching, will do it update detection, when detect need to be updated when, Updated data package is downloaded i.e. from apps server.After updated data package is downloaded and is installed, user can be used and answer Use program.
Summary of the invention
The embodiment of the present application provides a kind of application program update method, apparatus, terminal and storage medium, can solve phase In the technology of pass, application program is downloaded updated data package during startup and is installed, and leads to application program launching duration mistake Long problem.The technical solution is as follows:
On the one hand, a kind of application program update method is provided, the method is used for terminal, is equipped with mesh in the terminal Mark application program and pre-download application program, which comprises
By the application more New Parent in destination application described in the pre-download application call, the application is more New Parent is supported to run independently of the destination application;
Target application updated data package, the destination service are downloaded from destination server by the application more New Parent Device is the background server of the destination application;
When destination application starting, reads and the target application updated data package is installed.
On the other hand, a kind of application program update device is provided, described device is used for terminal, is equipped in the terminal Destination application and pre-download application program, described device include:
Calling module, for by applying update group in destination application described in the pre-download application call Part, the application more New Parent are supported to run independently of the destination application;
Download module, for downloading target application more new data from destination server by the application more New Parent Packet, the destination server is the background server of the destination application;
Module is installed, for reading and installing the target application more new data when destination application starting Packet.
On the other hand, a kind of terminal is provided, the terminal includes processor and memory;The memory be stored with to The application program as described in terms of above-mentioned is realized in a few instruction, at least one instruction for being executed by the processor Update method.
On the other hand, provide a kind of computer readable storage medium, which is characterized in that the storage medium be stored with to The application program update as described in terms of above-mentioned is realized in a few instruction, at least one instruction for being executed by processor Method.
In the embodiment of the present application, updated by the application in the pre-download application call destination application in terminal Component makes to run using more New Parent independently of destination application, to utilize application more New Parent from destination application Background server at download target application updated data package, and then destination application starting when, read and the mesh be installed Mark applies updated data package, is finally completed destination application starting.Compared in the related technology, started by application program It downloads and installs updated data package in journey, in the embodiment of the present application, apply more New Parent by increasing in destination application, And under destination application inactive state, by applying more New Parent pre-download application updated data package, so that target is answered It directly reads installation during startup with program, so as to shorten application program update duration, and then shortens application program Starting duration.
Detailed description of the invention
Fig. 1 shows the system architecture diagram of the application program update system of the application one embodiment offer;
Fig. 2 shows the flow charts of the application program update method shown in one exemplary embodiment of the application;
Fig. 3 is the implementation diagram of application program update method shown in Fig. 2;
Fig. 4 shows the flow chart of the application program update method shown in another exemplary embodiment of the application;
Fig. 5 shows the flow chart of the application program update method shown in another exemplary embodiment of the application;
Fig. 6 shows the flow chart of the application program update method shown in another exemplary embodiment of the application;
Fig. 7 shows the structural block diagram of the application program update device of the application one embodiment offer;
Fig. 8 shows the structural schematic diagram of terminal provided by one exemplary embodiment of the application.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Referenced herein " multiple " refer to two or more."and/or", the association for describing affiliated partner are closed System indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, individualism These three situations of B.Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Referring to FIG. 1, the system architecture diagram of the application program update system provided it illustrates the application one embodiment, It include terminal 120 and destination server 140 in the system.
Terminal 120 is the electronic equipment for being equipped with application program, the electronic equipment can be smart phone, tablet computer, Wearable device or portable personal computer etc..It is illustrated so that terminal 120 is smart phone as an example in Fig. 1.
In the embodiment of the present application, destination application and pre-download application program are installed in terminal 120.
Wherein, which is with the application program upgraded demand, such as game class application program, video class Application program, instant messaging application program, social category application program, shopping class application program etc., the embodiment of the present application is to mesh Mark the type of application program without limitation.
Pre-download application program is that have the application program of pre-download function, and optionally, the pre-download application program is by end End manufacturer develops and is installed in terminal 120.
In the embodiment of the present application, comprising applying more New Parent in destination application, the application more New Parent is for downloading Destination application is corresponding to apply updated data package.Meanwhile this can be transported using more New Parent independently of destination application Row, and can be pulled up under the calling of pre-download application program.
It is connected between terminal 120 and destination server 140 by cable network or wireless network.
Destination server 140 is the background server of destination application in terminal 120, is stored with destination application It is corresponding to apply updated data package.Destination server 140 can be a server, the server set that several servers are constituted Group or cloud computing center.
Under a kind of possible application scenarios, as shown in Figure 1, the pre-download application call target in terminal 120 is answered With the application more New Parent in program, is sent to destination server 140 and update request;Destination server 140 is asked according to the update It asks, the download information of updated data package is applied to the feedback of terminal 120, downloads and stores for terminal 120.Succeeding target application program opens When dynamic, the application updated data package of local pre-download is directly read and installed, application is completed and updates.
In following each embodiments, it is illustrated so that application program update method is for the terminal 120 in Fig. 1 as an example.
In the related technology, when the application program installed in terminal needs to update, application program during startup, from answering Updated data package is downloaded with the background server of program, and is installed after the download is complete.However, when the update for needing to download Data packet is larger, and terminal be not connected with wireless network when, by cellular network download updated data package will consume a large amount of flows;And And downloading updated data package needs take a long time, and cause the entire starting duration of application program too long.
And in application program update method provided by the embodiments of the present application, by increasing in the application using update group Part, and using application more New Parent in the case where application program is inactive, pre-download application updated data package, for application program Installation is read when starting.Due to being previously downloaded to local using updated data package, there is no need in the application program launching stage Downloading in real time, to save flow, and further shortens the starting duration of application program.Implemented below using schematical Example is illustrated.
Referring to FIG. 2, it illustrates the processes of the application program update method shown in one exemplary embodiment of the application Figure.The present embodiment is applied to terminal 120 shown in FIG. 1 in this way to illustrate.This method comprises:
Step 201, by the application more New Parent in pre-download application call destination application, using update group Part is supported to run independently of destination application.
There is using more New Parent additional in destination application in the embodiment of the present application, and be not called upon situation Under, it is in run-stopping status.In a kind of possible embodiment, by calling the interface of application more New Parent offer, Pre-download application program is by the application more New Parent pull-up in destination application, so that using more New Parent in target application journey Independent operating in the case that sequence is inactive.
Schematically, as shown in figure 3, in 122 invocation target application program 121 of pre-download application program in terminal 120 Application more New Parent 1211, pull-up apply more New Parent 1211.
Optionally, when unified application more New Parent is arranged in different application (public calling interface), pre-download One is arranged in application program for calling the invocation component using more New Parent;When different applications is arranged in different application When more New Parent (calling interface is different), the corresponding calling group of each application more New Parent is set in pre-download application program Part.
In a kind of possible embodiment, when pre-download application program is developed by manufacturer terminal and is installed in the terminal, The interface of the application more New Parent of exploitation is supplied to manufacturer terminal by application program manufacturer, is added to pre-download application program for it In.
Step 202, by downloading target application updated data package, destination service from destination server using more New Parent Device is the background server of destination application.
After being called using more New Parent, i.e., data channel is established with the background server of destination application, and pass through The data channel downloads the target application updated data package suitable for destination application from background server, wherein the mesh Mark is used to the destination application in present terminal being updated to latest edition using updated data package.
Optionally, using more New Parent according to the application program identification and local version information of destination application, from Target application updated data package is downloaded at destination server.
Optionally, in order to destination application starting when read installation, using more New Parent by the target application of downloading more New data packets are stored under predetermined store path.
Optionally, complete target application updated data package downloading after, using more New Parent to the target application downloaded to more New data packets are verified, and are stored after verification passes through.
Schematically, as shown in figure 3, downloading target application update from destination server 140 using more New Parent 1211 Data packet 123, and store it in terminal 120.
Step 203, when destination application starts, simultaneously installation targets application updated data package is read.
Optionally, when destination application starts, update whether component detection needs to be updated by application first, and Detect need to update when, read predetermined store path, if reading target application updated data package, installed;If It is unread to arrive target application updated data package, then by being downloaded in real time from destination server using more New Parent.
Schematically, as shown in figure 3, when destination application 121 starts, the target application for reading local pre-download updates Data packet 123 is simultaneously installed, to complete using update.
In a kind of possible embodiment, when target application updated data package after the installation is completed, terminal is by target application Updated data package is deleted, to discharge the memory space of terminal.
In conclusion in the embodiment of the present application, by the pre-download application call destination application in terminal Application more New Parent, make to run using more New Parent independently of destination application, thus using application more New Parent from mesh It marks and downloads target application updated data package at the background server of application program, and then in destination application starting, read And the target application updated data package is installed, it is finally completed destination application starting.Compared in the related technology, by applying journey Updated data package is downloaded during startup and installed to sequence, in the embodiment of the present application, is answered by increasing in destination application With more New Parent, and under destination application inactive state, by applying more New Parent pre-download application updated data package, So that destination application directly reads installation during startup, so as to shorten application program update duration, and then shorten The starting duration of application program.
Referring to FIG. 4, it illustrates the streams of the application program update method shown in another exemplary embodiment of the application Cheng Tu.The present embodiment is applied to terminal 120 shown in FIG. 1 in this way to illustrate.This method comprises:
Step 401, current network connection status, current residual electricity and current residual storage space are obtained.
When in order to guarantee that destination application needs to update, using the correct downloading of updated data package, terminal firstly the need of The SOT state of termination is obtained, and is determined whether to be appropriate for pre-download according to the SOT state of termination.Wherein, which includes network At least one of connection status, state of charge and storage state.Optionally, which is obtained by pre-download application program It takes.
In a kind of possible embodiment, terminal obtains current network connection status, current residual electricity and currently remains Remaining memory space.
Schematically, it is wireless network connection state that terminal, which gets current network connection status, and current residual electricity is 70%, and current residual storage space is 10GB.
Step 402, if current network connection status is wireless network connection state, and current residual electricity is greater than electricity threshold Value, and current residual storage space is greater than memory space threshold value, then by pre-download application call destination application Application more New Parent.
In order to avoid can not completely download using updated data package, and flow consumption is avoided, in a kind of possible reality It applies in mode, terminal detects whether current network connection status is wireless network connection state, and whether current residual electricity is big In power threshold, and whether current residual storage space is greater than memory space threshold value.
Optionally, the power threshold is default by user setting, or for terminal, for example power threshold is 60%;Storage is empty Between threshold value be preset value, or the memory space according to shared by destination application determine (since the size of updated data package will not More than original object application program, therefore memory space threshold value is less than or equal to memory space shared by destination application), for example, When the memory space shared by the destination application is 300MB, terminal determines that memory space threshold value is 280MB.
When current network connection status is wireless network connection state, and current residual electricity is greater than power threshold, and works as When preceding residual memory space is greater than memory space threshold value, terminal determination is currently appropriate for pre-download, to be answered by pre-download With the application more New Parent in routine call destination application.Wherein, pass through pre-download application call application update group The process of part can refer to above-mentioned steps 201, and details are not described herein for the present embodiment.
If current network connection status is mobile data network connection status, and/or, current residual electricity is less than electricity threshold Value, and/or, when current residual storage space is less than memory space threshold value, terminal will not then pass through pre-download application call Using more New Parent.
Under a kind of possible application scenarios, terminal currently meets pre-download condition, but terminal front stage operation has other Application program, since downloading data packet can occupy subnetwork bandwidth, terminal obtains the program class of foreground application Type will not be by pre-download application call application more if foreground application is the application program of the first bandwidth demand New Parent;If foreground application is the application program of the second bandwidth demand, more by pre-download application call application New Parent.Wherein, the first bandwidth demand is higher than the second bandwidth demand.
Step 403, obtain the locally applied information of destination application, locally applied information include local program version and At least one of local resource version.
In order to accurately download to the application more new data that destination application is updated to latest edition, terminal is being sent more Before new request, the locally applied information of destination application is obtained.Optionally, terminal obtains target by application more New Parent and answers With the locally applied information of program.
Locally applied information is used to indicate the program version and/or resource version of local destination application.Wherein, local Program version is the code release of local application, and local resource version is the version of resource in local application, the money Source can be icon resource, audio resource, video resource, textures resource etc..
For example, game application A is installed in terminal, video application B, by calling game application A's Using more New Parent, the locally applied information of game application A: local program version v1.0.1, local resource version is got This v1.1.1.
Step 404, the update comprising locally applied information is sent to destination server by application more New Parent to request.
Further, locally applied information is added in update request by terminal, and by being sent to using more New Parent Destination server.
It optionally, also include the application identities of destination application in update request, which can be application Packet name.
Step 405, the download information using updated data package that destination server is sent is received, download information is target clothes What business device was sent when locally applied information and more recent application information are inconsistent.
In order to determine whether the destination application installed in terminal needs to be updated, destination server is obtained to update and be asked The locally applied information for including in asking, and detect locally applied information and server end maintenance more recent application information whether one It causes.If the two is consistent, show that the destination application of terminal side is latest edition, without updating;If the two is inconsistent, show end The destination application of end side needs to update, and the download information of target application updated data package is sent to terminal.
Optionally, destination server determines the corresponding latest version information of destination application according to application identities.Signal Property, the corresponding relationship of the application program stored in destination server and more recent application information is as shown in Table 1.
Table one
Application identities More recent application information
App A Program version: v1.1.1 resource version: v1.2.1
App B Program version: v2.0.1 resource version: v2.0.1
App C Program version: v4.1.1 resource version: v4.3.2
In conjunction with the example in table one and above-mentioned steps, destination server gets newest answer according to application identities " App A " It is " program version: v1.1.1, resource version: v1.2.1 ", and detect locally applied information and more recent application information with information It is inconsistent.
Optionally, since the program version of destination application or resource version installed in different terminals may be different, Correspondingly, the destination application in different terminals is updated to when latest edition required application to be installed updated data package also not Together, therefore, destination server needs to determine that destination application is updated to most according to locally applied information and more recent application information New version is the target application updated data package of required installation.
In a kind of possible embodiment, destination server closes application version information with using updated data package Connection storage, the corresponding relationship using updated data package and application version information are as shown in Table 2.
Table two
Application version information Using updated data package
Program version: v1.0.1 resource version: v1.1.1 Data packet A
Program version: v1.0.2 resource version: v1.1.1 Data packet B
Program version: v1.0.2 resource version: v1.2.1 Data packet C
Program version: v1.1.1 resource version: v1.2.1 Data packet D
Wherein, data packet B is the application updated data package that program version is risen to installation needed for v1.0.2 as v1.0.1, data Packet C is that resource version is risen to the application updated data package of installation needed for v1.2.1 as v1.1.1, data packet D for program version by V1.0.2 rises to the application updated data package installed needed for v1.1.1.
Based on the corresponding relationship between application version information and application updated data package, destination server obtains locally applied The corresponding target application updated data package of information.Wherein, signified comprising locally applied information in the target application updated data package Each version is corresponding using updated data package after showing version.
For example, working as locally applied information are as follows: when local program version v1.0.1, local resource version v1.1.1, target clothes It includes data packet B, C and D that business device, which determines that destination application is updated to the target update data packet installed needed for latest edition,.
Further, the corresponding download information of target application updated data package determined is sent to end by destination server End.Optionally, the download address of target application updated data package is included at least in the download information.
Step 406, according to download information, number is updated by downloading target application from destination server using more New Parent According to packet.
Optionally, when in download information including download address, terminal is i.e. according to download address, by applying more New Parent Target application updated data package is downloaded from destination server, and is stored.
Optionally, when in download information including the data volume of target application updated data package, this step includes following step It is rapid:
One, current residual storage space capacity is obtained.
In order to guarantee terminal can full storage target application updated data package, destination server feedback download information in Data volume comprising target application updated data package correspondingly, terminal obtains current residual storage space capacity, and detects current Whether residual memory space capacity is greater than the data volume of target application updated data package.If being less than, target application will not be downloaded Updated data package, and carry out memory space cleaning;If more than then executing following step.
If two, current residual storage space capacity is greater than the data volume using updated data package, by applying update group Part downloads target application updated data package from destination server.
When current residual storage space capacity is greater than the data volume using updated data package, terminal is determined to complete storage Target application updated data package, and then carry out the downloading of target application updated data package.
In a kind of possible embodiment, the behavior that pre-download application program updates component to application is monitored, and After monitoring to complete using updated data package downloading using more New Parent, closed by the interface for calling application more New Parent to provide Closing makes to apply the behavior of more New Parent controllable using more New Parent.
Step 407, when destination application starts, simultaneously installation targets application updated data package is read.
The embodiment of this step can refer to above-mentioned steps 203, and details are not described herein for the present embodiment.
In the present embodiment, terminal is being currently accessed wireless network, the feelings of remaining capacity abundance and residual memory space abundance It is called under condition and applies more New Parent, it is ensured that subsequent pre-download process is normally carried out, and will not consume mobile data network flow, is mentioned The high accuracy of application updated data package pre-download.
In addition, in the present embodiment, terminal is according to the data volume of the target application updated data package in download information and works as Preceding residual memory space capacity, it is determined whether carry out the downloading of target application updated data package, it is ensured that the target application of downloading updates Data packet being capable of full storage.
When application program manufacturer is updated application program, the update mode of use includes that full dose is updated with gray scale more Newly.Wherein, when carrying out full dose update, the terminal of all non-current version application programs of installation is required to update, and carries out gray scale When update, the application program needs for only partially installing non-current version are updated.It is pre- in order to be realized under gray scale more new scene Downloading, on the basis of fig. 4, as shown in figure 5, when in download information include the first gray scale strategy when, step 406 may include as Lower step.
Step 406A, obtain end message, end message include in terminal models, terminal location and terminal brand at least It is a kind of.
Optionally, when in download information including the first gray scale strategy, terminal determines target application updated data package only needle To target terminal, and itself end message is obtained, determines whether itself is target terminal according to end message so as to subsequent.Its In, the first gray scale more new strategy is used to indicate to target terminal sending application updated data package.
In a kind of possible embodiment, the application more New Parent in destination application passes through pre-download application program Obtain end message.
It schematically, include terminal models " R15 " manufacturer terminal " X board " and end in the end message that terminal is got End position " city P ".
Step 406B, if end message instruction terminal meets the first gray scale more new strategy, by application more New Parent from Target application updated data package is downloaded at destination server, the first gray scale more new strategy is used to indicate to target terminal sending application Updated data package.
In a kind of possible embodiment, whether the terminal of terminal detection end message instruction belongs to the update of the first gray scale The target terminal of strategy instruction updates number by downloading target application from destination server using more New Parent if belonging to According to packet;If being not belonging to, target application updated data package will not be downloaded from destination server.
In conjunction with the example in above-mentioned steps, it is " program version: v1.0.2, resource version that terminal, which gets locally applied information, This: v1.2.1 ", terminal models are " R15 ", and the instruction of the first gray scale more new strategy carries out the destination application in " R15 " It updates, since the terminal models of present terminal are consistent with the terminal models of target terminal that the first gray scale more new strategy indicates, and Locally applied information and more recent application information are inconsistent, and therefore, terminal passes through to be downloaded from destination server using more New Parent Target application updated data package.
The present embodiment is only to carry out specified model terminal using being illustrated for updating, in other possible embodiment party In formula, can also the terminal to specified manufacturer, designated area carry out using updating, the present embodiment do not limit this.
In the present embodiment, terminal is based on the first gray scale more new strategy and the end message of itself in download information, really Whether fixed to need to download target application updated data package from destination server, the application realized under gray scale more new scene updates Pre-download guarantees under gray scale more new strategy using the accuracy of updated data package downloading.
Other than the application program installed in designated terminal carries out gray scale update, in alternatively possible embodiment In, destination server can also carry out gray scale update to the application program for logging in specified account, and (granularity that gray scale updates is more Newly).On the basis of fig. 4, as shown in fig. 6, when in download information include the second gray scale strategy when, step 406 may include as Lower step.
Step 406C obtains the account logon information of destination application by application more New Parent.
Due to being the internal component of destination application using more New Parent, it is available to arrive target application journey The application internal information of sequence (other applications or system can not acquire).
Optionally, when in download information including the second gray scale strategy, terminal determines target application updated data package only needle It is logged in the destination application for logging in target account, and by the account that application more New Parent obtains local destination application Information determines whether to have logged in target account according to account logon information so as to subsequent.Wherein, the second gray scale more new strategy is used for It indicates to target account sending application updated data package.
Optionally, for game class application program, comprising being taken belonging to the affiliated great Qu of account, account in the account logon information The information such as business device, account registration time length, account liveness, account recharge amount.
Schematically, include in the account logon information that terminal is got game great Qu " black rose ".
Step 406D, if the account that account logon information instruction destination application logs in meets the second gray scale and updates plan Slightly, then by downloading target application updated data package from destination server using more New Parent.
In a kind of possible embodiment, whether the current account of terminal detection account logon information instruction belongs to second The target account of gray scale more new strategy instruction is answered if belonging to by downloading target from destination server using more New Parent Use updated data package;If being not belonging to, target application updated data package will not be downloaded from destination server.
In conjunction with the example in above-mentioned steps, it includes game great Qu " black rose " in account logon information that terminal, which is got, And second gray scale more new strategy instruction game great Qu " black rose " and " sea kept watch " are updated, due to local mesh Game great Qu belonging to mark application program login account belongs to the second gray scale more new strategy instruction game great Qu, and therefore, terminal is logical It crosses and downloads target application updated data package from destination server using more New Parent.
In the present embodiment, terminal is based on the second gray scale more new strategy and local destination application in download information Account logon information, it is determined whether need to download target application updated data package from destination server, realize gray scale update Application under scene updates pre-download, guarantees under gray scale more new strategy using the accuracy of updated data package downloading.
During terminal downloads target application updated data package from destination server, it may be led because of many factors Cause failed download.Optionally, if receiving stopping download signal during downloading target application updated data package, stop It calls application more New Parent to download target application updated data package, and deletes downloading data, stop the triggering side of download signal Formula includes following at least one: not enough power supply, memory space inadequate, network switching and downloading are abnormal.
In a kind of possible embodiment, pre-download application program updates number in application more New Parent downloading target application During according to packet, current residual electricity is obtained in real time, and according to current residual electricity and current download progress, is determined current surplus Whether remaining electricity can be completed to download before exhausting, if cannot complete to download, it is determined that not enough power supply, and trigger the lower information carrying of stopping Number.
In alternatively possible embodiment, pre-download application program is updated in application more New Parent downloading target application During data packet, current residual storage space is obtained in real time, and according to the remaining download of target application updated data package, Determine whether that target application updated data package can be stored, if cannot, it is determined that memory space inadequate, and trigger the lower information carrying of stopping Number.
In alternatively possible embodiment, pre-download application program is updated in application more New Parent downloading target application During data packet, if having detected, wireless network is switched to mobile data network, it is determined that network switching occurs, and triggers Stop download signal.
No matter in addition, target application updated data package download successfully or failure, terminal pass through using more New Parent to Destination server sends feedback information, for counting using program manufacturer to the update status of application program, wherein the feedback Information includes downloading at least one of successfully feedback and failed download feedback.
In a kind of possible embodiment, after completing the downloading of target application updated data package, terminal passes through application and updates Component download and is successfully fed back to destination server transmission, wherein comprising the downloading time started, download the end time, more new version, Current version, using at least one of packet name and terminal iidentification.
In alternatively possible embodiment, if downloading target application updated data package failure, terminal pass through application More New Parent sends failed download feedback to destination server, wherein including failed download reason mark, more new version, current Version, using at least one of packet name and terminal iidentification.
Referring to FIG. 7, the structural block diagram of the application program update device provided it illustrates the application one embodiment.It should Application program update device can by software, hardware or both be implemented in combination with as terminal 120 all or part of. The device includes:
Calling module 701, for by destination application described in the pre-download application call application more New Parent, the application more New Parent are supported to run independently of the destination application;
Download module 702 updates number for downloading target application from destination server by the application more New Parent According to packet, the destination server is the background server of the destination application;
Module 703 is installed, updates number for when destination application starting, reading and installing the target application According to packet.
Optionally, described device further include:
Module is obtained, for obtaining the locally applied information of the destination application, the locally applied information includes At least one of local program version and local resource version;
Sending module, for being sent to the destination server comprising described locally applied by the application more New Parent The update of information is requested;
Receiving module, the download information using updated data package sent for receiving the destination server, institute Stating download information is that the destination server is sent in the locally applied information and inconsistent more recent application information;
The download module 702, is used for:
According to the download information, the target is downloaded from the destination server by the application more New Parent and is answered Use updated data package.
It optionally, include the data volume of the target application updated data package in the download information;
The download module 702, comprising:
First acquisition unit, for obtaining current residual storage space capacity;
First download unit, if being greater than the number using updated data package for the current residual storage space capacity According to amount, then the target application updated data package is downloaded from the destination server by the application more New Parent.
It optionally, further include the first gray scale more new strategy in the download information, the first gray scale more new strategy is used for It indicates to target terminal sending application updated data package;
The download module 702, comprising:
Second acquisition unit, for obtaining end message, the end message includes terminal models, terminal location and terminal At least one of brand;
Second download unit, if indicating that the terminal meets the first gray scale more new strategy for the end message, The target application updated data package is then downloaded from the destination server by the application more New Parent.
It optionally, further include the second gray scale more new strategy in the download information, the second gray scale more new strategy is used for It indicates to target account sending application updated data package;
The download module 702, comprising:
Third acquiring unit, the account for obtaining the destination application by the application more New Parent log in letter Breath;
Third download unit, if the account for the account logon information to indicate that the destination application logs in meets The second gray scale more new strategy then downloads the target application by the application more New Parent from the destination server Updated data package.
Optionally, the calling module, comprising:
4th acquiring unit, for obtaining current network connection status, current residual electricity and current residual storage space;
Call unit, if being used for the current network connection status as wireless network connection state, and the current residual Electricity is greater than power threshold, and the current residual storage space is greater than memory space threshold value, then passes through the pre-download application The application more New Parent in destination application described in routine call.
Optionally, the installation module, is used for:
When destination application starting, the target application updated data package is read under predetermined store path simultaneously Installation.
Optionally, described device further include:
Stopping modular, if for receiving information carrying under stopping during downloading the target application updated data package Number, then stop that the application more New Parent is called to download the target application updated data package, and delete downloading data, it is described It includes following at least one for stopping the triggering mode of download signal: not enough power supply, memory space inadequate, network switching and downloading are different Often.
Optionally, described device further include:
Feedback module, it is described anti-for sending feedback information to the destination server by the application more New Parent Feedforward information includes downloading at least one of successfully feedback and failed download feedback.
In conclusion in the embodiment of the present application, by the pre-download application call destination application in terminal Application more New Parent, make to run using more New Parent independently of destination application, thus using application more New Parent from mesh It marks and downloads target application updated data package at the background server of application program, and then in destination application starting, read And the target application updated data package is installed, it is finally completed destination application starting.Compared in the related technology, by applying journey Updated data package is downloaded during startup and installed to sequence, in the embodiment of the present application, is answered by increasing in destination application With more New Parent, and under destination application inactive state, by applying more New Parent pre-download application updated data package, So that destination application directly reads installation during startup, so as to shorten application program update duration, and then shorten The starting duration of application program.
Fig. 8 shows the structural schematic diagram of terminal provided by one exemplary embodiment of the application.The terminal can be real The ready-made terminal 120 in Fig. 1.
It optionally, include: processor 820 and memory 840 in the terminal 800.
Processor 820 may include one or more processing core.Processor 820 utilizes various interfaces and connection Various pieces in entire terminal 800, by running or executing the instruction being stored in memory 840, program, code set or refer to Collection is enabled, and calls the data being stored in memory 840, executes the various functions and processing data of terminal 800.Optionally, Processor 820 can use Digital Signal Processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 820 can integrating central processor (Central Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc. One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for The rendering and drafting of content to be shown needed for display screen;Modem is for handling wireless communication.On it is understood that Stating modem can not also be integrated into processor 820, be realized separately through chip piece.
Memory 840 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non- transitory computer-readable storage medium).Memory 840 can be used for store instruction, program, generation Code, code set or instruction set.Memory 840 may include storing program area and storage data area, wherein storing program area can store Instruction for realizing operating system, the instruction at least one function (such as touch function, sound-playing function, image Playing function etc.), for realizing instruction of above-mentioned each embodiment of the method etc.;It is real that storage data area can store each method above Apply the data etc. being related in example.
Certainly, other than comprising processor and memory, terminal 800 further includes display component, positioning component, bluetooth group Other necessary components such as part, sensor, radio frequency (Radio Frequency, RF) component, WiFi component, display screen, the application are real Example is applied not to be defined the specific component that terminal 800 includes.
The embodiment of the present application also provides a kind of computer-readable medium, which has at least one Instruction, at least one instruction are loaded as the processor and are executed to realize application program described in as above each embodiment Update method.
The embodiment of the present application also provides a kind of computer program product, which is stored at least one Instruction, at least one instruction are loaded as the processor and are executed to realize application program described in as above each embodiment Update method.
Those skilled in the art it will be appreciated that in said one or multiple examples, retouched by the embodiment of the present application The function of stating can be realized with hardware, software, firmware or their any combination.It when implemented in software, can be by this A little functions storages in computer-readable medium or as on computer-readable medium one or more instructions or code into Row transmission.Computer-readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from one Any medium of the place to another place transmission computer program.Storage medium can be general or specialized computer and can deposit Any usable medium taken.
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (12)

1. a kind of application program update method, which is characterized in that the method is used for terminal, is equipped with target in the terminal and answers With program and pre-download application program, which comprises
Pass through the application more New Parent in destination application described in the pre-download application call, the application update group Part is supported to run independently of the destination application;
Target application updated data package is downloaded from destination server by the application more New Parent, the destination server is The background server of the destination application;
When destination application starting, reads and the target application updated data package is installed.
2. the method according to claim 1, wherein it is described by the application more New Parent from destination server Before place's downloading target application updated data package, the method also includes:
The locally applied information of the destination application is obtained, the locally applied information includes local program version and local At least one of resource version;
The update comprising the locally applied information is sent to the destination server by the application more New Parent to request;
The download information using updated data package that the destination server is sent is received, the download information is the mesh What mark server was sent when the locally applied information and more recent application information are inconsistent;
It is described that target application updated data package is downloaded from destination server by the application more New Parent, comprising:
According to the download information, the target application is downloaded more from the destination server by the application more New Parent New data packets.
3. according to the method described in claim 2, it is characterized in that, updating number comprising the target application in the download information According to the data volume of packet;
It is described according to the download information, the target is downloaded from the destination server by the application more New Parent and is answered With updated data package, comprising:
Obtain current residual storage space capacity;
If the current residual storage space capacity is greater than the data volume using updated data package, more by the application New Parent downloads the target application updated data package from the destination server.
4. according to the method described in claim 2, it is characterized in that, further including that the first gray scale updates plan in the download information Slightly, the first gray scale more new strategy is used to indicate to target terminal sending application updated data package;
It is described according to the download information, the target is downloaded from the destination server by the application more New Parent and is answered With updated data package, comprising:
End message is obtained, the end message includes at least one of terminal models, terminal location and terminal brand;
If the end message indicates that the terminal meets the first gray scale more new strategy, pass through the application more New Parent The target application updated data package is downloaded from the destination server.
5. according to the method described in claim 2, it is characterized in that, further including that the second gray scale updates plan in the download information Slightly, the second gray scale more new strategy is used to indicate to target account sending application updated data package;
It is described according to the download information, the application is downloaded more from the destination server by the application more New Parent New data packets, comprising:
The account logon information of the destination application is obtained by the application more New Parent;
If the account logon information indicates that the account that the destination application logs in meets the second gray scale more new strategy, The target application updated data package is then downloaded from the destination server by the application more New Parent.
6. method according to any one of claims 1 to 5, which is characterized in that described to pass through the pre-download application program tune With the application more New Parent in the destination application, comprising:
Obtain current network connection status, current residual electricity and current residual storage space;
If the current network connection status is wireless network connection state, and the current residual electricity is greater than power threshold, And the current residual storage space is greater than memory space threshold value, then is answered by target described in the pre-download application call With the application more New Parent in program.
7. method according to any one of claims 1 to 5, which is characterized in that it is described when destination application starting, It reads and the target application updated data package is installed, comprising:
When destination application starting, the target application updated data package is read under predetermined store path and is pacified Dress.
8. method according to any one of claims 1 to 5, which is characterized in that it is described by the application more New Parent from mesh It marks after downloading target application updated data package at server, the method also includes:
If receiving stopping download signal during downloading the target application updated data package, stop answering described in calling The target application updated data package is downloaded with more New Parent, and deletes downloading data, the triggering for stopping download signal Mode includes following at least one: not enough power supply, memory space inadequate, network switching and downloading are abnormal.
9. method according to any one of claims 1 to 5, which is characterized in that the method also includes:
Feedback information is sent to the destination server by the application more New Parent, the feedback information includes downloading successfully At least one of feedback and failed download feedback.
10. a kind of application program update device, which is characterized in that described device is used for terminal, is equipped with target in the terminal Application program and pre-download application program, described device include:
Calling module, for by destination application described in the pre-download application call application more New Parent, The application more New Parent is supported to run independently of the destination application;
Download module, for downloading target application updated data package, institute from destination server by the application more New Parent State the background server that destination server is the destination application;
Module is installed, for reading and installing the target application updated data package when destination application starting.
11. a kind of terminal, which is characterized in that the terminal includes processor and memory;The memory is stored at least one Item instruction, at least one instruction is for being executed by the processor to realize application as described in any one of claim 1 to 9 Method for updating program.
12. a kind of computer readable storage medium, which is characterized in that the storage medium is stored at least one instruction, described At least one instruction is for being executed by processor to realize application program update method as described in any one of claim 1 to 9.
CN201811290592.XA 2018-10-31 2018-10-31 Application program update method, apparatus, terminal and storage medium Pending CN109002315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811290592.XA CN109002315A (en) 2018-10-31 2018-10-31 Application program update method, apparatus, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811290592.XA CN109002315A (en) 2018-10-31 2018-10-31 Application program update method, apparatus, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN109002315A true CN109002315A (en) 2018-12-14

Family

ID=64590109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811290592.XA Pending CN109002315A (en) 2018-10-31 2018-10-31 Application program update method, apparatus, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109002315A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656611A (en) * 2018-12-24 2019-04-19 成都四方伟业软件股份有限公司 Three-dimensional visualization applies hot update method, device and terminal
CN111782229A (en) * 2020-06-30 2020-10-16 百度在线网络技术(北京)有限公司 Applet starting method and device and electronic equipment
CN112379933A (en) * 2019-07-29 2021-02-19 腾讯科技(深圳)有限公司 Application program starting method, device, medium and electronic equipment
CN112685058A (en) * 2020-12-22 2021-04-20 北京达佳互联信息技术有限公司 Pre-download method of application program update package, related device and storage medium
CN113055451A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Resource downloading method and device, electronic equipment and storage medium
CN114222261A (en) * 2022-02-16 2022-03-22 深圳市森歌数据技术有限公司 Application update control method and device, electronic equipment and storage medium
CN112685058B (en) * 2020-12-22 2024-06-04 北京达佳互联信息技术有限公司 Pre-downloading method of application program update package, related equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541599A (en) * 2011-12-27 2012-07-04 深圳创维-Rgb电子有限公司 Method and system for upgrading electronic equipment on line, and television
CN103067484A (en) * 2012-12-25 2013-04-24 深圳市天维尔通讯技术有限公司 Method and system upgrading application program automatically
CN104375854A (en) * 2014-07-25 2015-02-25 腾讯科技(深圳)有限公司 Application updating and downloading method and user terminal
US20150074658A1 (en) * 2012-09-30 2015-03-12 Google Inc. Updating control software on a network-connected hvac controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541599A (en) * 2011-12-27 2012-07-04 深圳创维-Rgb电子有限公司 Method and system for upgrading electronic equipment on line, and television
US20150074658A1 (en) * 2012-09-30 2015-03-12 Google Inc. Updating control software on a network-connected hvac controller
CN103067484A (en) * 2012-12-25 2013-04-24 深圳市天维尔通讯技术有限公司 Method and system upgrading application program automatically
CN104375854A (en) * 2014-07-25 2015-02-25 腾讯科技(深圳)有限公司 Application updating and downloading method and user terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
樊纯金等: "应用软件敏捷定制", 《电脑编程技巧与维护》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656611A (en) * 2018-12-24 2019-04-19 成都四方伟业软件股份有限公司 Three-dimensional visualization applies hot update method, device and terminal
CN112379933A (en) * 2019-07-29 2021-02-19 腾讯科技(深圳)有限公司 Application program starting method, device, medium and electronic equipment
CN111782229A (en) * 2020-06-30 2020-10-16 百度在线网络技术(北京)有限公司 Applet starting method and device and electronic equipment
CN111782229B (en) * 2020-06-30 2024-04-23 百度在线网络技术(北京)有限公司 Method and device for starting small program and electronic equipment
CN112685058A (en) * 2020-12-22 2021-04-20 北京达佳互联信息技术有限公司 Pre-download method of application program update package, related device and storage medium
CN112685058B (en) * 2020-12-22 2024-06-04 北京达佳互联信息技术有限公司 Pre-downloading method of application program update package, related equipment and storage medium
CN113055451A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Resource downloading method and device, electronic equipment and storage medium
CN113055451B (en) * 2021-03-08 2023-01-06 Oppo广东移动通信有限公司 Resource downloading method and device, electronic equipment and storage medium
CN114222261A (en) * 2022-02-16 2022-03-22 深圳市森歌数据技术有限公司 Application update control method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109002315A (en) Application program update method, apparatus, terminal and storage medium
CN109413186A (en) Application program update method, terminal, server and system
US9357378B1 (en) Subscriber identity module (SIM) card initiation of custom application launcher installation on a mobile communication device
CN107273160A (en) A kind of method and device of edition upgrading
US20130303142A1 (en) Self-Identification of Brand and Branded Firmware Installation in a Generic Electronic Device
EP2381361A1 (en) Apparatus and method for firmware update in a portable terminal
CN107741844B (en) Method and device for generating application installation package
US20110191764A1 (en) Systems, methods, and apparatuses for facilitating distribution of firmware updates
CN109408132A (en) A kind of configuration file processing method and server, user terminal, storage medium
CN108228230A (en) Upgrade method, terminal and the computer readable storage medium of UFS firmwares
CN110333947A (en) A kind of subcontracting resource loading method, device, equipment and the medium of game application
CN109375937A (en) Method for upgrading system, device, terminal device and storage medium
CN110968508B (en) Method, device, terminal and storage medium for determining loading time of applet
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
WO2023185166A1 (en) Service call method and apparatus, device and storage medium
CN107220074A (en) To the access of supporting layer software function, upgrade method and device
CN108984339B (en) Data recovery method and related product
CN104765624B (en) Method and device for updating application program of virtual machine
CN103607431A (en) Mobile terminal resource processing method, apparatus and equipment thereof
CN113168332B (en) Data processing method and device and mobile terminal
CN106933636A (en) Start method, device and the terminal device of plug-in services
CN102377793B (en) Flash interaction method and device based on mobile communication equipment terminal
CN107463395B (en) Component calling method and device
CN111984293A (en) Information processing method, device and storage medium
CN113691413B (en) Method and system for realizing compatibility of Internet of things equipment with multiple modules

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181214