CN115878138B - Application pre-download method, device, computer and storage medium - Google Patents

Application pre-download method, device, computer and storage medium Download PDF

Info

Publication number
CN115878138B
CN115878138B CN202310198269.4A CN202310198269A CN115878138B CN 115878138 B CN115878138 B CN 115878138B CN 202310198269 A CN202310198269 A CN 202310198269A CN 115878138 B CN115878138 B CN 115878138B
Authority
CN
China
Prior art keywords
application
target application
download
file
installation
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.)
Active
Application number
CN202310198269.4A
Other languages
Chinese (zh)
Other versions
CN115878138A (en
Inventor
赵佳宁
高丽娜
刘思亮
洪楷
徐士立
申家忠
张迪
王振兴
蔡文杰
刘专
孙逊
王基宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202310198269.4A priority Critical patent/CN115878138B/en
Priority to CN202311304064.6A priority patent/CN117331576A/en
Publication of CN115878138A publication Critical patent/CN115878138A/en
Application granted granted Critical
Publication of CN115878138B publication Critical patent/CN115878138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses an application pre-downloading method, an application pre-downloading device, a computer and a storage medium, which are suitable for the field of cloud technology, wherein the method comprises the following steps: when the pre-downloading of the target application is started, if the service equipment detects the pre-downloading reservation information of the application of the target application, detecting the equipment state of the service equipment; when the equipment state of the service equipment is the equipment idle state, downloading the pre-downloaded file of the target application to a pre-download management position; and when the target application is online, decrypting and moving the pre-downloaded file from the pre-download management position to the application management position of the target application, and installing the target application. By adopting the application, the efficiency of application installation can be improved.

Description

Application pre-download method, device, computer and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application pre-downloading method, an application pre-downloading device, a computer, and a storage medium.
Background
With the development of the internet, applications are more and more diversified, and more applications need more space, which is particularly important in the installation of applications. At present, after the game is online, a user can install a required application program through an application center and the like in the equipment, and when a new version of the application program appears, the user either directly downloads the application program for installing the new version or needs to enter the application program to update resources. In this way, the user needs to pay attention to the online time of the application program all the time to install the application program in time, so that the application program can be forgotten before being online, and the conversion rate of the early propaganda resources of the application program is low. Moreover, since many applications require a large space, it takes a lot of time to install or update the applications for the first time, and in this process, once the installation or update page is cut out, the process is easily interrupted, thereby reducing the efficiency of application installation.
Disclosure of Invention
The embodiment of the application provides an application pre-downloading method, an application pre-downloading device, a computer and a storage medium, which can improve the efficiency of application installation.
In one aspect, an embodiment of the present application provides an application pre-downloading method, where the method includes:
when the pre-downloading of the target application is started, if the service equipment detects the pre-downloading reservation information of the application of the target application, detecting the equipment state of the service equipment;
when the equipment state of the service equipment is the equipment idle state, downloading the pre-downloaded file of the target application to a pre-download management position;
when the target application is on line, the pre-downloaded file is moved from the pre-download management position to the application management position of the target application, and the target application is installed.
In one aspect, an embodiment of the present application provides an application pre-downloading device, where the device includes:
the device detection module is used for detecting the device state of the service device if the service device detects the application pre-download reservation information aiming at the target application when the pre-download aiming at the target application is started;
the file downloading module is used for downloading the pre-downloaded file of the target application to a pre-download management position when the equipment state of the service equipment is the equipment idle state;
And the application installation module is used for moving the pre-downloaded file from the pre-download management position to the application management position of the target application when the target application is on line, and installing the target application.
Wherein the apparatus further comprises:
the release detection module is used for displaying a pre-download function aiming at the target application in the application service center, responding to the reservation operation of the pre-download function aiming at the target application and acquiring the application release state of the target application;
the reservation generation module is used for generating application pre-downloading reservation information aiming at the target application if the application release state of the target application is a new application state; the new application state is used for representing that the target application is released for the first time;
the installation detection module is used for detecting the application installation state of the target application in the service equipment if the application release state of the target application is an application update state; the application update state is used to characterize that the target application is not initially published;
the reservation generation module is further used for generating application pre-download reservation information aiming at the target application if the application installation state of the target application is the application installed state;
the installation prompting module is used for displaying an application installation preparation message if the application installation state of the target application is an application uninstalled state, and generating application pre-download reservation information aiming at the target application after the target application is installed based on the application installation preparation message.
Wherein, this equipment detection module includes:
the pre-download prompting unit is used for outputting an application pre-download prompting message if the business equipment detects application pre-download reservation information aiming at the target application when the pre-download aiming at the target application is started;
an equipment detection unit for detecting an equipment state of the service equipment when a download confirmation operation for the application pre-download prompt message is detected;
the apparatus further comprises:
and the pre-download waiting module is used for suspending the pre-download task aiming at the target application if the equipment state of the service equipment is the equipment busy state until the process of downloading the pre-download file of the target application to the pre-download management position is triggered when the equipment state of the service equipment is the equipment idle state.
The file downloading module comprises:
a downloading request unit, configured to send a pre-downloading request to an application server of a target application when a device state of the service device is a device idle state;
the information receiving unit is used for receiving the pre-download configuration information and the result status code of the target application sent by the application server based on the pre-download request; the result status code is used for indicating the integrity of the pre-download configuration information;
And the file downloading unit is used for downloading the pre-downloaded file of the target application to the pre-download management position based on the pre-download configuration information if the result status code indicates that the pre-download configuration information is complete.
Wherein the apparatus further comprises:
the result feedback module is used for sending a pre-download result to an application server of the target application when downloading the pre-download file of the target application to the pre-download management position is finished;
the re-downloading module is used for returning to the process of executing the equipment state of the detection service equipment if the pre-downloading result is a pre-downloading failure result;
and the task marking module is used for marking the pre-download task aiming at the target application as a finished state if the pre-download result is a pre-download success result.
If the application release state of the target application is a new application state, the application installation module includes:
a type acquisition unit for acquiring a file type of the pre-downloaded file at the pre-download management position when the target application is on line;
and the application installation unit is used for moving the pre-downloaded file to an application management position of the target application based on the file type of the pre-downloaded file and installing the target application.
Wherein the application installation unit includes:
the application installation subunit is used for calling an application management component toolkit if the file type of the pre-downloaded file is the installation type, decrypting the pre-downloaded file, installing the pre-downloaded file at an application management position of the target application, and outputting an application trigger component of the target application in the service equipment; the installation type is used to indicate that the pre-downloaded file includes an application installation package;
and the resource loading subunit is used for loading the application installation resource of the target application when the target application is started based on the application triggering component.
Wherein the device includes:
the installation calling module is used for outputting a first application installation prompt message, and executing a process of calling the application management component toolkit if an installation confirmation operation for the first application installation prompt message is detected;
the installation confirmation module is used for periodically outputting the first application installation prompt message if the installation cancellation operation aiming at the first application installation prompt message is detected, and stopping outputting the first application installation prompt message until the installation confirmation operation aiming at the first application installation prompt message is detected or the cancellation times of the detected installation cancellation operation are greater than or equal to an installation cancellation threshold value;
And the file deleting module is used for deleting the pre-downloaded file if the detected cancel times of the installation cancel operation are greater than or equal to the installation cancel threshold value.
Wherein the application installation unit includes:
an initial installation subunit, configured to respond to an installation request for the target application if the file type of the pre-downloaded file is a resource type, and install the target application; the resource type is used to indicate that the pre-downloaded file includes an application resource package;
the resource loading subunit is further used for initializing the target application when the target application is started, calling an application updating component in the target application, decrypting and moving an application resource package to an application management position of the target application, loading the application resource package to the target application, and entering the target application when the pre-downloaded file is moved.
Wherein the application installation unit includes:
the installation loading subunit is used for loading an application installation package in the pre-downloaded file and installing a target application if the file type of the pre-downloaded file is the whole package type; the whole package type is used for indicating that the pre-downloaded file comprises an application installation package and an application resource package;
the resource loading subunit is further configured to initialize the target application when the target application is started, invoke an application update component in the target application, decrypt and move an application resource package to an application management location of the target application, load the target application based on the application resource package, and enter the target application when the application resource package is successfully loaded.
If the application release state of the target application is the application update state, the application installation module installs the target application, including:
the information acquisition unit is used for acquiring pre-download configuration information of the target application when the target application is started when the target application is online;
the file moving unit is used for decrypting and moving the pre-downloaded file from the pre-download management position to the application management position of the target application based on the pre-download configuration information, and synchronizing the decryption and moving progress of the pre-downloaded file to the target application in the decryption and moving process;
and the application updating unit is used for calling an application updating component of the target application when the pre-downloaded file is decrypted and moved, and updating and installing the target application based on the application updating component loading the pre-downloaded file.
Wherein the apparatus further comprises:
the information calling module is used for detecting the application installation state of the target application, and executing the process of acquiring the pre-downloaded configuration information of the target application when the target application is started if the application installation state is the application installed state;
the application installation module is further configured to output a second application installation prompt message if the application installation state is an application uninstalled state, and respond to a confirmation operation for the second application installation prompt message to install the target application.
In one aspect, the embodiment of the application provides a computer device, which comprises a processor, a memory and an input/output interface;
the processor is respectively connected with the memory and the input/output interface, wherein the input/output interface is used for receiving data and outputting data, the memory is used for storing a computer program, and the processor is used for calling the computer program so that the computer equipment containing the processor executes the application pre-downloading method in one aspect of the embodiment of the application.
An aspect of an embodiment of the present application provides a computer-readable storage medium storing a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the application pre-download method in an aspect of an embodiment of the present application.
In one aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in the various alternatives in an aspect of the embodiments of the application. In other words, the computer instructions, when executed by a processor, implement the methods provided in the various alternatives in one aspect of the embodiments of the present application.
The implementation of the embodiment of the application has the following beneficial effects:
in the embodiment of the application, when the pre-downloading of the target application is started, if the service equipment detects the application pre-downloading reservation information of the target application, the equipment state of the service equipment is detected; when the equipment state of the service equipment is the equipment idle state, downloading the pre-downloaded file of the target application to a pre-download management position; and when the target application is online, decrypting and moving the pre-downloaded file from the pre-download management position to the application management position of the target application, and installing the target application. Through the above process, when the target application is not on line, the target application can be pre-downloaded, that is, files required by the installation of the target application (i.e. pre-downloaded files) are downloaded in advance, and when the target application is on line, the installation of the target application can be realized directly based on the pre-downloaded files. And the pre-download file of the target application is carried out when the service equipment is idle, namely, the pre-download file does not conflict with the use of the service equipment by a user, so that the idle time of the service equipment can be reasonably utilized, the equipment utilization rate is improved, and the user experience is optimized. In addition, the pre-downloading function is provided, so that a user can directly reserve the pre-downloading function when the user needs, and when the pre-downloading is started, the pre-downloading process can be performed without the user paying attention to the online time of the target application, and the like, so that the early propaganda conversion rate of the target application can be improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram of a network interaction architecture for application pre-download according to an embodiment of the present application;
fig. 2 is a schematic diagram of an application pre-download scenario provided in an embodiment of the present application;
FIG. 3 is a flowchart of a method for application pre-download according to an embodiment of the present application;
FIG. 4 is a flowchart of an application installation method provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of a pre-download scenario provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of an interactive flow of pre-download of an application according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an application update interaction flow provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of an application pre-download device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
If the data of the object (such as a user) needs to be collected in the application, before and during the collection, a prompt interface or a popup window is displayed, wherein the prompt interface or the popup window is used for prompting the user to collect XXXX data currently, and the relevant step of data acquisition is started only after the confirmation operation of the user on the prompt interface or the popup window is obtained, otherwise, the process is ended. The acquired user data is used in a reasonable and legal scene, application, or the like. Optionally, in some scenarios where user data is required but not authorized by the user, authorization may be requested from the user, and the user data may be reused when authorization passes.
In the embodiment of the present application, please refer to fig. 1, fig. 1 is a network interaction architecture diagram for application pre-download provided in the embodiment of the present application, and as shown in fig. 1, a service device may reserve a pre-download function for a target application, and may download a pre-download file of the target application through an application server 101 when the pre-download of the target application is started. When the target application is online, the target application may be installed based on the pre-downloaded file of the target application. The service device may be any device in which an application program may be installed, such as the service device 102a, the service device 102b, or the service device 102c shown in fig. 1. The target application may be any application program, such as a game application, a video application, a communication application, or a social media application, which is not limited herein.
Specifically, referring to fig. 2, fig. 2 is a schematic diagram of an application pre-download scenario provided in an embodiment of the present application. As shown in fig. 2, when the service device 202 detects application pre-download reservation information for the target application 201 at the time of pre-download start for the target application 201, the device state of the service device 202 is detected. When the device state of the service device 202 is the device idle state, the pre-download file of the target application 201 is downloaded to the pre-download management location 2021. The application pre-downloading reservation information is related information indicating that the target application reserves the pre-downloading function, through the above process, when the user reserves the pre-downloading function, the user does not need to pay attention to the online time of the target application at any time, the pre-downloading of the target application can be realized, the convenience of application installation is improved, the application early-stage propaganda conversion rate is improved, and the user experience is improved. And the method provides a pre-downloading function for a user, so that the installation of the target application can be divided into two parts, namely pre-downloading and downloading installation, the downloading of the pre-downloading file before the application installation is realized, and the data quantity of downloading processing required by the application installation can be shared before the application installation, thereby improving the efficiency of the application installation. And by carrying out application pre-downloading when the service equipment is idle, the idle time of the service equipment is reasonably utilized, the equipment utilization rate is improved, the use of the service equipment by a user is not influenced, and the application pre-downloading performance is improved. Further, when the target application 201 is online, the service device 202 may move the pre-download file from the pre-download management location 2021 to the application management location 2022 of the target application 201, and install the target application 201. Because the pre-downloaded file is downloaded in advance when the target application is installed, the pre-downloaded file can be directly installed based on the downloaded pre-downloaded file, so that the data volume required to be downloaded when the target application is installed is reduced, the application installation time is saved, and the application installation efficiency is improved. And because of the existence of the pre-downloading function aiming at the target application, partial users can pre-download the target application, when the target application is online, the data volume which is required to be processed by the application server and used for installing the target application is greatly reduced, and the bandwidth peak charging (Content Delivery Network, CDN) cost of the application server is reduced.
The pre-downloading refers to that before an application program (such as a target application) is online or before the application update resource of the application program (such as the target application) is formally updated and released, the application resource which needs to be downloaded for a long time is downloaded for service equipment in advance, and at a time node which formally uses the application resource, the application resource which is downloaded in advance can be directly processed for application installation or application update, and the application resource is not required to be downloaded. The pre-downloading saves the installation time of the application on one hand, and enables a user to use the application resource in time after the application is released or updated, and on the other hand, reduces the online downloading amount after the application resource is updated and released or updated and releases, and reduces the bandwidth peak charging peak value, thereby reducing the bandwidth peak charging cost of an application program (such as a target application) side. The application resource refers to part or all of resources required by installation or update installation of an application program (such as a target application), such as any one or more of an application installation package, one or more application resource packages, or an application installation package, one or more application resource packages and the like. For example, when the application is a game application, the application resource may be referred to as a game resource, and the game resource may be any one or more of a game installation package, one or more game resource packages, or a game installation package and one or more game resource packages; for example, if the application program is a social media application, the application resource may be referred to as a social media resource, etc., and will not be described in detail herein.
It is understood that the service device or the application server mentioned in the embodiments of the present application may be a computer device, and the computer device in the embodiments of the present application includes, but is not limited to, a terminal device or a server. In other words, the computer device may be a server or a terminal device, or may be a system formed by the server and the terminal device. The above-mentioned terminal device may be an electronic device, including but not limited to a mobile phone, a tablet computer, a desktop computer, a notebook computer, a palm computer, a vehicle-mounted device, an augmented Reality/Virtual Reality (AR/VR) device, a head-mounted display, a smart television, a wearable device, a smart speaker, a digital camera, a camera, and other mobile internet devices (mobile internet device, MID) with network access capability, or a terminal device in a scene such as a train, a ship, or a flight. As shown in fig. 1, the terminal device may be a notebook (as shown by a service device 102 b), a mobile phone (as shown by a service device 102 c), or an in-vehicle device (as shown by a service device 102 a), and fig. 1 illustrates only a part of the devices, and alternatively, the service device 102a refers to a device located in a vehicle 103, and the service device 102a may install an application. The servers mentioned above may be independent physical servers, or may be server clusters or distributed systems formed by a plurality of physical servers, or may be cloud servers that provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, vehicle-road collaboration, content distribution networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Optionally, the data related to the embodiment of the present application may be stored in a computer device, or may be stored based on a cloud storage technology or a blockchain network, which is not limited herein.
The cloud storage (cloud storage) is a new concept that extends and develops in the concept of cloud computing, and the distributed cloud storage system (hereinafter referred to as a storage system for short) refers to a storage system that provides data storage and service access functions for the outside through aggregation of a large number of storage devices (storage devices are also referred to as storage nodes) of different types in a network through application software or application interfaces by means of functions such as cluster application, grid technology, and distributed storage file systems.
At present, the storage method of the storage system is as follows: when creating logical volumes, each logical volume is allocated a physical storage space, which may be a disk composition of a certain storage device or of several storage devices. The client stores data on a certain logical volume, that is, the data is stored on a file system, the file system divides the data into a plurality of parts, each part is an object, the object not only contains the data but also contains additional information such as a data Identification (ID) and the like, the file system writes each object into a physical storage space of the logical volume, and the file system records storage position information of each object, so that when the client requests to access the data, the file system can enable the client to access the data according to the storage position information of each object.
Further, referring to fig. 3, fig. 3 is a flowchart of a method for pre-downloading an application according to an embodiment of the present application. As shown in fig. 3, taking any service device as an example, the application pre-download process includes the following steps:
in step S301, when the pre-download for the target application is started, if the service device detects the application pre-download reservation information for the target application, the device state of the service device is detected.
In the embodiment of the application, the service equipment can respond to the reservation operation of the pre-download function of the target application and generate the application pre-download reservation information of the target application. When the target application is started up in the pre-download, that is, before the target application is on-line, when the service device detects the application pre-download reservation information for the target application, that is, the service device reserves the pre-download function of the target application in advance, the device state of the service device is detected. If the device state of the service device is the device idle state, executing step S302 to execute the pre-download task for the target application; if the device state of the service device is the device busy state, suspending the pre-download task for the target application until the device state of the service device is the device idle state, executing step S302, and executing the pre-download task for the target application.
Optionally, when the pre-download for the target application is started, if the service device detects the pre-download reservation information for the target application, the service device may output an application pre-download prompt message. Specifically, the service device may output an application pre-download prompt message in the device notification bar, so that the application pre-download prompt message does not affect the normal operation of the service device, and does not affect the use of the service device by a user, thereby improving the notification reliability and notification performance of the service device. Or, the application pre-download prompt message can be output in the current display interface, so that the user can timely acquire the message of pre-download starting for the target application, and the timeliness of application pre-download confirmation is improved. Or, the interface type of the current display interface of the service equipment can be obtained, the message display position is determined based on the interrupt influence degree of the interface type, and the application pre-download prompt message and the like are output at the message display position, so that the flexibility of message notification can be improved; the interruption influence degree is used for indicating the influence degree on the operation of the interface when the interface indicated by the corresponding interface type is interrupted and displayed; if the interface type is a game play type, when the interface indicated by the interface type is interrupted, the operation of the interface is stopped, and even the game play is influenced, so that the interruption corresponding to the game play type has higher influence degree, and the message display position needs to avoid the influence on the current display interface as much as possible; if the interface type is the device home screen type, that is, the type of the interface of the icon of the application program displayed by the service device, when the interface indicated by the interface type is interrupted, the interface operation is hardly affected, so that the interruption effect degree corresponding to the device home screen type is low, and the message display position can be a position where the message is randomly or timely acquired by the user as much as possible, and the like, and the method is not limited. The above is only a few possible message output manners, and the present application is not limited to other manners of outputting the application pre-download hint message, which will not be described herein.
Further, when a download confirmation operation for the application pre-download hint message is detected, the device state of the service device is detected. If the device state of the service device is the device busy state, suspending the pre-download task for the target application until the pre-download task for the target application is triggered when the device state of the service device is the device idle state, that is, executing step S302, and downloading the pre-download file of the target application to the pre-download management position. If the device status of the service device is the device idle status, step S302 is executed. When a download cancellation operation for the application pre-download hint message is detected, the application pre-download reservation information for the target application may be deleted. Alternatively, when a download cancellation operation for an application pre-download prompt message is detected, the application pre-download prompt message may be output again when a specified prompt interval passes until the number of detected download cancellation operations is greater than or equal to a pre-download cancellation threshold, and the application pre-download reservation information for the target application is deleted.
The device idle state is used for indicating that the storage space of the service device is sufficient, that is, the sufficient space is used for downloading the pre-downloaded file of the target application, and the service device does not run a process occupying a large amount of running memory. Alternatively, the device idle state may be used to represent a network that pre-downloads the target application with sufficient network bandwidth.
In step S302, when the device status of the service device is the device idle status, the pre-download file of the target application is downloaded to the pre-download management location.
In the embodiment of the application, when the equipment state of the service equipment is the equipment idle state, the service equipment can silence and download the pre-download file of the target application to the pre-download management position according to the pre-download management position. Specifically, when the device state of the service device is the device idle state, a pre-download request is sent to an application server of the target application. Receiving pre-download configuration information and a result status code of the target application sent by the application server based on the pre-download request; the result status code is used to indicate the integrity of the pre-downloaded configuration information. The pre-download configuration information may include, but is not limited to, a list of pre-download file names, a pre-download management location (i.e., a file download address for the pre-download file), file digest information (e.g., a message digest of the pre-download file, such as MD 5), and a file size of the pre-download file. MD5 refers to a message digest algorithm, message Digest Algorithm MD5, which generates a unique digital signature for any file. Further, downloading the pre-download file of the target application to a pre-download management location based on the pre-download configuration information; or if the result status code indicates that the pre-download configuration information is complete, downloading the pre-download file of the target application to the pre-download management position based on the pre-download configuration information.
Optionally, when downloading the pre-downloaded file of the target application to the pre-download management location is finished, that is, when the pre-download task for the target application is finished, the pre-download result is sent to the application server of the target application. If the pre-download result is the pre-download failure result, returning to the process of executing the equipment state of the detection service equipment, and re-carrying out the pre-download processing on the target application. Optionally, if the pre-download result is a pre-download success result, the pre-download task for the target application may be marked as a completed state, that is, the pre-download task for the target application is ended, and optionally, the application pre-download reservation information for the target application may be deleted.
In step S303, when the target application is online, the pre-downloaded file is moved from the pre-download management location to the application management location of the target application, and the target application is installed.
In the embodiment of the application, when the target application is online, the service equipment can decrypt and move the pre-downloaded file from the pre-download management position to the application management position of the target application, and install the target application. Specifically, when the target application is online, the service device may decrypt and move the pre-downloaded file from the pre-download management location to the application management location of the target application based on the application release state of the target application, and install the target application. The application release state comprises a new application state and an application update state, wherein the new application state is used for indicating that the target application is an application program which is released for the first time, and the application update state is used for indicating that the target application is not the application program which is released for the first time.
Specifically, if the application release state of the target application is a new application state, when the target application is online, the file type of the pre-downloaded file at the pre-download management position is obtained. The file type comprises an installation type, a resource type and a whole package type, wherein the installation type is used for indicating that the corresponding pre-downloaded file comprises an application installation package, the resource type is used for indicating that the corresponding pre-downloaded file comprises an application resource package, and the whole package type is used for indicating that the corresponding pre-downloaded file comprises an application installation package and an application resource package. Further, the service device may move the pre-downloaded file to an application management location of the target application based on the file type of the pre-downloaded file, and install the target application. Optionally, the service device integrates an application management component tool package in the application service center, and the application management component tool package is used for decrypting the pre-downloaded file when the pre-downloaded file includes the application installation package, so as to obtain the application installation package in the pre-downloaded file, and the application installation package is used for installing the target application when running.
When the target application is installed, under an installation condition (1), if the file type of the pre-downloaded file is an installation type, an application management component tool kit is called, the pre-downloaded file is decrypted, the decrypted file is installed at the application management position of the target application, and an application trigger component of the target application is output in service equipment; the installation type is used to indicate that the pre-downloaded file includes an application installation package. Specifically, in this installation situation, the pre-downloaded file is located at a pre-Download management location, such as a Download (Download) directory, where when the target file is online, the service device may directly call the application management component toolkit to decrypt and install the application installation package in the pre-downloaded file, at this time, the service device initially installs the target application, and may display an application trigger component of the target application, where the application trigger component may start the target application when triggered, that is, the application trigger component is used to start the target application, and the application trigger component may be an icon capable of starting the target application, or the installation data generated in the process of decrypting and installing the application installation package in the pre-downloaded file is stored in the application management location of the target application, so that the target application may be started by the service device. But the target application does not load the application installation resource, further, when the target application is started based on the application triggering component, the application installation resource of the target application is loaded, and after the application installation resource is loaded, the installation of the target application is completed. The application management (Application Performance Amelioration, APA) component toolkit (SoftwareDevelopment Kit, SDK), that is, the APA component SDK refers to a library software development toolkit integrated with an application server of a target application, and is used for decrypting a pre-downloaded file to obtain data that can be read and loaded by a service device, that is, obtain an application resource, where the application resource includes an application installation package. For example, if the target application is a gaming application, the APA component SDK may also be referred to as a game management (Game Performance Amelioration, GPA) component SDK; if the target application is a social media application, the APA component SDK may also be referred to as a social media management component SDK or the like.
Alternatively, the service device may output a first application installation prompting message, which is used to prompt the user that the application installation package of the target application has been pre-downloaded, and confirm whether to install the target application to the user, for example, the first application installation prompting message may be as "if the installation package of the target application has been pre-downloaded, is it confirmed to install? "etc. And if the installation confirmation operation aiming at the first application installation prompt message is detected, executing the process of calling the application management component toolkit, namely executing the installation process of the target application. If an installation cancellation operation for the first application installation prompt message is detected, the pre-downloaded file is deleted, that is, when the installation cancellation operation is detected, the user is considered to be unnecessary to perform application installation based on the pre-download. Or if the installation cancellation operation for the first application installation prompt message is detected, periodically outputting the first application installation prompt message, for example, prompting every other day, prompting every half a day, or the like, until the installation confirmation operation for the first application installation prompt message is detected, or when the number of times of cancellation of the detected installation cancellation operation is greater than or equal to the installation cancellation threshold value, stopping outputting the first application installation prompt message. At this time, when the output of the first application installation prompting message is stopped, if an installation confirmation operation for the first application installation prompting message is detected, an installation process for the target application is executed; and if the detected cancel times of the installation cancel operation are greater than or equal to the installation cancel threshold value, deleting the pre-downloaded file. For example, assuming that the installation cancellation threshold is 5, that is, when the installation cancellation operation is detected when the first application installation prompting message is output five times, it may be considered that the user does not need to perform the application installation based on the pre-download, at this time, the pre-download file is equivalent to an unnecessary file, and therefore, the pre-download file may be deleted and the prompting of the first application installation prompting message is not performed any more, so as to save the storage space of the service device. Under the condition of deleting the pre-downloaded file, if the user needs to install the target application, the user needs to download the target application, namely, if the target application needs to be installed later, the service equipment can respond to the installation request aiming at the target application, acquire the complete application resource of the target application, load the complete application resource and install the target application. Optionally, the service device may obtain the complete application resource of the target application in response to the installation request for the target application in the application service center, and install the target application. The application service center refers to a center that can provide a service of an installation path of an application (including a target application), and may be an application installer, an application installation channel, an application installation platform, or the like, such as an application network where each application is located, or an application installation platform/channel carried by each service device, which is not limited herein.
Under the installation condition (2), if the file type of the pre-downloaded file is the resource type, responding to an installation request aiming at the target application, and installing the target application; the resource type is used for indicating that the pre-downloaded file comprises an application resource package, at this time, preliminary installation of the target application is realized, and the service device can start the target application. When the target application is started, the target application can be initialized, an application updating component in the target application is called, an application resource package is decrypted and moved to an application management position of the target application, the application resource package is loaded to the target application, and when the pre-downloaded file is moved, the target application is entered. Specifically, when the target application is initialized, the application management component can be initialized, the application update component in the target application is called by the application management component, the pre-downloaded file downloaded at the pre-download management position is decrypted and moved to the application management position of the target application, the application resource package included in the pre-downloaded file is further loaded and associated to the target application by the application update component, the resource loading of the target application is realized, the complete installation of the target application is completed, the application resource package is pre-downloaded, the downloading is not needed at this time, the loading can be directly performed, and the application installation efficiency is improved. Optionally, during the process of decrypting and moving the pre-downloaded file, the moving progress of the pre-downloaded file can be synchronized to the target application, and when the decrypting and moving of the pre-downloaded file are completed, a decrypting and moving process completion message, such as a moving success message or a moving failure message, of the pre-downloaded file is synchronized to the target application. Optionally, when the relocation failure message is detected, the decryption relocation process of the pre-downloaded file may be performed again, and so on. Optionally, when the process of associating the pre-downloaded file loading to the target application is completed, a resource loading completion message may be fed back to the application server, where the resource loading completion message may be a resource loading success message or a resource loading failure message, and optionally, the resource loading failure message may include, but is not limited to, a loading failure code, a loading failure reason, and the like, and further, the service device may reload the pre-downloaded file to the target application through the application management component based on the processing feedback information of the application server for the resource loading failure message. By the method, after the business equipment carries out primary installation on the target application, the pre-downloaded file (namely the application resource package) which is pre-downloaded can be directly used for entering the target application, and the downloading of the application resource package of the target application is not required to be waited for a long time, so that the user experience is optimized, CDN peak value when the user intensively downloads the application resource of the target application in a large batch is reduced, CDN cost of an application server is reduced, and application installation efficiency is improved.
Optionally, a third application installation prompting message may be output, where the third application installation prompting message is used to prompt the user that the application resource package of the target application is already pre-downloaded, and resource loading is performed after application installation is required, for example, the third application installation prompting message may be used to install the target application after searching for downloading the application installation package of the target application on an application service center (such as an application service store or a browser) if the application resource package of the target application is already pre-downloaded, and then use the pre-downloaded application resource package when entering the target application. "etc. When an installation request for a target application is detected, a process of installing the target application in response to the installation request for the target application is performed.
Under the installation condition (3), if the file type of the pre-downloaded file is a whole package type, that is, the pre-downloaded file comprises an application installation package and an application resource package, that is, the pre-downloaded file comprises a whole amount of files required for installing the target application, the application installation package in the pre-downloaded file is loaded, and the target application is installed. Specifically, when loading an application installation package in a pre-downloaded file and installing a target application, an application management component tool package can be called to decrypt the pre-downloaded file and install the pre-downloaded file to an application management position of the target application, and an application trigger component of the target application is output in service equipment, namely, the application management component tool package is called to decrypt the pre-downloaded file to obtain the application installation package in the pre-downloaded file, the application installation package is operated to install the target application to the application management position of the target application, and optionally, the application trigger component of the target application can be output in service equipment. Specifically, the process may refer to the relevant description in the installation case (1) that the file type of the pre-downloaded file is the installation type, which is not described herein. Further, when the target application is started, initializing the target application, calling an application updating component in the target application, decrypting and moving an application resource package to an application management position of the target application, loading the target application based on the application resource package, and entering the target application when the application resource package is successfully loaded. Specifically, the process may refer to the description related to the installation case (2) in which the file type of the pre-downloaded file is the resource type, which is not described herein. At this time, the application resources include application installation packages and application resource packages.
Alternatively, the service device may output a fourth application installation prompting message, where the fourth application installation prompting message is used to prompt the user that the full-volume file of the target application is already pre-downloaded, and may be installed directly, for example, the fourth application installation prompting message may be, for example, "whether the application installation package and the application resource package of the target application are both pre-downloaded and whether to confirm to install the game" or not. And if the installation confirmation operation aiming at the fourth application installation prompt message is detected, executing the process of loading the application installation package in the pre-downloaded file and installing the target application. And if the installation cancellation operation for the fourth application installation prompt message is detected, periodically outputting the fourth application installation prompt message, for example, prompting every other day, prompting every half a day, or the like, until the installation confirmation operation for the fourth application installation prompt message is detected, or when the number of times of cancellation of the detected installation cancellation operation is greater than or equal to an installation cancellation threshold value, stopping outputting the fourth application installation prompt message. At this time, when the output of the fourth application installation prompting message is stopped, if an installation confirmation operation for the fourth application installation prompting message is detected, an installation process for the target application is executed; and if the detected cancel times of the installation cancel operation are greater than or equal to the installation cancel threshold value, deleting the pre-downloaded file. For example, assuming that the install cancellation threshold is 5, that is, when the install cancellation operation is detected all five times of the fourth application install hint message is output, the user can be considered to be unnecessary to perform the application installation based on the pre-download. The description of the first application installation prompt message in the installation case (1) may be referred to specifically, and will not be described herein.
Specifically, if the application release state of the target application is the application update state, when the target application is online, the pre-download configuration information of the target application is obtained when the target application is started. And based on the pre-download configuration information, decrypting and moving the pre-download file from the pre-download management position to the application management position of the target application, and synchronizing the decryption and moving progress of the pre-download file to the target application in the decryption and moving process. And when the decryption and the relocation of the pre-downloaded file are completed, an application updating component of the target application is called, the pre-downloaded file is loaded based on the application updating component, and the target application is updated and installed.
Alternatively, the application installation state of the target application may be detected, and if the application installation state is the application installed state, a process of acquiring the pre-download configuration information of the target application when the target application is started is performed. And if the application installation state is the application uninstalled state, outputting a second application installation prompt message, and responding to the confirmation operation aiming at the second application installation prompt message to install the target application.
The application updating component is a component integrated in the target application and is used for decrypting and loading application resources of the target application.
Further, referring to fig. 4, fig. 4 is a flowchart of an application installation method according to an embodiment of the present application. As shown in fig. 4, the application installation process includes the steps of:
step S401, pre-download reservation is performed for the target application.
In the embodiment of the application, the service equipment can display the pre-downloading function aiming at the target application in the application service center, respond to the reservation operation of the pre-downloading function aiming at the target application and generate the application pre-downloading reservation information aiming at the target application. Or, in response to a reservation operation for the pre-download function of the target application, acquiring an application release state of the target application. If the application release state of the target application is a new application state, generating application pre-download reservation information aiming at the target application; the new application state is used for representing that the target application is released for the first time; if the application release state of the target application is the application update state, detecting the application installation state of the target application in the service equipment; the application update status is used to characterize that the target application is not initially published. If the application installation state of the target application is the application installed state, generating application pre-download reservation information aiming at the target application; if the application installation state of the target application is the application uninstalled state, displaying an application installation preparation message, wherein the application installation preparation message is used for prompting a user to reserve the pre-download of the target application, the pre-download reservation is needed to be performed on the basis of installing the target application, and further, after the target application is installed based on the application installation preparation message, the application pre-download reservation information aiming at the target application is generated. That is, the pre-download reservation can be made for any one of the applications; or, when the target application is issued for the first time, the pre-download reservation can be directly carried out; when the target application is not released for the first time, only the service device with the target application is installed, the pre-download reservation can be performed for the target application, and the limitation is not limited. The application pre-download reservation information is used for indicating that the service equipment reserves the pre-download function of the target application.
For example, referring to fig. 5, fig. 5 is a schematic diagram of a pre-download scenario provided in an embodiment of the present application. As shown in fig. 5, the service device may display N applications in the application service center 501, and a pre-download function for a first application of the N applications, where N is a positive integer, and the first application is an application having a pre-download function, such as the pre-download function of the application 1 and the application 1, and the pre-download function of the application 2 and the application 2 shown in fig. 5. Further, in response to the reservation operation for the pre-download function of the target application, the target application refers to an application program that triggers the pre-download function, and may be any one of N application programs, as shown in fig. 5, the target application is application program 2, a pre-download confirmation message 502 is displayed, and in response to the confirmation operation for the pre-download confirmation message 502, application pre-download reservation information for the target application is generated.
Step S402, when the pre-download for the target application is started, the application pre-download reservation information for the target application is acquired.
In an embodiment of the present application, as shown in fig. 5, optionally, when the pre-download for the target application is started, that is, when the pre-download time node of the target application is reached, the service device 503 may detect the application pre-download reservation information for the target application, and output a pre-download generation prompt message 504, for example, "query the pre-download file of the target application, is downloaded? "or the like, when a confirmation operation for generating the hint message 504 for pre-download is detected, the pre-download file of the target application is downloaded, or step S403 is performed. Specifically, reference may be made to the description of step S301 in fig. 3, and details thereof will not be repeated here.
Step S403, detecting a device state of the service device.
In the embodiment of the present application, the service device may detect the device state of the service device, and if the device state is the device idle state, execute step S404; if the device status is the device busy status, step S403 is repeatedly executed, and the device status of the service device is detected, that is, the pre-download task for the target application is suspended, until the device status of the service device is the device idle status, and step S404 is executed. Specifically, reference may be made to the description of step S301 in fig. 3, and details thereof will not be repeated here.
Step S404, when the device state of the business device is the device idle state, downloading the pre-download file of the target application to the pre-download management position.
In the embodiment of the present application, when the device state of the service device is the device idle state, the pre-download file of the target application is downloaded to the pre-download management location, and the specific description of step S302 in fig. 3 may be referred to, which is not repeated herein.
Step S405, when the target application is on line, the pre-downloaded file is moved from the pre-download management position to the application management position of the target application, and the target application is installed.
In the embodiment of the present application, the specific description of step S303 in fig. 3 may be referred to, and will not be described herein.
In the application pre-downloading process described in step S301 to step S302 of fig. 3, step S401 to step S404 of fig. 4, etc., an optional implementation process may refer to fig. 6, and fig. 6 is a schematic diagram of an application pre-downloading interaction flow provided by an embodiment of the present application, as shown in fig. 6, the process may include the following steps:
step S601, upload the pre-download file and the pre-download configuration information.
In the embodiment of the application, the application management device (APA device) can upload the pre-download file and the pre-download configuration information of the target application to the application server. Alternatively, the application manager may upload the pre-downloaded file and the pre-downloaded configuration information through the application management device. Specifically, the application management device may upload the pre-download file and the pre-download configuration information of the target application to the application server of the target application before reaching a pre-download time node of a pre-download file capable of downloading the target application before the target application is online, that is, the pre-download file and the pre-download configuration information are uploaded to the application server before the pre-download time node. Optionally, the application management device may obtain an application resource of the target application, where the application resource refers to a resource that may be pre-downloaded for the target application, and encrypt the application resource to obtain a pre-downloaded file. That is, the pre-downloaded file of the target application acquired by each service device is the same, and the pre-downloaded file is obtained by encryption. The pre-download configuration information may include, but is not limited to, a list of pre-download file names, a pre-download management location (i.e., a file download address for the pre-download file), file summary information (e.g., MD5 of the pre-download file, etc.), and a file size of the pre-download file.
In step S602, when the device status is the device idle status, the pre-download configuration information is queried.
In the embodiment of the application, when the equipment state is the equipment idle state, the service equipment can inquire the pre-download configuration information aiming at the target application from the application server through the application service center.
Step S603, searching for the pre-download configuration information.
In the embodiment of the application, the application server can search the pre-download configuration information of the target application.
Step S604, the pre-download configuration information and the result status code are returned.
In the embodiment of the application, the application server can feed back the pre-download configuration information and the result status code to the service equipment, wherein the result status code is used for indicating the integrity of the pre-download configuration information.
In step S605, when the pre-download reservation information is applied, the pre-download file is silently downloaded.
In the embodiment of the present application, when the application pre-download reservation information exists and the device state is the device idle state, the service device may silence and download the pre-download file of the target application from the application server to the pre-download management position in the pre-download configuration information, where the silence downloading refers to downloading under the condition that the operation of the service device is not affected and the use of the service device by the user, where the silence downloading may be performed under the condition that the download confirmation message for the application pre-download prompt message is used, that is, the authorization of the user is obtained, and may be specifically referred to the related description in step S301 in fig. 3. The pre-download management location is used for managing the pre-download files acquired through the application service center, and is not a directory where the pre-download files are located when the target application finally uses the pre-download files.
The service device may detect application pre-download reservation information for the target application at a pre-download time node of the target application, and if there is application pre-download reservation information, that is, the service device reserves a pre-download function of the target application, then detect a device state of the service device. Optionally, when the application release state of the target application is a new application state, the service device may trigger a pre-download function for the target application in the application service center to generate application pre-download reservation information. When the application release state of the target application is the application update state, the service device may trigger a pre-download function for the target application in the application service center to generate application pre-download reservation information. See for details the relevant description in step S401 of fig. 4. Optionally, when the application release state of the target application is the application update state, the service device may generate, in the target application, application pre-download reservation information for the target application in response to an update pre-download operation for the target application.
Specifically, reference may be made to the descriptions related to steps S301 to S302 in fig. 3, and the description thereof will not be repeated here.
Step S606, feeding back the pre-download result.
In the embodiment of the application, when the pre-download task for the target application is finished, the service equipment can feed back a pre-download result for the target application to the application server through the application service center, wherein the pre-download result comprises a pre-download failure result or a pre-download success result. Alternatively, the application server may further process the target application based on the pre-download result of the target application.
The target application may be any application program, and the pre-downloaded file is obtained by encryption, so when the pre-downloaded file is used, the service device needs to decrypt the pre-downloaded file, and loads the decrypted pre-downloaded file to the target application to install the target application. If the application release state of the target application is a new application state and the file type of the pre-downloaded file is an installation type, decrypting the pre-downloaded file by using an application management component tool kit; if the application release state of the target application is a new application state and the file type of the pre-downloaded file is a resource type, or if the application release state of the target application is an application update state, the pre-downloaded file may be decrypted by using an application update component of the target application. If the application release state of the target application is a new application state and the file type of the pre-downloaded file is a whole package type, decrypting the pre-downloaded file by using an application management component tool package to obtain an application installation package, decrypting the pre-downloaded file by using an application update component to obtain an application resource package and the like.
Further, when the application release state of the target application is the application update state, an optional application installation process for the target application may be shown in fig. 7, and fig. 7 is a schematic diagram of an application update interaction flow provided in the embodiment of the present application. As shown in fig. 7, integrating an application management component toolkit in a target application may include the following:
step S701, starting a target application, and initializing an application management component toolkit.
In the embodiment of the application, when the service equipment installs the target application, the application server and the application management component side cooperate to perform pre-download, the pre-download function is started, and the equipment information of the service equipment meets the pre-download condition, such as sufficient storage space of the service equipment, sufficient running resources of a central processing unit (central processing unit, CPU), the equipment state is an equipment idle state and the like, the service equipment can perform pre-download on the pre-download file of the target application. The business equipment starts a target application and initializes an application management component tool package.
In step S702, the pre-download configuration information is pulled.
In the embodiment of the application, the service equipment pulls the pre-downloaded configuration information of the target application from the application server through the application management component tool kit, and specifically, can send a configuration information acquisition request to the application server through the application management component tool kit.
Step S703, return the pre-download configuration information.
In the embodiment of the application, when the application server receives the configuration information acquisition request, the pre-download configuration information of the target application is fed back to the service equipment. Optionally, the service device may obtain the pre-download configuration information of the target application through an application management component toolkit.
Step S704, acquiring a pre-download management location.
In the embodiment of the application, the service equipment can acquire the pre-download management position from the application management component tool kit, wherein the pre-download management position refers to a catalog for storing downloaded pre-download files.
Step S705, query the pre-downloaded file information.
In an embodiment of the present application, the service device may query the application service center for pre-downloaded file information (Uniform Resource Identifier, URI), i.e. the pre-downloaded file URI, through the application management component toolkit. Alternatively, the business device may employ a content provider function (ContentProvider) to query the application service center for the pre-download file URI via the application management component toolkit. The ContentProvider refers to a standard interface for data exchange between different application programs, and can be used for data exchange between different application programs or different processes, such as data exchange between an application management component toolkit and an application service center. The pre-download file URI may include, but is not limited to, content providing function information, what operation is performed on the ContentProvider, a pre-download management location (such as a device name of the service device, an access path of the pre-download management location in the service device, and a pre-download file identifier, etc.), and is not limited herein.
Step S706, the pre-downloaded file information is returned.
In the embodiment of the application, the application server returns the pre-downloaded file URI to the service equipment.
Further, the business device may perform relocation processing on the pre-downloaded file of the target application, specifically refer to step S707 to step S708:
step S707, the pre-downloaded file is migrated.
In the embodiment of the application, the service equipment can carry out the relocation of the pre-downloaded file, and particularly, the pre-downloaded file is relocated from the download management position to the application management position of the target application. Optionally, the application update component of the target application may be used to decrypt the pre-downloaded file to obtain an application resource of the target application, and move the application resource to the application management location.
Step S708, synchronizing the moving progress.
In the embodiment of the application, the business equipment synchronizes the moving progress of the pre-downloaded file to the target application in the moving process of the pre-downloaded file. Step S707 to step S708 are continuously loaded until the migration of the pre-downloaded file is completed, and step S709 is executed.
Step S709, synchronize the relocation procedure completion message.
In the embodiment of the application, the service equipment synchronizes the relocation process completion message to the target application, such as a relocation success message or a relocation failure message.
The relocation and decryption relocation in the present application may be considered as the same meaning, for example, the relocation process is a decryption relocation process, and the relocation process completion message is a decryption relocation process completion message. The foregoing relocation process may be described with reference to step S303 in fig. 3.
Step S710, determining the application management location as the application installation directory.
In the embodiment of the present application, the service device acquires the relocation process completion message from the target application, determines the application management location as the application installation directory, and triggers step S711.
Step S711, the target application is updated with the pre-downloaded file.
In the embodiment of the application, the service equipment invokes the pre-downloaded file through the application updating component to update the target application, thereby realizing the updating and the installation of the target application.
Step S712, feeding back the application update result.
In the embodiment of the application, when the updating of the target application is completed, the service equipment feeds back an application updating result to the target application through the application updating component. When the application updating result is an application updating success result, the updating and the installation of the target application are successfully realized; and when the application updating result is an application updating failure result, the pre-downloaded file can be recalled to update and install the target application.
In the embodiment of the application, when the pre-downloading of the target application is started, if the service equipment detects the application pre-downloading reservation information of the target application, the equipment state of the service equipment is detected; when the equipment state of the service equipment is the equipment idle state, downloading the pre-downloaded file of the target application to a pre-download management position; and when the target application is online, decrypting and moving the pre-downloaded file from the pre-download management position to the application management position of the target application, and installing the target application. Through the above process, when the target application is not on line, the target application can be pre-downloaded, that is, files required by the installation of the target application (i.e. pre-downloaded files) are downloaded in advance, and when the target application is on line, the installation of the target application can be realized directly based on the pre-downloaded files. And the pre-download file of the target application is carried out when the service equipment is idle, namely, the pre-download file does not conflict with the use of the service equipment by a user, so that the idle time of the service equipment can be reasonably utilized, the equipment utilization rate is improved, and the user experience is optimized. In addition, the pre-downloading function is provided, so that a user can directly reserve the pre-downloading function when the user needs, and when the pre-downloading is started, the pre-downloading process can be performed without the user paying attention to the online time of the target application, and the like, so that the early propaganda conversion rate of the target application can be improved.
Further, referring to fig. 8, fig. 8 is a schematic diagram of an application pre-downloading device according to an embodiment of the present application. The application pre-download means may be a computer program (comprising program code, etc.) running in a computer device, for example the application pre-download means may be an application software; the device can be used for executing corresponding steps in the method provided by the embodiment of the application. As shown in fig. 8, the application pre-downloading apparatus 800 may be used in the computer device in the embodiment corresponding to fig. 3, and specifically, the apparatus may include: a device detection module 11, a file download module 12 and an application installation module 13.
The device detection module 11 is configured to detect a device state of the service device if the service device detects application pre-download reservation information for the target application when the pre-download for the target application is started;
a file downloading module 12, configured to download a pre-downloaded file of the target application to a pre-download management location when the device state of the service device is a device idle state;
and the application installation module 13 is used for decrypting and moving the pre-downloaded file from the pre-download management position to the application management position of the target application when the target application is on line, and installing the target application.
Wherein the apparatus 800 further comprises:
the release detection module 14 is configured to display a pre-download function for a target application in the application service center, and obtain an application release state of the target application in response to a reservation operation of the pre-download function for the target application;
the reservation generation module 15 is configured to generate application pre-download reservation information for the target application if the application release state of the target application is a new application state; the new application state is used for representing that the target application is released for the first time;
the installation detection module 16 is configured to detect an application installation state of the target application in the service device if the application release state of the target application is an application update state; the application update state is used to characterize that the target application is not initially published;
the reservation generation module 15 is further configured to generate application pre-download reservation information for the target application if the application installation state of the target application is an application installed state;
the installation prompting module 17 is configured to display an application installation preparation message if the application installation state of the target application is an application uninstalled state, and generate application pre-download reservation information for the target application after installing the target application based on the application installation preparation message.
Wherein the device detection module 11 comprises:
a pre-download prompting unit 111, configured to output an application pre-download prompting message if the service device detects application pre-download reservation information for the target application when pre-download for the target application is started;
a device detection unit 112 for detecting a device state of the service device when a download confirmation operation for the application pre-download hint message is detected;
the apparatus 800 further comprises:
the pre-download waiting module 18 is configured to suspend the pre-download task for the target application if the device state of the service device is a device busy state, until a process of downloading the pre-download file of the target application to the pre-download management location is triggered when the device state of the service device is a device idle state.
Wherein the file download module 12 comprises:
a download request unit 121, configured to send a pre-download request to an application server of a target application when a device state of a service device is a device idle state;
an information receiving unit 122, configured to receive the pre-download configuration information and the result status code of the target application sent by the application server based on the pre-download request; the result status code is used for indicating the integrity of the pre-download configuration information;
And the file downloading unit 123 is configured to download the pre-downloaded file of the target application to the pre-download management location based on the pre-download configuration information if the result status code indicates that the pre-download configuration information is complete.
Wherein the apparatus 800 further comprises:
a result feedback module 19, configured to send a pre-download result to an application server of the target application when downloading the pre-download file of the target application to the pre-download management location is finished;
the re-downloading module 20 is configured to return to executing the process of detecting the device state of the service device if the pre-downloading result is a pre-downloading failure result;
the task marking module 21 is configured to mark the pre-download task for the target application as a completed state if the pre-download result is a successful pre-download result.
If the application release status of the target application is a new application status, the application installation module 13 includes:
a type acquisition unit 131 for acquiring a file type of a pre-downloaded file at a pre-download management position when a target application is online;
the application installation unit 132 is configured to decrypt and move the pre-downloaded file to an application management location of the target application based on the file type of the pre-downloaded file, and install the target application.
Wherein the application installation unit 132 includes:
the application installation subunit 1321 is configured to invoke an application management component toolkit if the file type of the pre-downloaded file is an installation type, decrypt the pre-downloaded file, install the pre-downloaded file to an application management location of the target application, and output an application trigger component of the target application in the service device; the installation type is used to indicate that the pre-downloaded file includes an application installation package;
the resource loading subunit 1322 is configured to load an application installation resource of the target application when the target application is started based on the application triggering component.
Wherein the apparatus 800 comprises:
the installation calling module 22 is configured to output a first application installation prompt message, and if an installation confirmation operation for the first application installation prompt message is detected, execute a process of calling an application management component toolkit;
the installation confirmation module 23 is configured to, if an installation cancellation operation for the first application installation prompt message is detected, periodically output the first application installation prompt message until an installation confirmation operation for the first application installation prompt message is detected, or when the number of times of cancellation of the detected installation cancellation operation is greater than or equal to an installation cancellation threshold, stop outputting the first application installation prompt message;
The file deleting module 24 is configured to delete the pre-downloaded file if the number of times of the detected installation cancellation operation is greater than or equal to the installation cancellation threshold.
Wherein the application installation unit 132 includes:
an initial installation subunit 1323, configured to respond to an installation request for the target application if the file type of the pre-downloaded file is a resource type, and install the target application; the resource type is used to indicate that the pre-downloaded file includes an application resource package;
the resource loading subunit 1322 is further configured to initialize the target application when the target application is started, invoke an application update component in the target application, decrypt and move an application resource package to an application management location of the target application, load the application resource package to the target application, and enter the target application when the pre-downloaded file is moved.
Wherein the application installation unit 132 includes:
the installation loading subunit 1324 is configured to load an application installation package in the pre-downloaded file and install the target application if the file type of the pre-downloaded file is a whole package type; the whole package type is used for indicating that the pre-downloaded file comprises an application installation package and an application resource package;
the resource loading subunit 1322 is further configured to initialize the target application when the target application is started, invoke an application update component in the target application, decrypt and move an application resource package to an application management location of the target application, load the target application based on the application resource package, and enter the target application when the application resource package is successfully loaded.
If the application release status of the target application is the application update status, the application installation module 13 installs the target application, including:
an information obtaining unit 133, configured to obtain pre-download configuration information of a target application when the target application is started when the target application is online;
a file relocation unit 134, configured to decrypt and relocate the pre-downloaded file from the pre-download management location to the application management location of the target application based on the pre-download configuration information, and synchronize the decryption relocation schedule of the pre-downloaded file to the target application during the decryption relocation process;
the application updating unit 135 is configured to invoke an application updating component of the target application when the decryption and relocation of the pre-downloaded file are completed, and update and install the target application based on the pre-downloaded file loaded by the application updating component.
Wherein the apparatus 800 further comprises:
the information calling module 25 is configured to detect an application installation state of the target application, and if the application installation state is an application installed state, execute a process of acquiring pre-download configuration information of the target application when the target application is started;
the application installation module 13 is configured to output a second application installation prompt message if the application installation state is an application uninstalled state, and install the target application in response to a confirmation operation for the second application installation prompt message.
The embodiment of the application provides an application pre-downloading device, which can detect the equipment state of service equipment if the service equipment detects the application pre-downloading reservation information aiming at a target application when the pre-downloading of the target application is started; when the equipment state of the service equipment is the equipment idle state, downloading the pre-downloaded file of the target application to a pre-download management position; and when the target application is online, decrypting and moving the pre-downloaded file from the pre-download management position to the application management position of the target application, and installing the target application. Through the above process, when the target application is not on line, the target application can be pre-downloaded, that is, files required by the installation of the target application (i.e. pre-downloaded files) are downloaded in advance, and when the target application is on line, the installation of the target application can be realized directly based on the pre-downloaded files. And the pre-download file of the target application is carried out when the service equipment is idle, namely, the pre-download file does not conflict with the use of the service equipment by a user, so that the idle time of the service equipment can be reasonably utilized, the equipment utilization rate is improved, and the user experience is optimized. In addition, the pre-downloading function is provided, so that a user can directly reserve the pre-downloading function when the user needs, and when the pre-downloading is started, the pre-downloading process can be performed without the user paying attention to the online time of the target application, and the like, so that the early propaganda conversion rate of the target application can be improved.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 9, the computer device in the embodiment of the present application may include: one or more processors 901, memory 902, and input-output interfaces 903. The processor 901, memory 902, and input-output interface 903 are connected via a bus 904. The memory 902 is used for storing a computer program, and the computer program includes program instructions, and the input/output interface 903 is used for receiving data and outputting data, for example, for performing data interaction between service equipment and an application server, or for performing data interaction between various components in the service equipment (such as an application management component and an application update component); the processor 901 is configured to execute program instructions stored in the memory 902.
The processor 901 may perform the following operations, among others:
when the pre-downloading of the target application is started, if the service equipment detects the pre-downloading reservation information of the application of the target application, detecting the equipment state of the service equipment;
when the equipment state of the service equipment is the equipment idle state, downloading the pre-downloaded file of the target application to a pre-download management position;
When the target application is on line, the pre-downloaded file is moved from the pre-download management position to the application management position of the target application, and the target application is installed.
In some possible implementations, the processor 901 may be a central processing unit (centralprocessing unit, CPU), which may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (applicationspecific integrated circuit, ASIC), off-the-shelf programmable gate arrays (field-programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 902 may include read only memory and random access memory and provides instructions and data to the processor 901 and the input output interface 903. A portion of the memory 902 may also include non-volatile random access memory. For example, the memory 902 may also store information of device type.
In a specific implementation, the computer device may execute, through each functional module built in the computer device, an implementation manner provided by each step in fig. 3, and specifically, the implementation manner provided by each step in fig. 3 may be referred to, which is not described herein.
An embodiment of the present application provides a computer device, including: the processor, the input/output interface and the memory acquire the computer program in the memory through the processor, execute the steps of the method shown in fig. 3, and perform the application pre-downloading operation. The embodiment of the application realizes that when the pre-downloading starting of the target application is realized, if the service equipment detects the application pre-downloading reservation information of the target application, the equipment state of the service equipment is detected; when the equipment state of the service equipment is the equipment idle state, downloading the pre-downloaded file of the target application to a pre-download management position; and when the target application is online, decrypting and moving the pre-downloaded file from the pre-download management position to the application management position of the target application, and installing the target application. Through the above process, when the target application is not on line, the target application can be pre-downloaded, that is, files required by the installation of the target application (i.e. pre-downloaded files) are downloaded in advance, and when the target application is on line, the installation of the target application can be realized directly based on the pre-downloaded files. And the pre-download file of the target application is carried out when the service equipment is idle, namely, the pre-download file does not conflict with the use of the service equipment by a user, so that the idle time of the service equipment can be reasonably utilized, the equipment utilization rate is improved, and the user experience is optimized. In addition, the pre-downloading function is provided, so that a user can directly reserve the pre-downloading function when the user needs, and when the pre-downloading is started, the pre-downloading process can be performed without the user paying attention to the online time of the target application, and the like, so that the early propaganda conversion rate of the target application can be improved.
The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program is adapted to be loaded by the processor and execute the application pre-downloading method provided by each step in fig. 3, and specifically refer to an implementation manner provided by each step in fig. 3, which is not described herein again. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application. As an example, a computer program may be deployed to be executed on one computer device or on multiple computer devices at one site or distributed across multiple sites and interconnected by a communication network.
The computer readable storage medium may be the application pre-downloading apparatus provided in any of the foregoing embodiments or an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (flash card) or the like, which are provided on the computer device. Further, the computer-readable storage medium may also include both internal storage units and external storage devices of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and executes the computer instructions, so that the computer device executes the methods provided in various optional modes in fig. 3, and when the target application is not online, the pre-download processing is realized, that is, files required by the installation of the target application (i.e., the pre-download files) are downloaded in advance, and when the target application is online, the installation of the target application can be realized directly based on the pre-download files, at this time, because part or all of application resources required by the installation of the target application are already downloaded, only a small amount of data acquisition and loading processing are required for the installation of the target application, so that the time required by the installation of the target application is greatly saved, the installation efficiency of the application is improved, and because in the installation and loading process of the target application, the page is generally required to be kept, the time required by the installation of the target application is saved, the time that cannot be operated is reduced, the installation performance and convenience of the application are improved, and the user installation experience is improved. And the pre-download file of the target application is carried out when the service equipment is idle, namely, the pre-download file does not conflict with the use of the service equipment by a user, so that the idle time of the service equipment can be reasonably utilized, the equipment utilization rate is improved, and the user experience is optimized. In addition, the pre-downloading function is provided, so that a user can directly reserve the pre-downloading function when the user needs, and when the pre-downloading is started, the pre-downloading process can be performed without the user paying attention to the online time of the target application, and the like, so that the early propaganda conversion rate of the target application can be improved.
The terms first, second and the like in the description and in the claims and drawings of embodiments of the application are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the term "include" and any variations thereof is intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or modules but may, in the alternative, include other steps or modules not listed or inherent to such process, method, apparatus, article, or device.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in this description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method and related apparatus provided in the embodiments of the present application are described with reference to the flowchart and/or schematic structural diagrams of the method provided in the embodiments of the present application, and each flow and/or block of the flowchart and/or schematic structural diagrams of the method may be implemented by computer program instructions, and combinations of flows and/or blocks in the flowchart and/or block diagrams. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable application pre-download device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable application pre-download device, create means for implementing the functions specified in the flowchart flow or flows and/or block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable application pre-download device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable application pre-download device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart flow or flows and/or structures block or blocks.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.

Claims (13)

1. An application pre-download method, the method comprising:
when pre-downloading starting aiming at a target application, if service equipment detects application pre-downloading reservation information aiming at the target application, the service equipment outputs application pre-downloading prompt information;
when a download canceling operation aiming at the application pre-download prompt message is detected, outputting the application pre-download prompt message again when a specified entity interval is passed, and deleting the application pre-download reservation information aiming at the target application until the number of detected download canceling operations is greater than or equal to a pre-download canceling threshold value;
detecting the equipment state of the service equipment when detecting the download confirmation operation of the application pre-download prompt message;
When the equipment state of the service equipment is the equipment idle state, downloading the pre-downloaded file of the target application to a pre-download management position through an application service center; the pre-download management position is used for managing the pre-download files acquired by the application service center; the pre-downloaded file is uploaded by an application management device;
if the application release state of the target application is a new application state, determining a decryption mode of the pre-downloaded file based on the file type of the pre-downloaded file at the pre-download management position when the target application is online, decrypting and moving the pre-downloaded file from the pre-download management position to the application management position of the target application by adopting the decryption mode of the pre-downloaded file, loading the file of the file type of the target application except the file type of the pre-downloaded file, and installing the target application; the pre-downloaded files are obtained by encrypting application resources of the target application, and the pre-downloaded files of the target application obtained by different service devices are the same;
if the application release state of the target application is an application update state, when the target application is online, acquiring pre-download configuration information of the target application, decrypting and moving the pre-download file from the pre-download management position to the application management position of the target application based on the pre-download configuration information, and synchronizing the decryption and moving progress of the pre-download file to the target application in the decryption and moving process; and when the decryption and the relocation of the pre-downloaded file are completed, an application updating component of the target application is called, the pre-downloaded file is loaded based on the application updating component, the target application is updated and installed, and the pre-downloaded files of the target application acquired by different service devices are the same.
2. The method of claim 1, wherein the method further comprises:
displaying a pre-download function for the target application in an application service center, and responding to a reservation operation of the pre-download function for the target application to acquire an application release state of the target application;
if the application release state of the target application is a new application state, generating application pre-download reservation information aiming at the target application; the new application state is used for representing that the target application is issued for the first time;
if the application release state of the target application is an application update state, detecting the application installation state of the target application in the service equipment; the application update status is used to characterize that the target application is not initially published;
if the application installation state of the target application is the application installed state, generating application pre-download reservation information aiming at the target application;
and if the application installation state of the target application is the application uninstalled state, displaying an application installation preparation message, and generating application pre-download reservation information for the target application after installing the target application based on the application installation preparation message.
3. The method of claim 1, wherein the method further comprises:
and if the equipment state of the service equipment is the equipment busy state, suspending the pre-downloading task aiming at the target application until the process of downloading the pre-downloading file of the target application to a pre-downloading management position is triggered when the equipment state of the service equipment is the equipment idle state.
4. The method of claim 1, wherein downloading the pre-download file of the target application to a pre-download management location through an application service center when the device state of the business device is a device idle state comprises:
when the equipment state of the service equipment is the equipment idle state, sending a pre-downloading request to an application server of the target application through an application service center;
receiving the pre-download configuration information and the result status code of the target application sent by the application server based on the pre-download request; the result status code is used for indicating the integrity of the pre-download configuration information;
and if the result status code indicates that the pre-download configuration information is complete, downloading the pre-download file of the target application to a pre-download management position based on the pre-download configuration information.
5. The method of claim 1, wherein the method further comprises:
when downloading the pre-downloaded file of the target application to a pre-download management position is finished, sending a pre-download result to an application server of the target application;
if the pre-download result is a pre-download failure result, returning to execute the process of detecting the equipment state of the service equipment;
and if the pre-downloading result is a successful pre-downloading result, marking the pre-downloading task aiming at the target application as a finished state.
6. The method of claim 1, wherein the determining a decryption manner for the pre-downloaded file based on the file type of the pre-downloaded file at the pre-download management location, moving the pre-downloaded file to the application management location of the target application using the decryption manner for the pre-downloaded file, and loading files of file types of the target application other than the file type of the pre-downloaded file, comprises:
if the file type of the pre-downloaded file is the installation type, an application management component tool kit is called, the pre-downloaded file is decrypted and installed at an application management position of the target application, and an application triggering component of the target application is output in the service equipment; the installation type is used to indicate that the pre-downloaded file includes an application installation package; the decryption mode of the pre-downloaded file is that the application management component toolkit is called, and the pre-downloaded file is decrypted;
When the target application is started based on the application triggering component, loading application installation resources of the target application; and the files of the file types except the file types of the pre-downloaded files are application installation resources.
7. The method of claim 6, wherein the method further comprises:
outputting a first application installation prompt message, and executing the process of calling an application management component toolkit if the installation confirmation operation for the first application installation prompt message is detected;
if the installation cancellation operation aiming at the first application installation prompt message is detected, periodically outputting the first application installation prompt message until the installation confirmation operation aiming at the first application installation prompt message is detected or the cancellation times of the detected installation cancellation operation are greater than or equal to an installation cancellation threshold value, stopping outputting the first application installation prompt message;
and if the detected cancel times of the installation cancel operation are greater than or equal to an installation cancel threshold value, deleting the pre-downloaded file.
8. The method of claim 1, wherein the determining a decryption manner for the pre-downloaded file based on the file type of the pre-downloaded file at the pre-download management location, moving the pre-downloaded file to the application management location of the target application using the decryption manner for the pre-downloaded file, and loading files of file types of the target application other than the file type of the pre-downloaded file, comprises:
If the file type of the pre-downloaded file is a resource type, responding to an installation request aiming at the target application, and installing the target application; the resource type is used for indicating that the pre-downloaded file comprises an application resource package; the file of the file type of the target application except the file type of the pre-downloaded file is a file for installing the target application;
when the target application is started, initializing the target application, calling an application updating component in the target application, decrypting and moving the application resource package to an application management position of the target application, loading the application resource package to the target application, and entering the target application when the pre-downloaded file is moved; and the decryption mode of the pre-downloaded file is that an application updating component in the target application is called, and the pre-downloaded file is decrypted.
9. The method of claim 1, wherein the determining a decryption manner for the pre-downloaded file based on the file type of the pre-downloaded file at the pre-download management location, moving the pre-downloaded file to the application management location of the target application using the decryption manner for the pre-downloaded file, and loading files of file types of the target application other than the file type of the pre-downloaded file, comprises:
If the file type of the pre-downloaded file is the whole package type, an application management component tool package is called, the pre-downloaded file is decrypted, an application installation package in the pre-downloaded file is obtained, the application installation package in the pre-downloaded file is loaded, and the target application is installed; the whole package type is used for indicating that the pre-downloaded file comprises the application installation package and an application resource package;
when the target application is started, initializing the target application, calling an application updating component in the target application, decrypting and moving the application resource package to an application management position of the target application, loading the target application based on the application resource package, and entering the target application when the application resource package is successfully loaded; the target application is empty for files of file types other than the file type of the pre-downloaded file; the decryption mode of the pre-downloaded file comprises the steps of calling an application management component tool package to decrypt the pre-downloaded file, and calling an application updating component of the target application to decrypt and move the application resource package.
10. The method of claim 1, wherein the method further comprises:
Detecting an application installation state of the target application, and executing the process of acquiring pre-download configuration information of the target application when the target application is online if the application installation state is an application installed state;
and if the application installation state is the application uninstalled state, outputting a second application installation prompt message, and responding to the confirmation operation aiming at the second application installation prompt message to install the target application.
11. An application pre-download device, the device comprising:
the device detection module is used for outputting an application pre-download prompt message if the service device detects application pre-download reservation information aiming at the target application when the pre-download aiming at the target application is started;
the device detection module is further configured to, when a download cancellation operation for the application pre-download prompt message is detected, output the application pre-download prompt message again when a specified entity interval passes, until the number of detected download cancellation operations is greater than or equal to a pre-download cancellation threshold, and delete application pre-download reservation information for the target application;
The device detection module is further configured to detect a device state of the service device when a download confirmation operation for the application pre-download hint message is detected;
the file downloading module is used for downloading the pre-downloaded file of the target application to a pre-download management position through the application service center when the equipment state of the service equipment is the equipment idle state; the pre-download management position is used for managing the pre-download files acquired by the application service center; the pre-downloaded file is uploaded by an application management device;
an application installation module, configured to, if an application release state of the target application is a new application state, when the target application is online, move the pre-downloaded file from the pre-download management position to an application management position of the target application based on a file type of the pre-downloaded file at the pre-download management position, and load a file of a file type of the target application other than the file type of the pre-downloaded file, and install the target application;
the application installation module is further configured to, if the application release state of the target application is an application update state, obtain pre-download configuration information of the target application when the target application is online, decrypt and move the pre-download file from the pre-download management position to the application management position of the target application based on the pre-download configuration information, and synchronize the decryption and movement progress of the pre-download file to the target application in the decryption and movement process; and when the decryption and the relocation of the pre-downloaded file are completed, an application updating component of the target application is called, the pre-downloaded file is loaded based on the application updating component, and the target application is updated and installed.
12. A computer device, comprising a processor, a memory, and an input-output interface;
the processor is connected to the memory and the input/output interface, respectively, wherein the input/output interface is used for receiving data and outputting data, the memory is used for storing a computer program, and the processor is used for calling the computer program to enable the computer device to execute the method of any one of claims 1-10.
13. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the method of any of claims 1-10.
CN202310198269.4A 2023-03-03 2023-03-03 Application pre-download method, device, computer and storage medium Active CN115878138B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310198269.4A CN115878138B (en) 2023-03-03 2023-03-03 Application pre-download method, device, computer and storage medium
CN202311304064.6A CN117331576A (en) 2023-03-03 2023-03-03 Application pre-download method, device, computer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310198269.4A CN115878138B (en) 2023-03-03 2023-03-03 Application pre-download method, device, computer and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202311304064.6A Division CN117331576A (en) 2023-03-03 2023-03-03 Application pre-download method, device, computer and storage medium

Publications (2)

Publication Number Publication Date
CN115878138A CN115878138A (en) 2023-03-31
CN115878138B true CN115878138B (en) 2023-08-15

Family

ID=85761929

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310198269.4A Active CN115878138B (en) 2023-03-03 2023-03-03 Application pre-download method, device, computer and storage medium
CN202311304064.6A Pending CN117331576A (en) 2023-03-03 2023-03-03 Application pre-download method, device, computer and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202311304064.6A Pending CN117331576A (en) 2023-03-03 2023-03-03 Application pre-download method, device, computer and storage medium

Country Status (1)

Country Link
CN (2) CN115878138B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116405540B (en) * 2023-06-02 2023-08-04 腾讯科技(深圳)有限公司 Resource pre-downloading method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713407A (en) * 2016-06-29 2017-05-24 腾讯科技(深圳)有限公司 Pre-downloading method and pre-downloading device
CN111199295A (en) * 2018-11-16 2020-05-26 北京奇虎科技有限公司 Product reservation method and device
CN111459511A (en) * 2020-03-31 2020-07-28 北京百度网讯科技有限公司 Application program downloading method and device and electronic equipment
CN112764772A (en) * 2019-11-06 2021-05-07 腾讯科技(深圳)有限公司 Pre-downloading method, loading method, device, equipment and medium for updating file
CN114553858A (en) * 2022-02-15 2022-05-27 支付宝(杭州)信息技术有限公司 Resource pre-downloading method, device and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767069B (en) * 2020-06-30 2024-03-15 北京百度网讯科技有限公司 Applet processing method, server, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713407A (en) * 2016-06-29 2017-05-24 腾讯科技(深圳)有限公司 Pre-downloading method and pre-downloading device
CN111199295A (en) * 2018-11-16 2020-05-26 北京奇虎科技有限公司 Product reservation method and device
CN112764772A (en) * 2019-11-06 2021-05-07 腾讯科技(深圳)有限公司 Pre-downloading method, loading method, device, equipment and medium for updating file
CN111459511A (en) * 2020-03-31 2020-07-28 北京百度网讯科技有限公司 Application program downloading method and device and electronic equipment
CN114553858A (en) * 2022-02-15 2022-05-27 支付宝(杭州)信息技术有限公司 Resource pre-downloading method, device and equipment

Also Published As

Publication number Publication date
CN115878138A (en) 2023-03-31
CN117331576A (en) 2024-01-02

Similar Documents

Publication Publication Date Title
EP4047487A1 (en) File storage method, terminal, and storage medium
CN109491776B (en) Task arranging method and system
CN109634619B (en) Trusted execution environment implementation method and device, terminal device and readable storage medium
EP2919440B1 (en) Advertisement processing method and device
CN113296792B (en) Storage method, device, equipment, storage medium and system
CN110752947A (en) K8s cluster deployment method and device, and deployment platform
CN110389935B (en) Method, equipment and computer storage medium for starting small program
CN110968331B (en) Method and device for running application program
CN109032796B (en) Data processing method and device
US9930063B2 (en) Random identifier generation for offline database
CN115878138B (en) Application pre-download method, device, computer and storage medium
CN113626286A (en) Multi-cluster instance processing method and device, electronic equipment and storage medium
CN114125028A (en) Running method, device, equipment, storage medium and program product of micro application
CN110890987A (en) Method, device, equipment and system for automatically creating cluster
CN116257438A (en) Updating method of interface test case and related equipment
CN112866406B (en) Data storage method, system, device, equipment and storage medium
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN113986825B (en) System, method and device for data migration, electronic equipment and readable storage medium
CN113268272B (en) Application delivery method, device and system based on private cloud
CN113407339A (en) Resource request feedback method and device, readable storage medium and electronic equipment
CN111596933A (en) File processing method and device, electronic equipment and computer readable storage medium
CN113765983A (en) Site service deployment method and device
CN112416980A (en) Data service processing method, device and equipment
CN113094211B (en) Backup data processing method and device
CN115150242B (en) Deployment method and system of PaaS application

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40083142

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant