Application download method, device, mobile terminal and storage medium

By using inter-process communication in the mobile terminal to send the download request of one application to another application, the problem of multiple applications downloading the same application at the same time is solved, and the application download management is realized, which reduces traffic overhead and storage usage. Improved user experience.

CN114365090BActive Publication Date: 2024-12-06SHENZHEN HEYTAP TECHNOLOGY CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201980100131.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-27
Publication Date
2024-12-06
Estimated Expiration
2039-11-27

AI Technical Summary

Technical Problem

In a mobile terminal, when multiple applications download the same application at the same time, it will lead to increased traffic overhead, more storage space occupies, high process killing frequency, and may lead to inconsistent application versions.

Method used

Through inter-process communication, the download request of one application is sent to another application, thereby realizing the download of the same application, avoiding multiple applications downloading at the same time, and managing the download process.

Benefits of technology

It effectively solves the traffic overhead and storage space usage caused by multiple applications downloading the same application at the same time, improves the user experience, and avoids inconsistent application versions and process killing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114365090B_ABST
    Figure CN114365090B_ABST
Patent Text Reader

Abstract

The present application discloses an application downloading method, device, mobile terminal and storage medium. The application downloading method is applied to the mobile terminal, and the application downloading method comprises: when a first application in the mobile terminal obtains a download request for a target application, the download request is sent to a second application in the mobile terminal through inter-process communication; the second application responds to the download request and downloads the target application. The method can better realize the control of application downloading in the mobile terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile terminal technology, and more specifically, to an application downloading method, device, mobile terminal and storage medium. Background Art

[0002] Mobile terminals, such as tablet computers and mobile phones, have become one of the most commonly used consumer electronic products in people's daily lives. People usually install various applications in mobile terminals to meet different needs. When downloading and installing applications, they are usually downloaded from applications such as application stores where applications can be downloaded. However, there are usually multiple applications that can download applications in mobile terminals, so the download of applications needs to be reasonably controlled. Summary of the invention

[0003] In view of the above problems, the present application proposes an application downloading method, device, mobile terminal and storage medium.

[0004] In a first aspect, an embodiment of the present application provides an application download method, which is applied to a mobile terminal, and the method includes: when a first application in the mobile terminal obtains a download request for a target application, sending the download request to a second application in the mobile terminal through inter-process communication; the second application responds to the download request and downloads the target application.

[0005] In the second aspect, an embodiment of the present application provides an application downloading device, which is applied to a mobile terminal, and the device includes: a request sending module and a download control module, wherein the request sending module is used to send the download request to the second application in the mobile terminal through inter-process communication when the first application in the mobile terminal obtains a download request for the target application; the download control module is used to control the second application to respond to the download request and download the target application.

[0006] In a third aspect, an embodiment of the present application provides a mobile terminal, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the application download method provided in the first aspect above.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the application downloading method provided in the first aspect above.

[0008] The solution provided by the present application is that when the first application of the mobile terminal obtains a download request for the target application, the download request is sent to the second application in the mobile terminal through inter-process communication, and the second application responds to the download request and downloads the target application. Therefore, when the mobile terminal has multiple application programs that can download applications installed at the same time, if the application is downloaded through the first application, the application can be downloaded through the inter-process communication and the second application can be used to download the application, thereby avoiding the situation where multiple applications download the application at the same time, and better management of application downloads can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A flow chart of an application downloading method according to an embodiment of the present application is shown.

[0011] Figure 2 A flow chart of an application downloading method according to another embodiment of the present application is shown.

[0012] Figure 3 A flow chart of an application downloading method according to yet another embodiment of the present application is shown.

[0013] Figure 4 A flow chart of step S320 in the application downloading method provided by another embodiment of the present application is shown.

[0014] Figure 5 Another flowchart of step S340 in the application downloading method provided in yet another embodiment of the present application is shown.

[0015] Figure 6 A block diagram of an application downloading device according to an embodiment of the present application is shown.

[0016] Figure 7 It is a block diagram of a mobile terminal according to an embodiment of the present application for executing the application downloading method according to an embodiment of the present application.

[0017] Figure 8 It is a storage unit of an embodiment of the present application for storing or carrying program codes for implementing the application download method according to an embodiment of the present application. DETAILED DESCRIPTION

[0018] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0019] As people's needs continue to increase, more and more applications are installed in mobile terminals. When people download and install applications on mobile terminals, they usually download them through software installed in the mobile terminal that can download applications, such as through application stores, game centers, browsers, third-party software stores, etc. in the mobile terminal.

[0020] After long-term research, the inventor found that in the traditional technology, when there are multiple software that can download applications in the mobile terminal, if at least two software obtain the request for application download, these software usually do not know their respective download tasks, so when downloading / updating the same application, they will download separately. For example, a software store and a game center are installed in the mobile terminal at the same time. The main goal of the software store is to distribute software, while the main goal of the game center is to distribute games. The intersection of the two distribution software is game resources. Among them, the software store can silently obtain the relevant permissions for downloading and installation as a system application, while the game center requires the user to grant permissions before normal functional use can be completed. When downloading and applying updates, the two applications have their own download directories respectively, and they are unaware of each other's download tasks. Therefore, when downloading / updating the same application, http requests will be made to the server respectively to obtain information such as the version number and download link of the application, and then http requests will be made to download the download link, and the application package (Android application package, apk) file will be downloaded from the software store and the game center respectively to their respective directories.

[0021] This will double the traffic consumption, increase user costs, and increase the storage space occupied by the mobile terminal. In addition, when different software downloads the same application, two different versions may be downloaded. If you update to a lower version first and then to a higher version, the application will be in the update state for a long time, and installing twice will increase the number of application process kills; if you update to a higher version first and then to a lower version, the installation of the lower version will fail.

[0022] In view of the above problems, the inventors have proposed the application downloading method, device, mobile terminal and storage medium provided in the embodiments of the present application, which sends the download request for the application in one application to another application for downloading through inter-process communication, so that different applications for downloading applications can all be downloaded using the same application, which is convenient for the management of application downloads and effectively solves the problems of multiple applications downloading the same application at the same time, resulting in large traffic overhead, large storage space occupation, process killing, etc. Among them, the specific application downloading method is described in detail in the subsequent embodiments.

[0023] See also Figure 1 , Figure 1 The flowchart of the application download method provided by an embodiment of the present application is shown. The application download method is used to avoid the situation where multiple applications are downloaded at the same time, and can better implement the management of application downloads. In a specific embodiment, the application download method is applied to Figure 6 The application downloading device 400 and the mobile terminal 100 ( Figure 7 ). The following will take a mobile terminal as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the mobile terminal used in this embodiment can be a smart phone, a tablet computer, an e-book, etc., which is not limited here. The mobile terminal includes a touch screen. Figure 1 The process shown is described in detail, and the application download method may specifically include the following steps:

[0024] Step S110: When the first application in the mobile terminal obtains a download request for a target application, the download request is sent to the second application in the mobile terminal through inter-process communication.

[0025] In the embodiment of the present application, a plurality of downloadable applications may be installed in the mobile terminal, wherein the downloadable application may respond to a download request for the application and obtain data such as an installation package of the application from the server.

[0026] In some embodiments, when the first application in the above-mentioned downloadable application obtains a download request for downloading the target application, it can communicate with the second application through inter-process communication (IPC), and transmit the download request to the second application, so that the second application can respond to the download request and download the application. Inter-process communication can be implemented through a variety of methods. For example, when the system installed on the mobile terminal is a Linux system, it can be implemented through half-duplex Unix pipes, named pipes, message queues, semaphores, shared memory, network sockets, etc.; for another example, when the system installed on the mobile terminal is an iOS system, the XPC framework of the iOS system can be used to implement communication between processes. Of course, the specific implementation method of inter-process communication may not be limited. The target application is an application that the user needs to download, and the target application can be any application.

[0027] In some embodiments, the first application may monitor download requests for downloading a target application. The download request may be triggered by a user operation, for example, when an update operation for the target application is detected in the interface of the first application, the download request is triggered. The download request may also be triggered by the system, for example, an automatic update of the target application.

[0028] In some embodiments, after obtaining the download request for the target application, the first application may request the download data of the target application from the server according to the download request. The operating system of the mobile terminal may monitor that the first application requests the download data of the target application from the server, terminate the request of the first application, and then send an instruction to the first application to instruct the first application to send the download request to the second application through inter-process communication, or the operating system sends the download request to the second application according to the download request sent to the server.

[0029] In other embodiments, when the first application is installed, it can be set that its download must be downloaded through the second application, that is, when the first application detects a download request, it needs to send the download request to the second application through inter-process communication so that the application can be downloaded through the second application.

[0030] In the embodiment of the present application, when the first application obtains a download request for the target application, the mobile terminal can prohibit the first application from starting the download process of the target application. In other words, when the mobile terminal detects the download process, it can prohibit and clear the process to prevent the first application and the second application from downloading the target application in the future.

[0031] Step S120: The second application responds to the download request and downloads the target application.

[0032] In an embodiment of the present application, after receiving the download request sent by the first application, the second application can respond to the download request and download the target application. Specifically, the second application responds to the download request, requests the server to obtain the download data such as the installation package of the target application, and installs the target application after the download is complete. Since the first application sends the download request to the second application through inter-process communication, the second application downloads and installs the target application, so that the user has no perception of which application is being downloaded, and the user experience is high. In addition, it avoids the situation where the second application also obtains the download of the target application at the same time, which leads to an increase in traffic, an increase in storage space occupied, and process killing.

[0033] In some embodiments, the second application may include at least a system software store. For example, when the operating system installed in the mobile terminal is an Android system, the system software store may be a Google store, etc. The first application may include a system game download center, a browser, and a third-party store. It is understandable that the first application may be an application other than the system software store in the application that can be downloaded. Therefore, when other applications other than the system software store in the mobile terminal obtain a download request, the download request may be transmitted to the system software store, and the target application may be downloaded through the system software store.

[0034] The application download method provided in the embodiment of the present application, when the first application of the mobile terminal obtains the download request for the target application, sends the download request to the second application in the mobile terminal through inter-process communication, and the second application responds to the download request and downloads the target application. Therefore, when the mobile terminal is installed with multiple application programs that can download applications at the same time, if the application is downloaded through the first application, the application can be downloaded by the second application through inter-process communication, avoiding the situation where multiple applications download applications at the same time, which leads to the increase of traffic, the increase of storage space occupied, and the occurrence of process killing, etc., and can better achieve the management of application downloads.

[0035] See also Figure 2 , Figure 2 A schematic diagram of a flow chart of an application download method provided by another embodiment of the present application is shown. The application download method can be applied to the above-mentioned mobile terminal. Figure 2 The process shown is described in detail, and the application download method may specifically include the following steps:

[0036] Step S210: When the first application in the mobile terminal obtains a download request for a target application, the download request is sent to the second application in the mobile terminal through inter-process communication.

[0037] In the embodiment of the present application, the second application may be provided with an interface for inter-process communication, and other applications may call the interface for inter-process communication in the second application to implement inter-process communication with the second application. Of course, the specific method of inter-process communication between the first application and the second application may not be limited.

[0038] Step S220: the second application determines whether the first application has a specified permission, where the specified permission is a permission for the second application to download the target application.

[0039] In an embodiment of the present application, the second application can perform permission management on other application programs that can download applications, so as to manage application programs that can download and install applications.

[0040] In some implementations, the second application may manage applications that can be downloaded through the second application, and upon receiving a download request for an application sent by other applications, determine whether to respond to the download request and download the application.

[0041] In some embodiments, the second application can determine whether the first application has a specified permission, which is the permission to download the target application through the second application. Specifically, the second application can determine the permission information of the first application, and the permission information may include whether the application can be downloaded through the second application, and the range of applications that can be downloaded through the second application. After the second application determines the permission information of the first application, it can determine whether the first application has the above-mentioned specified permission based on the permission information. It can be understood that if the first application has the specified permission, it means that the first application can download the target application through the second application; if the first application does not have the specified permission, it means that the first application cannot download the target application through the second application.

[0042] In some embodiments, permission configuration information may be pre-stored in the mobile terminal, and the permission configuration information may include all permission information of the application. Therefore, step S220 may include: the second application determines the download permission of the first application according to the permission configuration information; determines whether the download permission includes the specified permission. It can be understood that the permission information of the first application may include the download permission of the first application, so that the second application can determine the permission information of the first application according to the permission configuration information, and can determine the download permission of the first application according to the permission information. If the first application includes the specified permission, it means that the first application can download the target application through the second application. As a way, the permission configuration information of the first application can be issued by the server, and the permission configuration information can be associated with the signature of the application; as another way, the permission configuration information of the first application can also be set or formulated according to the user's operation, which is not limited here.

[0043] In some embodiments, when the permission configuration information is issued by the server, the application download method may further include: the second application changes the download permission of the first application according to the permission change information issued by the server, and writes the changed download permission into the permission configuration information. It is understandable that the server can dynamically issue permission change information of the permission configuration information, so that after receiving the permission change information, the mobile terminal can change the permission configuration information according to the permission change information. For example, the permission information of the first application may not include the specified permission. After the permission configuration information is changed by dynamically issuing the permission change information from the server, the first application can have the specified permission. In this way, the permissions of the application can be dynamically added, deleted or changed, so that the specified permissions can be changed to meet the needs of different scenarios and users.

[0044] Step S230: If the first application has the specified permission, the second application responds to the download request and downloads the target application.

[0045] In the embodiment of the present application, if step S220 determines that the first application has the specified permission, the second application needs to respond to the download request and download the target application. In addition, after the second application completes downloading the target application, it can also install the second application. Of course, the second application can also transmit the download completion indication information to the first application through inter-process communication to instruct the first application to install the target application.

[0046] Step S240: During the process of downloading the target application, the second application transmits the download status information to the first application through inter-process communication.

[0047] In an embodiment of the present application, during the process of downloading the target application, the second application can also continuously obtain download status information and transmit the download status information to the first application through inter-process communication so that the first application can display the download status information.

[0048] In some implementations, the download status information may include download speed and download progress, etc., and the specific download status information may not be limited.

[0049] Step S250: The first application displays the download status information on the interface of the first application.

[0050] In an embodiment of the present application, after receiving the download status information, the first application can display the download status information on the interface of the first application. Among them, the interface can be an interface for the first application to download the target application. It can be understood that since the download of the target application is actually completed by the second application, and the first application does not actually download the target application, the download status information is transmitted to the first application through the second application, and the first application displays the download status information, which can facilitate the user to understand the real-time download status, so that the user has no perception of the application that actually downloads and installs the target application, thereby improving the user experience.

[0051] Step S260: If the first application does not have the specified permission, the second application sends a first prompt message to the first application through inter-process communication.

[0052] In an embodiment of the present application, if the first application does not have the specified permission, it means that the first application cannot download the target application through the second application. Therefore, the second application can generate a first prompt message or read a pre-stored first prompt message, and transmit the first prompt message to the first application through inter-process communication. Among them, the first prompt message can be a message for prompting the user that the target application cannot be downloaded in the first application, so that the user knows that the first application does not have the permission to download the target application.

[0053] Step S270: The first application displays a first prompt message on the interface of the first application, where the first prompt message is used to prompt the user that the target application cannot be downloaded in the first application.

[0054] In the embodiment of the present application, after the first application receives the first prompt message, the first prompt message can be displayed on the interface of the first application, so that the user can understand that the first application does not have the permission to download the target application, and download the target application through other applications in a timely manner. For example, when the first application is a game download center, it is impossible to download the chat application. At this time, after the first application prompts, the user can understand that the chat software needs to be downloaded through other application programs that can download applications (such as the second application, etc.).

[0055] The application download method provided by the embodiment of the present application, when the first application of the mobile terminal obtains the download request for the target application, the download request is sent to the second application in the mobile terminal through the inter-process communication, and then the second application determines whether the first application has the specified permission to download the target application through the second application, and if the first application has the specified permission, it responds to the download request and downloads the target application. Thus, the target application is downloaded by the second application, avoiding the situation that multiple applications download applications at the same time, which leads to the increase of traffic, the increase of storage space occupied, and the occurrence of process killing, etc., and the management of application download can be better realized. In addition, in the process of the second application downloading the target application, the download status information is transmitted to the first application for display, which can facilitate the user to understand the real-time download status, so that the user has no perception of the application that actually downloads and installs the target application, thereby improving the user experience. And if the first application does not have the specified permission, the second application transmits the first prompt message to the first application through the inter-process communication for display, so that the user can understand that the first application does not have the permission to download the target application, and download the target application through other applications in a timely manner.

[0056] See also Figure 3 , Figure 3 A schematic diagram of a flow chart of an application download method provided by another embodiment of the present application is shown. The application download method can be applied to the above-mentioned mobile terminal. Figure 3 The process shown is described in detail, and the application download method may specifically include the following steps:

[0057] Step S310: When the first application in the mobile terminal obtains a download request for a target application, the download request is sent to the second application in the mobile terminal through inter-process communication.

[0058] In the embodiment of the present application, step S310 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0059] Step S320: The second application determines all download tasks currently in progress.

[0060] In an embodiment of the present application, after the second application receives the download request sent by the first application and before responding to the download request, the second application may also determine all download tasks currently being performed by the second application.

[0061] In some implementations, after determining all the download tasks currently being performed by the second application, it can determine whether all the download tasks currently being performed include a target download task for downloading the target application. It is understandable that if all the download tasks include the target download task, it means that the target application is currently being downloaded; if all the download tasks do not include the target download task, it means that the target application is not currently being downloaded, and therefore the download request can be responded to and the target application can be downloaded.

[0062] Step S330: If the target download task for downloading the target application is not included in all the download tasks, the second application responds to the download request and downloads the target application.

[0063] In an embodiment of the present application, when the second application determines all the download tasks it is currently performing and determines that the target download task is not included in all the download tasks, it means that the target application is not currently downloaded, so it can respond to the download request and download the target application.

[0064] In some embodiments, see Figure 4 If the target download task for downloading the target application is not included in all the download tasks, the second application responds to the download request to download the target application, which may include:

[0065] Step S331: if the target download task for the target application is not included in the all download tasks, determining the number of the all download tasks;

[0066] Step S332: If the number of all download tasks is less than the first threshold, the second application responds to the download request and downloads the target application.

[0067] It is understandable that when the target application determines that the target download task is not included in all download tasks, it means that the target application can be downloaded. However, when there are many download tasks currently being performed in the second application, the progress of the download task may be slow due to the limited network resources allocated to the second application by the system. Therefore, the number of all download tasks can be determined, and only when the number of all download tasks is less than the first threshold, the download request will be responded to and the target application will be downloaded. Among them, the first threshold can be that when the second application performs the first threshold number of download tasks, the download progress is relatively slow (for example, the download progress is less than the preset value). The specific first threshold is not limited, for example, it can be 1% progress per second, etc.

[0068] In some implementations, the application download method may further include: if the number of all download tasks is equal to or greater than a first threshold, the second application sends a download instruction to the first application through inter-process communication, the download instruction is used to instruct the first application to download the target application; the first application responds to the download instruction and downloads the target application. It is understandable that if the number of all download tasks is equal to or greater than the first threshold, since if the second application responds to the download request and downloads the target application, the download task in the second application will be slow, therefore, a download instruction can be sent to the first application to make the first application download the target application.

[0069] Furthermore, the second application can record the download tasks corresponding to all the sent download instructions, and when a download request is obtained again within a preset time period, the download request is ignored to avoid repeated downloads. For example, when the second application previously sent a download instruction to application 1, instructing application 1 to download the target application, and a download request for the target application is obtained again within a preset time period, the download request can be ignored.

[0070] Step S340: If all the download tasks include a target download task for downloading the target application, the second application does not respond to the download request, and sends a second prompt message to the first application through inter-process communication.

[0071] In some implementations, if all download tasks include the target download task, it means that the target application is currently being downloaded, and downloading the target application again may result in duplicate downloads. Therefore, the second application may not respond to the download request to avoid duplicate downloads.

[0072] In addition, the second application may also generate a second prompt message or read a pre-stored second prompt message, and send the second prompt message to the first application. The second prompt message is used to prompt the user that the target application is being downloaded, so that the user knows that the target application is being downloaded.

[0073] In some embodiments, see Figure 5 , if all the download tasks include a target download task for downloading the target application, the second application does not respond to the download request, and sends a second prompt message to the first application through inter-process communication, which may include:

[0074] Step S341: if all the download tasks include a target download task for downloading the target application, determine the application version corresponding to the target download task as the first version, and the application version corresponding to the download request as the second version;

[0075] Step S342: If the second version is lower than or equal to the first version, the second application does not respond to the download request, and sends a second prompt message to the first application through inter-process communication.

[0076] It is understandable that if the first version is the same as the second version, it means that if the second application responds to the download request, it will result in repeated downloads; if the first version is lower than the second version, it means that the application version corresponding to the download request is higher, and the second application can respond to the download request and obtain a higher version of the application; if the first version is higher than the second version, it means that if the second application responds to the download request, it will result in repeated downloads. Therefore, if the second version is lower than or equal to the first version, the second application does not respond to the download request, and sends a second prompt message to the first application through inter-process communication.

[0077] In this implementation, the application download method may further include: if the second version is higher than the first version, the second application stops the target download task; and responds to the download request to download the target application of the second version. It is understandable that if the first version is lower than the second version, it means that the application version corresponding to the download request is higher, and the second application can respond to the download request to obtain a higher version of the application. Therefore, the target download task can be stopped first, and the download request can be responded to, so as to download the target application with a higher application version.

[0078] In addition, after the second application stops the target download task, the application download method may further include: deleting the download file corresponding to the target download task. Thus, when the target download task is stopped, since the download request is responded to and the target application with a higher application version is downloaded, the download file corresponding to the target download task is deleted, thereby saving storage space.

[0079] Step S350: the first application displays a second prompt message on the interface of the first application, where the second prompt message is used to prompt the user that the target application is being downloaded.

[0080] In some embodiments, after the first application receives the second prompt message, the first application can display the second prompt message on the interface of the first application. The second prompt message is used to prompt the user that the target application is being downloaded to avoid the user mistakenly believing that the target application has not been downloaded and repeating the download operation.

[0081] In an embodiment of the present application, after the second application responds to the download request and downloads the target application, the application download method may also include: installing the target application and transmitting the installation result to the first application through inter-process communication; the first application displays the installation result in the interface of the first application. It is understandable that the installation of the target application can also be completed by the second application, so that the download and installation of the target application are completed by the second application. Since the download and installation of the target application are actually completed by the second application, and the first application does not actually download the target application, the second prompt message is transmitted to the first application through the second application, and the first application displays the second prompt message, which can facilitate the user to understand that the target application has been downloaded and installed successfully, so that the user has no perception of the application that actually downloads and installs the target application, thereby improving the user experience.

[0082] The application download method provided by the embodiment of the present application, when the first application of the mobile terminal obtains the download request for the target application, the download request is sent to the second application in the mobile terminal through the inter-process communication, and then the second application determines all the download tasks currently being performed. If the target download task for downloading the target application is not included in all the download tasks, the second application responds to the download request and downloads the target application, thereby realizing the use of the second application to download the target application, avoiding the situation where multiple applications download the application at the same time, which leads to the increase of traffic, the increase of occupied storage space, and the occurrence of process killing, etc., and can better realize the management of application download. And the number of current download tasks is determined, and when the number is less than the first threshold, the download request is responded to and the target application is downloaded, thereby avoiding the situation where the download progress is too slow. In addition, if the target download task for downloading the target application is included in all the download tasks, the download request is not responded to, thereby avoiding the repeated installation of the target application and saving storage space. And the second prompt message is displayed on the interface of the first application, and the second prompt message is used to prompt the user that the target application is already being downloaded, thereby avoiding the user mistakenly believing that the target application has not been downloaded and repeating the download operation.

[0083] See also Figure 6, which shows a structural block diagram of an application downloading device 400 provided in an embodiment of the present application. The application downloading device 400 can be applied to the above-mentioned mobile terminal, and the mobile terminal includes a touch screen. The application downloading device 400 includes: a request sending module 410 and a download control module 420. Among them, the request sending module 410 is used to send the download request to the second application in the mobile terminal through inter-process communication when the first application in the mobile terminal obtains a download request for the target application; the download control module 420 is used to control the second application to respond to the download request and download the target application.

[0084] In an embodiment of the present application, the application downloading device 400 may further include: a permission determination module. The permission determination module is used to control the second application to determine whether the first application has a specified permission before the second application responds to the download request and downloads the target application, and the specified permission is the permission to download the target application through the second application. The download control module 420 can be specifically used to: if the first application has the specified permission, the second application responds to the download request and downloads the target application.

[0085] In some implementations, the permission determination module may be specifically configured to: determine, by the second application according to the permission configuration information, the download permission possessed by the first application; and determine whether the download permission includes the designated permission.

[0086] In this manner, the application downloading device 400 may further include: a permission changing module. The permission changing module is used for the second application to change the download permission of the first application according to the permission changing information sent by the server, and write the changed download permission into the permission configuration information.

[0087] In some implementations, the application downloading device 400 may further include: a first message sending module and a first message display module. The first message sending module is used for, after the second application determines whether the first application has the specified permission, if the first application does not have the specified permission, the second application sends a first prompt message to the first application through inter-process communication; the second message display module is used for the first application to display a first prompt message on the interface of the first application, the first prompt message being used to prompt the user that the target application cannot be downloaded in the first application.

[0088] In some embodiments, the application downloading device 400 may further include: a second message sending module and a second message display module. The second message sending module is used for the second application to transmit the download status information to the first application through inter-process communication during the process of downloading the target application; the second message display module is used for the first application to display the download status information on the interface of the first application.

[0089] In some embodiments, the application downloading device 400 may further include: a task determination module. The task determination module is used for the second application to determine all currently performed download tasks before the second application responds to the download request and downloads the target application. The download control module 420 may be specifically used for the second application to respond to the download request and download the target application if the target download task for downloading the target application is not included in all the download tasks.

[0090] In some embodiments, the application downloading device 400 may further include: a third message sending module and a third message display module. The third message sending module is used for, if all the download tasks include a target download task for downloading the target application, the second application does not respond to the download request, and sends a second prompt message to the first application through inter-process communication; the third message display module is used for the first application to display the second prompt message on the interface of the first application, and the second prompt message is used to prompt the user that the target application is being downloaded.

[0091] In this manner, the third message sending module can be specifically used for: if all the download tasks include a target download task for downloading the target application, determining the application version corresponding to the target download task as the first version, and the application version corresponding to the download request as the second version; if the second version is lower than or equal to the first version, the second application does not respond to the download request, and sends a second prompt message to the first application through inter-process communication.

[0092] Furthermore, the application downloading device 400 may also include: a task stopping module and a request response module. The task stopping module is used to, after determining the application version corresponding to the target downloading task as the first version, if the second version is higher than the first version, stop the target downloading task for the second application; the request response module is used to respond to the download request and download the target application of the second version.

[0093] In some implementations, the application downloading device 400 may further include: a file deleting module. The file deleting module is configured to delete the download file corresponding to the target downloading task after the second application stops the target downloading task.

[0094] In some embodiments, the download control module 420 can be specifically used to: determine the number of all download tasks if the target download task for the target application is not included in all download tasks; if the number of all download tasks is less than a first threshold, the second application responds to the download request and downloads the target application.

[0095] Furthermore, the application downloading device 400 may also include an instruction sending module. The instruction sending module is used for, after determining the number of all download tasks, if the number of all download tasks is equal to or greater than a first threshold, the second application sends a download instruction to the first application through inter-process communication, and the download instruction is used to instruct the first application to download the target application; the download control module 420 may also be used for the first application to respond to the download instruction and download the target application.

[0096] In some implementations, the application downloading device 400 may further include: a result transmission module and a result display module. The result transmission module is used to install the target application after the second application responds to the download request and downloads the target application, and transmit the installation result to the first application through inter-process communication; the result display module is used for the first application to display the installation result in the interface of the first application.

[0097] In some implementations, the application downloading apparatus 400 may further include a process prohibition module. The process prohibition module may be used to prohibit the first application in the mobile terminal from starting a download process for downloading the target application when the first application obtains a download request for the target application.

[0098] In some embodiments, the first application includes a game download center, a browser, and a third-party store of the system, and the second application includes at least a software store of the system.

[0099] In some implementations, data is transmitted between the first application and the second application via an interface for inter-process communication.

[0100] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0101] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0102] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0103] In summary, the solution provided by the present application is that when the first application of the mobile terminal obtains a download request for the target application, the download request is sent to the second application in the mobile terminal through inter-process communication, and the second application responds to the download request and downloads the target application. Therefore, when the mobile terminal has multiple applications that can download applications installed at the same time, if the application is downloaded through the first application, the application can be downloaded through the inter-process communication and the second application can be used to download the application, thereby avoiding the situation where multiple applications download the application at the same time, and the management of application downloads can be better achieved.

[0104] Please refer to Figure 7 , which shows a structural block diagram of a mobile terminal provided in an embodiment of the present application. The mobile terminal 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, a smart watch, etc. The mobile terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0105] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire mobile terminal 100, and executes various functions and processes data of the mobile terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0106] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal 100 during use.

[0107] Please refer to Figure 8 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0108] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.

[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An application downloading method, characterized in that: Applied to a mobile terminal, the method comprises: When the first application in the mobile terminal obtains a download request for the target application, the download request is sent to the second application in the mobile terminal through inter-process communication; The second application determines all download tasks currently in progress; If the target download task for downloading the target application is not included in the all download tasks, determining the number of the all download tasks; If the number of all download tasks is less than a first threshold, the second application responds to the download request and downloads the target application; If the number of all download tasks is equal to or greater than a first threshold, the second application sends a download instruction to the first application through inter-process communication, where the download instruction is used to instruct the first application to download the target application; The first application responds to the download instruction and downloads the target application.

2. The method according to claim 1, characterized in that Before the second application responds to the download request and downloads the target application, the method further includes: The second application determines whether the first application has a specified permission, where the specified permission is a permission to download the target application through the second application; The second application responds to the download request and downloads the target application, including: If the first application has the specified permission, the second application responds to the download request and downloads the target application.

3. The method according to claim 2, characterized in that The second application determines whether the first application has a specified permission, including: The second application determines the download permission of the first application according to the permission configuration information; It is determined whether the downloading permission includes the designated permission.

4. The method according to claim 3, characterized in that The method further comprises: The second application modifies the download permission of the first application according to the permission change information sent by the server, and writes the modified download permission into the permission configuration information.

5. The method according to claim 2, characterized in that: After the second application determines whether the first application has the specified permission, the method further includes: If the first application does not have the specified permission, the second application sends the first prompt message to the first application through inter-process communication; The first application displays a first prompt message on an interface of the first application, where the first prompt message is used to prompt a user that the target application cannot be downloaded in the first application.

6. The method according to claim 1, characterized in that The method further comprises: The second application transmits the download status information to the first application through inter-process communication during the process of downloading the target application; The first application displays the download status information on an interface of the first application.

7. The method according to any one of claims 1 to 6, characterized in that: Before the second application responds to the download request and downloads the target application, the method further includes: The second application determines all download tasks currently in progress; The second application responds to the download request and downloads the target application, including: If the target download task for downloading the target application is not included in all the download tasks, the second application responds to the download request and downloads the target application.

8. The method according to claim 7, characterized in that The method further comprises: If all the download tasks include a target download task for downloading the target application, the second application does not respond to the download request, and sends a second prompt message to the first application through inter-process communication; The first application displays a second prompt message on the interface of the first application, where the second prompt message is used to prompt the user that the target application is being downloaded.

9. The method according to claim 8, characterized in that If all the download tasks include a target download task for downloading the target application, the second application does not respond to the download request, and sends a second prompt message to the first application through inter-process communication, including: If all the download tasks include a target download task for downloading the target application, determining the application version corresponding to the target download task as the first version, and the application version corresponding to the download request as the second version; If the second version is lower than or equal to the first version, the second application does not respond to the download request, and sends a second prompt message to the first application through inter-process communication.

10. The method according to claim 9, characterized in that After determining the application version corresponding to the target download task as the first version, the method further includes: If the second version is higher than the first version, the second application stops the target download task; In response to the download request, the second version of the target application is downloaded.

11. The method according to claim 10, characterized in that After the second application stops the target download task, the method further includes: Delete the download file corresponding to the target download task.

12. The method according to any one of claims 1 to 6, characterized in that: After the second application responds to the download request and downloads the target application, the method further includes: Installing the target application and transmitting the installation result to the first application through inter-process communication; The first application displays the installation result in an interface of the first application.

13. The method according to any one of claims 1 to 6, characterized in that: When the first application in the mobile terminal obtains a download request for the target application, the method further includes: The first application is prohibited from initiating a download process for downloading the target application.

14. The method according to any one of claims 1 to 6, characterized in that: The first application includes the system's game download center, browser, and third-party store, and the second application includes at least the system's software store.

15. The method according to any one of claims 1 to 6, characterized in that: The first application and the second application perform data transmission via an interface for inter-process communication.

16. An application downloading device, characterized in that: Applied to a mobile terminal, the device comprises: a request sending module and a download control module, wherein: The request sending module is used for sending the download request to the second application in the mobile terminal through inter-process communication when the first application in the mobile terminal obtains the download request for the target application; The download control module is used to control the second application to determine all download tasks currently in progress; if all download tasks do not include a target download task for downloading the target application, determine the number of all download tasks; if the number of all download tasks is less than a first threshold, the second application responds to the download request and downloads the target application; if the number of all download tasks is equal to or greater than the first threshold, the second application sends a download instruction to the first application through inter-process communication, and the download instruction is used to instruct the first application to download the target application; the first application responds to the download instruction and downloads the target application.

17. A mobile terminal, characterized in that: include: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1-15.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, and the program codes can be called by a processor to execute the method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Application program control method and mobile terminal

    CN108009031A

  • A method and apparatus for installing an application on a user device

    CN109710280A