WO2021248337A1 - Application installation method and apparatus, and device and computer-readable storage medium - Google Patents

Application installation method and apparatus, and device and computer-readable storage medium Download PDF

Info

Publication number
WO2021248337A1
WO2021248337A1 PCT/CN2020/095207 CN2020095207W WO2021248337A1 WO 2021248337 A1 WO2021248337 A1 WO 2021248337A1 CN 2020095207 W CN2020095207 W CN 2020095207W WO 2021248337 A1 WO2021248337 A1 WO 2021248337A1
Authority
WO
WIPO (PCT)
Prior art keywords
download
package
resource
application
installation
Prior art date
Application number
PCT/CN2020/095207
Other languages
French (fr)
Chinese (zh)
Inventor
王小龙
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN202080100558.0A priority Critical patent/CN115516419A/en
Priority to PCT/CN2020/095207 priority patent/WO2021248337A1/en
Publication of WO2021248337A1 publication Critical patent/WO2021248337A1/en

Links

Images

Classifications

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

Definitions

  • This application relates to the field of terminal technology, and in particular to an application installation method, device, device, and computer-readable storage medium.
  • the software store client when a user downloads and installs an application on a terminal, the software store client usually downloads and installs the Android Application Package (APK) file of the corresponding application according to the user's operation on its back-end server ,
  • API Android Application Package
  • the application When the application is successfully installed and started, it will download the corresponding OBB (Opaque Binary Blob) format resource file from the Google server, and complete the normal startup by calling the resource in the OBB file.
  • OBB Open Binary Blob
  • This method often has the problem that the application cannot be started normally due to the inability to obtain the OBB file, thereby reducing the success rate of the application installation; or, some software stores will use the APK file and the OBB file to be compressed in the same compressed package.
  • the file is used as the installation file of the application, but the terminal cannot directly recognize and install the compressed file packaged in the whole package, thereby reducing the installation efficiency of the application installation.
  • the embodiments of the present application provide an application installation method, device, device, and computer-readable storage medium, which can improve the success rate and installation efficiency of application installation.
  • the embodiment of the application provides an application installation method, including:
  • the target application After the target application is downloaded successfully, obtain the application installation package and resource package corresponding to the target application from the preset download directory; the application installation package and the resource package are downloaded from the server in the application library through the same background download task The obtained sub-packaged data package;
  • An embodiment of the application provides an application installation device, including an acquiring part, a moving part, and an installing part, where:
  • the obtaining part is configured to obtain the application installation package and resource package corresponding to the target application from a preset download directory after the target application is successfully downloaded; the application installation package and the resource package are download tasks through the same background , The sub-packaged data package obtained from the server of the application library;
  • the moving part is configured to create a preset resource directory and move the resource package to the preset resource directory; the preset resource directory is used to store resources called when the target application is running;
  • the installation part is configured to perform software installation on the target application and resource association configuration under the preset resource directory through the application installation package and the resource package, respectively, to complete the installation of the target application.
  • An embodiment of the present application provides an application installation device, including:
  • Memory used to store executable instructions
  • the processor is configured to implement the method provided in the embodiment of the present application when executing the executable instructions stored in the memory.
  • the embodiment of the present application provides a computer-readable storage medium that stores executable instructions for causing a processor to execute to implement the method provided in the embodiment of the present application.
  • the application installation device can automatically complete the software installation and resource configuration of the target application at one time based on the application installation package and resource package acquired in the same download process, and there is no need to restart the application when the application is started. To download resource files, there is no need for additional special installation tools. After the application is installed, it can be started and run normally, thereby improving the success rate and installation efficiency of application installation.
  • FIG. 1 is an optional structural schematic diagram of an application installation system architecture provided by an embodiment of the present application
  • Figure 2 is a schematic diagram of a resource package warehousing process provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of an optional structure of a terminal provided by an embodiment of the present application.
  • FIG. 4 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 5 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 6 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 7 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 8 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 9 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 10 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 11 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • Figure 12 is a schematic diagram of installing a target application in a software store provided by an embodiment of the present application
  • FIG. 13 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 14 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 15 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 16 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • Figure 17 is a schematic diagram of suspending the download of a target application in a software store provided by an embodiment of the present application
  • FIG. 18 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 19 is a schematic diagram of deleting a downloading target application in a software store provided by an embodiment of the present application.
  • FIG. 20 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 21 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 22 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • FIG. 23 is an optional flowchart of an application installation method provided by an embodiment of the present application.
  • the embodiments of the application provide an application installation method, device, equipment, and storage medium, which can improve the success rate and installation efficiency of application installation.
  • the application installation equipment provided in the embodiments of the application can be implemented as a smart phone, a tablet computer, a notebook computer, etc.
  • Various types of user terminals can also be implemented as servers.
  • an exemplary application when the application installation device is implemented as a terminal will be explained.
  • FIG. 1 is a schematic diagram of an optional architecture of an application installation system 100 provided by an embodiment of the present application.
  • a terminal 400 that is, an application installation device, exemplarily shows a terminal 400-1).
  • the terminal 400-2) is connected to the server 200 through the network 300, and the database 500 provides data support and interaction to the server 200.
  • the network 300 may be a wide area network or a local area network, or a combination of the two.
  • the terminal 400 is used for displaying the front-end display interface in the installed application library software platform on the graphical interface 410 (illustrating the graphical interface 410-1 and the graphical interface 410-2 as an example), and receiving the user's display interface on the application library According to the operation, the corresponding application installation, download, update and other processing are carried out.
  • the server 200 may be a background server in the application library software platform, which stores a large number of application installation files, and is used to provide the terminal 400 with software and application search, download, installation and update through the platform client installed on the terminal 400 And other functions.
  • the application installation files stored on the server 200 may include application installation packages and resource packages, and the server 200 will package the application installation packages and resource packages of each application and store them in the corresponding application.
  • the server 200 will package the application installation packages and resource packages of each application and store them in the corresponding application.
  • On the network storage path and when receiving the acquisition request from the terminal 400, provide the terminal 400 with the network storage path of the installation file of the corresponding application, so that the terminal 400 can download the application installation package of the application from the corresponding network storage path And resource packs.
  • the resource pack on the Android platform is usually in the OBB file format.
  • the OBB format data package is a general data package for Android games, which is more common in some large games, and it also appears in the form of a Data file or an md5.dat file. Since OBB files are usually large, problems such as long upload and download time and data loss are likely to occur during transmission on the network. Therefore, when the application installation file provider uploads OBB resources to the server 200, a common way is to upload the OBB The file and the APK file of the application installation package are uploaded separately, where the APK file is uploaded to the background server corresponding to the application library platform, and the OBB file is uploaded to another resource file server.
  • the terminal 400 downloads and installs the application, it will download and store the APK and OBB in different download directories, and check whether the OBB exists when the application is started. If it does not exist, the application needs to download and obtain the OBB by itself. File and store it in the correct location.
  • This method of downloading and installing APK and OBB separately may cause the terminal 400 to download and install only the APK file, but not the OBB file, and eventually cause the installation to fail.
  • Another current method is to compress the APK and OBB files into a compressed file and upload the whole package to improve the success rate of installation.
  • this kind of packaged and compressed installation file requires additional installation of the corresponding software on the terminal 400
  • the installation tool can normally recognize, parse, automatically run and install the installation files in it, or it needs to be manually decompressed and manually installed according to the obtained APK and OBB files to complete the installation of the application.
  • FIG. 2 shows a resource package storage process provided by an embodiment of the present application.
  • the content provider of the resource package can use the storage process in FIG.
  • the resource package corresponding to the application is stored on the server 200.
  • the application content provider A can provide the XAPK format file packaged in the entire package of the application installation package and the resource package
  • the application content provider B can provide the APK file and the OBB file that subpackage the application installation package and the resource package.
  • the server 200 passes S2001_1, download the XAPK format file from the application content provider A, and parse the OBB file from it; the server 200 through S2001_2, the OBB file parsed from the application content provider A and the OBB downloaded from the application content provider B The file is analyzed, and the analysis result of the OBB file is captured for the inbound resource review process.
  • the inbound resource review process includes S2003, mark OBB; S2004, record OBB information; S2005, automated review process; S2006, manual review, and S2007 Steps such as the shelf process, where recording the OBB information mainly includes recording the OBB type, size, version number, message digest algorithm (MD5, Message-Digest Algorithm) check code, header MD5 check code, and OBB storage path,
  • the automated review process mainly includes advertisement detection, compatibility testing, push of OBB files in the form of differential packages, etc.
  • OBB type resource distribution can be supported in the application library of the terminal 400, thereby The distribution capacity and the number of resources of the application library in the terminal 400 are supplemented, and the distribution volume is increased.
  • FIG. 3 is a schematic structural diagram of a terminal 400 provided by an embodiment of the present application.
  • the terminal 400 shown in FIG. 3 includes: at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430.
  • the various components in the terminal 400 are coupled together through the bus system 440.
  • the bus system 440 is used to implement connection and communication between these components.
  • the bus system 440 also includes a power bus, a control bus, and a status signal bus.
  • various buses are marked as the bus system 440 in FIG. 3.
  • the processor 410 may be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware Components, etc., where the general-purpose processor may be a microprocessor or any conventional processor.
  • DSP Digital Signal Processor
  • the user interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and/or one or more visual display screens.
  • the user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, a mouse, a microphone, a touch screen display, a camera, and other input buttons and controls.
  • the memory 450 includes volatile memory or non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory may be a read only memory (ROM, Read Only Memory), and the volatile memory may be a random access memory (RAM, Random Access Memory).
  • the memory 450 described in the embodiment of the present application is intended to include any suitable type of memory.
  • the memory 450 optionally includes one or more storage devices that are physically remote from the processor 410.
  • the memory 450 can store data to support various operations. Examples of these data include programs, modules, and data structures, or a subset or superset thereof, as illustrated below.
  • Operating system 451 including system programs used to process various basic system services and perform hardware-related tasks, such as framework layer, core library layer, driver layer, etc., used to implement various basic services and process hardware-based tasks;
  • the communication module 452 is used to reach a base station or other computing device in mobile communication via one or more (wired or wireless) network interfaces 420.
  • Exemplary network interfaces 420 include: radio frequency communication interface, Bluetooth, wireless compatibility certification ( Wi-Fi), and Universal Serial Bus (USB, Universal Serial Bus), etc.;
  • the display module 453 is used to enable the presentation of information via one or more output devices 431 (for example, a display screen, a speaker, etc.) associated with the user interface 430 (for example, a user interface for operating peripheral devices and displaying content and information) );
  • output devices 431 for example, a display screen, a speaker, etc.
  • the user interface 430 for example, a user interface for operating peripheral devices and displaying content and information
  • the input processing module 454 is configured to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.
  • the application installation device provided by the embodiments of the present application can be implemented in software.
  • FIG. 3 shows the application installation device 455 stored in the memory 450, which can be software in the form of programs and plug-ins, including the following Software modules: acquiring part 4551, moving part 4552, and installing part 4553. The functions of each module will be explained below.
  • the application installation device provided in the embodiment of the application may be implemented in hardware.
  • the application installation device provided in the embodiment of the application may be a processor in the form of a hardware decoding processor, which is programmed To execute the application installation method provided in the embodiment of the present application.
  • FIG. 4 is an optional flowchart of the application installation method provided by the embodiment of the present application, and will be described in conjunction with the steps shown in FIG. 4.
  • the application installation method provided in the embodiments of this application is applicable to scenarios such as application installation and version update on terminal devices, such as mobile terminals.
  • a user downloads an application (APP, application) from a software store on a mobile phone or tablet computer. And install it on the mobile phone or tablet computer, and update the software version of the installed application through the software store on the mobile phone or tablet computer.
  • APP application
  • APP application
  • the application installation device will obtain the application installation package and resource package corresponding to the target application from the preset download directory.
  • the successfully downloaded target application may include an application installation package and a resource package, where the application installation package is an application file necessary for installing the target application on the terminal.
  • the application The installation package may be the APK file corresponding to the target application, and the application installation device may install the executable program of the target application to the terminal of the android platform type by running the APK;
  • the resource package may be corresponding to the target application Resource files in OBB format are used to store the audio, video or picture resource files of large applications such as games, so that when the target application is running, it can normally realize the functions of the target application by calling the resource files in the resource package.
  • the application installation package and the resource package are sub-packaged data packages obtained from the server of the application library through the same background download task. That is, the application installation package and the resource package in the embodiment of the present application are packaged and stored on the server respectively.
  • the application installation device obtains the application installation package and the resource package respectively from the server, and saves the downloaded application installation package and the resource package to a preset download directory. In this way, when the application installation device starts the installation of the target application, the application installation package and resource package corresponding to the target application can be obtained from the preset download directory.
  • the preset download directory of the terminal of the android platform may be a temporary download directory of the APP software store: coloros/market/app/.tmp.
  • the application installation device after the application installation device obtains the application installation package and resource package corresponding to the target application, the application installation device creates a preset resource directory in the storage directory of the terminal memory, and moves the obtained resource package to the preset Resource catalog.
  • the preset resource directory is used to store resources called when the target application is running. After the target application is successfully installed, it needs to call resources such as pictures, audio and video each time its software program is run to complete its functions normally.
  • the preset resource directory is the path where the resource file contained in the resource calling instruction is stored in the terminal storage space when the target application initiates a resource calling instruction to the operating system of the terminal.
  • the terminal may store resource packages of multiple target applications in the same preset resource directory, or may create different preset resource directories corresponding to the resource packages of the application for each different target application.
  • the default preset resource directory of the terminal of the android platform may be /Andorid/obb/ ⁇ package-name>/, where ⁇ package-name> is the package name of the resource package.
  • the terminal before creating the preset resource catalog, the terminal may first detect whether the preset resource catalog exists in the current storage space of the terminal. When the preset resource directory does not exist in the current storage space, the terminal creates the preset resource directory and moves the resource package to the preset resource directory.
  • the application installation device moves the resource package to the preset resource directory in order to first move the resource file of the target application from the downloaded temporary directory to the resource calling path of the target application, so as to call the resource Continue to complete the resource association configuration process for the target application under the path.
  • the application installation device can create a preset resource directory in the internal memory of the terminal according to the different installation locations specified in the terminal settings, or it can create the preset resource directory in the external extended memory of the terminal, such as digital In the SD (Secure Digital Memory Card) card, the embodiment of the present application does not limit the location of the preset resource directory.
  • SD Secure Digital Memory Card
  • the target application can be used to install the software and configure the resource association in the preset resource directory through the application installation package and the resource package. To complete the installation of the target application.
  • the application installation device can install the runnable software program of the target application to the terminal through the application installation package, so that the target application can be run and started on the terminal; the application installation device completes the target application through the resource package
  • the resource association configuration enables the target application to automatically call the resource data in the resource package from the preset resource directory during runtime, thereby completing the installation of the target application.
  • the application installation device can automatically complete the software installation and resource configuration of the target application at one time based on the application installation package and resource package obtained in the same download process, and there is no need to start the application.
  • the application can be started and run normally, thereby improving the success rate and installation efficiency of application installation.
  • S103 may be as shown in FIG. 5, including S1031-S1032, as follows:
  • the application installation device may analyze the application installation package to obtain the executable installation file of the target application, and then run the executable installation file of the target application to start the software installation of the target application.
  • the application installation device when the application installation package is successfully installed, the application installation device will perform the next step of resource association configuration work according to the resource package in the preset resource directory to complete the resource invocation configuration of the target application, so that the target application Can operate normally.
  • the application installation device will rename the resource package under the preset resource target according to the preset association format to obtain the target resource package, where the preset association format is the resource package when the target application calls the resource package.
  • the default associated format may be main. ⁇ Bundle Version Code>. ⁇ package_name>.obb, where Bundle Version Code is the software package version Code, used to distinguish whether the current data package is the latest version.
  • the ⁇ package_name> field in the OBB resource file has the same name as the ⁇ package_name> field of the application installation package.
  • Bundle Version Code 2
  • ⁇ package_name> When it is ABC, the name of the application installation package can be ABC.apk, and the name of the preset associated format of the corresponding target resource package can be main.2.ABC.obb.
  • the application installation device renames the download package name that comes with the resource package downloaded from the server to the target resource package package name in the preset associated format. After the target resource package is obtained, the target resource As a callable resource when the target application is running, the package completes the resource association configuration of the target application, thereby completing the installation of the target application.
  • S201-S203 may also be included, as shown in FIG. 6, as follows:
  • the application installation device before creating the preset resource catalog, the application installation device will first detect whether the preset resource catalog already exists in the storage space.
  • the default resource directory may already exist in the default path on the terminal . Therefore, before the application installation device creates the preset resource directory, it will detect whether the preset resource directory already exists under the default path for creating the preset resource directory, and if it does not exist, then create the preset resource directory.
  • the terminal when there is a preset resource directory, it means that the terminal already has the default path for calling resources when the target application is running, and does not need to be recreated.
  • the application installation device detects whether there is a resource package corresponding to the preset resource directory. Temporary download file.
  • the temporary download file of the resource package is incomplete resource package data generated during the resource package download process, and is usually generated by an incomplete or failed download process.
  • the temporary download file of the resource package may be the [main
  • the application installation device when there is a temporary download file in the preset resource directory, deletes the temporary download file, so as to avoid file conflicts between the temporary download file and the subsequently downloaded resource package, resulting in data loss or download Fail.
  • the terminal when there is no preset resource directory, the terminal can create the preset resource directory by the method in S102, and move the resource package to the preset resource directory.
  • S301-S303 may also be included, as shown in FIG. 7, as follows:
  • the application installation device moves the resource package to the preset resource directory, it will also perform complete consistency verification on the application installation package and the resource package respectively.
  • the application installation package and the resource package all pass the verification , And then start the installation of the application installation package and resource package.
  • the method for the application installation device to perform complete consistency verification may be to check the MD5 value of the header of the application installation package and the resource package, or other methods, which are not limited in the embodiment of the present application.
  • any one of the application installation package and the resource package fails the verification, it means that the downloaded application installation package or resource package has the problem of incomplete data and cannot be based on the current application installation package and resource package.
  • the target application is successfully installed. Therefore, the application installation device prompts the first installation failure message on the current display interface of the terminal, and does not install the target application.
  • the first installation failure information includes the failure reason, that is, the installation failure caused by the complete consistency check.
  • the first installation failure information can be prompted in a pop-up window, combined with auxiliary prompts such as sound or vibration, or displayed in text or other forms in a suitable position on the current interface.
  • auxiliary prompts such as sound or vibration
  • the method is not limited.
  • the application installation device also reports the first installation failure information to the server, so that the server can collect and analyze the process data of the failure of the application installation process, based on the statistics and analysis of the number of failures and the reasons for the failure.
  • the server can collect and analyze the process data of the failure of the application installation process, based on the statistics and analysis of the number of failures and the reasons for the failure.
  • the application installation device can collect the failure causes at each installation stage and report the failure reason to the server, thereby improving the monitoring of the application installation process, which is beneficial to the subsequent installation process. Improvements ultimately increase the success rate of application installation.
  • S401-S402 may also be included, as shown in FIG. 8:
  • the application installation device After the application installation device starts the software installation of the target application through the application installation package, it renames the resource package in the preset resource directory according to the preset associated format, and before the target resource package is obtained, the application is installed When the package is successfully installed, the application installation device will also check whether there is a historical resource package with the same name as the target resource package in the preset resource directory.
  • the historical resource package of the current version of the target application may already exist in the preset resource directory.
  • the historical resource package has the same name as the target resource package.
  • the application installation device when there is a historical resource package with the same name as the target resource package in the preset resource directory, deletes the historical resource package from the default resource directory to avoid rename failure caused by naming conflicts. Or the naming name confusion and other issues.
  • the application installation device detects and deletes the historical resource package only when the application installation package is successfully installed, thereby ensuring that when the target application is updating the software version, even the new The software version cannot be installed successfully, and it will not affect the normal use of the original old version of the target application.
  • S501-S502 may be included after S1031, as shown in FIG. 9, as follows:
  • the application installation apparatus prompts the second installation failure information on the current interface, where the second installation failure information includes information that the reason for the failure is that the installation of the application installation package fails.
  • the application installation device will also report the second installation failure information to the server as a basis for subsequent information analysis and process improvement.
  • the process and method are the same as S303, and will not be repeated here.
  • S1033 may be included, as follows:
  • the application installation device when the application installation package is successfully installed, the application installation device renames the resource package in the preset resource directory according to the preset associated format, obtains the target resource package, and runs the target resource package as the target application After the resource association configuration of the target application is completed, it means that the application installation device has successfully completed the software program installation and resource association configuration of the target application using the preset download directory at this time. Therefore, the application installation device will preset In the download directory, delete the application installation package and resource package corresponding to the target application to free up storage space on the terminal and prepare for the download of the next version of the application installation package and resource package.
  • the embodiment of the present application provides an application installation method, based on Fig. 4 to Fig. 10, before S101, it can also be shown in Fig. 11, including S601-S605, as follows:
  • the application library may be a software store application on a terminal such as a mobile phone.
  • a terminal such as a mobile phone.
  • the application installation device when the user selects a target application in the software store on the mobile phone to download, install or update the version, the application installation device Then, download and install instructions or update instructions for the target application can be received.
  • target download control corresponding to the target application in the application library display interface
  • the background download task corresponding to the target download control includes the installation package download subtask and the resource package download subtask
  • target download The control includes download progress information of the target application, and the final download amount of the download progress information is the sum of the size of the application installation package and the resource package corresponding to the target application.
  • the application installation device responds to a download installation instruction or an update instruction for the target application and creates a target download control corresponding to the target application in the application library display interface to display the download status and progress of the background download task. And download control of background download tasks.
  • the application installation device may receive a download and installation instruction for "Shopping Application 2" through the application library display interface.
  • the application installation device responds to the download installation instruction of "shopping application 2" and creates a target download control 601 on the application library display interface.
  • the target download control 601 may include a status button 601_1, a delete button 601_2, and a pause button 601_3 corresponding to the target application.
  • the application installation device when the application installation device creates a target download control on the display interface of the terminal's foreground, it creates a corresponding background download task in the background of the terminal.
  • the background download task corresponding to the target download control includes the installation package download sub The task and resource package download subtasks; the installation package download subtask is used to download the application installation package of the target application on the server, and the resource package download subtask is used to download the resource package of the target application on the server.
  • the final download amount of the download progress information is the sum of the size of the application installation package and the resource package corresponding to the target application.
  • the final download volume of the download progress information in the target download control is 31.1M
  • the progress percentage displayed during the download process is also Use 31.1M as the total final download volume for real-time calculations.
  • the software architecture of the application installation device can be divided into an application layer, a download middle layer, and a download platform layer from the upper layer to the lower layer.
  • the download middle layer can store files and data during the download process through a preset data storage structure. Therefore, if the download middle layer uses the preset data storage structure, add the corresponding resource package format to download the file Definition, so that the software store can support the download of multiple files.
  • the application installation device can support downloading a target from the application library through the improved ResourceDownloadInfo structure With multiple installation files corresponding to the application, the improved ResourceDownloadInfo structure code can be as follows:
  • the data structure of obbDownloadInfo may be as follows:
  • the installation package download subtask starts the installation package download subtask, and update the status of the target download control to downloading; the installation package download subtask is used to download the application installation package corresponding to the target application from the server to the preset download directory.
  • the application installation device first starts the installation package download subtask, downloads the application installation package of the target application, and uses the preset download directory as the storage path of the downloaded file.
  • the application installation device updates the status of the status button in the target download control to the relevant status in downloading on the front-end application library display interface, as shown in Figure 12, the status button 601_1 in the target download control of "Shopping Application 2"
  • the real-time update of the download data volume progress characterizes the status of the download.
  • the application installation device when the application installation package is downloaded successfully, the application installation device exits the installation package download subtask, and starts the resource package download subtask in the same background download task, and downloads the resource package corresponding to the target application from the server to the pre- Set the download directory.
  • the resource package download subtask is started in S604, and the resource package corresponding to the target application is downloaded from the server to the preset download directory. Specifically, as shown in FIG. 13, it includes S6041-S6044, as follows:
  • the application installation device first starts the main package subtask in the resource package download subtask; downloads the resource main package corresponding to the target application to the preset download directory; where the resource main package is the main expansion package in the resource package.
  • the resource master package may be a Main OBB type file corresponding to the target application.
  • the application installation device when the application installation device executes the main package subtask and successfully downloads the resource main package to the preset download directory, the application installation device exits the main package subtask, and further checks whether it is in the download path of the target application There is a resource patch package corresponding to the target application; where the resource patch package is a supplementary extension package in the resource package.
  • the resource patch package may be a Patch OBB type file corresponding to the target application.
  • the application installation device when the application installation device detects the resource patch package in the download path of the target application, the application installation device starts the patch package subtask in the resource package download subtask, and downloads the resource patch package to the preset download content.
  • the application installation device when the application installation device successfully downloads the resource patch package by executing the patch package subtask, the application installation device can confirm that the resource package has been downloaded successfully and complete the download of the resource package.
  • S701 may be further included, as follows:
  • the application installation device After the application installation device detects whether there is a resource patch package corresponding to the target application in the download path of the target application, if there is no resource patch package, it indicates that the installation file of the target application does not originally contain resources Patch package, the application installation device confirms that the resource package is downloaded successfully, and completes the download of the resource package of the target application.
  • S801-S802 may be included, as follows:
  • the application installation device After the application installation device starts the main package subtask in the resource package download subtask, in the case that the resource main package download fails, the application installation device confirms that the target application has failed to download, and the application installation device is in the foreground application library On the display interface, update the status of the status button in the target download control to download failed, exit the background download task corresponding to the target application, and delete the application installation package that has been successfully downloaded by the target application from the preset download directory for the next startup When downloading and installing the target application, download all application installation packages and resource packages again.
  • the application installation device in the case that the download of the resource master package fails, the application installation device will prompt the second download failure information on the current interface of the terminal, and report the second download failure information to the server, so that the server is based on the second download failure information.
  • the download failure information performs process data collection and analysis; the second download failure information indicates that the download of the resource main package of the target application failed.
  • the terminal also adds embedded point analysis to the download process of the target application, and reports various reasons for the download failure, so that the server can perform information based on the reported reason and number of download failures.
  • the analysis is conducive to the further improvement and optimization of the application download process.
  • a message of download success is prompted on the current interface, the status of the target download control is updated to download completed, the background download task is exited, and the target application is confirmed to be downloaded successfully.
  • the application installation device downloads the resource package corresponding to the target application from the server to the preset download directory, it prompts the download success message on the current interface of the electronic device, and at the same time updates the status of the target download control to download When finished, exit the background download task corresponding to the target application, and confirm that the target application is downloaded successfully.
  • the application installation device can separately download the application installation package and resource package of the target application in the same background download task, so that the target application can be obtained after the target application is downloaded in the application library. All the files required for the installation and operation of the target application do not need to obtain the resource pack file when the application is started, which improves the success rate and efficiency of application installation.
  • S606-S608 may also be included, as follows:
  • the application installation device starts the installation package downloading subtask, and updates the status of the target download control to downloading, the application installation package and resource package corresponding to the target application enter the state in the download line, and are preset
  • the respective temporary download files are generated in the download directory, and the respective temporary download files are continuously updated along with the downloaded data transmission process.
  • the application installation device detects the current download The file is damaged, so the application installation device confirms that the download of the target application has failed. And further prompt the fourth download failure information on the current interface, where the fourth download failure information includes information that the download file of the target application is abnormally deleted.
  • the application installation device reports the fourth download failure information to the server, so that the server performs process data collection and analysis based on the fourth download failure information.
  • the terminal when any one of all the downloaded files corresponding to the target application is abnormally deleted during the downloading process, the terminal can detect the abnormality in time and stop the downloading, avoiding the invalid downloading process from continuing. This improves the efficiency of application installation; further, the terminal will also clear the remaining download files corresponding to the failed download task of the target application to avoid data conflicts during the subsequent download and installation of the target application, and improve the application installation process. Success rate.
  • S609-S612 may also include S609-S612 as shown in FIG. 16, as follows:
  • the application installation device starts the installation package download subtask, and after updating the status of the target download control to downloading, the target application enters the downloading process, as shown in Figure 17, when the user is in the target application downloading process, through After clicking the pause button 601_3 in the target download control of "shopping application 2" and issuing a pause instruction to the target download control, the application installation device can receive a pause instruction for the target download control of "shopping application 2".
  • the application installation device updates the display status of the target download control to "suspended" on the application library interface in response to the pause instruction.
  • the status button 601_1 of the target download control is displayed as " Pause”, and pause the background download task and data transmission to the application installation package or resource package, and record the currently completed data transmission progress as a download breakpoint.
  • the application installation device may also receive a download resume instruction for the target download control on the application library interface, where the resume download instruction is used to indicate the suspension
  • the download task in the background continues to start the download.
  • the application installation device updates the status of the target download control to downloading in response to the download resume instruction, resumes the data transmission of the background download task from the download breakpoint, and completes the breakpoint for the application installation package and the resource package Resume.
  • S613-S614 may be included, as follows:
  • the application installation device when the user is in the process of downloading the target application, by clicking the button of the delete function in the target download control, after issuing a delete instruction to the target download control, the application installation device deletes the target download control and the target download control on the application library display interface. It corresponds to the background download task, and deletes all download files corresponding to the target application, thereby exiting the download of the target application.
  • S615-S616 may also be included, as follows:
  • the application installation device no longer downloads the subsequent resource package, directly confirms that the target application has failed to download, updates the status of the target download control to download failed, and exits the background download Task, prompt the first download failure message on the current interface.
  • the first download failure information indicates that the download of the application installation package of the target application failed.
  • the application processing device will also report the first download failure information to the server, and use it as the server for burying point analysis.
  • S901-S903 may be included, as follows:
  • S902 In response to the uninstall instruction to the target application, start the uninstall monitoring task, and uninstall the target application.
  • the application installation device after the application installation device receives the uninstallation instruction for the target application and uninstalls the target application from the terminal, it also deletes the target resource package corresponding to the target application from the preset resource directory, and exits the uninstallation monitoring task. Finally, the uninstallation of the target application is completed.
  • the terminal after uninstalling the target application, the terminal will delete the resource package corresponding to the target application and quit the uninstallation monitoring task actively, thereby saving the computing resources and storage space of the terminal, so that The uninstallation of the target application is more complete, reducing residual files after the target application is uninstalled.
  • the embodiment of the present application provides an application installation method, as shown in FIG. 21, including S1101-S1127, as follows:
  • S1101 on the application library display interface, receive a download installation instruction or an update instruction for the target application.
  • S1108 Prompt the download success message on the current interface, update the status of the target download control to download completed, exit the background download task, and confirm that the target application is successfully downloaded.
  • S1110 Detect whether there is a preset resource directory in the storage space. If yes, execute S1113, otherwise, execute S1111-S1112.
  • the implementation method of starting the software installation of the target application through the application installation package in S1115 is consistent with the description of S1131, and will not be repeated here. If the application installation package is installed successfully, start to execute S1116, otherwise, jump to S1126 to execute.
  • the method flow of the terminal may be as shown in Figure 22:
  • the terminal receives a click to download instruction.
  • the terminal creates a download task.
  • the download tasks created by the terminal include APK download tasks, Main OBB download tasks, and Patch OBB download tasks corresponding to the target application.
  • the terminal starts the APK download task in the download task.
  • the terminal starts the APK download task in the download task, and downloads the APK package of the target application.
  • the terminal judges whether the APK download task is executed successfully, that is, whether the APK package of the target application is successfully downloaded. If yes, execute S21_5, otherwise, execute S21_6.
  • the terminal starts the Main OBB download task in the download task.
  • the terminal starts the Main OBB download task in the download task, and downloads the Main OBB package of the target application.
  • the terminal returns the first download failure message and exits the download.
  • the terminal judges whether the download path of the target application includes Patch OBB, and if so, executes S21_10, otherwise, executes S21_11.
  • the terminal returns a second download failure message, exits the download, and deletes the apk.
  • the terminal starts the Patch OBB download task in the download task, and downloads the Patch OBB package of the target application.
  • the terminal judges whether the Patch OBB download task is executed successfully, that is, whether the Patch OBB package of the target application is successfully downloaded. If yes, execute S21_10, otherwise, execute S21_12.
  • the terminal returns a third download failure message and exits the download.
  • the method flow of the terminal may be as shown in Figure 23:
  • the terminal starts to obtain the APK and OBB files of the target application from the temporary download directory.
  • the terminal adjusts the state of the "install” button corresponding to the target application on the display interface of the application library to "installing".
  • the terminal judges the OBB file directory /Andorid/obb/ ⁇ package-name>/, that is, whether the preset resource directory exists, if so, execute S22_6, otherwise, execute S22_7.
  • the terminal only installs the apk package of the target application, and completes the installation of the target application.
  • S22_6 The terminal checks whether there is a temporary download file of OBB under the preset resource directory /Andorid/obb/ ⁇ package-name>/ [main
  • the terminal creates a preset resource directory for storing OBB files, and then jumps to execute S22_9.
  • the terminal deletes the OBB Temp file in the preset resource directory.
  • the terminal moves the OBB file in the temporary download directory to the preset resource directory /Andorid/obb/ ⁇ package-name>/.
  • the terminal prompts that the installation has failed, and prompts the reason for the failure (verification failed), and exits the installation.
  • the terminal prompts that the installation fails, and prompts the reason for the failure (APK installation failure), and exits the installation.
  • the terminal deletes the OBB historical resource package with the same name.
  • the terminal renames the OBB file to a standard OBB file name.
  • the standard OBB file name is the name of the OBB resource package conforming to the preset associated format.
  • the terminal deletes download files related to the target application, such as the OBB temporary download file and APK file, in the temporary download directory.
  • the application installation device on the terminal obtains the application installation package and resource package of the target application in the same download process, so that the software installation and resource package of the target application are all automatically completed in one installation process.
  • Resource configuration there is no need to download resource files when the application is started, and no additional special installation tools are needed. After the application is installed, it can be started and run normally, thereby improving the success rate and installation efficiency of application installation.
  • the software module stored in the application installation device 455 of the memory 450 may include Obtaining part 4551, moving part 4552 and installing part 4553, of which,
  • the obtaining part 4551 is configured to obtain the application installation package and resource package corresponding to the target application from a preset download directory after the target application is successfully downloaded; the application installation package and the resource package are downloaded through the same background Task, the sub-packaged data package obtained from the server of the application library;
  • the moving part 4552 is configured to create a preset resource directory and move the resource package to the preset resource directory; the preset resource directory is used to store the resources called when the target application is running;
  • the installation part 4553 is configured to perform software installation on the target application and resource association configuration under the preset resource directory through the application installation package and the resource package, respectively, to complete the installation of the target application .
  • the application installation device 455 further includes a verification part.
  • the verification part is configured to perform complete consistency verification on the application installation package and the resource package respectively;
  • the installation part 4553 is further configured to start the software installation of the target application through the application installation package when the application installation package and the resource package both pass the complete consistency check; Format to rename the resource package in the preset resource directory to obtain the target resource package, use the target resource package as a callable resource when the target application is running, and complete the target application Resource association configuration, thereby completing the installation of the target application.
  • the application installation device 455 further includes a detection part and a deletion part, and the detection part is configured to obtain the application installation package and the application installation package corresponding to the target application from a preset download directory. After the resource package, detect whether the preset resource directory exists in the storage space; when the preset resource directory exists, detect whether there is a temporary download file corresponding to the resource package in the preset resource directory;
  • the deleting part is configured to delete the temporary download file from the preset resource directory if the temporary download file exists, and move the resource package to the preset resource directory.
  • the application installation device 455 further includes a prompting part and a reporting part.
  • the prompting part is configured to perform a complete consistency check on the application installation package and the resource package respectively. After verification, when any one of the application installation package and the resource package fails the verification, a first installation failure message is prompted on the current interface, and the target application is not installed;
  • the reporting part is configured to report the first installation failure information to the server, so that the server performs process data collection and analysis based on the first installation failure information, and the first installation failure information represents the installation
  • the reason for the failure is verification failure.
  • the prompt part is further configured to: if the installation of the application installation package fails, then A second installation failure message is prompted on the current interface, and the installation process of the target application is exited;
  • the reporting part is further configured to report the second installation failure information to the server, so that the server performs process data collection and analysis based on the second installation failure information; the second installation failure information characterizes The installation of the application installation package failed.
  • the detection part is further configured to: after the software installation of the target application is initiated through the application installation package, the Rename the resource package under the preset resource directory to obtain the target resource package, use the target resource package as a callable resource when the target application is running, and before completing the resource association configuration of the target application , If the application installation package is successfully installed, check whether there is a historical resource package with the same name as the target resource package in the preset resource directory;
  • the deletion part is further configured to delete the historical resource package from the preset resource directory when the historical resource package exists.
  • the resource package under the preset resource directory is renamed according to a preset association format to obtain the target resource package, and the target resource package is used as the source
  • the callable resources when the target application is running, after completing the resource association configuration of the target application, the deletion part is also configured to delete all resources in the preset download directory when the target application is installed.
  • the application installation device 455 further includes a receiving part, a creating part, and a downloading part.
  • the receiving part is configured to obtain the target from the preset download directory.
  • the creating part is configured to create a target download control corresponding to the target application in the application library display interface in response to the download installation instruction or update instruction;
  • the background download task corresponding to the target download control includes installation The package download subtask and the resource package download subtask;
  • the target download control includes download progress information of the target application, and the final download amount of the download progress information is the application installation package corresponding to the target application and the The sum of the size of the resource pack;
  • the downloading part is configured to start the installation package download subtask, and update the status of the target download control to downloading;
  • the installation package download subtask is used to correspond to the target application from the server Download the application installation package of the application installation package to the preset download directory; when the application installation package is downloaded successfully, exit the installation package download subtask, start the resource package download subtask, and download the The resource package corresponding to the target application to the preset download directory;
  • the prompt part is also configured to prompt a download success message on the current interface, update the status of the target download control to download completed, exit the background download task, and confirm the successful download of the target application.
  • the prompt part is further configured after the start of the installation package download subtask and the status of the target download control is updated to downloading, if the application is installed If the package download fails, confirm that the target application download failed, update the status of the target download control to download failed, exit the background download task, and prompt the first download failure message on the current interface;
  • the reporting part is further configured to report the first download failure information to the server, so that the server performs process data collection and analysis based on the first download failure information; the first download failure information represents the The download of the application installation package of the target application failed.
  • the download part is further configured to start the main package subtask in the resource package download subtask; the main package subtask is used to transfer the resource main package corresponding to the target application Download to the preset download directory; the resource main package is the main expansion package in the resource package; if the main package subtask is executed and the resource main package is successfully downloaded, then the main package subtask is exited, and Detect in the download path of the target application whether there is a resource patch package corresponding to the target application; the resource patch package is a supplementary extension package in the resource package; if the resource patch package exists, start the The patch package subtask in the resource package download subtask; the patch package subtask is used to download the resource patch package to the preset download directory; if the patch package subtask is executed, the resource patch package is successfully downloaded, Then it is confirmed that the download of the resource package is successful, and the download of the resource package is completed.
  • the downloading part is further configured to, after detecting whether the resource patch package exists in the download path of the target application, if the resource patch package does not exist, Then it is confirmed that the download of the resource package is successful, and the download of the resource package is completed.
  • the download part is further configured to: after the start of the main package subtask in the resource package download subtask, if the main package subtask is executed, the resource main If the package download fails, confirm that the target application has failed to download, update the status of the target download control to download failed, exit the background download task, and delete the application corresponding to the target application from the preset download directory Installation package;
  • the prompt part is further configured to prompt second download failure information on the current interface, and report the second download failure information to the server, so that the server performs process data based on the second download failure information Collecting and analyzing; the second download failure information indicates that the download of the resource main package of the target application failed.
  • the download part is further configured to, after the patch package subtask in the resource package download subtask is started, if the resource patch package download fails, confirm the If the target application fails to download, update the status of the target download control to download failed, and exit the background download task;
  • the prompt part is further configured to prompt a third download failure message on the current interface, and report the third download failure information to the server, so that the server performs process data collection and processing based on the third download failure information Analysis; the third download failure information indicates that the download of the resource patch package of the target application failed.
  • the downloading part is further configured to: after the start of the installation package download subtask and update the status of the target download control to downloading, when it is detected that the When any one of all the download files corresponding to the target application is deleted, it is confirmed that the download of the target application fails; the all download files include the application installation package, the resource package, and the temporary download file corresponding to the application installation package And the temporary download file corresponding to the resource package; update the status of the target download control to download failed, delete all download files corresponding to the target application in the preset download directory, and exit the background download task, Thereby quitting the download of the target application;
  • the prompt part is further configured to prompt fourth download failure information on the current interface, and report the fourth download failure information to the server, so that the server performs process data collection and processing based on the fourth download failure information Analysis;
  • the fourth download failure information indicates that the download file of the target application is abnormally deleted.
  • the receiving part is further configured to start the installation package downloading subtask, and after updating the status of the target download control to downloading, display in the application library On the interface, receiving a delete instruction for the target download control;
  • the deletion part in response to the deletion instruction, deletes the target download control and its corresponding background download task, and deletes all download files corresponding to the target application, thereby exiting the download of the target application.
  • the receiving part is further configured to start the installation package downloading subtask, and after updating the status of the target download control to downloading, display in the application library On the interface, receiving a pause instruction for the target download control;
  • the download part is further configured to respond to the pause instruction, update the status of the target download control to pause, pause the background download task, and record the current data transmission progress as a download breakpoint;
  • the status of the target download control is paused, on the application library interface, receiving a download resume instruction for the target download control;
  • the download part is further configured to update the status of the target download control to downloading in response to the download resume instruction, and resume the data transmission of the background download task from the download breakpoint.
  • the application installation device 455 further includes an uninstallation part, wherein the receiving part is further configured to receive an uninstallation of the target application after the installation of the target application is completed. Uninstall instructions;
  • the uninstall part is configured to initiate an uninstall monitoring task in response to an uninstall instruction for the target application, and uninstall the target application; delete the target resource package corresponding to the target application from the preset resource directory, and Exit the uninstall monitoring task, and complete the uninstall of the target application.
  • the embodiments of the present application provide a computer-readable storage medium storing executable instructions, and the executable instructions are stored therein.
  • the processor will cause the processor to execute the method provided in the embodiments of the present application, for example, , As shown in Figure 4- Figure 11, Figure 13- Figure 16, Figure 18, and Figure 20- Figure 23 shown in the method.
  • the computer-readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; it may also include one or any combination of the foregoing memories.
  • Executable instructions can take the form of programs, software, software modules, scripts or codes, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they can be deployed in any form, Including being deployed as an independent program or deployed as a module, component, subroutine or other unit suitable for use in a computing environment.
  • the application installation device on the terminal can automatically complete the software installation and resource configuration of the target application at one time based on the application installation package and resource package obtained in the same download process. Download the resource file when the application starts, and no additional special installation tools are needed. After the application is installed, it can start and run normally, thereby improving the success rate and installation efficiency of the application installation.
  • the application installation device can be installed in each In the installation stage, the failure reason is collected and reported to the server, thereby improving the monitoring of the application installation process, which is conducive to the subsequent improvement of the installation process, and ultimately improves the success rate of the application installation; and, in the embodiment of the present application
  • the application library on the terminal can support OBB type resource distribution through the resource package warehousing process, improve the distribution capability and the number of resources of the terminal application library, and increase the distribution volume.
  • the application installation device can automatically complete the software installation and resource configuration of the target application at one time based on the application installation package and resource package obtained in the same download process, and there is no need to download resources when the application is started. Files, no additional special installation tools are required, and the application can be started and run normally after the application is installed, thereby improving the success rate and installation efficiency of the application installation.

Abstract

An application installation method and apparatus, and a device and a computer-readable storage medium. The method comprises: after a target application is successfully downloaded, acquiring, from a preset download directory, an application installation package and a resource package corresponding to the target application (S101), wherein the application installation package and the resource package are data packages which are packaged in packages and are acquired from a server of an application library by means of the same background download task; creating a preset resource directory, and moving the resource package under the preset resource directory (S102), wherein the preset resource directory is used for storing a resource called when the target application is running; and by means of the application installation package and the resource package, respectively performing software installation and resource association configuration under the preset resource directory on the target application, so as to complete the installation of the target installation (S103).

Description

一种应用安装方法、装置、设备及计算机可读存储介质Application installation method, device, equipment and computer readable storage medium 技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种应用安装方法、装置、设备及计算机可读存储介质。This application relates to the field of terminal technology, and in particular to an application installation method, device, device, and computer-readable storage medium.
背景技术Background technique
目前,用户在终端上进行应用的下载和安装时,通常是由软件商店客户端在其后台服务器上根据用户的操作,下载对应应用的Android应用程序包(APK,Android Application Package)文件并进行安装,当该应用安装成功后进行启动时,会从谷歌服务器下载对应的OBB(Opaque Binary Blob)格式的资源文件,通过调用OBB文件中的资源完成正常启动。该方法经常出现因获取不到OBB文件导致应用无法正常启动的问题,从而降低了应用安装的成功率;或者,一些软件商店会使用APK文件和OBB文件在同一个压缩包内打包而成的压缩文件作为应用的安装文件,但终端无法直接识别这种整包打包的压缩文件并进行安装,从而降低了应用安装的安装效率。At present, when a user downloads and installs an application on a terminal, the software store client usually downloads and installs the Android Application Package (APK) file of the corresponding application according to the user's operation on its back-end server , When the application is successfully installed and started, it will download the corresponding OBB (Opaque Binary Blob) format resource file from the Google server, and complete the normal startup by calling the resource in the OBB file. This method often has the problem that the application cannot be started normally due to the inability to obtain the OBB file, thereby reducing the success rate of the application installation; or, some software stores will use the APK file and the OBB file to be compressed in the same compressed package. The file is used as the installation file of the application, but the terminal cannot directly recognize and install the compressed file packaged in the whole package, thereby reducing the installation efficiency of the application installation.
发明内容Summary of the invention
本申请实施例提供一种应用安装方法、装置、设备及计算机可读存储介质,能够提高应用安装的成功率和安装效率。The embodiments of the present application provide an application installation method, device, device, and computer-readable storage medium, which can improve the success rate and installation efficiency of application installation.
本申请实施例的技术方案是这样实现的:The technical solutions of the embodiments of the present application are implemented as follows:
本申请实施例提供一种应用安装方法,包括:The embodiment of the application provides an application installation method, including:
在目标应用下载成功后,从预设下载目录中获取所述目标应用对应的应用安装包和资源包;所述应用安装包与所述资源包为通过同一后台下载任务,从应用库的服务器中获取的分包打包的数据包;After the target application is downloaded successfully, obtain the application installation package and resource package corresponding to the target application from the preset download directory; the application installation package and the resource package are downloaded from the server in the application library through the same background download task The obtained sub-packaged data package;
创建预设资源目录,将所述资源包移动到所述预设资源目录下;所述预设资源目录用于存储所述目标应用运行时调用的资源;Create a preset resource directory, move the resource package to the preset resource directory; the preset resource directory is used to store the resources called when the target application is running;
通过所述应用安装包与所述资源包,分别对所述目标应用进行软件安装和所述预设资源目录下的资源关联配置,完成对所述目标应用的安装。Through the application installation package and the resource package, software installation of the target application and resource association configuration under the preset resource directory are respectively performed to complete the installation of the target application.
本申请实施例提供一种应用安装装置,包括获取部分、移动部分与安装部分,其中,An embodiment of the application provides an application installation device, including an acquiring part, a moving part, and an installing part, where:
所述获取部分,配置为在目标应用下载成功后,从预设下载目录中获取所述目标应用对应的应用安装包和资源包;所述应用安装包与所述资源包为通过同一后台下载任务,从应用库的服务器中获取的分包打包的数据包;The obtaining part is configured to obtain the application installation package and resource package corresponding to the target application from a preset download directory after the target application is successfully downloaded; the application installation package and the resource package are download tasks through the same background , The sub-packaged data package obtained from the server of the application library;
所述移动部分,配置为创建预设资源目录,将所述资源包移动到所述预设资源目录下;所述预设资源目录用于存储所述目标应用运行时调用的资源;The moving part is configured to create a preset resource directory and move the resource package to the preset resource directory; the preset resource directory is used to store resources called when the target application is running;
所述安装部分,配置为通过所述应用安装包与所述资源包,分别对所述目标应用进行软件安装和所述预设资源目录下的资源关联配置,完成对所述目标应用的安装。The installation part is configured to perform software installation on the target application and resource association configuration under the preset resource directory through the application installation package and the resource package, respectively, to complete the installation of the target application.
本申请实施例提供一种应用安装设备,包括:An embodiment of the present application provides an application installation device, including:
存储器,用于存储可执行指令;Memory, used to store executable instructions;
处理器,用于执行所述存储器中存储的可执行指令时,实现本申请实施例提供的方法。The processor is configured to implement the method provided in the embodiment of the present application when executing the executable instructions stored in the memory.
本申请实施例提供一种计算机可读存储介质,存储有可执行指令,用于引起处理器执行时,实现本申请实施例提供的方法。The embodiment of the present application provides a computer-readable storage medium that stores executable instructions for causing a processor to execute to implement the method provided in the embodiment of the present application.
本申请实施例具有以下有益效果:应用安装装置可以根据在同一下载过程中获取到的应用安装包和资源包,一次性自动完成对目标应用的软件安装和资源配置,不需要在应用启动时再去下载资源文件,也不需要额外的专用安装工具,应用安装完成后即可正常启动运行,从而提高了应用安装的成功率和安装效率。The embodiments of the present application have the following beneficial effects: the application installation device can automatically complete the software installation and resource configuration of the target application at one time based on the application installation package and resource package acquired in the same download process, and there is no need to restart the application when the application is started. To download resource files, there is no need for additional special installation tools. After the application is installed, it can be started and run normally, thereby improving the success rate and installation efficiency of application installation.
附图说明Description of the drawings
图1是本申请实施例提供的应用安装系统架构的一个可选的结构示意图;FIG. 1 is an optional structural schematic diagram of an application installation system architecture provided by an embodiment of the present application;
图2是本申请实施例提供的一种资源包入库流程示意图;Figure 2 is a schematic diagram of a resource package warehousing process provided by an embodiment of the present application;
图3是本申请实施例提供的终端的一个可选的结构示意图;FIG. 3 is a schematic diagram of an optional structure of a terminal provided by an embodiment of the present application;
图4是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 4 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图5是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 5 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图6是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 6 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图7是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 7 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图8是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 8 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图9是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 9 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图10是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 10 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图11是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 11 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图12是本申请实施例提供的在软件商店中安装目标应用的示意图;Figure 12 is a schematic diagram of installing a target application in a software store provided by an embodiment of the present application;
图13是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 13 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图14是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 14 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图15是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 15 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图16是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 16 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图17是本申请实施例提供的在软件商店中暂停目标应用下载的示意图;Figure 17 is a schematic diagram of suspending the download of a target application in a software store provided by an embodiment of the present application;
图18是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 18 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图19是本申请实施例提供的在软件商店中删除下载中的目标应用的示意图;FIG. 19 is a schematic diagram of deleting a downloading target application in a software store provided by an embodiment of the present application;
图20是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 20 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图21是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 21 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图22是本申请实施例提供的应用安装方法的一个可选的流程示意图;FIG. 22 is an optional flowchart of an application installation method provided by an embodiment of the present application;
图23是本申请实施例提供的应用安装方法的一个可选的流程示意图。FIG. 23 is an optional flowchart of an application installation method provided by an embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,所描述的实施例不应视为对本申请的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions, and advantages of the application more clear, the application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as a limitation to the application. Those of ordinary skill in the art have not made All other embodiments obtained under the premise of creative labor belong to the scope of protection of this application.
本申请实施例提供一种应用安装方法、装置、设备和存储介质,能够提高应用安装的成功率和安装效率,本申请实施例提供的应用安装设备可以实施为智能手机、平板电脑、笔记本电脑等各种类型的用户终端,也可以实施为服务器。下面,将说明应用安装设备实施为终端时的示例性应用。The embodiments of the application provide an application installation method, device, equipment, and storage medium, which can improve the success rate and installation efficiency of application installation. The application installation equipment provided in the embodiments of the application can be implemented as a smart phone, a tablet computer, a notebook computer, etc. Various types of user terminals can also be implemented as servers. Hereinafter, an exemplary application when the application installation device is implemented as a terminal will be explained.
参见图1,图1是本申请实施例提供的应用安装系统100的一个可选的架构示意图,为实现支撑一个应用安装应用,终端400(即应用安装设备,示例性示出了终端400-1和终端400-2)通过网络300连接服务器200,数据库500向服务器200提供数据支持和交互,网络300可以是广域网或者局域网,又或者是二者的组合。Referring to FIG. 1, FIG. 1 is a schematic diagram of an optional architecture of an application installation system 100 provided by an embodiment of the present application. In order to support an application installation application, a terminal 400 (that is, an application installation device, exemplarily shows a terminal 400-1). The terminal 400-2) is connected to the server 200 through the network 300, and the database 500 provides data support and interaction to the server 200. The network 300 may be a wide area network or a local area network, or a combination of the two.
终端400用于在图形界面410(示例性示出了图形界面410-1和图形界面410-2)上显示其安装的应用库软件平台中前端的显示界面,并接收用户在应用库显示界面上的操作,根据操作进行对应的应用安装、下载、更新等处理。服务器200可以是的应用库软件平台中的后台服务器,其存储有大量应用的安装文件,用于通过安装在终端400上的平台客户端向终端400提供软件和应用的搜索、下载、安装和更新等功能。在本申请的一些实施例中,存放在服务器200上的应用的安装文件可以包括应用安装包和资源包,服务器200会将每个应用的应用安装包和资源包分别打包存放在该应用对应的网络存储路径上,并在接收到来自终端400的获取请求时向终端400提供对应应用的安装文件的网络存储路径,以使终端400可以从对应的网络存储路径中下载得到该应用的应用安装包和资源包。The terminal 400 is used for displaying the front-end display interface in the installed application library software platform on the graphical interface 410 (illustrating the graphical interface 410-1 and the graphical interface 410-2 as an example), and receiving the user's display interface on the application library According to the operation, the corresponding application installation, download, update and other processing are carried out. The server 200 may be a background server in the application library software platform, which stores a large number of application installation files, and is used to provide the terminal 400 with software and application search, download, installation and update through the platform client installed on the terminal 400 And other functions. In some embodiments of the present application, the application installation files stored on the server 200 may include application installation packages and resource packages, and the server 200 will package the application installation packages and resource packages of each application and store them in the corresponding application. On the network storage path, and when receiving the acquisition request from the terminal 400, provide the terminal 400 with the network storage path of the installation file of the corresponding application, so that the terminal 400 can download the application installation package of the application from the corresponding network storage path And resource packs.
目前,在实际应用中,Android平台上的资源包通常是OBB的文件格式。OBB格式的数据包是Android游戏通用数据包,在一些大型游戏上较为常见,同时还附以Data文件、或是md5.dat文件的形式出现。由于OBB文件通常较大,在网络中传输时容易出现上传和下载时间过长,以及数据丢失等问题,因此应用安装文件提供方在向服务器200上传OBB资源时,常用的一种方式是将OBB文件与应用安装包的APK文件分别上传,其中,APK文件上传至应用库平台对应的后台服务器,OBB文件上传至另外的资源文件服务器。而后终端400在对应用进行下载安装时,会将APK和OBB分别下载和存放在不同的下载目录下,在该应用启动的时候才去检测OBB是否存在,如果不存在,需要应用自行下载获取OBB文件并存储到正确位置。这种APK和OBB分开下载安装的方法可能导致终端400只下载并安装了APK文件,而未下载并安装OBB文件,最终导致安装失败。目前的另一种方式是将APK和OBB文件压缩成一个压缩文件进行整包打包上传,以提升安装成功率,但这种整包打包并压缩的安装文件需要在终端400上额外安装对应的软件安装工具才能正常识别、解析、自动运行和安装其中的安装文件,再或者需要人工解压 并根据得到的APK和OBB文件进行手动安装,才能完成应用的安装。At present, in actual applications, the resource pack on the Android platform is usually in the OBB file format. The OBB format data package is a general data package for Android games, which is more common in some large games, and it also appears in the form of a Data file or an md5.dat file. Since OBB files are usually large, problems such as long upload and download time and data loss are likely to occur during transmission on the network. Therefore, when the application installation file provider uploads OBB resources to the server 200, a common way is to upload the OBB The file and the APK file of the application installation package are uploaded separately, where the APK file is uploaded to the background server corresponding to the application library platform, and the OBB file is uploaded to another resource file server. Then when the terminal 400 downloads and installs the application, it will download and store the APK and OBB in different download directories, and check whether the OBB exists when the application is started. If it does not exist, the application needs to download and obtain the OBB by itself. File and store it in the correct location. This method of downloading and installing APK and OBB separately may cause the terminal 400 to download and install only the APK file, but not the OBB file, and eventually cause the installation to fail. Another current method is to compress the APK and OBB files into a compressed file and upload the whole package to improve the success rate of installation. However, this kind of packaged and compressed installation file requires additional installation of the corresponding software on the terminal 400 The installation tool can normally recognize, parse, automatically run and install the installation files in it, or it needs to be manually decompressed and manually installed according to the obtained APK and OBB files to complete the installation of the application.
在本申请的一些实施例中,如图2所示,图2示出了本申请实施例提供的一种资源包入库流程,资源包的内容提供方可以通过图2中的入库流程,将应用对应的资源包存放在服务器200上。其中,应用内容提供方A可提供应用安装包和资源包整包打包的XAPK格式文件,应用内容提供方B可提供将应用安装包和资源包分包打包的APK文件和OBB文件,服务器200通过S2001_1,从应用内容提供方A处下载XAPK格式文件,从中解析出OBB文件;服务器200通过S2001_2,对从应用内容提供方A处解析出的OBB文件以及从应用内容提供方B处下载得到的OBB文件进行解析,并抓取OBB文件的解析结果进行入库资源审核过程,其中,入库资源审核过程包含S2003、标记OBB;S2004、记录OBB信息;S2005、自动化审核流程;S2006、人工审核和S2007、上架流程等步骤,其中,记录OBB信息主要包括记录OBB的类型、大小、版本号,信息摘要算法(MD5,Message-Digest Algorithm)校验码、头部MD5校验码,以及OBB存储路径,自动化审核流程主要包括广告检测、兼容性测试、差分包形式的OBB文件推送等,这样通过图2所示的资源包入库流程,可以将在终端400的应用库中支持OBB类型资源分发,从而补齐终端400中应用库的分发能力和资源数量,增加分发量。In some embodiments of the present application, as shown in FIG. 2, FIG. 2 shows a resource package storage process provided by an embodiment of the present application. The content provider of the resource package can use the storage process in FIG. The resource package corresponding to the application is stored on the server 200. Among them, the application content provider A can provide the XAPK format file packaged in the entire package of the application installation package and the resource package, and the application content provider B can provide the APK file and the OBB file that subpackage the application installation package and the resource package. The server 200 passes S2001_1, download the XAPK format file from the application content provider A, and parse the OBB file from it; the server 200 through S2001_2, the OBB file parsed from the application content provider A and the OBB downloaded from the application content provider B The file is analyzed, and the analysis result of the OBB file is captured for the inbound resource review process. The inbound resource review process includes S2003, mark OBB; S2004, record OBB information; S2005, automated review process; S2006, manual review, and S2007 Steps such as the shelf process, where recording the OBB information mainly includes recording the OBB type, size, version number, message digest algorithm (MD5, Message-Digest Algorithm) check code, header MD5 check code, and OBB storage path, The automated review process mainly includes advertisement detection, compatibility testing, push of OBB files in the form of differential packages, etc. In this way, through the resource package storage process shown in Figure 2, OBB type resource distribution can be supported in the application library of the terminal 400, thereby The distribution capacity and the number of resources of the application library in the terminal 400 are supplemented, and the distribution volume is increased.
参见图3,图3是本申请实施例提供的终端400的结构示意图,图3所示的终端400包括:至少一个处理器410、存储器450、至少一个网络接口420和用户接口430。终端400中的各个组件通过总线系统440耦合在一起。可理解,总线系统440用于实现这些组件之间的连接通信。总线系统440除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图3中将各种总线都标为总线系统440。Refer to FIG. 3, which is a schematic structural diagram of a terminal 400 provided by an embodiment of the present application. The terminal 400 shown in FIG. 3 includes: at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in the terminal 400 are coupled together through the bus system 440. It can be understood that the bus system 440 is used to implement connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear description, various buses are marked as the bus system 440 in FIG. 3.
处理器410可以是一种集成电路芯片,具有信号的处理能力,例如通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等,其中,通用处理器可以是微处理器或者任何常规的处理器等。The processor 410 may be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware Components, etc., where the general-purpose processor may be a microprocessor or any conventional processor.
用户接口430包括使得能够呈现媒体内容的一个或多个输出装置431,包括一个或多个扬声器和/或一个或多个视觉显示屏。用户接口430还包括一个或多个输入装置432,包括有助于用户输入的用户接口部件,比如键盘、鼠标、麦克风、触屏显示屏、摄像头、其他输入按钮和控件。The user interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and/or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, a mouse, a microphone, a touch screen display, a camera, and other input buttons and controls.
存储器450包括易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory),易失性存储器可以是随机存取存储器(RAM,Random Access Memory)。本申请实施例描述的存储器450旨在包括任意适合类型的存储器。存储器450可选地包括在物理位置上远离处理器410的一个或多个存储设备。The memory 450 includes volatile memory or non-volatile memory, and may also include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read only memory (ROM, Read Only Memory), and the volatile memory may be a random access memory (RAM, Random Access Memory). The memory 450 described in the embodiment of the present application is intended to include any suitable type of memory. The memory 450 optionally includes one or more storage devices that are physically remote from the processor 410.
在一些实施例中,存储器450能够存储数据以支持各种操作,这些数据的示例包括程序、模块和数据结构或者其子集或超集,下面示例性说明。In some embodiments, the memory 450 can store data to support various operations. Examples of these data include programs, modules, and data structures, or a subset or superset thereof, as illustrated below.
操作系统451,包括用于处理各种基本系统服务和执行硬件相关任务的系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务;Operating system 451, including system programs used to process various basic system services and perform hardware-related tasks, such as framework layer, core library layer, driver layer, etc., used to implement various basic services and process hardware-based tasks;
通信模块452,用于经由一个或多个(有线或无线)网络接口420到达移动通信中的基站或其他计算设备,示例性的网络接口420包括:射频通信接口、蓝牙、无线相容性认证(Wi-Fi)、和通用串行总线(USB,Universal Serial Bus)等;The communication module 452 is used to reach a base station or other computing device in mobile communication via one or more (wired or wireless) network interfaces 420. Exemplary network interfaces 420 include: radio frequency communication interface, Bluetooth, wireless compatibility certification ( Wi-Fi), and Universal Serial Bus (USB, Universal Serial Bus), etc.;
显示模块453,用于经由一个或多个与用户接口430相关联的输出装置431(例如,显示屏、扬声器等)使得能够呈现信息(例如,用于操作外围设备和显示内容和信息的用户接口);The display module 453 is used to enable the presentation of information via one or more output devices 431 (for example, a display screen, a speaker, etc.) associated with the user interface 430 (for example, a user interface for operating peripheral devices and displaying content and information) );
输入处理模块454,用于对一个或多个来自一个或多个输入装置432之一的一个或多个用户输入或互动进行检测以及翻译所检测的输入或互动。The input processing module 454 is configured to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.
在一些实施例中,本申请实施例提供的应用安装装置可以采用软件方式实现,图3示出了存储在存储器450中的应用安装装置455,其可以是程序和插件等形式的软件,包括以下软件模块:获取部分4551、移动部分4552和安装部分4553,将在下文中说明各个模块的功能。In some embodiments, the application installation device provided by the embodiments of the present application can be implemented in software. FIG. 3 shows the application installation device 455 stored in the memory 450, which can be software in the form of programs and plug-ins, including the following Software modules: acquiring part 4551, moving part 4552, and installing part 4553. The functions of each module will be explained below.
在另一些实施例中,本申请实施例提供的应用安装装置可以采用硬件方式实现,作为示例,本申请实施例提供的应用安装装置可以是采用硬件译码处理器形式的处理器,其被编程以执行本申请实施例提供的应用安装方法。In other embodiments, the application installation device provided in the embodiment of the application may be implemented in hardware. As an example, the application installation device provided in the embodiment of the application may be a processor in the form of a hardware decoding processor, which is programmed To execute the application installation method provided in the embodiment of the present application.
下面,将结合本申请实施例提供的终端的示例性应用和实施,说明本申请实施例提供的应用安装方法。In the following, the application installation method provided in the embodiment of the present application will be described in conjunction with the exemplary application and implementation of the terminal provided in the embodiment of the present application.
参见图4,图4是本申请实施例提供的应用安装方法的一个可选的流程示意图,将结合图4示出的步骤进行说明。Referring to FIG. 4, FIG. 4 is an optional flowchart of the application installation method provided by the embodiment of the present application, and will be described in conjunction with the steps shown in FIG. 4.
S101、在目标应用下载成功后,从预设下载目录中获取目标应用对应的应用安装包和资源包;应用安装包与资源包为通过同一后台下载任务,从应用库的服务器中获取的分包打包的数据包。S101. After the target application is successfully downloaded, obtain the application installation package and resource package corresponding to the target application from the preset download directory; the application installation package and resource package are sub-packages obtained from the server of the application library through the same background download task Packed data package.
本申请实施例提供的应用安装方法适用于在终端类设备,如移动终端上进行应用安装和版本更新等场景,示例性的,用户从手机或平板电脑上的软件商店下载应用(APP,application)并安装在手机上或 平板电脑上,以及通过手机或平板电脑上的软件商店对已安装的应用进行软件版本更新等场景。The application installation method provided in the embodiments of this application is applicable to scenarios such as application installation and version update on terminal devices, such as mobile terminals. Illustratively, a user downloads an application (APP, application) from a software store on a mobile phone or tablet computer. And install it on the mobile phone or tablet computer, and update the software version of the installed application through the software store on the mobile phone or tablet computer.
本申请实施例中,当通过软件商店将目标应用从服务器上成功下载到终端本地之后,应用安装装置会从预设下载目录中获取目标应用对应的应用安装包和资源包。In the embodiment of the present application, after the target application is successfully downloaded from the server to the terminal locally through the software store, the application installation device will obtain the application installation package and resource package corresponding to the target application from the preset download directory.
本申请实施例中,下载成功的目标应用可以包含应用安装包与资源包,其中,应用安装包为将目标应用安装在终端上所必须的应用程序文件,在本申请的一些实施例中,应用安装包可以是目标应用对应的APK文件,应用安装装置可以通过运行APK将目标应用的可执行程序安装至android平台类型的终端;在本申请的一些实施例中,资源包可以是目标应用对应的OBB格式的资源类文件,用于存放游戏等大型应用的音视频或图片等资源文件,以使目标应用在运行时,能够通过调用资源包中的资源文件,正常实现目标应用的功能。In the embodiments of the present application, the successfully downloaded target application may include an application installation package and a resource package, where the application installation package is an application file necessary for installing the target application on the terminal. In some embodiments of the present application, the application The installation package may be the APK file corresponding to the target application, and the application installation device may install the executable program of the target application to the terminal of the android platform type by running the APK; in some embodiments of the present application, the resource package may be corresponding to the target application Resource files in OBB format are used to store the audio, video or picture resource files of large applications such as games, so that when the target application is running, it can normally realize the functions of the target application by calling the resource files in the resource package.
本申请实施例中,应用安装包与资源包为通过同一后台下载任务,从应用库的服务器中获取的分包打包的数据包。即本申请实施例中的应用安装包和资源包是分别打包存放在服务器上的。应用安装装置在一次软件下载过程中,从服务器分别获取应用安装包和资源包,并将下载的应用安装包和资源包保存至预设下载目录。这样,在应用安装装置启动对目标应用的安装时,可以从预设下载目录获取到该目标应用对应的应用安装包和资源包。在本申请的一些实施例中,android平台的终端的预设下载目录可以是APP软件商店的临时下载目录:coloros/market/app/.tmp。In the embodiment of the present application, the application installation package and the resource package are sub-packaged data packages obtained from the server of the application library through the same background download task. That is, the application installation package and the resource package in the embodiment of the present application are packaged and stored on the server respectively. During a software download process, the application installation device obtains the application installation package and the resource package respectively from the server, and saves the downloaded application installation package and the resource package to a preset download directory. In this way, when the application installation device starts the installation of the target application, the application installation package and resource package corresponding to the target application can be obtained from the preset download directory. In some embodiments of the present application, the preset download directory of the terminal of the android platform may be a temporary download directory of the APP software store: coloros/market/app/.tmp.
S102、创建预设资源目录,将资源包移动到预设资源目录下;预设资源目录用于存储目标应用运行时调用的资源。S102. Create a preset resource directory, and move the resource package to the preset resource directory; the preset resource directory is used to store resources called when the target application is running.
本申请实施例中,当应用安装装置获取到目标应用对应的应用安装包和资源包之后,应用安装装置在终端内存的存储目录中创建预设资源目录,并将获取到资源包移动到预设资源目录。In the embodiment of the present application, after the application installation device obtains the application installation package and resource package corresponding to the target application, the application installation device creates a preset resource directory in the storage directory of the terminal memory, and moves the obtained resource package to the preset Resource catalog.
本申请实施例中,预设资源目录用于存储目标应用运行时调用的资源。目标应用在安装成功后,每次运行其软件程序时需要通过对图片、音视频等资源的调用才能正常完成其功能。而预设资源目录即为目标应用在向终端的操作系统发起资源调用指令时,其资源调用指令中包含的资源文件在终端存储空间中存放的路径。终端可以将多个目标应用的资源包保存在同一个预设资源目录下,也可以为每个不同的目标应用创建该应用的资源包对应的不同预设资源目录。在一些实施例中,android平台的终端默认的预设资源目录可以是/Andorid/obb/<package-name>/,其中,<package-name>为资源包的包名。In the embodiment of the present application, the preset resource directory is used to store resources called when the target application is running. After the target application is successfully installed, it needs to call resources such as pictures, audio and video each time its software program is run to complete its functions normally. The preset resource directory is the path where the resource file contained in the resource calling instruction is stored in the terminal storage space when the target application initiates a resource calling instruction to the operating system of the terminal. The terminal may store resource packages of multiple target applications in the same preset resource directory, or may create different preset resource directories corresponding to the resource packages of the application for each different target application. In some embodiments, the default preset resource directory of the terminal of the android platform may be /Andorid/obb/<package-name>/, where <package-name> is the package name of the resource package.
本申请实施例中,终端在创建预设资源目录之前,可以先在终端当前的存储空间中检测是否存在预设资源目录。当当前的存储空间中不存在预设资源目录时,终端创建预设资源目录,并将资源包移动到预设资源目录下。In the embodiment of the present application, before creating the preset resource catalog, the terminal may first detect whether the preset resource catalog exists in the current storage space of the terminal. When the preset resource directory does not exist in the current storage space, the terminal creates the preset resource directory and moves the resource package to the preset resource directory.
本申请实施例中,应用安装设备将资源包移动到预设资源目录下,是为了先将目标应用的资源文件从下载的临时目录中,移动到该目标应用的资源调用路径,以便在资源调用路径下继续完成对目标应用的资源关联配置过程。In the embodiment of this application, the application installation device moves the resource package to the preset resource directory in order to first move the resource file of the target application from the downloaded temporary directory to the resource calling path of the target application, so as to call the resource Continue to complete the resource association configuration process for the target application under the path.
本申请实施例中,应用安装装置可以根据终端设置中所指定的不同安装位置,将预设资源目录创建在终端自身的内存中,也可以将预设资源目录创建在终端外部扩展内存,如数字记忆卡(SD,Secure Digital Memory Card)卡中,本申请实施例对预设资源目录的位置不做限定。In the embodiment of this application, the application installation device can create a preset resource directory in the internal memory of the terminal according to the different installation locations specified in the terminal settings, or it can create the preset resource directory in the external extended memory of the terminal, such as digital In the SD (Secure Digital Memory Card) card, the embodiment of the present application does not limit the location of the preset resource directory.
S103、通过应用安装包与资源包,分别对目标应用进行软件安装和预设资源目录下的资源关联配置,完成对目标应用的安装。S103, through the application installation package and the resource package, respectively perform software installation on the target application and resource association configuration under the preset resource directory to complete the installation of the target application.
本申请实施例中,应用安装装置将预设资源包移动至预设资源目录下之后,就可以通过应用安装包与资源包,分别对目标应用进行软件安装和预设资源目录下的资源关联配置,完成对目标应用的安装。In the embodiment of the present application, after the application installation device moves the preset resource package to the preset resource directory, the target application can be used to install the software and configure the resource association in the preset resource directory through the application installation package and the resource package. To complete the installation of the target application.
本申请实施例中,应用安装装置可以通过应用安装包,将目标应用的可运行软件程序安装至终端,使得目标应用可以在终端上运行和启动;应用安装装置通过资源包,完成对目标应用的资源关联配置,使得目标应用在运行时可以自动从预设资源目录下调用到资源包中的资源数据,从而完成对目标应用的安装。In the embodiment of the present application, the application installation device can install the runnable software program of the target application to the terminal through the application installation package, so that the target application can be run and started on the terminal; the application installation device completes the target application through the resource package The resource association configuration enables the target application to automatically call the resource data in the resource package from the preset resource directory during runtime, thereby completing the installation of the target application.
可以理解的是,本申请实施例中,应用安装装置可以根据在同一下载过程中获取到的应用安装包和资源包,一次性自动完成对目标应用的软件安装和资源配置,不需要在应用启动时再去下载资源文件,也不需要额外的专用安装工具,应用安装完成后即可正常启动运行,从而提高了应用安装的成功率和安装效率。It is understandable that, in this embodiment of the application, the application installation device can automatically complete the software installation and resource configuration of the target application at one time based on the application installation package and resource package obtained in the same download process, and there is no need to start the application. When downloading resource files at any time, there is no need for additional special installation tools. After the application is installed, it can be started and run normally, thereby improving the success rate and installation efficiency of application installation.
在本申请的一些实施例中,基于图4,S103可以如图5所示,包括S1031-S1032,如下:In some embodiments of the present application, based on FIG. 4, S103 may be as shown in FIG. 5, including S1031-S1032, as follows:
S1031、通过应用安装包,启动对目标应用的软件安装。S1031. Start the software installation of the target application by applying the installation package.
本申请实施例中,应用安装装置可以对应用安装包进行解析,得到目标应用的可执行安装文件,然后运行目标应用的可执行安装文件,启动对目标应用的软件安装。In the embodiment of the present application, the application installation device may analyze the application installation package to obtain the executable installation file of the target application, and then run the executable installation file of the target application to start the software installation of the target application.
S1032、根据预设关联格式对预设资源目录下的资源包进行重命名,得到目标资源包,将目标资源包作为目标应用运行时的可调用资源,完成对目标应用的资源关联配置,从而完成对目标应用的安装。S1032. Rename the resource package in the preset resource directory according to the preset association format to obtain the target resource package, use the target resource package as a callable resource when the target application is running, and complete the resource association configuration of the target application, thereby completing Installation of the target application.
本申请实施例中,在应用安装包安装成功的情况下,应用安装装置会根据预设资源目录下的资源包 进行下一步的资源关联配置工作,以完成目标应用的资源调用配置,使得目标应用可以正常运行。In the embodiment of the present application, when the application installation package is successfully installed, the application installation device will perform the next step of resource association configuration work according to the resource package in the preset resource directory to complete the resource invocation configuration of the target application, so that the target application Can operate normally.
本申请实施例中,应用安装装置会根据预设关联格式对预设资源目标下的资源包进行重命名,得到目标资源包,其中,预设关联格式即为目标应用对资源包进行调用时所使用的标准调用名称的格式,在一些实施例中,对于OBB类型的资源包,预设关联格式可以是main.<Bundle Version Code>.<package_name>.obb,其中,Bundle Version Code为软件包版本代码,用于区别当前的数据包是否是最新版本,OBB资源文件中的<package_name>字段与应用安装包的<package_name>字段的名称相同,示例性的,当Bundle Version Code为2,<package_name>为ABC时,的应用安装包的命名可以为ABC.apk,其对应的目标资源包的预设关联格式的命名可以为main.2.ABC.obb。In the embodiment of this application, the application installation device will rename the resource package under the preset resource target according to the preset association format to obtain the target resource package, where the preset association format is the resource package when the target application calls the resource package. The format of the standard call name used. In some embodiments, for OBB resource bundles, the default associated format may be main.<Bundle Version Code>.<package_name>.obb, where Bundle Version Code is the software package version Code, used to distinguish whether the current data package is the latest version. The <package_name> field in the OBB resource file has the same name as the <package_name> field of the application installation package. For example, when Bundle Version Code is 2, <package_name> When it is ABC, the name of the application installation package can be ABC.apk, and the name of the preset associated format of the corresponding target resource package can be main.2.ABC.obb.
本申请实施例中,应用安装装置将从服务器上下载的资源包所自带的下载包名,重新命名为预设关联格式的目标资源包包名,得到目标资源包之后,就可以将目标资源包作为目标应用运行时的可调用资源,完成对目标应用的资源关联配置,从而完成对目标应用的安装。In the embodiment of this application, the application installation device renames the download package name that comes with the resource package downloaded from the server to the target resource package package name in the preset associated format. After the target resource package is obtained, the target resource As a callable resource when the target application is running, the package completes the resource association configuration of the target application, thereby completing the installation of the target application.
在本申请的一些实施例中,基于图4或图5,S102之前,还可以包括S201-S203,如图6所示,如下:In some embodiments of the present application, based on FIG. 4 or FIG. 5, before S102, S201-S203 may also be included, as shown in FIG. 6, as follows:
S201、在存储空间中检测是否存在预设资源目录。S201: Detect whether there is a preset resource directory in the storage space.
本申请实施例中,应用安装装置在创建预设资源目录之前,会先在存储空间中检测预设资源目录是否已存在。In the embodiment of the present application, before creating the preset resource catalog, the application installation device will first detect whether the preset resource catalog already exists in the storage space.
本申请实施例中,在多个目标应用的资源包存放在同一资源存放路径,或者终端上已安装的目标应用进行软件版本更新的情况下,终端上的默认路径下可能已经存在预设资源目录。因此,应用安装装置在创建预设资源目录之前,会在创建预设资源目录的默认路径下检测预设资源目录是否已存在,如不存在,再进行预设资源目录的创建。In the embodiment of the present application, when the resource packages of multiple target applications are stored in the same resource storage path, or the target application installed on the terminal undergoes software version updates, the default resource directory may already exist in the default path on the terminal . Therefore, before the application installation device creates the preset resource directory, it will detect whether the preset resource directory already exists under the default path for creating the preset resource directory, and if it does not exist, then create the preset resource directory.
S202、当存在预设资源目录时,在预设资源目录中检测是否存在资源包对应的临时下载文件。S202: When there is a preset resource directory, detect whether there is a temporary download file corresponding to the resource package in the preset resource directory.
本申请实施例中,当存在预设资源目录时,说明终端上已有该目标应用运行时调用资源的默认路径,不需重新创建,应用安装装置在预设资源目录中检测是否存在资源包对应的临时下载文件。In the embodiment of the present application, when there is a preset resource directory, it means that the terminal already has the default path for calling resources when the target application is running, and does not need to be recreated. The application installation device detects whether there is a resource package corresponding to the preset resource directory. Temporary download file.
本申请实施例中,资源包的临时下载文件是资源包下载过程中产生的不完全资源包数据,通常由未完成或失败的下载过程产生。在一些实施例中,资源包的临时下载文件可以是预设资源目录/Andorid/obb/<package-name>/下的[main|patch].version-code.package-name.obb.temp文件。In the embodiment of the present application, the temporary download file of the resource package is incomplete resource package data generated during the resource package download process, and is usually generated by an incomplete or failed download process. In some embodiments, the temporary download file of the resource package may be the [main|patch].version-code.package-name.obb.temp file under the preset resource directory /Andorid/obb/<package-name>/.
S203、若存在临时下载文件,则从预设资源目录中删除临时下载文件,并将资源包移动到预设资源目录下。S203: If there is a temporary download file, delete the temporary download file from the preset resource directory, and move the resource package to the preset resource directory.
本申请实施例中,在预设资源目录中存在临时下载文件的情况下,应用安装装置会将临时下载文件删除,以免该临时下载文件与后续下载的资源包出现文件冲突,造成数据丢失或下载失败。In the embodiment of the present application, when there is a temporary download file in the preset resource directory, the application installation device deletes the temporary download file, so as to avoid file conflicts between the temporary download file and the subsequently downloaded resource package, resulting in data loss or download Fail.
需要说明的是,本申请实施例中,当不存在预设资源目录时,终端可以通过S102中的方法创建预设资源目录,并将资源包移动到预设资源目录下。It should be noted that, in the embodiment of the present application, when there is no preset resource directory, the terminal can create the preset resource directory by the method in S102, and move the resource package to the preset resource directory.
在本申请的一些实施例中,基于图5,S102之后,还可以包括S301-S303,如图7所示,如下:In some embodiments of the present application, based on FIG. 5, after S102, S301-S303 may also be included, as shown in FIG. 7, as follows:
S301、对应用安装包和资源包分别进行完整一致性校验。S301. Perform complete consistency verification on the application installation package and the resource package respectively.
本申请实施例中,应用安装装置将资源包移动到预设资源目录下之后,还会对应用安装包和资源包分别进行完整一致性校验,当应用安装包和资源包全部通过校验时,再启动对应用安装包和资源包的安装。In the embodiment of the present application, after the application installation device moves the resource package to the preset resource directory, it will also perform complete consistency verification on the application installation package and the resource package respectively. When the application installation package and the resource package all pass the verification , And then start the installation of the application installation package and resource package.
本申请实施例中,应用安装装置进行完整一致性校验的方法可以是检验应用安装包和资源包的头部MD5值,也可以是其他方法,本申请实施例不做限定。In the embodiment of the present application, the method for the application installation device to perform complete consistency verification may be to check the MD5 value of the header of the application installation package and the resource package, or other methods, which are not limited in the embodiment of the present application.
S302、当应用安装包与资源包中存在任意一个未通过校验时,在当前界面上提示第一安装失败信息,不进行目标应用的安装。S302: When any one of the application installation package and the resource package fails the verification, a first installation failure message is prompted on the current interface, and the target application is not installed.
本申请实施例中,当应用安装包和资源包中的任意一个没有通过校验时,说明下载下来的应用安装包或者资源包存在数据不完整的问题,无法基于当前的应用安装包和资源包将目标应用安装成功,因此,应用安装装置在终端的当前显示界面上提示第一安装失败信息,不进行目标应用的安装。In the embodiment of this application, when any one of the application installation package and the resource package fails the verification, it means that the downloaded application installation package or resource package has the problem of incomplete data and cannot be based on the current application installation package and resource package. The target application is successfully installed. Therefore, the application installation device prompts the first installation failure message on the current display interface of the terminal, and does not install the target application.
本申请实施例中,第一安装失败信息中包含失败原因,即因完整一致性校验导致的安装失败。In the embodiment of the present application, the first installation failure information includes the failure reason, that is, the installation failure caused by the complete consistency check.
本申请实施例中,第一安装失败信息可以在弹窗中提示,并配合声音或振动等辅助提示方式,也可以以文字或其他形式显示在当前界面的合适位置,本申请实施例对提示的方式不做限定。In the embodiment of this application, the first installation failure information can be prompted in a pop-up window, combined with auxiliary prompts such as sound or vibration, or displayed in text or other forms in a suitable position on the current interface. The method is not limited.
S303、将第一安装失败信息上报至服务器,以使服务器基于第一安装失败信息进行过程数据收集和分析,第一安装失败信息表征安装失败的原因为校验失败。S303. Report the first installation failure information to the server, so that the server performs process data collection and analysis based on the first installation failure information, and the first installation failure information indicates that the reason for the installation failure is a verification failure.
本申请实施例中,应用安装装置还会将第一安装失败信息上报至服务器,这样服务器就可以对应用安装过程的失败情况进行过程数据收集和分析,基于失败次数和失败原因的统计和分析进行后续的改善和优化。In the embodiment of the present application, the application installation device also reports the first installation failure information to the server, so that the server can collect and analyze the process data of the failure of the application installation process, based on the statistics and analysis of the number of failures and the reasons for the failure. Follow-up improvement and optimization.
可以理解的是,本申请实施例中,应用安装装置可以在每个安装阶段对失败原因进行埋点收集,并上报服务器,从而提高了对应用安装过程的监控力度,有利于后续对安装过程进行改进,最终提高了应 用安装的成功率。It is understandable that, in the embodiment of the application, the application installation device can collect the failure causes at each installation stage and report the failure reason to the server, thereby improving the monitoring of the application installation process, which is beneficial to the subsequent installation process. Improvements ultimately increase the success rate of application installation.
在本申请的一些实施例中,基于图5或图7,S1031之后,还可以包括S401-S402,如图8所示:In some embodiments of the present application, based on FIG. 5 or FIG. 7, after S1031, S401-S402 may also be included, as shown in FIG. 8:
S401、若应用安装包安装成功,则检查预设资源目录下是否存在与目标资源包相同命名的历史资源包。S401. If the application installation package is successfully installed, check whether there is a historical resource package with the same name as the target resource package in the preset resource directory.
本申请实施例中,应用安装装置通过应用安装包,启动对目标应用的软件安装之后,根据预设关联格式对预设资源目录下的资源包进行重命名,得到目标资源包之前,在应用安装包安装成功的情况下,应用安装装置还会检查预设资源目录下是否存在与目标资源包相同命名的历史资源包。In the embodiment of the present application, after the application installation device starts the software installation of the target application through the application installation package, it renames the resource package in the preset resource directory according to the preset associated format, and before the target resource package is obtained, the application is installed When the package is successfully installed, the application installation device will also check whether there is a historical resource package with the same name as the target resource package in the preset resource directory.
本申请实施例中,对于已安装的目标应用进行软件版本更新的情况,由于已安装的目标应用本身可以正常运行,因此预设资源目录下可能已经存在该目标应用的当前版本的历史资源包,其中,该历史资源包与目标资源包命名相同。In the embodiment of the present application, when the software version of the installed target application is updated, since the installed target application itself can run normally, the historical resource package of the current version of the target application may already exist in the preset resource directory. Among them, the historical resource package has the same name as the target resource package.
S402、当存在历史资源包时,将历史资源包从预设资源目录下删除。S402: When there is a historical resource package, delete the historical resource package from the preset resource directory.
本申请实施例中,当预设资源目录下存在与目标资源包相同命名的历史资源包时,应用安装装置会将历史资源包从预设资源目录下删除,以免出现命名冲突导致的重命名失败或者命名名称混乱等问题。In the embodiment of the present application, when there is a historical resource package with the same name as the target resource package in the preset resource directory, the application installation device deletes the historical resource package from the default resource directory to avoid rename failure caused by naming conflicts. Or the naming name confusion and other issues.
可以理解的是,本申请实施例中,在应用安装包安装成功的情况下,应用安装装置才进行历史资源包的检测和删除,从而保证了当目标应用在进行软件版本更新时,即使新的软件版本无法安装成功,也不会影响该目标应用原有的旧版本的正常使用。It is understandable that, in the embodiment of the present application, the application installation device detects and deletes the historical resource package only when the application installation package is successfully installed, thereby ensuring that when the target application is updating the software version, even the new The software version cannot be installed successfully, and it will not affect the normal use of the original old version of the target application.
在本申请的一些实施例中,基于图5或图7,S1031之后还可以包括S501-S502,如图9所示,如下:In some embodiments of the present application, based on FIG. 5 or FIG. 7, S501-S502 may be included after S1031, as shown in FIG. 9, as follows:
S501、若应用安装包安装失败,则在当前界面上提示第二安装失败信息,退出目标应用的安装流程。S501. If the installation of the application installation package fails, a second installation failure message is prompted on the current interface, and the installation process of the target application is exited.
本申请实施例中,在应用安装包安装失败的情况下,应用安装装置在当前界面上提示第二安装失败信息,其中,第二安装失败信息包含失败原因为应用安装包安装失败的信息。In the embodiment of the present application, in the case that the installation of the application installation package fails, the application installation apparatus prompts the second installation failure information on the current interface, where the second installation failure information includes information that the reason for the failure is that the installation of the application installation package fails.
S502、将第二安装失败信息上报至服务器,以使服务器基于第二安装失败信息进行过程数据收集和分析;第二安装失败信息表征应用安装包安装失败。S502. Report the second installation failure information to the server, so that the server performs process data collection and analysis based on the second installation failure information; the second installation failure information indicates that the application installation package installation failed.
本申请实施例中,应用安装装置会对第二安装失败信息也进行埋点上报至服务器,作为后续信息分析和过程改进的依据,过程和方法与S303相同,此处不再赘述。In the embodiment of the present application, the application installation device will also report the second installation failure information to the server as a basis for subsequent information analysis and process improvement. The process and method are the same as S303, and will not be repeated here.
在本申请的一些实施例中,基于图5或图7,S1032之后,还可以如图10所示,包括S1033,如下:In some embodiments of the present application, based on FIG. 5 or FIG. 7, after S1032, as shown in FIG. 10, S1033 may be included, as follows:
S1033、当目标应用安装完成时,在预设下载目录下,删除目标应用对应的应用安装包和资源包。S1033. When the target application is installed, delete the application installation package and resource package corresponding to the target application in the preset download directory.
本申请实施例中,在应用安装包安装成功的情况下,应用安装装置根据预设关联格式对预设资源目录下的资源包进行重命名,得到目标资源包,将目标资源包作为目标应用运行时的可调用资源,完成对目标应用的资源关联配置之后,说明此时应用安装装置已经利用预设下载目录成功完成了目标应用的软件程序安装和资源关联配置,因此应用安装装置会在预设下载目录下,删除目标应用对应的应用安装包和资源包,以释放终端上的存储空间,并为下一版本的应用安装包和资源包的下载做好准备。In the embodiment of the present application, when the application installation package is successfully installed, the application installation device renames the resource package in the preset resource directory according to the preset associated format, obtains the target resource package, and runs the target resource package as the target application After the resource association configuration of the target application is completed, it means that the application installation device has successfully completed the software program installation and resource association configuration of the target application using the preset download directory at this time. Therefore, the application installation device will preset In the download directory, delete the application installation package and resource package corresponding to the target application to free up storage space on the terminal and prepare for the download of the next version of the application installation package and resource package.
本申请实施例提供一种应用安装方法,基于图4-图10,在S101之前,还可以如图11所示,包括S601-S605,如下:The embodiment of the present application provides an application installation method, based on Fig. 4 to Fig. 10, before S101, it can also be shown in Fig. 11, including S601-S605, as follows:
S601、在应用库显示界面上,接收对目标应用的下载安装指令或更新指令。S601. On the application library display interface, receive a download installation instruction or an update instruction for the target application.
本申请实施例中,应用库可以是终端如手机上的软件商店应用,如图11所示,当用户在手机上的软件商店中选择一款目标应用进行下载安装或版本更新时,应用安装装置即可接收对到该目标应用的下载安装指令或更新指令。In this embodiment of the application, the application library may be a software store application on a terminal such as a mobile phone. As shown in FIG. 11, when the user selects a target application in the software store on the mobile phone to download, install or update the version, the application installation device Then, download and install instructions or update instructions for the target application can be received.
S602、响应于下载安装指令或更新指令,在应用库显示界面中,创建目标应用对应的目标下载控件;目标下载控件对应的后台下载任务包括安装包下载子任务和资源包下载子任务;目标下载控件包含目标应用的下载进度信息,下载进度信息的最终下载量为目标应用对应的应用安装包与资源包大小的总和。S602. In response to the download installation instruction or the update instruction, create a target download control corresponding to the target application in the application library display interface; the background download task corresponding to the target download control includes the installation package download subtask and the resource package download subtask; target download The control includes download progress information of the target application, and the final download amount of the download progress information is the sum of the size of the application installation package and the resource package corresponding to the target application.
本申请实施例中,应用安装装置响应于针对目标应用的下载安装指令或更新指令,在应用库显示界面中,创建目标应用对应的目标下载控件,用于显示后台下载任务的下载状态和进度,以及对后台下载任务进行下载控制。如图12所示,当用户在应用库显示界面上点击“购物应用2”对应的安装按钮600时,应用安装装置可以通过应用库显示界面接收到对“购物应用2”的下载安装指令。应用安装装置响应于“购物应用2”的下载安装指令,在应用库显示界面上创建目标下载控件601,目标下载控件601可以包括目标应用对应的状态按钮601_1、删除按钮601_2和暂停按钮601_3。In the embodiment of the present application, the application installation device responds to a download installation instruction or an update instruction for the target application and creates a target download control corresponding to the target application in the application library display interface to display the download status and progress of the background download task. And download control of background download tasks. As shown in FIG. 12, when the user clicks the installation button 600 corresponding to "Shopping Application 2" on the application library display interface, the application installation device may receive a download and installation instruction for "Shopping Application 2" through the application library display interface. The application installation device responds to the download installation instruction of "shopping application 2" and creates a target download control 601 on the application library display interface. The target download control 601 may include a status button 601_1, a delete button 601_2, and a pause button 601_3 corresponding to the target application.
本申请实施例中,应用安装装置在终端前台的显示界面上创建目标下载控件的同时,会在终端的后台创建对应的后台下载任务,其中,目标下载控件对应的后台下载任务包括安装包下载子任务和资源包下载子任务;安装包下载子任务用于对服务器上的目标应用的应用安装包进行下载,资源包下载子任务用于对服务器上的目标应用的资源包进行下载。In the embodiment of this application, when the application installation device creates a target download control on the display interface of the terminal's foreground, it creates a corresponding background download task in the background of the terminal. The background download task corresponding to the target download control includes the installation package download sub The task and resource package download subtasks; the installation package download subtask is used to download the application installation package of the target application on the server, and the resource package download subtask is used to download the resource package of the target application on the server.
本申请实施例中,下载进度信息的最终下载量为目标应用对应的应用安装包与资源包大小的总和。在一些实施例中,当目标应用对应的应用安装包为1.1M,资源包为30M时,目标下载控件中的下载进度信息的最终下载量为31.1M,其下载过程中所显示的进度百分比也以31.1M为总的最终下载量进行实时 的计算。In the embodiment of the present application, the final download amount of the download progress information is the sum of the size of the application installation package and the resource package corresponding to the target application. In some embodiments, when the application installation package corresponding to the target application is 1.1M and the resource package is 30M, the final download volume of the download progress information in the target download control is 31.1M, and the progress percentage displayed during the download process is also Use 31.1M as the total final download volume for real-time calculations.
在本申请的一些实施例中,应用安装装置的软件架构由上层至下层可以分为应用层、下载中间层和下载平台层。其中,下载中间层可以通过预设的数据存储结构,进行下载过程中文件和数据的存储,因此,如果在下载中间层所使用的预设数据存储结构中,加入相应的资源包格式下载文件的定义,就可以使软件商店可以支持多文件的下载。示例性的,当下载中间层原有的预设数据存储结构为LocalDownloadInfo结构中,仅定义了APK格式的数据包下载时,应用安装装置可以通过改进的ResourceDownloadInfo结构,支持从应用库中下载一个目标应用对应的多个安装文件,改进的ResourceDownloadInfo结构代码可以如下:In some embodiments of the present application, the software architecture of the application installation device can be divided into an application layer, a download middle layer, and a download platform layer from the upper layer to the lower layer. Among them, the download middle layer can store files and data during the download process through a preset data storage structure. Therefore, if the download middle layer uses the preset data storage structure, add the corresponding resource package format to download the file Definition, so that the software store can support the download of multiple files. Exemplarily, when the original preset data storage structure of the download middle layer is the LocalDownloadInfo structure, and only the data package download in APK format is defined, the application installation device can support downloading a target from the application library through the improved ResourceDownloadInfo structure With multiple installation files corresponding to the application, the improved ResourceDownloadInfo structure code can be as follows:
public class ResourceDownloadInfo extends LocaDownloadInfo{public class ResourceDownloadInfo extends LocaDownloadInfo{
LocaDownloadInfo apkDownloadInfo;//APK下载信息;LocaDownloadInfo apkDownloadInfo;//APK download information;
LocaDownloadInfo obbDownloadInfo;//资源主包下载信息;LocaDownloadInfo obbDownloadInfo;//Resource master package download information;
LocaDownloadInfo obbPatchDownloadInfo;//资源补丁包下载信息;LocaDownloadInfo obbPatchDownloadInfo;//Resource patch package download information;
LocaDownloadInfo profileDownloadInfo;//目标应用下载描述信息;LocaDownloadInfo profileDownloadInfo;//Target application download description information;
其中,示例性的,当目标应用的资源主包为dls3格式的字体资源时,obbDownloadInfo的数据结构可以如下:For example, when the resource master package of the target application is a font resource in dls3 format, the data structure of obbDownloadInfo may be as follows:
Figure PCTCN2020095207-appb-000001
Figure PCTCN2020095207-appb-000001
S603、启动安装包下载子任务,将目标下载控件的状态更新为下载中;安装包下载子任务用于从服务器中,将目标应用对应的应用安装包下载到预设下载目录。S603. Start the installation package download subtask, and update the status of the target download control to downloading; the installation package download subtask is used to download the application installation package corresponding to the target application from the server to the preset download directory.
本申请实施例中,应用安装装置首先启动安装包下载子任务,对目标应用的应用安装包进行下载,并使用预设下载目录作为下载文件的存放路径。应用安装装置在前端的应用库显示界面上,将目标下载控件中的状态按钮的状态更新为下载中的相关状态,如图12所示,“购物应用2”的目标下载控件中的状态按钮601_1以实时更新的下载数据量进度表征下载中的状态。In the embodiment of the present application, the application installation device first starts the installation package download subtask, downloads the application installation package of the target application, and uses the preset download directory as the storage path of the downloaded file. The application installation device updates the status of the status button in the target download control to the relevant status in downloading on the front-end application library display interface, as shown in Figure 12, the status button 601_1 in the target download control of "Shopping Application 2" The real-time update of the download data volume progress characterizes the status of the download.
S604、当应用安装包下载成功后,退出安装包下载子任务,并启动资源包下载子任务,从服务器中下载目标应用对应的资源包到预设下载目录。S604: After the application installation package is downloaded successfully, exit the installation package download subtask, start the resource package download subtask, and download the resource package corresponding to the target application from the server to the preset download directory.
本申请实施例中,当应用安装包下载成功后,应用安装装置退出安装包下载子任务,并启动同一后台下载任务中的资源包下载子任务,从服务器中下载目标应用对应的资源包到预设下载目录。In the embodiment of this application, when the application installation package is downloaded successfully, the application installation device exits the installation package download subtask, and starts the resource package download subtask in the same background download task, and downloads the resource package corresponding to the target application from the server to the pre- Set the download directory.
本申请实施例中,S604中启动资源包下载子任务,从服务器中下载目标应用对应的资源包到预设下载目录具体可以如图13所示,包括S6041-S6044,如下:In the embodiment of the present application, the resource package download subtask is started in S604, and the resource package corresponding to the target application is downloaded from the server to the preset download directory. Specifically, as shown in FIG. 13, it includes S6041-S6044, as follows:
S6041、当应用安装包下载成功后,退出安装包下载子任务,启动资源包下载子任务中的主包子任务;主包子任务用于将目标应用对应的资源主包下载到预设下载目录;资源主包为资源包中主扩展包。S6041. After the application installation package is downloaded successfully, exit the installation package download subtask, and start the main package subtask in the resource package download subtask; the main package subtask is used to download the resource main package corresponding to the target application to the preset download directory; resources The main package is the main expansion package in the resource package.
本申请实施例中,应用安装装置首先启动资源包下载子任务中的主包子任务;将目标应用对应的资源主包下载到预设下载目录;其中,资源主包为资源包中主扩展包。在一些实施例中,资源主包可以是目标应用对应的Main OBB类型的文件。In the embodiment of this application, the application installation device first starts the main package subtask in the resource package download subtask; downloads the resource main package corresponding to the target application to the preset download directory; where the resource main package is the main expansion package in the resource package. In some embodiments, the resource master package may be a Main OBB type file corresponding to the target application.
S6042、若执行主包子任务,实现资源主包下载成功,则退出主包子任务,并在目标应用的下载路径中检测是否存在目标应用对应的资源补丁包;资源补丁包为资源包中的补充扩展包。S6042. If the main package subtask is executed and the resource main package is downloaded successfully, exit the main package subtask, and check whether there is a resource patch package corresponding to the target application in the download path of the target application; the resource patch package is a supplementary extension in the resource package Bag.
本申请实施例中,在应用安装装置执行主包子任务,将资源主包成功下载至预设下载目录的情况下,应用安装装置则退出主包子任务,并进一步在目标应用的下载路径中检测是否存在目标应用对应的资源补丁包;其中,资源补丁包为资源包中的补充扩展包。在一些实施例中,资源补丁包可以是目标应用对应的Patch OBB类型的文件。In the embodiment of this application, when the application installation device executes the main package subtask and successfully downloads the resource main package to the preset download directory, the application installation device exits the main package subtask, and further checks whether it is in the download path of the target application There is a resource patch package corresponding to the target application; where the resource patch package is a supplementary extension package in the resource package. In some embodiments, the resource patch package may be a Patch OBB type file corresponding to the target application.
S6043、若存在资源补丁包,则启动资源包下载子任务中的补丁包子任务;补丁包子任务用于将资源补丁包下载到预设下载目录。S6043. If there is a resource patch package, start the patch package subtask in the resource package download subtask; the patch package subtask is used to download the resource patch package to the preset download directory.
本申请实施例中,在应用安装装置在目标应用的下载路径中检测到了资源补丁包的情况下,应用安装装置启动资源包下载子任务中的补丁包子任务,将资源补丁包下载到预设下载目录。In the embodiment of the present application, when the application installation device detects the resource patch package in the download path of the target application, the application installation device starts the patch package subtask in the resource package download subtask, and downloads the resource patch package to the preset download content.
S6044、若执行补丁包子任务,实现资源补丁包下载成功,则确认资源包下载成功,完成对资源包的下载。S6044. If the subtask of the patch package is executed and the resource patch package is downloaded successfully, it is confirmed that the resource package is downloaded successfully, and the download of the resource package is completed.
本申请实施例中,在应用安装装置通过执行补丁包子任务,将资源补丁包下载成功的情况下,应用安装装置可以确认资源包下载成功,完成对资源包的下载。In the embodiment of the present application, when the application installation device successfully downloads the resource patch package by executing the patch package subtask, the application installation device can confirm that the resource package has been downloaded successfully and complete the download of the resource package.
在本申请的一些实施例中,S6042之后,还可以包括S701,如下:In some embodiments of the present application, after S6042, S701 may be further included, as follows:
S701、若不存在资源补丁包,则确认资源包下载成功,完成对资源包的下载。S701. If there is no resource patch package, confirm that the resource package is downloaded successfully, and complete the download of the resource package.
本申请实施例中,应用安装装置在目标应用的下载路径中检测是否存在目标应用对应的资源补丁包之后,在不存在资源补丁包的情况下,说明该目标应用的安装文件中原本不包含资源补丁包,则应用安装装置确认资源包下载成功,完成对该目标应用的资源包的下载。In the embodiment of the present application, after the application installation device detects whether there is a resource patch package corresponding to the target application in the download path of the target application, if there is no resource patch package, it indicates that the installation file of the target application does not originally contain resources Patch package, the application installation device confirms that the resource package is downloaded successfully, and completes the download of the resource package of the target application.
在本申请的一些实施例中,基于图13,S6041之后,还可以如图14所示,包括S801-S802,如下:In some embodiments of the present application, based on FIG. 13, after S6041, as shown in FIG. 14, S801-S802 may be included, as follows:
S801、若资源主包下载失败,则确认目标应用下载失败,将目标下载控件的状态更新为下载失败,并退出后台下载任务,从预设下载目录中删除目标应用对应的应用安装包。S801. If the download of the main resource package fails, confirm that the target application has failed to download, update the status of the target download control to download failed, exit the background download task, and delete the application installation package corresponding to the target application from the preset download directory.
本申请实施例中,在应用安装装置启动资源包下载子任务中的主包子任务之后,在资源主包下载失败的情况下,应用安装装置确认目标应用下载失败,应用安装装置在前台的应用库显示界面上,将目标下载控件中状态按钮的状态更新为下载失败,并退出该目标应用对应的后台下载任务,从预设下载目录中删除目标应用已经下载成功的应用安装包,以便下一次启动该目标应用的下载安装时,重新对全部应用安装包和资源包进行下载。In the embodiment of the present application, after the application installation device starts the main package subtask in the resource package download subtask, in the case that the resource main package download fails, the application installation device confirms that the target application has failed to download, and the application installation device is in the foreground application library On the display interface, update the status of the status button in the target download control to download failed, exit the background download task corresponding to the target application, and delete the application installation package that has been successfully downloaded by the target application from the preset download directory for the next startup When downloading and installing the target application, download all application installation packages and resource packages again.
S802、在当前界面上提示第二下载失败信息,并将第二下载失败信息上报至服务器,以使服务器基于第二下载失败信息进行过程数据收集和分析;第二下载失败信息表征目标应用的资源主包下载失败。S802. Prompt the second download failure information on the current interface, and report the second download failure information to the server, so that the server performs process data collection and analysis based on the second download failure information; the second download failure information represents the resource of the target application The main package download failed.
本申请实施例中,在资源主包下载失败的情况下,应用安装装置会在终端的当前界面上提示第二下载失败信息,并将第二下载失败信息上报至服务器,以使服务器基于第二下载失败信息进行过程数据收集和分析;第二下载失败信息表征目标应用的资源主包下载失败。In the embodiment of this application, in the case that the download of the resource master package fails, the application installation device will prompt the second download failure information on the current interface of the terminal, and report the second download failure information to the server, so that the server is based on the second download failure information. The download failure information performs process data collection and analysis; the second download failure information indicates that the download of the resource main package of the target application failed.
可以理解的是,本申请实施例中,终端对目标应用的下载过程也加入了埋点分析,对下载失败的各种原因进行上报,使得服务器可以基于上报的下载失败的原因和次数等信息进行分析,有利于后续对应用下载过程进一步的改善和优化。It is understandable that in this embodiment of the application, the terminal also adds embedded point analysis to the download process of the target application, and reports various reasons for the download failure, so that the server can perform information based on the reported reason and number of download failures. The analysis is conducive to the further improvement and optimization of the application download process.
S605、在当前界面提示下载成功消息,将目标下载控件的状态更新为下载完成,退出后台下载任务,确认目标应用下载成功。S605. A message of download success is prompted on the current interface, the status of the target download control is updated to download completed, the background download task is exited, and the target application is confirmed to be downloaded successfully.
本申请实施例中,应用安装装置从服务器中下载目标应用对应的资源包到预设下载目录之后,在电子设别的当前界面上提示下载成功消息,并同时将目标下载控件的状态更新为下载完成,退出该目标应用对应的后台下载任务,确认目标应用下载成功。In the embodiment of this application, after the application installation device downloads the resource package corresponding to the target application from the server to the preset download directory, it prompts the download success message on the current interface of the electronic device, and at the same time updates the status of the target download control to download When finished, exit the background download task corresponding to the target application, and confirm that the target application is downloaded successfully.
可以理解的是,本申请实施例中,应用安装装置可以在同一后台下载任务中分别完成对目标应用的应用安装包和资源包的下载,从而使得在应用库中下载目标应用完成后即可获得该目标应用安装和运行所需的全部文件,不需要在应用启动时再去获取资源包文件,提高应用安装的成功率和效率。It is understandable that in this embodiment of the application, the application installation device can separately download the application installation package and resource package of the target application in the same background download task, so that the target application can be obtained after the target application is downloaded in the application library. All the files required for the installation and operation of the target application do not need to obtain the resource pack file when the application is started, which improves the success rate and efficiency of application installation.
在本申请的一些实施例中,基于图11,S603之后,还可以如图15所示,包括S606-S608,如下:In some embodiments of the present application, based on FIG. 11, after S603, as shown in FIG. 15, S606-S608 may also be included, as follows:
S606、当检测到目标应用对应的全部下载文件中的任意一个被删除时,确认目标应用下载失败;全部下载文件包括应用安装包、资源包、应用安装包对应的临时下载文件以及资源包对应的临时下载文件。S606. When it is detected that any one of all download files corresponding to the target application is deleted, confirm that the target application download fails; all download files include the application installation package, the resource package, the temporary download file corresponding to the application installation package, and the corresponding resource package Download files temporarily.
S607、将目标下载控件的状态更新为下载失败,并删除预设下载目录下目标应用对应的全部下载文件,退出后台下载任务,从而退出对目标应用的下载。S607. Update the status of the target download control to download failed, delete all download files corresponding to the target application in the preset download directory, and exit the background download task, thereby exiting the download of the target application.
S608、在当前界面上提示第四下载失败信息,并将第四下载失败信息上报至服务器,以使服务器基于第四下载失败信息进行过程数据收集和分析;第四下载失败信息表征目标应用的下载文件被异常删除。S608. Prompt the fourth download failure information on the current interface, and report the fourth download failure information to the server, so that the server performs process data collection and analysis based on the fourth download failure information; the fourth download failure information represents the download of the target application The file was deleted abnormally.
本申请实施例中,应用安装装置启动安装包下载子任务,将目标下载控件的状态更新为下载中之后,目标应用对应的应用安装包和资源包即进入下载行中的状态,并且在预设下载目录下生成各自对应的临时下载文件,并且随下载的数据传输过程不断对各自对应的临时下载文件进行更新。而在下载过程中,如果用户手动从预设下载目录下删除该目标应用对应的应用安装包、资源包、以及两者各自对应的临时下载文件中的任意一个,应用安装装置检测到当前的下载文件被破坏,因此应用安装装置确认目标应用下载失败。并进一步在当前界面上提示第四下载失败信息,其中,第四下载失败信息包含目标应用的下载文件被异常删除的信息。应用安装装置将第四下载失败信息上报至服务器,以使服务器基于第四下载失败信息进行过程数据收集和分析。In the embodiment of this application, the application installation device starts the installation package downloading subtask, and updates the status of the target download control to downloading, the application installation package and resource package corresponding to the target application enter the state in the download line, and are preset The respective temporary download files are generated in the download directory, and the respective temporary download files are continuously updated along with the downloaded data transmission process. During the download process, if the user manually deletes any one of the application installation package, resource package, and the temporary download files corresponding to the target application from the preset download directory, the application installation device detects the current download The file is damaged, so the application installation device confirms that the download of the target application has failed. And further prompt the fourth download failure information on the current interface, where the fourth download failure information includes information that the download file of the target application is abnormally deleted. The application installation device reports the fourth download failure information to the server, so that the server performs process data collection and analysis based on the fourth download failure information.
需要说明的是,本申请实施例中,在目标应用已经安装完成,但其对应的资源包被手动删除的情况下,在目标应用启动后,执行目标应用自带的资源包下载逻辑,进行资源包的下载和关联配置。It should be noted that, in the embodiment of this application, when the target application has been installed but the corresponding resource package is manually deleted, after the target application is started, the resource package download logic that comes with the target application is executed to perform resource Package download and associated configuration.
可以理解的是,本申请实施例中,当在下载过程中,目标应用对应的全部下载文件中的任意一个被异常删除时,终端可以及时检测到异常并停止下载,避免了无效的下载过程继续进行,提高了应用安装的效率;进一步的,终端还会清空该目标应用的失败下载任务所对应的剩余下载文件,以避免之后该目 标应用的下载安装过程中出现数据冲突,提高了应用安装的成功率。It is understandable that, in this embodiment of the application, when any one of all the downloaded files corresponding to the target application is abnormally deleted during the downloading process, the terminal can detect the abnormality in time and stop the downloading, avoiding the invalid downloading process from continuing. This improves the efficiency of application installation; further, the terminal will also clear the remaining download files corresponding to the failed download task of the target application to avoid data conflicts during the subsequent download and installation of the target application, and improve the application installation process. Success rate.
在本申请的一些实施例中,基于图11,S603之后,还可以如图16所示,包括S609-S612,如下:In some embodiments of the present application, based on FIG. 11, after S603, it may also include S609-S612 as shown in FIG. 16, as follows:
S609、在应用库显示界面上,接收针对目标下载控件的暂停指令。S609. Receive a pause instruction for the target download control on the display interface of the application library.
本申请实施例中,应用安装装置启动安装包下载子任务,将目标下载控件的状态更新为下载中之后,目标应用进入下载过程,如图17所示,当用户在目标应用下载过程中,通过点击“购物应用2”的目标下载控件中暂停按钮601_3,向目标下载控件下发暂停指令后,应用安装装置可以接收到针对“购物应用2”的目标下载控件的暂停指令。In the embodiment of this application, the application installation device starts the installation package download subtask, and after updating the status of the target download control to downloading, the target application enters the downloading process, as shown in Figure 17, when the user is in the target application downloading process, through After clicking the pause button 601_3 in the target download control of "shopping application 2" and issuing a pause instruction to the target download control, the application installation device can receive a pause instruction for the target download control of "shopping application 2".
S610、响应于暂停指令,将目标下载控件的状态更新为暂停中,并暂停后台下载任务,将当前数据传输进度记录为下载断点。S610. In response to the pause instruction, update the status of the target download control to pause, pause the background download task, and record the current data transmission progress as a download breakpoint.
本申请实施例中,应用安装装置响应于暂停指令,将在应用库界面上,目标下载控件的显示状态更新为“暂停中”,如图17所示,目标下载控件的状态按钮601_1显示为“暂停”,并暂停后台下载任务以及对应用安装包或资源包的数据传输,将当前已完成的数据传输进度记录为下载断点。In the embodiment of this application, the application installation device updates the display status of the target download control to "suspended" on the application library interface in response to the pause instruction. As shown in FIG. 17, the status button 601_1 of the target download control is displayed as " Pause", and pause the background download task and data transmission to the application installation package or resource package, and record the currently completed data transmission progress as a download breakpoint.
S611、当目标下载控件的状态为暂停中时,在应用库界面上,接收对目标下载控件的恢复下载指令。S611: When the status of the target download control is paused, on the application library interface, receive a download resume instruction for the target download control.
本申请实施例中,相应的,当目标下载控件的状态为暂停中时,应用安装装置也可以在应用库界面上,接收对目标下载控件的恢复下载指令,其中,恢复下载指令用于指示暂停中的后台下载任务继续开始下载。In the embodiment of the application, correspondingly, when the status of the target download control is paused, the application installation device may also receive a download resume instruction for the target download control on the application library interface, where the resume download instruction is used to indicate the suspension The download task in the background continues to start the download.
S612、响应于恢复下载指令,将目标下载控件的状态更新为下载中,从下载断点处恢复后台下载任务的数据传输。S612. In response to the download resume instruction, update the status of the target download control to downloading, and resume the data transmission of the background download task from the download breakpoint.
本申请实施例中,应用安装装置响应于恢复下载指令,将目标下载控件的状态更新为下载中,从下载断点处恢复后台下载任务的数据传输,完成对应用安装包和资源包的断点续传。In the embodiment of the present application, the application installation device updates the status of the target download control to downloading in response to the download resume instruction, resumes the data transmission of the background download task from the download breakpoint, and completes the breakpoint for the application installation package and the resource package Resume.
在本申请的一些实施例中,基于图11,S603之后,还可以如图18所示,包括S613-S614,如下:In some embodiments of the present application, based on FIG. 11, after S603, as shown in FIG. 18, S613-S614 may be included, as follows:
S613、在应用库显示界面上,接收针对目标下载控件的删除指令。S613. Receive a delete instruction for the target download control on the display interface of the application library.
S614、响应于删除指令,删除目标下载控件及其对应的后台下载任务,并删除目标应用对应的全部下载文件,从而退出对目标应用的下载。S614. In response to the delete instruction, delete the target download control and its corresponding background download task, and delete all download files corresponding to the target application, thereby exiting the download of the target application.
本申请实施例中,当用户在目标应用下载过程中,通过点击目标下载控件中删除功能的按钮,向目标下载控件下发删除指令后,应用安装装置在应用库显示界面上删除目标下载控件及其对应的后台下载任务,并删除目标应用对应的全部下载文件,从而退出对目标应用的下载。In the embodiment of this application, when the user is in the process of downloading the target application, by clicking the button of the delete function in the target download control, after issuing a delete instruction to the target download control, the application installation device deletes the target download control and the target download control on the application library display interface. It corresponds to the background download task, and deletes all download files corresponding to the target application, thereby exiting the download of the target application.
可以理解的是,本申请实施例中,在对目标应用的下载任务进行删除时,可以将目标应用对应的全部下载文件完全删除,从而避免了残留的无效下载文件影响下一次的下载安装,并且占用终端资源,最终提高了安装效率。It is understandable that, in this embodiment of the application, when the download task of the target application is deleted, all download files corresponding to the target application can be completely deleted, thereby avoiding the remaining invalid download files from affecting the next download and installation, and Occupy terminal resources and ultimately improve installation efficiency.
在本申请的一些实施例中,如图19所示,软件商店中当前有“购物应用2”和“游戏应用4”两个目标应用正在进行下载,用户可以通过在软件商店界面上点击下载列表图标601_4进入下载队列界面,并点击“购物应用2”的目标下载控件中的删除按钮601_2,并在弹出的确认对话框中选择确认删除按钮601_5后,“购物应用2”在应用库界面的目标下载控件被删除,其对应的后台下载任务也被删除。In some embodiments of this application, as shown in Figure 19, there are currently two target applications "shopping application 2" and "game application 4" in the software store being downloaded, and the user can click the download list on the software store interface Icon 601_4 enters the download queue interface, and clicks the delete button 601_2 in the target download control of "Shopping application 2", and selects the delete button 601_5 in the pop-up confirmation dialog box, the target of "Shopping application 2" in the application library interface The download control is deleted, and its corresponding background download task is also deleted.
在本申请的一些实施例中,基于图11,S603之后,还可以包括S615-S616,如下:In some embodiments of the present application, based on FIG. 11, after S603, S615-S616 may also be included, as follows:
S615、若应用安装包下载失败,则确认目标应用下载失败,将目标下载控件的状态更新为下载失败,并退出后台下载任务,在当前界面提示第一下载失败信息。S615. If the download of the application installation package fails, confirm that the download of the target application has failed, update the status of the target download control to download failed, and exit the background download task, and prompt the first download failure message on the current interface.
S616、将第一下载失败信息上报至服务器,以使服务器基于第一下载失败信息进行过程数据收集和分析;第一下载失败信息表征目标应用的应用安装包下载失败。S616. Report the first download failure information to the server, so that the server performs process data collection and analysis based on the first download failure information; the first download failure information indicates that the download of the application installation package of the target application has failed.
本申请实施例中,在应用安装包下载失败的情况下,应用安装装置不再进行后续资源包的下载,直接确认目标应用下载失败,将目标下载控件的状态更新为下载失败,并退出后台下载任务,在当前界面提示第一下载失败信息。其中,第一下载失败信息表征目标应用的应用安装包下载失败。应用处理装置同样会将第一下载失败信息上报至服务器,作为服务器进行埋点分析使用。In the embodiment of this application, in the case that the download of the application installation package fails, the application installation device no longer downloads the subsequent resource package, directly confirms that the target application has failed to download, updates the status of the target download control to download failed, and exits the background download Task, prompt the first download failure message on the current interface. Wherein, the first download failure information indicates that the download of the application installation package of the target application failed. The application processing device will also report the first download failure information to the server, and use it as the server for burying point analysis.
在本申请的一些实施例中,基于图4,S103之后,还可以如图20所示,包括S901-S903,如下:In some embodiments of the present application, based on FIG. 4, after S103, as shown in FIG. 20, S901-S903 may be included, as follows:
S901、接收对目标应用的卸载指令。S901. Receive an uninstall instruction for the target application.
S902、响应于对目标应用的卸载指令,启动卸载监听任务,并卸载目标应用。S902: In response to the uninstall instruction to the target application, start the uninstall monitoring task, and uninstall the target application.
S903、从预设资源目录中删除目标应用对应的目标资源包,并退出卸载监听任务,完成对目标应用的卸载。S903. Delete the target resource package corresponding to the target application from the preset resource directory, exit the uninstall monitoring task, and complete the uninstallation of the target application.
本申请实施例中,应用安装装置在接收到对目标应用的卸载指令,从终端中卸载目标应用之后,还会从预设资源目录中删除目标应用对应的目标资源包,并退出卸载监听任务,最终完成对目标应用的卸载。In the embodiment of the present application, after the application installation device receives the uninstallation instruction for the target application and uninstalls the target application from the terminal, it also deletes the target resource package corresponding to the target application from the preset resource directory, and exits the uninstallation monitoring task. Finally, the uninstallation of the target application is completed.
可以理解的是,本申请实施例中,终端在对目标应用卸载完成后会一并删除目标应用对应的资源包,并主动退出卸载监听任务,从而节约了终端的计算资源和存储空间,使得对目标应用的卸载更加完全, 减少了目标应用卸载后的残留文件。It is understandable that, in the embodiment of the present application, after uninstalling the target application, the terminal will delete the resource package corresponding to the target application and quit the uninstallation monitoring task actively, thereby saving the computing resources and storage space of the terminal, so that The uninstallation of the target application is more complete, reducing residual files after the target application is uninstalled.
本申请实施例提供一种应用安装方法,如图21所示,包括S1101-S1127,如下:The embodiment of the present application provides an application installation method, as shown in FIG. 21, including S1101-S1127, as follows:
S1101、在应用库显示界面上,接收对目标应用的下载安装指令或更新指令。S1101, on the application library display interface, receive a download installation instruction or an update instruction for the target application.
本申请实施例中,S1111的实现方式与S601的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1111 is consistent with the description of S601, and will not be repeated here.
S1102、响应于下载安装指令或更新指令,在应用库显示界面中,创建目标应用对应的目标下载控件;目标下载控件对应的后台下载任务包括安装包下载子任务和资源包下载子任务。S1102 In response to the download installation instruction or the update instruction, create a target download control corresponding to the target application in the application library display interface; the background download task corresponding to the target download control includes an installation package download subtask and a resource package download subtask.
本申请实施例中,S1102的实现方式与S602的描述一致,此处不再赘述。In the embodiment of the present application, the implementation of S1102 is consistent with the description of S602, and will not be repeated here.
S1103、启动安装包下载子任务,将目标下载控件的状态更新为下载中。S1103. Start the installation package download subtask, and update the status of the target download control to downloading.
本申请实施例中,S1103的实现方式与S603的描述一致,此处不再赘述。In the embodiment of the present application, the implementation of S1103 is consistent with the description of S603, and will not be repeated here.
S1104、当应用安装包下载成功后,退出安装包下载子任务,并启动资源包下载子任务中的主包子任务。否则,跳转执行S1120-S1121。S1104. After the application installation package is downloaded successfully, exit the installation package download subtask, and start the main package subtask in the resource package download subtask. Otherwise, jump to S1120-S1121.
本申请实施例中,S1104的实现方式与S6041的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1104 is consistent with the description of S6041, and will not be repeated here.
S1105、在执行主包子任务,实现资源主包下载成功的情况下,退出主包子任务,并在目标应用的下载路径中检测是否存在目标应用对应的资源补丁包。否则,跳转执行S1122-S1123。S1105. When the main package subtask is executed and the resource main package is successfully downloaded, exit the main package subtask, and detect whether there is a resource patch package corresponding to the target application in the download path of the target application. Otherwise, jump to S1122-S1123.
本申请实施例中,S1105的实现方式与S6042的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1105 is consistent with the description of S6042, and will not be repeated here.
S1106、在存在资源补丁包的情况下,启动资源包下载子任务中的补丁包子任务。S1106: In the case where the resource patch package exists, start the patch package subtask in the resource package download subtask.
本申请实施例中,S1106的实现方式与S6043的描述一致,此处不再赘述。In the embodiment of this application, the implementation of S1106 is consistent with the description of S6043, and will not be repeated here.
S1107、在执行补丁包子任务,实现资源补丁包下载成功的情况下,确认资源包下载成功,完成对资源包的下载。S1107. In the case where the subtask of the patch package is executed and the resource patch package is successfully downloaded, it is confirmed that the resource package is downloaded successfully, and the download of the resource package is completed.
本申请实施例中,S1107的实现方式与S6044的描述一致,此处不再赘述。In the embodiment of the present application, the implementation of S1107 is consistent with the description of S6044, and will not be repeated here.
S1108、在当前界面提示下载成功消息,将目标下载控件的状态更新为下载完成,退出后台下载任务,确认目标应用下载成功。S1108: Prompt the download success message on the current interface, update the status of the target download control to download completed, exit the background download task, and confirm that the target application is successfully downloaded.
本申请实施例中,S1108的实现方式与S605的描述一致,此处不再赘述。In the embodiment of this application, the implementation of S1108 is consistent with the description of S605, and will not be repeated here.
S1109、在目标应用下载成功后,从预设下载目录中获取目标应用对应的应用安装包和资源包。S1109: After the target application is successfully downloaded, obtain the application installation package and resource package corresponding to the target application from the preset download directory.
本申请实施例中,S1109的实现方式与S101的描述一致,此处不再赘述。In the embodiment of the present application, the implementation of S1109 is consistent with the description of S101, and will not be repeated here.
S1109之后,从S1110-S1112继续执行,或者,从S1113继续执行。After S1109, continue execution from S1110-S1112, or continue execution from S1113.
S1110、在存储空间中检测是否存在预设资源目录。若是,执行S1113,否则,执行S1111-S1112。S1110: Detect whether there is a preset resource directory in the storage space. If yes, execute S1113, otherwise, execute S1111-S1112.
本申请实施例中,S1110的实现方式与S201的描述一致,此处不再赘述。In the embodiment of the present application, the implementation of S1110 is consistent with the description of S201, and will not be repeated here.
S1111、若存在预设资源目录,则在预设资源目录中检测是否存在资源包对应的临时下载文件。S1111, if there is a preset resource directory, detect whether there is a temporary download file corresponding to the resource package in the preset resource directory.
本申请实施例中,S1111的实现方式与S202的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1111 is consistent with the description of S202, and will not be repeated here.
S1112、若存在临时下载文件,则从预设资源目录中删除临时下载文件。S1112, if there is a temporary download file, delete the temporary download file from the preset resource directory.
本申请实施例中,S1112的实现方式与S203的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1112 is consistent with the description of S203, and will not be repeated here.
S1113、若不存在预设资源目录,则创建预设资源目录,将资源包移动到预设资源目录下。S1113. If there is no preset resource directory, create a preset resource directory, and move the resource package to the preset resource directory.
本申请实施例中,S1113中创建预设资源目录,将资源包移动到预设资源目录下的实现方式与S102的描述一致,此处不再赘述。In the embodiment of the present application, the implementation of creating a preset resource directory in S1113 and moving the resource package to the preset resource directory is consistent with the description of S102, and will not be repeated here.
S1114、对应用安装包和资源包分别进行完整一致性校验。S1114. Perform complete consistency verification on the application installation package and the resource package respectively.
本申请实施例中,S1114的实现方式与S301的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1114 is consistent with the description of S301, and will not be repeated here.
S1115、当应用安装包和资源包都通过完整一致性校验时,通过应用安装包,启动对目标应用的软件安装。否则,执行S1124-S1125。S1115. When both the application installation package and the resource package pass the complete consistency check, start the software installation of the target application through the application installation package. Otherwise, execute S1124-S1125.
本申请实施例中,S1115中通过应用安装包,启动对目标应用的软件安装的实现方式与S1131的描述一致,此处不再赘述。若应用安装包安装成功,开始执行S1116,否则,跳转至S1126执行。In the embodiment of the present application, the implementation method of starting the software installation of the target application through the application installation package in S1115 is consistent with the description of S1131, and will not be repeated here. If the application installation package is installed successfully, start to execute S1116, otherwise, jump to S1126 to execute.
S1116、在应用安装包安装成功的情况下,检查预设资源目录下是否存在与目标资源包相同命名的历史资源包。S1116: In the case that the application installation package is successfully installed, check whether there is a historical resource package with the same name as the target resource package in the preset resource directory.
S1117、当存在历史资源包时,将历史资源包从预设资源目录下删除,否则,直接执行S1118。S1117: When there is a historical resource package, delete the historical resource package from the preset resource directory; otherwise, directly execute S1118.
本申请实施例中,S1117中的实现方式与S502的描述一致,此处不再赘述。In the embodiment of this application, the implementation in S1117 is consistent with the description of S502, and will not be repeated here.
S1118、根据预设关联格式对预设资源目录下的资源包进行重命名,得到目标资源包,将目标资源包作为目标应用运行时的可调用资源,完成对目标应用的资源关联配置,从而完成对目标应用的安装。S1118. Rename the resource package in the preset resource directory according to the preset association format to obtain the target resource package, use the target resource package as a callable resource during the runtime of the target application, and complete the resource association configuration of the target application, thereby completing Installation of the target application.
本申请实施例中,S1118的实现方式与S1032的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1118 is consistent with the description of S1032, and will not be repeated here.
S1119、当目标应用安装完成时,在预设下载目录下,删除目标应用对应的应用安装包和资源包。S1119. When the target application is installed, delete the application installation package and resource package corresponding to the target application in the preset download directory.
本申请实施例中,S1119的实现方式与S1033的描述一致,此处不再赘述。In the embodiment of this application, the implementation of S1119 is consistent with the description of S1033, and will not be repeated here.
S1120、在应用安装包下载失败的情况下,确认目标应用下载失败,将目标下载控件的状态更新为下载失败,并退出后台下载任务,在当前界面提示第一下载失败信息。S1120. In the case that the download of the application installation package fails, confirm that the target application has failed to download, update the status of the target download control to download failed, exit the background download task, and prompt the first download failure message on the current interface.
本申请实施例中,S1120的实现方式与S615的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1120 is consistent with the description of S615, and will not be repeated here.
S1121、将第一下载失败信息上报至服务器,以使服务器基于第一下载失败信息进行过程数据收集和分析。S1121. Report the first download failure information to the server, so that the server performs process data collection and analysis based on the first download failure information.
本申请实施例中,S1121的实现方式与S616的描述一致,此处不再赘述。In the embodiment of the present application, the implementation of S1121 is consistent with the description of S616, and will not be repeated here.
S1122、在资源主包下载失败的情况下,确认目标应用下载失败,将目标下载控件的状态更新为下载失败,并退出后台下载任务,从预设下载目录中删除目标应用对应的应用安装包。S1122, in the case that the download of the main resource package fails, confirm that the target application has failed to download, update the status of the target download control to download failed, exit the background download task, and delete the application installation package corresponding to the target application from the preset download directory.
本申请实施例中,S1122的实现方式与S801的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1122 is consistent with the description of S801, and will not be repeated here.
S1123、在当前界面上提示第二下载失败信息,并将第二下载失败信息上报至服务器,以使服务器基于第二下载失败信息进行过程数据收集和分析。S1123. Prompt the second download failure information on the current interface, and report the second download failure information to the server, so that the server performs process data collection and analysis based on the second download failure information.
本申请实施例中,S1123的实现方式与S802的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1123 is consistent with the description of S802, and will not be repeated here.
S1124、当应用安装包与资源包中存在任意一个未通过校验时,在当前界面上提示第一安装失败信息,并且,不启动对目标应用的安装。S1124: When any one of the application installation package and the resource package fails the verification, a first installation failure message is prompted on the current interface, and the installation of the target application is not started.
本申请实施例中,S1124的实现方式与S302的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1124 is consistent with the description of S302, and will not be repeated here.
S1125、将第一安装失败信息上报至服务器,以使服务器基于第一安装失败信息进行过程数据收集和分析S1125. Report the first installation failure information to the server, so that the server collects and analyzes process data based on the first installation failure information
本申请实施例中,S1125的实现方式与S303的描述一致,此处不再赘述。In this embodiment of the application, the implementation of S1125 is consistent with the description of S303, and will not be repeated here.
S1126、在应用安装包安装失败的情况下,在当前界面上提示第二安装失败信息,退出目标应用的安装流程。S1126. In the case that the installation of the application installation package fails, a second installation failure message is prompted on the current interface, and the installation process of the target application is exited.
本申请实施例中,S1126的实现方式与S401的描述一致,此处不再赘述。In the embodiment of this application, the implementation of S1126 is consistent with the description of S401, and will not be repeated here.
S1127、将第二安装失败信息上报至服务器,以使服务器基于第二安装失败信息进行过程数据收集和分析。S1127. Report the second installation failure information to the server, so that the server performs process data collection and analysis based on the second installation failure information.
本申请实施例中,S1127的实现方式与S402的描述一致,此处不再赘述。In the embodiment of the present application, the implementation of S1127 is consistent with the description of S402, and will not be repeated here.
示例性的,用户在终端应用库显示界面上点击下载一个目标应用时,终端的方法流程可以如图22所示:Exemplarily, when the user clicks to download a target application on the terminal application library display interface, the method flow of the terminal may be as shown in Figure 22:
S21_1、终端接收点击下载指令。S21_1. The terminal receives a click to download instruction.
S21_2、终端创建下载任务。S21_2. The terminal creates a download task.
S21_2中,终端创建的下载任务包括目标应用对应的APK下载任务、Main OBB下载任务和Patch OBB下载任务。In S21_2, the download tasks created by the terminal include APK download tasks, Main OBB download tasks, and Patch OBB download tasks corresponding to the target application.
S21_3、终端启动下载任务中的APK下载任务。S21_3. The terminal starts the APK download task in the download task.
S21_3中,终端启动下载任务中的APK下载任务,对目标应用的APK包进行下载。In S21_3, the terminal starts the APK download task in the download task, and downloads the APK package of the target application.
S21_4、终端判断APK下载任务是否执行成功,即目标应用的APK包是否被成功下载。若是,则执行S21_5,否则,执行S21_6。S21_4. The terminal judges whether the APK download task is executed successfully, that is, whether the APK package of the target application is successfully downloaded. If yes, execute S21_5, otherwise, execute S21_6.
S21_5、终端启动下载任务中的Main OBB下载任务。S21_5. The terminal starts the Main OBB download task in the download task.
S21_5中,终端启动下载任务中的Main OBB下载任务,对目标应用的Main OBB包进行下载。In S21_5, the terminal starts the Main OBB download task in the download task, and downloads the Main OBB package of the target application.
S21_6、终端返回第一下载失败消息,退出下载。S21_6. The terminal returns the first download failure message and exits the download.
S21_7、终端判断Main OBB下载任务是否执行成功,即目标应用的Main OBB包是否被成功下载。若是,则执行S21_8,否则,执行S21_9。S21_7. The terminal judges whether the Main OBB download task is executed successfully, that is, whether the Main OBB package of the target application is successfully downloaded. If yes, execute S21_8, otherwise, execute S21_9.
S21_8、终端判断目标应用的下载路径中是否包含Patch OBB包,若是,则执行S21_10,否则,执行S21_11。S21_8. The terminal judges whether the download path of the target application includes Patch OBB, and if so, executes S21_10, otherwise, executes S21_11.
S21_9、终端返回第二下载失败消息,退出下载,并删除apk。S21_9. The terminal returns a second download failure message, exits the download, and deletes the apk.
S21_10、终端启动Patch OBB下载任务。S21_10. The terminal starts the Patch OBB download task.
S21_10中,终端启动下载任务中的Patch OBB下载任务,对目标应用的Patch OBB包进行下载。In S21_10, the terminal starts the Patch OBB download task in the download task, and downloads the Patch OBB package of the target application.
S21_11、终端返回下载成功。S21_11. The terminal returns that the download is successful.
S21_12、终端判断Patch OBB下载任务是否执行成功,即目标应用的Patch OBB包是否被成功下载。若是,则执行S21_10,否则,执行S21_12。S21_12. The terminal judges whether the Patch OBB download task is executed successfully, that is, whether the Patch OBB package of the target application is successfully downloaded. If yes, execute S21_10, otherwise, execute S21_12.
S21_13、终端返回第三下载失败消息,退出下载。S21_13. The terminal returns a third download failure message and exits the download.
示例性的,当目标应用下载完毕,进入应用安装过程时,终端的方法流程可以如图23所示:Exemplarily, when the target application is downloaded and the application installation process is entered, the method flow of the terminal may be as shown in Figure 23:
S22_1、终端从临时下载目录中开始获取目标应用的APK和OBB文件。S22_1. The terminal starts to obtain the APK and OBB files of the target application from the temporary download directory.
S22_2、终端将应用库显示界面上目标应用对应的“安装”按钮状态调整为“安装中”。S22_2. The terminal adjusts the state of the "install" button corresponding to the target application on the display interface of the application library to "installing".
S22_3、终端判断临时下载目录中是否包含目标应用的OBB文件。若是,执行S22_4,否则,执行S22_5。S22_3. The terminal judges whether the OBB file of the target application is contained in the temporary download directory. If yes, execute S22_4, otherwise, execute S22_5.
S22_4、终端判断OBB文件目录/Andorid/obb/<package-name>/,也即预设资源目录是否存在,若是,执行S22_6,否则,执行S22_7。S22_4. The terminal judges the OBB file directory /Andorid/obb/<package-name>/, that is, whether the preset resource directory exists, if so, execute S22_6, otherwise, execute S22_7.
S22_5、终端仅安装目标应用的apk包,完成对目标应用的安装。S22_5. The terminal only installs the apk package of the target application, and completes the installation of the target application.
S22_6、终端检查在预设资源目录/Andorid/obb/<package-name>/下,是否存在OBB的临时下载文件[main|patch].version-code.package-name.obb.temp(后简称OBB Temp)。若是执行S22_8,否则执行S22_9。S22_6. The terminal checks whether there is a temporary download file of OBB under the preset resource directory /Andorid/obb/<package-name>/ [main|patch].version-code.package-name.obb.temp (hereinafter referred to as OBB) Temp). If it is to execute S22_8, otherwise execute S22_9.
S22_7、终端创建OBB文件存放的预设资源目录,然后跳转执行S22_9。S22_7. The terminal creates a preset resource directory for storing OBB files, and then jumps to execute S22_9.
S22_8、终端删除预设资源目录中OBB Temp文件。S22_8. The terminal deletes the OBB Temp file in the preset resource directory.
S22_9、终端将临时下载目录下的OBB文件移动到预设资源目录/Andorid/obb/<package-name>/。S22_9. The terminal moves the OBB file in the temporary download directory to the preset resource directory /Andorid/obb/<package-name>/.
S22_10、终端对APK文件和OBB文件进行Header MD5校验。若通过,则执行S22_11,否则,执行S22_12。S22_10. The terminal performs Header MD5 verification on the APK file and the OBB file. If it passes, execute S22_11, otherwise, execute S22_12.
S22_11、终端安装APK文件。S22_11. The terminal installs the APK file.
S22_12、终端提示安装失败,并进行失败原因(校验不通过)提示,退出安装。S22_12. The terminal prompts that the installation has failed, and prompts the reason for the failure (verification failed), and exits the installation.
S22_13、终端判断APK是否安装成功。若成功,执行S22_14,否则,执行S22_15。S22_13. The terminal judges whether the APK is successfully installed. If successful, execute S22_14, otherwise, execute S22_15.
S22_14、终端判断OBB安装目录是否存在相同文件名的历史资源包。若存在,执行S22_16,否则,执行S22_17。S22_14. The terminal judges whether a historical resource package with the same file name exists in the OBB installation directory. If it exists, execute S22_16, otherwise, execute S22_17.
S22_15、终端提示安装失败,并进行失败原因(APK安装失败)提示,退出安装。S22_15. The terminal prompts that the installation fails, and prompts the reason for the failure (APK installation failure), and exits the installation.
S22_16、终端删除同名OBB历史资源包。S22_16. The terminal deletes the OBB historical resource package with the same name.
S22_17、终端重命名OBB文件为标准OBB文件名。其中标准OBB文件名为符合预设关联格式的OBB资源包名称。S22_17. The terminal renames the OBB file to a standard OBB file name. The standard OBB file name is the name of the OBB resource package conforming to the preset associated format.
S22_18、终端在临时下载目录下,删除OBB临时下载文件和APK文件等与目标应用相关的下载文件。S22_18. The terminal deletes download files related to the target application, such as the OBB temporary download file and APK file, in the temporary download directory.
S22_19、终端提示安装成功。S22_19. The terminal prompts that the installation is successful.
可以理解的是,本申请实施例中,终端上的应用安装装置在同一下载过程分别获取到目标应用的应用安装包和资源包,从而在一次安装过程中全部自动完成对目标应用的软件安装和资源配置,不需要在应用启动时再去下载资源文件,也不需要额外的专用安装工具,应用安装完成后即可正常启动运行,从而提高了应用安装的成功率和安装效率。It is understandable that, in this embodiment of the application, the application installation device on the terminal obtains the application installation package and resource package of the target application in the same download process, so that the software installation and resource package of the target application are all automatically completed in one installation process. Resource configuration, there is no need to download resource files when the application is started, and no additional special installation tools are needed. After the application is installed, it can be started and run normally, thereby improving the success rate and installation efficiency of application installation.
下面继续说明本申请实施例提供的应用安装装置455的实施为软件模块的示例性结构,在一些实施例中,如图3所示,存储在存储器450的应用安装装置455中的软件模块可以包括获取部分4551、移动部分4552和安装部分4553,其中,The following continues to describe the exemplary structure of the application installation device 455 provided by the embodiment of the present application as a software module. In some embodiments, as shown in FIG. 3, the software module stored in the application installation device 455 of the memory 450 may include Obtaining part 4551, moving part 4552 and installing part 4553, of which,
所述获取部分4551,配置为在目标应用下载成功后,从预设下载目录中获取所述目标应用对应的应用安装包和资源包;所述应用安装包与所述资源包为通过同一后台下载任务,从应用库的服务器中获取的分包打包的数据包;The obtaining part 4551 is configured to obtain the application installation package and resource package corresponding to the target application from a preset download directory after the target application is successfully downloaded; the application installation package and the resource package are downloaded through the same background Task, the sub-packaged data package obtained from the server of the application library;
所述移动部分4552,配置为创建预设资源目录,将所述资源包移动到所述预设资源目录下;所述预设资源目录用于存储所述目标应用运行时调用的资源;The moving part 4552 is configured to create a preset resource directory and move the resource package to the preset resource directory; the preset resource directory is used to store the resources called when the target application is running;
所述安装部分4553,配置为通过所述应用安装包与所述资源包,分别对所述目标应用进行软件安装和所述预设资源目录下的资源关联配置,完成对所述目标应用的安装。The installation part 4553 is configured to perform software installation on the target application and resource association configuration under the preset resource directory through the application installation package and the resource package, respectively, to complete the installation of the target application .
在本申请实施例的一实施方式中,所述应用安装装置455还包括校验部分。所述校验部分,配置为对所述应用安装包和所述资源包分别进行完整一致性校验;In an implementation of the embodiment of the present application, the application installation device 455 further includes a verification part. The verification part is configured to perform complete consistency verification on the application installation package and the resource package respectively;
所述安装部分4553,还配置为当所述应用安装包和所述资源包都通过完整一致性校验时,通过所述应用安装包,启动对所述目标应用的软件安装;根据预设关联格式对所述预设资源目录下的所述资源包进行重命名,得到所述目标资源包,将所述目标资源包作为所述目标应用运行时的可调用资源,完成对所述目标应用的资源关联配置,从而完成对所述目标应用的安装。The installation part 4553 is further configured to start the software installation of the target application through the application installation package when the application installation package and the resource package both pass the complete consistency check; Format to rename the resource package in the preset resource directory to obtain the target resource package, use the target resource package as a callable resource when the target application is running, and complete the target application Resource association configuration, thereby completing the installation of the target application.
在本申请实施例的一实施方式中,所述应用安装装置455还包括检测部分和删除部分,所述检测部分,配置为在从预设下载目录中获取所述目标应用对应的应用安装包和资源包之后,在存储空间中检测是否存在所述预设资源目录;当存在所述预设资源目录时,在所述预设资源目录中检测是否存在所述资源包对应的临时下载文件;In an implementation of the embodiment of the present application, the application installation device 455 further includes a detection part and a deletion part, and the detection part is configured to obtain the application installation package and the application installation package corresponding to the target application from a preset download directory. After the resource package, detect whether the preset resource directory exists in the storage space; when the preset resource directory exists, detect whether there is a temporary download file corresponding to the resource package in the preset resource directory;
所述删除部分,配置为若存在所述临时下载文件,则从所述预设资源目录中删除所述临时下载文件,并将所述资源包移动到所述预设资源目录下。The deleting part is configured to delete the temporary download file from the preset resource directory if the temporary download file exists, and move the resource package to the preset resource directory.
在本申请实施例的一实施方式中,所述应用安装装置455还包括提示部分和上报部分,所述提示部分,配置为在对所述应用安装包和所述资源包分别进行完整一致性校验之后,当所述应用安装包与所述资源包中存在任意一个未通过校验时,在当前界面上提示第一安装失败信息,不进行所述目标应用的安装;In an implementation of the embodiment of the present application, the application installation device 455 further includes a prompting part and a reporting part. The prompting part is configured to perform a complete consistency check on the application installation package and the resource package respectively. After verification, when any one of the application installation package and the resource package fails the verification, a first installation failure message is prompted on the current interface, and the target application is not installed;
所述上报部分,配置为将所述第一安装失败信息上报至所述服务器,以使所述服务器基于所述第一安装失败信息进行过程数据收集和分析,所述第一安装失败信息表征安装失败的原因为校验失败。The reporting part is configured to report the first installation failure information to the server, so that the server performs process data collection and analysis based on the first installation failure information, and the first installation failure information represents the installation The reason for the failure is verification failure.
在本申请实施例的一实施方式中,所述通过所述应用安装包,启动对所述目标应用的软件安装之后,所述提示部分,还配置为若所述应用安装包安装失败,则在当前界面上提示第二安装失败信息,退出所 述目标应用的安装流程;In an implementation manner of the embodiment of the present application, after the software installation of the target application is initiated through the application installation package, the prompt part is further configured to: if the installation of the application installation package fails, then A second installation failure message is prompted on the current interface, and the installation process of the target application is exited;
所述上报部分,还配置为将所述第二安装失败信息上报至所述服务器,以使所述服务器基于所述第二安装失败信息进行过程数据收集和分析;所述第二安装失败信息表征应用安装包安装失败。The reporting part is further configured to report the second installation failure information to the server, so that the server performs process data collection and analysis based on the second installation failure information; the second installation failure information characterizes The installation of the application installation package failed.
在本申请实施例的一实施方式中,所述检测部分,还配置为在所述通过所述应用安装包,启动对所述目标应用的软件安装之后,所述根据预设关联格式对所述预设资源目录下的所述资源包进行重命名,得到所述目标资源包,将所述目标资源包作为所述目标应用运行时的可调用资源,完成对所述目标应用的资源关联配置之前,若所述应用安装包安装成功,则检查所述预设资源目录下是否存在与所述目标资源包相同命名的历史资源包;In an implementation manner of the embodiment of the present application, the detection part is further configured to: after the software installation of the target application is initiated through the application installation package, the Rename the resource package under the preset resource directory to obtain the target resource package, use the target resource package as a callable resource when the target application is running, and before completing the resource association configuration of the target application , If the application installation package is successfully installed, check whether there is a historical resource package with the same name as the target resource package in the preset resource directory;
所述删除部分,还配置为当存在所述历史资源包时,将所述历史资源包从所述预设资源目录下删除。The deletion part is further configured to delete the historical resource package from the preset resource directory when the historical resource package exists.
在本申请实施例的一实施方式中,所述根据预设关联格式对所述预设资源目录下的所述资源包进行重命名,得到所述目标资源包,将所述目标资源包作为所述目标应用运行时的可调用资源,完成对所述目标应用的资源关联配置之后,所述删除部分,还配置为当所述目标应用安装完成时,在所述预设下载目录下,删除所述目标应用对应的所述应用安装包和所述资源包。In an implementation manner of the embodiment of the present application, the resource package under the preset resource directory is renamed according to a preset association format to obtain the target resource package, and the target resource package is used as the source The callable resources when the target application is running, after completing the resource association configuration of the target application, the deletion part is also configured to delete all resources in the preset download directory when the target application is installed. The application installation package and the resource package corresponding to the target application.
在本申请实施例的一实施方式中,所述应用安装装置455还包括接收部分、创建部分和下载部分,其中,所述接收部分,配置为在所述从预设下载目录中获取所述目标应用对应的应用安装包和资源包之前,在应用库显示界面上,接收对所述目标应用的下载安装指令或更新指令;In an implementation of the embodiment of the present application, the application installation device 455 further includes a receiving part, a creating part, and a downloading part. The receiving part is configured to obtain the target from the preset download directory. Before applying the corresponding application installation package and resource package, on the application library display interface, receiving a download installation instruction or an update instruction for the target application;
所述创建部分,配置为响应于所述下载安装指令或更新指令,在所述应用库显示界面中,创建所述目标应用对应的目标下载控件;所述目标下载控件对应的后台下载任务包括安装包下载子任务和资源包下载子任务;所述目标下载控件包含所述目标应用的下载进度信息,所述下载进度信息的最终下载量为所述目标应用对应的所述应用安装包与所述资源包大小的总和;The creating part is configured to create a target download control corresponding to the target application in the application library display interface in response to the download installation instruction or update instruction; the background download task corresponding to the target download control includes installation The package download subtask and the resource package download subtask; the target download control includes download progress information of the target application, and the final download amount of the download progress information is the application installation package corresponding to the target application and the The sum of the size of the resource pack;
所述下载部分,配置为启动所述安装包下载子任务,将所述目标下载控件的状态更新为下载中;所述安装包下载子任务用于从所述服务器中,将所述目标应用对应的应用安装包下载到所述预设下载目录;当所述应用安装包下载成功后,退出所述安装包下载子任务,并启动所述资源包下载子任务,从所述服务器中下载所述目标应用对应的所述资源包到所述预设下载目录;The downloading part is configured to start the installation package download subtask, and update the status of the target download control to downloading; the installation package download subtask is used to correspond to the target application from the server Download the application installation package of the application installation package to the preset download directory; when the application installation package is downloaded successfully, exit the installation package download subtask, start the resource package download subtask, and download the The resource package corresponding to the target application to the preset download directory;
所述提示部分,还配置为在当前界面提示下载成功消息,将所述目标下载控件的状态更新为下载完成,退出所述后台下载任务,确认所述目标应用下载成功。The prompt part is also configured to prompt a download success message on the current interface, update the status of the target download control to download completed, exit the background download task, and confirm the successful download of the target application.
在本申请实施例的一实施方式中,所述提示部分,还配置在所述启动所述安装包下载子任务,将所述目标下载控件的状态更新为下载中之后,为若所述应用安装包下载失败,则确认所述目标应用下载失败,将所述目标下载控件的状态更新为下载失败,并退出所述后台下载任务,在当前界面提示第一下载失败信息;In an implementation manner of the embodiment of the present application, the prompt part is further configured after the start of the installation package download subtask and the status of the target download control is updated to downloading, if the application is installed If the package download fails, confirm that the target application download failed, update the status of the target download control to download failed, exit the background download task, and prompt the first download failure message on the current interface;
所述上报部分,还配置为将所述第一下载失败信息上报至所述服务器,以使所述服务器基于第一下载失败信息进行过程数据收集和分析;所述第一下载失败信息表征所述目标应用的应用安装包下载失败。The reporting part is further configured to report the first download failure information to the server, so that the server performs process data collection and analysis based on the first download failure information; the first download failure information represents the The download of the application installation package of the target application failed.
在本申请实施例的一实施方式中,所述下载部分,还配置为启动所述资源包下载子任务中的主包子任务;所述主包子任务用于将所述目标应用对应的资源主包下载到所述预设下载目录;所述资源主包为所述资源包中主扩展包;若执行所述主包子任务,实现所述资源主包下载成功,则退出所述主包子任务,并在所述目标应用的下载路径中检测是否存在所述目标应用对应的资源补丁包;所述资源补丁包为所述资源包中的补充扩展包;若存在所述资源补丁包,则启动所述资源包下载子任务中的补丁包子任务;所述补丁包子任务用于将所述资源补丁包下载到所述预设下载目录;若执行所述补丁包子任务,实现所述资源补丁包下载成功,则确认所述资源包下载成功,完成对所述资源包的下载。In an implementation manner of the embodiment of the present application, the download part is further configured to start the main package subtask in the resource package download subtask; the main package subtask is used to transfer the resource main package corresponding to the target application Download to the preset download directory; the resource main package is the main expansion package in the resource package; if the main package subtask is executed and the resource main package is successfully downloaded, then the main package subtask is exited, and Detect in the download path of the target application whether there is a resource patch package corresponding to the target application; the resource patch package is a supplementary extension package in the resource package; if the resource patch package exists, start the The patch package subtask in the resource package download subtask; the patch package subtask is used to download the resource patch package to the preset download directory; if the patch package subtask is executed, the resource patch package is successfully downloaded, Then it is confirmed that the download of the resource package is successful, and the download of the resource package is completed.
在本申请实施例的一实施方式中,所述下载部分,还配置为在所述在所述目标应用的下载路径中检测是否存在所述资源补丁包之后,若不存在所述资源补丁包,则确认所述资源包下载成功,完成对所述资源包的下载。In an implementation manner of the embodiment of the present application, the downloading part is further configured to, after detecting whether the resource patch package exists in the download path of the target application, if the resource patch package does not exist, Then it is confirmed that the download of the resource package is successful, and the download of the resource package is completed.
在本申请实施例的一实施方式中,所述下载部分,还配置为在所述启动所述资源包下载子任务中的主包子任务之后,若执行所述主包子任务,对所述资源主包下载失败,则确认所述目标应用下载失败,将所述目标下载控件的状态更新为下载失败,并退出所述后台下载任务,从所述预设下载目录中删除所述目标应用对应的应用安装包;In an implementation manner of the embodiment of the present application, the download part is further configured to: after the start of the main package subtask in the resource package download subtask, if the main package subtask is executed, the resource main If the package download fails, confirm that the target application has failed to download, update the status of the target download control to download failed, exit the background download task, and delete the application corresponding to the target application from the preset download directory Installation package;
所述提示部分,还配置为在当前界面上提示第二下载失败信息,并将所述第二下载失败信息上报至所述服务器,以使所述服务器基于所述第二下载失败信息进行过程数据收集和分析;所述第二下载失败信息表征所述目标应用的资源主包下载失败。The prompt part is further configured to prompt second download failure information on the current interface, and report the second download failure information to the server, so that the server performs process data based on the second download failure information Collecting and analyzing; the second download failure information indicates that the download of the resource main package of the target application failed.
在本申请实施例的一实施方式中,所述下载部分,还配置为在所述启动所述资源包下载子任务中的补丁包子任务之后,若所述资源补丁包下载失败,则确认所述目标应用下载失败,将所述目标下载控件的状态更新为下载失败,并退出所述后台下载任务;In an implementation manner of the embodiment of the present application, the download part is further configured to, after the patch package subtask in the resource package download subtask is started, if the resource patch package download fails, confirm the If the target application fails to download, update the status of the target download control to download failed, and exit the background download task;
所述提示部分,还配置为在当前界面上提示第三下载失败消息,并将所述第三下载失败信息上报至 所述服务器,以使所述服务器基于第三下载失败信息进行过程数据收集和分析;所述第三下载失败信息表征所述目标应用的资源补丁包下载失败。The prompt part is further configured to prompt a third download failure message on the current interface, and report the third download failure information to the server, so that the server performs process data collection and processing based on the third download failure information Analysis; the third download failure information indicates that the download of the resource patch package of the target application failed.
在本申请实施例的一实施方式中,所述下载部分,还配置为在所述启动所述安装包下载子任务,将所述目标下载控件的状态更新为下载中之后,当检测到所述目标应用对应的全部下载文件中的任意一个被删除时,确认所述目标应用下载失败;所述全部下载文件包括所述应用安装包、所述资源包、所述应用安装包对应的临时下载文件以及所述资源包对应的临时下载文件;将所述目标下载控件的状态更新为下载失败,并删除所述预设下载目录下所述目标应用对应的全部下载文件,退出所述后台下载任务,从而退出对所述目标应用的下载;In an implementation manner of the embodiment of the present application, the downloading part is further configured to: after the start of the installation package download subtask and update the status of the target download control to downloading, when it is detected that the When any one of all the download files corresponding to the target application is deleted, it is confirmed that the download of the target application fails; the all download files include the application installation package, the resource package, and the temporary download file corresponding to the application installation package And the temporary download file corresponding to the resource package; update the status of the target download control to download failed, delete all download files corresponding to the target application in the preset download directory, and exit the background download task, Thereby quitting the download of the target application;
所述提示部分,还配置为在当前界面上提示第四下载失败信息,并将所述第四下载失败信息上报至所述服务器,以使所述服务器基于第四下载失败信息进行过程数据收集和分析;所述第四下载失败信息表征所述目标应用的下载文件被异常删除。The prompt part is further configured to prompt fourth download failure information on the current interface, and report the fourth download failure information to the server, so that the server performs process data collection and processing based on the fourth download failure information Analysis; The fourth download failure information indicates that the download file of the target application is abnormally deleted.
在本申请实施例的一实施方式中,所述接收部分,还配置为所述启动所述安装包下载子任务,将所述目标下载控件的状态更新为下载中之后,在所述应用库显示界面上,接收针对所述目标下载控件的删除指令;In an implementation manner of the embodiment of the present application, the receiving part is further configured to start the installation package downloading subtask, and after updating the status of the target download control to downloading, display in the application library On the interface, receiving a delete instruction for the target download control;
所述删除部分,响应于所述删除指令,删除所述目标下载控件及其对应的后台下载任务,并删除所述目标应用对应的全部下载文件,从而退出对所述目标应用的下载。The deletion part, in response to the deletion instruction, deletes the target download control and its corresponding background download task, and deletes all download files corresponding to the target application, thereby exiting the download of the target application.
在本申请实施例的一实施方式中,所述接收部分,还配置为所述启动所述安装包下载子任务,将所述目标下载控件的状态更新为下载中之后,在所述应用库显示界面上,接收针对所述目标下载控件的暂停指令;In an implementation manner of the embodiment of the present application, the receiving part is further configured to start the installation package downloading subtask, and after updating the status of the target download control to downloading, display in the application library On the interface, receiving a pause instruction for the target download control;
所述下载部分,还配置为响应于所述暂停指令,将所述目标下载控件的状态更新为暂停中,并暂停所述后台下载任务,将当前数据传输进度记录为下载断点;当所述目标下载控件的状态为暂停中时,在所述应用库界面上,接收对所述目标下载控件的恢复下载指令;The download part is further configured to respond to the pause instruction, update the status of the target download control to pause, pause the background download task, and record the current data transmission progress as a download breakpoint; When the status of the target download control is paused, on the application library interface, receiving a download resume instruction for the target download control;
所述下载部分,还配置为响应于所述恢复下载指令,将所述目标下载控件的状态更新为下载中,从所述下载断点处恢复所述后台下载任务的数据传输。The download part is further configured to update the status of the target download control to downloading in response to the download resume instruction, and resume the data transmission of the background download task from the download breakpoint.
在本申请实施例的一实施方式中,所述应用安装装置455还包括卸载部分,其中,所述接收部分,还配置为所述完成对所述目标应用的安装之后,接收对所述目标应用的卸载指令;In an implementation manner of the embodiments of the present application, the application installation device 455 further includes an uninstallation part, wherein the receiving part is further configured to receive an uninstallation of the target application after the installation of the target application is completed. Uninstall instructions;
所述卸载部分,配置为响应于对所述目标应用的卸载指令,启动卸载监听任务,并卸载所述目标应用;从所述预设资源目录中删除所述目标应用对应的目标资源包,并退出所述卸载监听任务,完成对所述目标应用的卸载。The uninstall part is configured to initiate an uninstall monitoring task in response to an uninstall instruction for the target application, and uninstall the target application; delete the target resource package corresponding to the target application from the preset resource directory, and Exit the uninstall monitoring task, and complete the uninstall of the target application.
本申请实施例提供一种存储有可执行指令的计算机可读存储介质,其中存储有可执行指令,当可执行指令被处理器执行时,将引起处理器执行本申请实施例提供的方法,例如,如图4-图11、图13-图16、图18、以及图20-图23中示出的方法。The embodiments of the present application provide a computer-readable storage medium storing executable instructions, and the executable instructions are stored therein. When the executable instructions are executed by a processor, the processor will cause the processor to execute the method provided in the embodiments of the present application, for example, , As shown in Figure 4-Figure 11, Figure 13-Figure 16, Figure 18, and Figure 20-Figure 23 shown in the method.
在一些实施例中,计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、闪存、磁表面存储器、光盘、或CD-ROM等存储器;也可以是包括上述存储器之一或任意组合的各种设备。可执行指令可以采用程序、软件、软件模块、脚本或代码的形式,按任意形式的编程语言(包括编译或解释语言,或者声明性或过程性语言)来编写,并且其可按任意形式部署,包括被部署为独立的程序或者被部署为模块、组件、子例程或者适合在计算环境中使用的其它单元。In some embodiments, the computer-readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; it may also include one or any combination of the foregoing memories. Various equipment. Executable instructions can take the form of programs, software, software modules, scripts or codes, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they can be deployed in any form, Including being deployed as an independent program or deployed as a module, component, subroutine or other unit suitable for use in a computing environment.
综上所述,通过本申请实施例,终端上的应用安装装置可以根据在同一下载过程中获取到的应用安装包和资源包,一次性自动完成对目标应用的软件安装和资源配置,不需要在应用启动时再去下载资源文件,也不需要额外的专用安装工具,应用安装完成后即可正常启动运行,从而提高了应用安装的成功率和安装效率,并且,应用安装装置可以在每个安装阶段对失败原因进行埋点收集,并上报服务器,从而提高了对应用安装过程的监控力度,有利于后续对安装过程进行改进,最终提高了应用安装的成功率;并且,本申请实施例中终端上的应用库可以通过资源包入库流程,支持OBB类型资源分发,提高终端应用库的分发能力和资源数量,增加分发量。In summary, through the embodiments of the present application, the application installation device on the terminal can automatically complete the software installation and resource configuration of the target application at one time based on the application installation package and resource package obtained in the same download process. Download the resource file when the application starts, and no additional special installation tools are needed. After the application is installed, it can start and run normally, thereby improving the success rate and installation efficiency of the application installation. In addition, the application installation device can be installed in each In the installation stage, the failure reason is collected and reported to the server, thereby improving the monitoring of the application installation process, which is conducive to the subsequent improvement of the installation process, and ultimately improves the success rate of the application installation; and, in the embodiment of the present application The application library on the terminal can support OBB type resource distribution through the resource package warehousing process, improve the distribution capability and the number of resources of the terminal application library, and increase the distribution volume.
以上所述,仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和范围之内所作的任何修改、等同替换和改进等,均包含在本申请的保护范围之内。The above are only examples of the present application, and are not used to limit the protection scope of the present application. Any modification, equivalent replacement and improvement made within the spirit and scope of this application are all included in the protection scope of this application.
工业实用性Industrial applicability
本申请实施例中,应用安装装置可以根据在同一下载过程中获取到的应用安装包和资源包,一次性自动完成对目标应用的软件安装和资源配置,不需要在应用启动时再去下载资源文件,也不需要额外的专用安装工具,应用安装完成后即可正常启动运行,从而提高了应用安装的成功率和安装效率。In the embodiment of this application, the application installation device can automatically complete the software installation and resource configuration of the target application at one time based on the application installation package and resource package obtained in the same download process, and there is no need to download resources when the application is started. Files, no additional special installation tools are required, and the application can be started and run normally after the application is installed, thereby improving the success rate and installation efficiency of the application installation.

Claims (20)

  1. 一种应用安装方法,所述方法包括:An application installation method, the method includes:
    在目标应用下载成功后,从预设下载目录中获取所述目标应用对应的应用安装包和资源包;所述应用安装包与所述资源包为通过同一后台下载任务,从应用库的服务器中获取的分包打包的数据包;After the target application is downloaded successfully, obtain the application installation package and resource package corresponding to the target application from the preset download directory; the application installation package and the resource package are downloaded from the server in the application library through the same background download task The obtained sub-packaged data package;
    创建预设资源目录,将所述资源包移动到所述预设资源目录下;所述预设资源目录用于存储所述目标应用运行时调用的资源;Create a preset resource directory, move the resource package to the preset resource directory; the preset resource directory is used to store the resources called when the target application is running;
    通过所述应用安装包与所述资源包,分别对所述目标应用进行软件安装和所述预设资源目录下的资源关联配置,完成对所述目标应用的安装。Through the application installation package and the resource package, software installation of the target application and resource association configuration under the preset resource directory are respectively performed to complete the installation of the target application.
  2. 根据权利要求1所述的方法,其中,所述通过所述应用安装包与所述资源包,分别对所述目标应用进行软件安装和所述预设资源目录下的资源关联配置,完成对所述目标应用的安装,包括:The method according to claim 1, wherein the software installation of the target application and the resource association configuration under the preset resource directory are respectively performed on the target application through the application installation package and the resource package to complete the The installation of the target application includes:
    对所述应用安装包和所述资源包分别进行完整一致性校验;Perform complete consistency verification on the application installation package and the resource package respectively;
    当所述应用安装包和所述资源包都通过完整一致性校验时,通过所述应用安装包,启动对所述目标应用的软件安装;When the application installation package and the resource package both pass the complete consistency check, start the software installation of the target application through the application installation package;
    根据预设关联格式对所述预设资源目录下的所述资源包进行重命名,得到所述目标资源包,将所述目标资源包作为所述目标应用运行时的可调用资源,完成对所述目标应用的资源关联配置,从而完成对所述目标应用的安装。Rename the resource package in the preset resource directory according to the preset association format to obtain the target resource package, use the target resource package as a callable resource when the target application is running, and complete the The resource associated configuration of the target application is configured to complete the installation of the target application.
  3. 根据权利要求1或2所述的方法,其中,所述从预设下载目录中获取所述目标应用对应的应用安装包和资源包之后,所述方法还包括:The method according to claim 1 or 2, wherein after the obtaining the application installation package and the resource package corresponding to the target application from a preset download directory, the method further comprises:
    在存储空间中检测是否存在所述预设资源目录;Detecting whether the preset resource directory exists in the storage space;
    当存在所述预设资源目录时,在所述预设资源目录中检测是否存在所述资源包对应的临时下载文件;When the preset resource directory exists, detecting whether there is a temporary download file corresponding to the resource package in the preset resource directory;
    若存在所述临时下载文件,则从所述预设资源目录中删除所述临时下载文件,并将所述资源包移动到所述预设资源目录下。If the temporary download file exists, delete the temporary download file from the preset resource directory, and move the resource package to the preset resource directory.
  4. 根据权利要求2所述的方法,其中,所述对所述应用安装包和所述资源包分别进行完整一致性校验之后,所述方法还包括:The method according to claim 2, wherein, after the complete consistency check is performed on the application installation package and the resource package respectively, the method further comprises:
    当所述应用安装包与所述资源包中存在任意一个未通过校验时,在当前界面上提示第一安装失败信息,不进行所述目标应用的安装;When any one of the application installation package and the resource package fails the verification, a first installation failure message is prompted on the current interface, and the target application is not installed;
    将所述第一安装失败信息上报至所述服务器,以使所述服务器基于所述第一安装失败信息进行过程数据收集和分析,所述第一安装失败信息表征安装失败的原因为校验失败。The first installation failure information is reported to the server, so that the server performs process data collection and analysis based on the first installation failure information, and the first installation failure information indicates that the reason for the installation failure is a verification failure .
  5. 根据权利要求4所述的方法,其中,所述通过所述应用安装包,启动对所述目标应用的软件安装之后,所述方法还包括:The method according to claim 4, wherein, after the software installation of the target application is initiated through the application installation package, the method further comprises:
    若所述应用安装包安装失败,则在当前界面上提示第二安装失败信息,退出所述目标应用的安装流程;If the installation of the application installation package fails, a second installation failure message is prompted on the current interface, and the installation process of the target application is exited;
    将所述第二安装失败信息上报至所述服务器,以使所述服务器基于所述第二安装失败信息进行过程数据收集和分析;所述第二安装失败信息表征应用安装包安装失败。The second installation failure information is reported to the server, so that the server performs process data collection and analysis based on the second installation failure information; the second installation failure information indicates that the installation of the application installation package failed.
  6. 根据权利要求2或4所述的方法,其中,所述通过所述应用安装包,启动对所述目标应用的软件安装之后,所述根据预设关联格式对所述预设资源目录下的所述资源包进行重命名,得到所述目标资源包,将所述目标资源包作为所述目标应用运行时的可调用资源,完成对所述目标应用的资源关联配置之前,所述方法还包括:The method according to claim 2 or 4, wherein, after the software installation of the target application is initiated through the application installation package, the data in the preset resource directory is checked according to a preset association format. Rename the resource package to obtain the target resource package, use the target resource package as a callable resource when the target application is running, and before completing the resource association configuration of the target application, the method further includes:
    若所述应用安装包安装成功,则检查所述预设资源目录下是否存在与所述目标资源包相同命名的历史资源包;If the application installation package is successfully installed, check whether there is a historical resource package with the same name as the target resource package in the preset resource directory;
    当存在所述历史资源包时,将所述历史资源包从所述预设资源目录下删除。When the historical resource package exists, the historical resource package is deleted from the preset resource directory.
  7. 根据权利要求2或4所述的方法,其中,所述根据预设关联格式对所述预设资源目录下的所述资源包进行重命名,得到所述目标资源包,将所述目标资源包作为所述目标应用运行时的可调用资源,完成对所述目标应用的资源关联配置之后,所述方法还包括:The method according to claim 2 or 4, wherein the resource package under the preset resource directory is renamed according to a preset association format to obtain the target resource package, and the target resource package is As the callable resource when the target application is running, after completing the resource association configuration of the target application, the method further includes:
    当所述目标应用安装完成时,在所述预设下载目录下,删除所述目标应用对应的所述应用安装包和所述资源包。When the target application is installed, delete the application installation package and the resource package corresponding to the target application in the preset download directory.
  8. 根据权利要求1-7任一项所述的方法,其中,所述从预设下载目录中获取所述目标应用对应的应用安装包和资源包之前,所述方法还包括:The method according to any one of claims 1-7, wherein before the obtaining the application installation package and resource package corresponding to the target application from a preset download directory, the method further comprises:
    在应用库显示界面上,接收对所述目标应用的下载安装指令或更新指令;On the application library display interface, receiving a download installation instruction or an update instruction for the target application;
    响应于所述下载安装指令或更新指令,在所述应用库显示界面中,创建所述目标应用对应的目标下 载控件;所述目标下载控件对应的后台下载任务包括安装包下载子任务和资源包下载子任务;所述目标下载控件包含所述目标应用的下载进度信息,所述下载进度信息的最终下载量为所述目标应用对应的所述应用安装包与所述资源包大小的总和;In response to the download installation instruction or update instruction, in the application library display interface, a target download control corresponding to the target application is created; the background download task corresponding to the target download control includes an installation package download subtask and a resource package Download subtask; the target download control includes download progress information of the target application, and the final download amount of the download progress information is the sum of the size of the application installation package and the resource package corresponding to the target application;
    启动所述安装包下载子任务,将所述目标下载控件的状态更新为下载中;所述安装包下载子任务用于从所述服务器中,将所述目标应用对应的应用安装包下载到所述预设下载目录;Start the installation package download subtask, update the status of the target download control to downloading; the installation package download subtask is used to download the application installation package corresponding to the target application from the server to all The default download directory;
    当所述应用安装包下载成功后,退出所述安装包下载子任务,并启动所述资源包下载子任务,从所述服务器中下载所述目标应用对应的所述资源包到所述预设下载目录;When the application installation package is downloaded successfully, exit the installation package download subtask, start the resource package download subtask, and download the resource package corresponding to the target application from the server to the preset Download catalog;
    在当前界面提示下载成功消息,将所述目标下载控件的状态更新为下载完成,退出所述后台下载任务,确认所述目标应用下载成功。A message of download success is prompted on the current interface, the status of the target download control is updated to download complete, the background download task is exited, and the target application is confirmed to be downloaded successfully.
  9. 根据权利要求8所述的方法,其中,所述启动所述安装包下载子任务,将所述目标下载控件的状态更新为下载中之后,所述方法还包括:8. The method according to claim 8, wherein after the starting the installation package downloading subtask and updating the status of the target download control to downloading, the method further comprises:
    若所述应用安装包下载失败,则确认所述目标应用下载失败,将所述目标下载控件的状态更新为下载失败,并退出所述后台下载任务,在当前界面提示第一下载失败信息;If the download of the application installation package fails, confirm that the target application has failed to download, update the status of the target download control to download failed, exit the background download task, and prompt the first download failure message on the current interface;
    将所述第一下载失败信息上报至所述服务器,以使所述服务器基于第一下载失败信息进行过程数据收集和分析;所述第一下载失败信息表征所述目标应用的应用安装包下载失败。The first download failure information is reported to the server, so that the server performs process data collection and analysis based on the first download failure information; the first download failure information indicates that the download of the application installation package of the target application failed .
  10. 根据权利要求8或9所述的方法,其中,所述启动所述资源包下载子任务,从所述服务器中下载所述目标应用对应的所述资源包到所述预设下载目录,包括:The method according to claim 8 or 9, wherein the initiating the resource package downloading subtask and downloading the resource package corresponding to the target application from the server to the preset download directory comprises:
    启动所述资源包下载子任务中的主包子任务;所述主包子任务用于将所述目标应用对应的资源主包下载到所述预设下载目录;所述资源主包为所述资源包中主扩展包;Start the main package subtask in the resource package download subtask; the main package subtask is used to download the resource main package corresponding to the target application to the preset download directory; the resource main package is the resource package Main expansion pack;
    若执行所述主包子任务,实现所述资源主包下载成功,则退出所述主包子任务,并在所述目标应用的下载路径中检测是否存在所述目标应用对应的资源补丁包;所述资源补丁包为所述资源包中的补充扩展包;If the main package subtask is executed and the resource main package is successfully downloaded, then exit the main package subtask, and detect whether there is a resource patch package corresponding to the target application in the download path of the target application; The resource patch package is a supplementary expansion package in the resource package;
    若存在所述资源补丁包,则启动所述资源包下载子任务中的补丁包子任务;所述补丁包子任务用于将所述资源补丁包下载到所述预设下载目录;If the resource patch package exists, start the patch package subtask in the resource package download subtask; the patch package subtask is used to download the resource patch package to the preset download directory;
    若执行所述补丁包子任务,实现所述资源补丁包下载成功,则确认所述资源包下载成功,完成对所述资源包的下载。If the patch package subtask is executed and the resource patch package is downloaded successfully, it is confirmed that the resource package is downloaded successfully, and the download of the resource package is completed.
  11. 根据权利要求10所述的方法,其中,所述在所述目标应用的下载路径中检测是否存在所述资源补丁包之后,所述方法还包括:The method according to claim 10, wherein, after the detecting whether the resource patch package exists in the download path of the target application, the method further comprises:
    若不存在所述资源补丁包,则确认所述资源包下载成功,完成对所述资源包的下载。If the resource patch package does not exist, it is confirmed that the resource package is downloaded successfully, and the download of the resource package is completed.
  12. 根据权利要求10所述的方法,其中,所述启动所述资源包下载子任务中的主包子任务之后,所述方法还包括:The method according to claim 10, wherein, after the start of the main package subtask in the resource package download subtask, the method further comprises:
    若执行所述主包子任务,对所述资源主包下载失败,则确认所述目标应用下载失败,将所述目标下载控件的状态更新为下载失败,并退出所述后台下载任务,从所述预设下载目录中删除所述目标应用对应的应用安装包;If the main package subtask is executed and the download of the resource main package fails, the download of the target application is confirmed to be unsuccessful, the status of the target download control is updated to download failed, and the background download task is exited. Deleting the application installation package corresponding to the target application from the preset download directory;
    在当前界面上提示第二下载失败信息,并将所述第二下载失败信息上报至所述服务器,以使所述服务器基于所述第二下载失败信息进行过程数据收集和分析;所述第二下载失败信息表征所述目标应用的资源主包下载失败。The second download failure information is prompted on the current interface, and the second download failure information is reported to the server, so that the server performs process data collection and analysis based on the second download failure information; the second The download failure information indicates that the download of the resource main package of the target application failed.
  13. 根据权利要求10所述的方法,其中,所述启动所述资源包下载子任务中的补丁包子任务之后,所述方法还包括:The method according to claim 10, wherein, after the start of the patch package subtask in the resource package download subtask, the method further comprises:
    在所述资源补丁包下载失败的情况下,确认所述目标应用下载失败,将所述目标下载控件的状态更新为下载失败,并退出所述后台下载任务;In the case where the download of the resource patch package fails, confirm that the target application has failed to download, update the status of the target download control to download failed, and exit the background download task;
    在当前界面上提示第三下载失败消息,并将所述第三下载失败信息上报至所述服务器,以使所述服务器基于第三下载失败信息进行过程数据收集和分析;所述第三下载失败信息表征所述目标应用的资源补丁包下载失败。A third download failure message is prompted on the current interface, and the third download failure information is reported to the server, so that the server performs process data collection and analysis based on the third download failure information; the third download fails The information indicates that the download of the resource patch package of the target application failed.
  14. 根据权利要求10所述的方法,其中,所述启动所述安装包下载子任务,将所述目标下载控件的状态更新为下载中之后,所述方法还包括:The method according to claim 10, wherein after the starting the installation package download subtask and updating the status of the target download control to downloading, the method further comprises:
    当检测到所述目标应用对应的全部下载文件中的任意一个被删除时,确认所述目标应用下载失败;所述全部下载文件包括所述应用安装包、所述资源包、所述应用安装包对应的临时下载文件以及所述资源包对应的临时下载文件;When it is detected that any one of all the download files corresponding to the target application is deleted, it is confirmed that the download of the target application fails; the all download files include the application installation package, the resource package, and the application installation package The corresponding temporary download file and the temporary download file corresponding to the resource package;
    将所述目标下载控件的状态更新为下载失败,并删除所述预设下载目录下所述目标应用对应的全部下载文件,退出所述后台下载任务,从而退出对所述目标应用的下载;Update the status of the target download control to download failed, delete all download files corresponding to the target application in the preset download directory, exit the background download task, and thereby exit the download of the target application;
    在当前界面上提示第四下载失败信息,并将所述第四下载失败信息上报至所述服务器,以使所述服 务器基于第四下载失败信息进行过程数据收集和分析;所述第四下载失败信息表征所述目标应用的下载文件被异常删除。The fourth download failure information is prompted on the current interface, and the fourth download failure information is reported to the server, so that the server performs process data collection and analysis based on the fourth download failure information; the fourth download fails The information indicates that the downloaded file of the target application is abnormally deleted.
  15. 根据权利要求10所述的方法,其中,所述启动所述安装包下载子任务,将所述目标下载控件的状态更新为下载中之后,所述方法还包括:The method according to claim 10, wherein after the starting the installation package download subtask and updating the status of the target download control to downloading, the method further comprises:
    在所述应用库显示界面上,接收针对所述目标下载控件的删除指令;On the application library display interface, receiving a delete instruction for the target download control;
    响应于所述删除指令,删除所述目标下载控件及其对应的后台下载任务,并删除所述目标应用对应的全部下载文件,从而退出对所述目标应用的下载。In response to the delete instruction, delete the target download control and its corresponding background download task, and delete all download files corresponding to the target application, thereby exiting the download of the target application.
  16. 根据权利要求10所述的方法,其中,所述启动所述安装包下载子任务,将所述目标下载控件的状态更新为下载中之后,所述方法还包括:The method according to claim 10, wherein after the starting the installation package download subtask and updating the status of the target download control to downloading, the method further comprises:
    在所述应用库显示界面上,接收针对所述目标下载控件的暂停指令;On the application library display interface, receiving a pause instruction for the target download control;
    响应于所述暂停指令,将所述目标下载控件的状态更新为暂停中,并暂停所述后台下载任务,将当前数据传输进度记录为下载断点;In response to the pause instruction, update the status of the target download control to pause, pause the background download task, and record the current data transmission progress as a download breakpoint;
    当所述目标下载控件的状态为暂停中时,在所述应用库界面上,接收对所述目标下载控件的恢复下载指令;When the status of the target download control is paused, on the application library interface, receiving a download resume instruction for the target download control;
    响应于所述恢复下载指令,将所述目标下载控件的状态更新为下载中,从所述下载断点处恢复所述后台下载任务的数据传输。In response to the download resume instruction, the status of the target download control is updated to downloading, and the data transmission of the background download task is resumed from the download breakpoint.
  17. 根据权利要求1-16任一项所述的方法,其中,所述完成对所述目标应用的安装之后,所述方法还包括:The method according to any one of claims 1-16, wherein, after the installation of the target application is completed, the method further comprises:
    接收对所述目标应用的卸载指令;Receiving an uninstall instruction for the target application;
    响应于对所述目标应用的卸载指令,启动卸载监听任务,并卸载所述目标应用;In response to the uninstall instruction for the target application, start an uninstall monitoring task, and uninstall the target application;
    从所述预设资源目录中删除所述目标应用对应的目标资源包,并退出所述卸载监听任务,完成对所述目标应用的卸载。Delete the target resource package corresponding to the target application from the preset resource directory, exit the uninstall monitoring task, and complete the uninstallation of the target application.
  18. 一种应用安装装置,所述应用安装装置包括获取部分、移动部分与安装部分,其中,An application installation device, the application installation device includes an acquiring part, a moving part and an installing part, wherein,
    所述获取部分,配置为在目标应用下载成功后,从预设下载目录中获取所述目标应用对应的应用安装包和资源包;所述应用安装包与所述资源包为通过同一后台下载任务,从应用库的服务器中获取的分包打包的数据包;The obtaining part is configured to obtain the application installation package and resource package corresponding to the target application from a preset download directory after the target application is successfully downloaded; the application installation package and the resource package are download tasks through the same background , The sub-packaged data package obtained from the server of the application library;
    所述移动部分,配置为创建预设资源目录,将所述资源包移动到所述预设资源目录下;所述预设资源目录用于存储所述目标应用运行时调用的资源;The moving part is configured to create a preset resource catalog and move the resource package to the preset resource catalog; the preset resource catalog is used to store resources called when the target application is running;
    所述安装部分,配置为通过所述应用安装包与所述资源包,分别对所述目标应用进行软件安装和所述预设资源目录下的资源关联配置,完成对所述目标应用的安装。The installation part is configured to perform software installation on the target application and resource association configuration under the preset resource directory through the application installation package and the resource package, respectively, to complete the installation of the target application.
  19. 一种应用安装设备,包括:An application installation device, including:
    存储器,用于存储可执行指令;Memory, used to store executable instructions;
    处理器,用于执行所述存储器中存储的可执行指令时,实现权利要求1至17任一项所述的方法。The processor is configured to implement the method according to any one of claims 1 to 17 when executing the executable instructions stored in the memory.
  20. 一种计算机可读存储介质,存储有可执行指令,用于引起处理器执行时,实现权利要求1至17任一项所述的方法。A computer-readable storage medium storing executable instructions for causing a processor to execute the method according to any one of claims 1 to 17.
PCT/CN2020/095207 2020-06-09 2020-06-09 Application installation method and apparatus, and device and computer-readable storage medium WO2021248337A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080100558.0A CN115516419A (en) 2020-06-09 2020-06-09 Application installation method, device and equipment and computer readable storage medium
PCT/CN2020/095207 WO2021248337A1 (en) 2020-06-09 2020-06-09 Application installation method and apparatus, and device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/095207 WO2021248337A1 (en) 2020-06-09 2020-06-09 Application installation method and apparatus, and device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2021248337A1 true WO2021248337A1 (en) 2021-12-16

Family

ID=78846667

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/095207 WO2021248337A1 (en) 2020-06-09 2020-06-09 Application installation method and apparatus, and device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN115516419A (en)
WO (1) WO2021248337A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564467A (en) * 2022-04-27 2022-05-31 飞狐信息技术(天津)有限公司 Database version management method and device
CN114721676A (en) * 2022-05-16 2022-07-08 龙芯中科技术股份有限公司 Software installation method and device, electronic equipment and readable storage medium
CN114928645A (en) * 2022-04-26 2022-08-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN115129333A (en) * 2022-09-02 2022-09-30 城云科技(中国)有限公司 Npm resource packet management method, device and system suitable for micro front-end framework
WO2023226720A1 (en) * 2022-05-24 2023-11-30 北京快乐茄信息技术有限公司 Resource file transmission method and apparatus, and device and storage medium
CN114928645B (en) * 2022-04-26 2024-04-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930377A (en) * 2009-06-22 2010-12-29 深圳市融创天下科技发展有限公司 Link library compiling method by dynamically acquiring UID
CN104123150A (en) * 2013-04-28 2014-10-29 百度在线网络技术(北京)有限公司 Language resource management method and device for application program
CN104380253A (en) * 2012-05-16 2015-02-25 苹果公司 Cloud-based application resource files
CN106681788A (en) * 2017-02-17 2017-05-17 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment
CN107506221A (en) * 2017-09-28 2017-12-22 阿里巴巴集团控股有限公司 Application program updating method, apparatus and equipment
CN108519874A (en) * 2017-02-27 2018-09-11 腾讯科技(深圳)有限公司 The generation method and device of Python project packets
CN110968343A (en) * 2019-11-29 2020-04-07 合肥美的电冰箱有限公司 Resource file configuration method, configuration device, refrigerator and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930377A (en) * 2009-06-22 2010-12-29 深圳市融创天下科技发展有限公司 Link library compiling method by dynamically acquiring UID
CN104380253A (en) * 2012-05-16 2015-02-25 苹果公司 Cloud-based application resource files
CN104123150A (en) * 2013-04-28 2014-10-29 百度在线网络技术(北京)有限公司 Language resource management method and device for application program
CN106681788A (en) * 2017-02-17 2017-05-17 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment
CN108519874A (en) * 2017-02-27 2018-09-11 腾讯科技(深圳)有限公司 The generation method and device of Python project packets
CN107506221A (en) * 2017-09-28 2017-12-22 阿里巴巴集团控股有限公司 Application program updating method, apparatus and equipment
CN110968343A (en) * 2019-11-29 2020-04-07 合肥美的电冰箱有限公司 Resource file configuration method, configuration device, refrigerator and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ITHOUSE: "Detailed Process of Using APK Expansion Files from Google Play for Apps Exceeding 100MB", BLOG CSDN, CN, XP009532884, Retrieved from the Internet <URL:https://blog.csdn.net/ithouse/article/details/84103847> *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928645A (en) * 2022-04-26 2022-08-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN114928645B (en) * 2022-04-26 2024-04-19 青岛海尔科技有限公司 Resource package processing method and device, storage medium and electronic device
CN114564467A (en) * 2022-04-27 2022-05-31 飞狐信息技术(天津)有限公司 Database version management method and device
CN114721676A (en) * 2022-05-16 2022-07-08 龙芯中科技术股份有限公司 Software installation method and device, electronic equipment and readable storage medium
CN114721676B (en) * 2022-05-16 2022-08-26 龙芯中科技术股份有限公司 Software installation method and device, electronic equipment and readable storage medium
WO2023226720A1 (en) * 2022-05-24 2023-11-30 北京快乐茄信息技术有限公司 Resource file transmission method and apparatus, and device and storage medium
CN115129333A (en) * 2022-09-02 2022-09-30 城云科技(中国)有限公司 Npm resource packet management method, device and system suitable for micro front-end framework
CN115129333B (en) * 2022-09-02 2022-11-25 城云科技(中国)有限公司 NPm resource package management method, device and system suitable for micro front-end framework

Also Published As

Publication number Publication date
CN115516419A (en) 2022-12-23

Similar Documents

Publication Publication Date Title
WO2021248337A1 (en) Application installation method and apparatus, and device and computer-readable storage medium
EP2411925B1 (en) Device dependent on-demand compiling and deployment of mobile applications
RU2673008C2 (en) User support experience with automatically generated virtual environment
US10185549B2 (en) Updating live system with static changes
US20120230587A1 (en) Systems and methods for testing content of mobile communication devices
US11853820B2 (en) Cross-process communication method, apparatus, and device
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
CN110297776B (en) Detection report generation and reception methods, devices, equipment and storage medium
US20140033123A1 (en) User interface and method for comparing a local version of a profile to an online update
CN111400102A (en) Application program change monitoring method, device, equipment and storage medium
US20210311725A1 (en) Patch package generation method and device
CN109032617B (en) Control method and control device for automatically deleting installation package
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN111625291B (en) Automatic iteration method and device for data processing model and electronic equipment
CN111858383A (en) Mobile APP data point burying method and system, terminal equipment and storage medium
CN111782236A (en) System software upgrading method and device, storage medium and all-in-one machine equipment
CN110806891A (en) Method and device for generating software version of embedded equipment
KR101434094B1 (en) Blocking harmful application by intent monitoring in android platform
CN116069366A (en) Client application program updating method and device, storage medium and electronic equipment
US20130007622A1 (en) Demonstrating a software product
JP2010231594A (en) Test program and testing device
CN111435328A (en) Application testing method and device, electronic equipment and readable storage medium
CN114968644A (en) System software dump method and device, electronic equipment and readable storage medium
CN114721681A (en) Configuration file updating method, device, equipment and storage medium
CN113656063A (en) System version replacing method, device, equipment and computer readable medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20940467

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 250423)

122 Ep: pct application non-entry in european phase

Ref document number: 20940467

Country of ref document: EP

Kind code of ref document: A1