CN114365090A - Application downloading method and device, mobile terminal and storage medium - Google Patents

Application downloading method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN114365090A
CN114365090A CN201980100131.8A CN201980100131A CN114365090A CN 114365090 A CN114365090 A CN 114365090A CN 201980100131 A CN201980100131 A CN 201980100131A CN 114365090 A CN114365090 A CN 114365090A
Authority
CN
China
Prior art keywords
application
downloading
target
download
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201980100131.8A
Other languages
Chinese (zh)
Inventor
卢阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN114365090A publication Critical patent/CN114365090A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an application downloading method, an application downloading device, a mobile terminal and a storage medium, wherein the application downloading method is applied to the mobile terminal and comprises the following steps: when a first application in the mobile terminal obtains a downloading request of a target application, sending the downloading request to a second application in the mobile terminal through inter-process communication; and the second application responds to the downloading request and downloads the target application. The method can better realize the management and control of the application downloading in the mobile terminal.

Description

Application downloading method and device, mobile terminal and storage medium Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to an application downloading method and apparatus, a mobile terminal, and a storage medium.
Background
Mobile terminals, such as tablet computers, mobile phones, etc., have become one of the most common consumer electronic products in people's daily life. People often install various applications in mobile terminals to meet different requirements. When downloading and installing an application program, the application program is generally downloaded in an application store or the like where the application program can be downloaded. However, there are multiple applications available for downloading the application programs in the mobile terminal, and therefore, the downloading of the application programs needs to be managed and controlled reasonably.
Disclosure of Invention
In view of the foregoing problems, the present application provides an application downloading method, apparatus, mobile terminal and storage medium.
In a first aspect, an embodiment of the present application provides an application downloading method, which is applied to a mobile terminal, and the method includes: when a first application in the mobile terminal obtains a downloading request of a target application, sending the downloading request to a second application in the mobile terminal through inter-process communication; and the second application responds to the downloading request and downloads the target application.
In a second aspect, an embodiment of the present application provides an application downloading apparatus, which is applied to a mobile terminal, and the apparatus includes: the mobile terminal comprises a request sending module and a download control module, wherein the request sending module is used for sending a download request to a second application in the mobile terminal through inter-process communication when the first application in the mobile terminal obtains the download request of a target application; and the download control module is used for controlling the second application to respond to the download request and download the target application.
In a third aspect, an embodiment of the present application provides a mobile terminal, including: one or more processors; a 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, the one or more programs configured to perform the application download method provided by the first aspect above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the application downloading method provided in the first aspect.
According to the scheme, when the first application of the mobile terminal obtains the downloading request of the target application, the downloading request is sent to the second application in the mobile terminal through inter-process communication, and the second application responds to the downloading request and downloads the target application. Therefore, when the mobile terminal is simultaneously provided with a plurality of application programs capable of downloading the applications, if the applications are downloaded through the first application, the applications can be downloaded through interprocess communication by utilizing the second application, the situation that the applications are downloaded by the plurality of applications simultaneously is avoided, and the application downloading management can be better realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 shows a flow diagram of an application download method according to one embodiment of the present application.
FIG. 2 shows a flowchart of an application download method according to another embodiment of the present application.
FIG. 3 shows a flowchart of an application download method according to yet another embodiment of the present application.
Fig. 4 shows a flowchart of step S320 in an application downloading method according to another embodiment of the present application.
Fig. 5 shows another flowchart of step S340 in an application downloading method according to another embodiment of the present application.
FIG. 6 shows a block diagram of an application download apparatus according to an embodiment of the present application.
Fig. 7 is a block diagram of a mobile terminal for executing an application download method according to an embodiment of the present application.
Fig. 8 is a storage unit for storing or carrying program codes for implementing an application downloading method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the increasing demand of people, more and more applications are installed in mobile terminals. Generally, when downloading and installing an application in a mobile terminal, a person downloads the application through software installed in the mobile terminal, for example, an application store, a game center, a browser, a third-party software store, and the like in the mobile terminal, which can download the application.
The inventor has found through long-term research that, in the conventional technology, when a plurality of pieces of software of an application can be downloaded in a mobile terminal, if at least two pieces of software obtain requests for downloading the application, the software is generally not aware of respective downloading tasks, and therefore, when the same application is downloaded/updated, the software is downloaded respectively. For example, a software store and a game center are installed in the mobile terminal at the same time, the main objective of the software store is to distribute software, the main objective of the game center is to distribute a game, and the intersection of two pieces of distributed software is a game resource. The software store can be used as a system application to obtain the authority related to downloading and installation in a silent mode, and the game center can finish normal function use after the user grants the authority. At the time of downloading and application updating, the two applications are respectively downloaded from their own download directories and are not aware of each other's download task. Therefore, when the same application is downloaded/updated, the http request server is respectively carried out to acquire information such as the version number and the download link of the application, and then the http request download link is carried out to respectively download application package (Android package) files from the software store and the game center to respective directories.
This results in double traffic overhead, increasing the cost to the user, and also increases the amount of memory space occupied in the mobile terminal. In addition, different software may be downloaded to the same application, and two different versions may be downloaded, if the low version is updated first and the high version is updated again, the application may be continued in an updated state for a long time, and the situation that the application process is killed once is increased when the application is installed twice; if the high version is updated first and then the low version is updated, the low version installation will fail.
In view of the above problems, the inventor proposes an application downloading method, an application downloading device, a mobile terminal and a storage medium provided in the embodiments of the present application, and sends a downloading request for an application in one application to another application for downloading through inter-process communication, so that applications of different downloading applications can be realized, the same application can be used for downloading, management of application downloading is facilitated, and problems of large flow overhead, large occupied storage space, process killing and the like caused by simultaneous downloading of the same application by multiple applications are effectively solved. The specific application downloading method is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a flowchart illustrating an application downloading method according to an embodiment of the present application. The application downloading method is used for avoiding the situation that a plurality of applications download the applications at the same time, and can better realize the management of application downloading. In a specific embodiment, the application downloading method is applied to the application downloading apparatus 400 shown in fig. 6 and the mobile terminal 100 (fig. 7) configured with the application downloading apparatus 400. The following will describe a specific flow of the embodiment by taking a mobile terminal as an example, and it is understood that the mobile terminal applied in the embodiment may be a smart phone, a tablet computer, an electronic book, and the like, which is not limited herein. Wherein the mobile terminal comprises a touch screen. As will be described in detail with respect to the flow shown in fig. 1, the application downloading method may specifically include the following steps:
step S110: when a first application in the mobile terminal obtains a downloading request of a target application, the downloading request is sent to a second application in the mobile terminal through inter-process communication.
In the embodiment of the application, a plurality of applications of the downloadable application can be installed in the mobile terminal. The application capable of downloading the application can respond to the downloading request of the application and acquire data such as an installation package of the application from the server.
In some embodiments, when a first application of the applications of the downloadable applications obtains a download request for downloading a target application, the first application may communicate with a second application through Inter-Process Communication (IPC), and transmit the download request to the second application, so as to respond to the download request by using the second application and download the application. The inter-process communication can be realized by various methods, for example, when the system installed on the mobile terminal is a Linux system, the inter-process communication can be realized by methods such as a half-duplex Unix pipeline, a named pipeline, a message queue, a semaphore, a shared memory, a network socket and the like; for another example, when the system installed in the mobile terminal is an iOS system, the inter-process communication may be implemented through an XPC framework of the iOS system, and a specific implementation method of the inter-process communication may not be limited. The target application is an application program which is required to be downloaded by a user, and the target application can be any application program.
In some embodiments, the first application may monitor a download request for downloading the target application, and the download request may be triggered by a user operation, for example, when an update operation for the target application is detected in an 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 to the target application.
In some embodiments, after acquiring the download request of the target application, the first application may request the server for download data of the target application according to the download request. The operating system of the mobile terminal may monitor that the first application requests the server for the download data of the target application, terminate the request of the first application, and send an instruction to the first application to instruct the first application to send the download request to the second application through the inter-process communication, or the operating system sends the download request to the second application according to the download request sent to the server.
In other embodiments, the first application may be configured to be downloaded through the second application when it is installed, that is, when the first application detects a download request, the first application needs to send the download request to the second application through inter-process communication, so as to download the application program through the second application.
In this embodiment of the application, when the first application acquires a download request for the target application, the mobile terminal may prohibit the first application from starting a download process of the target application for downloading. That is, when the mobile terminal monitors the downloading process, the process may be prohibited and cleared, so as to prevent the target application from being downloaded by the subsequent first application and the second application.
Step S120: and the second application responds to the downloading request and downloads the target application.
In this embodiment of the application, after receiving the download request sent by the first application, the second application may respond to the download request and download the target application. Specifically, the second application responds to the download request, requests to acquire download data such as an installation package of the target application from the server, and installs the target application after the download is completed. The first application sends the downloading request to the second application through the inter-process communication, and the second application downloads and installs the target application, so that for a user, the specific application in which the downloading is carried out is not aware, and the user experience is high. Moreover, the situations that the second application also acquires the downloading of the target application at the same time, and the traffic is increased, the occupied storage space is increased, the process is killed and the like are avoided.
In some embodiments, the second application may include at least a software store of the system, for example, when the operating system installed in the mobile terminal is an android system, the software store of the system may be a google store, and the like. The first application may include a game download center, a browser, and a third party store of the system, and it will be appreciated that the first application may be an application other than a software store of the system among applications in which the application may be downloaded. Therefore, when the download request is acquired by other applications except the software store of the system in the mobile terminal, the download request can be transmitted to the software store of the system, and the target application can be downloaded through the software store of the system.
According to the application downloading method provided by the embodiment of the application, when the first application of the mobile terminal obtains the downloading request of the target application, the downloading request is sent to the second application in the mobile terminal through inter-process communication, and the second application responds to the downloading request to download the target application. Therefore, when the mobile terminal is simultaneously provided with a plurality of application programs capable of downloading the applications, if the applications are downloaded through the first application, the inter-process communication can be realized, the second application is used for downloading the applications, the situations that the applications are downloaded by the plurality of applications simultaneously, the flow is increased, the storage space is occupied, the processes are killed and the like are avoided, and the management of the application downloading can be better realized.
Referring to fig. 2, fig. 2 is a flowchart illustrating an application downloading method according to another embodiment of the present application. The application downloading method can be applied to the mobile terminal. As will be described in detail with respect to the flow shown in fig. 2, the application downloading method may specifically include the following steps:
step S210: when a first application in the mobile terminal obtains a downloading request of a target application, the downloading request is sent to a second application in the mobile terminal through inter-process communication.
In this embodiment of the application, the second application may be provided with an interface for performing inter-process communication, and the 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 manner of inter-process communication between the first application and the second application may not be limited.
Step S220: and the second application determines whether the first application has a designated permission, wherein the designated permission is the permission for downloading the target application through the second application.
In this embodiment of the application, the second application may perform permission management and control on the application programs of other downloadable applications, so as to manage and control the application programs of downloadable and installable applications.
In some embodiments, the second application may manage and control an application that can be downloaded by the second application, and when receiving a download request for the application sent by another application, determine whether to download the application in response to the download request.
In some embodiments, the second application may determine whether the first application has a specified permission to download the target application through the second application. Specifically, the second application may determine the authority information that the first application has, and the authority information may include whether the application program can be downloaded by the second application, and the scope of the application program that can be downloaded by the second application. After determining the authority information of the first application, the second application may determine whether the first application has the specified authority according to the authority information. It can be understood that if the first application has the designated permission, it means that the first application can download the target application through the second application; and if the first application does not have the designated permission, the first application cannot download the target application through the second application.
In some embodiments, the mobile terminal may store permission configuration information in advance, and the permission configuration information may include all permission information of the application. Accordingly, step S220 may include: the second application determines the downloading authority of the first application according to the authority configuration information; determining whether the designated right is included in the download right. It can be understood that the permission information of the first application may include a download permission of the first application, so that the second application may determine the download permission of the first application according to the permission configuration information after determining the permission information of the first application, and if the first application includes the designated permission, it indicates that the first application may download the target application through the second application. As a mode, the authority configuration information of the first application may be issued by the server, and the authority configuration information may be associated with the signature of the application; as another way, the authority configuration information of the first application may also be set or formulated according to the operation of the user, which is not limited herein.
In some embodiments, when the permission configuration information is issued by the server, the application downloading method may further include: and the second application changes the downloading authority of the first application according to the authority change information issued by the server, and writes the changed downloading authority into the authority configuration information. It can be understood that the server may dynamically issue the permission change information of the permission configuration information, so that the mobile terminal may change the permission configuration information according to the permission change information after receiving the permission change information, for example, the permission information of the first application may not include the designated permission. By the method, the application permission can be dynamically added or deleted or changed, so that the appointed permission can be changed, and the requirements of different scenes and users are met.
Step S230: and if the first application has the appointed authority, the second application responds to the downloading request and downloads the target application.
In this embodiment of the application, if it is determined in step S220 that the first application has the designated permission, the second application needs to respond to the download request to download the target application. In addition, after the second application finishes downloading the target application, the second application can be installed. Of course, the second application may also transmit the indication information of the completion of the downloading to the first application through inter-process communication to indicate the first application to install the target application.
Step S240: and the second application transmits the downloading state information to the first application through inter-process communication in the process of downloading the target application.
In the embodiment of the application, the second application may further continuously obtain the download state information during the process of downloading the target application, and transmit the download state information to the first application through inter-process communication, so that the first application displays the download state information.
In some embodiments, the download status information may include a download speed, a download progress, and the like, and the specific download status information may not be limited.
Step S250: and the first application displays the download state information on an interface of the first application.
In this embodiment of the application, after receiving the download status information, the first application may display the download status information on an interface of the first application. The interface may be an interface for the first application to download the target application. It can be understood that, since the downloading of the target application is substantially completed by the second application, and the first application does not really download the target application, the download state information is transmitted to the first application through the second application, and the download state information is displayed by the first application, so that a user can conveniently know the real-time download state, the user does not sense the application actually downloading and installing the target application, and the user experience is further improved.
Step S260: and if the first application does not have the designated permission, the second application sends a first prompt message to the first application through interprocess communication.
In the embodiment of the application, if the first application does not have the designated permission, the first application is indicated that the first application cannot download the target application through the second application. Therefore, the second application may generate the 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. The first prompt message may be a message for prompting that the user cannot download the target application in the first application, so that the user knows that the first application does not have the right to download the target application.
Step S270: the first application displays a first prompt message on an interface of the first application, wherein the first prompt message is used for prompting a user that the target application cannot be downloaded in the first application.
In the embodiment of the application, after the first application obtains the first prompt message, the first prompt message can be displayed on an interface of the first application, so that a user can conveniently know that the first application does not have the right to download the target application, and can timely download the target application through other applications. For example, when the first application is a game download center, the chat application cannot be downloaded, and at this time, after the first application is prompted, the user can know that the chat software needs to be downloaded through an application program (e.g., a second application) of another downloadable application.
According to the application downloading method provided by the embodiment of the application, when the downloading request of the target application is obtained through the first application of the mobile terminal, the downloading request is sent to the second application in the mobile terminal through inter-process communication, then the second application determines whether the first application has the appointed authority for downloading the target application through the second application, and if the first application has the appointed authority, the downloading request is responded, and the target application is downloaded. Therefore, the target application is downloaded by the second application, the situations that the application is downloaded by a plurality of applications at the same time, the flow is increased, the occupied storage space is increased, the progress is killed and the like are avoided, and the application downloading can be managed well. In addition, in the process of downloading the target application by the second application, the downloading state information is transmitted to the first application for displaying, so that a user can conveniently know the real-time downloading state, the user can not sense the application of the target application which is actually downloaded and installed, and the user experience is further improved. And if the first application does not have the designated authority, the second application transmits the first prompt message to the first application for display through inter-process communication, so that a user can conveniently know that the first application does not have the authority of downloading the target application and can timely download the target application through other applications.
Referring to fig. 3, fig. 3 is a flowchart illustrating an application downloading method according to another embodiment of the present application. The application downloading method can be applied to the mobile terminal. As will be described in detail with respect to the flow shown in fig. 3, the application downloading method may specifically include the following steps:
step S310: when a first application in the mobile terminal obtains a downloading request of a target application, the downloading request is sent to a second application in the mobile terminal through inter-process communication.
In the embodiment of the present application, the step S310 may refer to the contents of the foregoing embodiments, and is not described herein again.
Step S320: the second application determines all download tasks currently in progress.
In this embodiment of the application, after the second application receives the download request sent by the first application, before responding to the download request, the second application may further determine all download tasks currently performed by the second application.
In some embodiments, after determining all the downloading tasks currently performed by the second application, the second application may determine whether all the downloading tasks currently performed by the second application include a target downloading task for downloading the target application. It can be understood that if the target download task is included in all the download tasks, it indicates that the target application is currently being downloaded; if the target downloading task is not included in all the downloading tasks, the target application is not downloaded currently, so that the target application can be downloaded in response to the downloading request.
Step S330: and if the target downloading task for downloading the target application is not included in all the downloading tasks, the second application responds to the downloading request and downloads the target application.
In this embodiment of the application, when the second application determines all the downloading tasks currently performed by the second application and determines that all the downloading tasks do not include the target downloading task, the second application indicates that the target application is not currently downloaded, so that the target application can be downloaded in response to the downloading request.
In some embodiments, referring to fig. 4, if a target download task for downloading the target application is not included in all the download tasks, the downloading the target application by the second application in response to the download request may include:
step S331: if the target downloading task for the target application is not included in all the downloading tasks, determining the number of all the downloading tasks;
step S332: and if the number of all the downloading tasks is smaller than a first threshold value, the second application responds to the downloading request and downloads the target application.
It is understood that when the target application determines that the target downloading task is not included in all the downloading tasks, the target application can be downloaded. However, when there are many downloading tasks currently performed in the second application, the progress of the downloading tasks may be slow due to limited network resources and the like allocated to the second application by the system, and therefore, the number of all downloading tasks may be determined, and when the number of all downloading tasks is smaller than the first threshold, the target application is downloaded in response to the downloading request. The first threshold may 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 smaller than a preset value), and the specific first threshold is not limited, and may be, for example, a progress of 1% per second.
In some embodiments, the application downloading method may further include: if the number of all downloading tasks is equal to or larger than a first threshold value, the second application sends a downloading instruction to the first application through inter-process communication, and the downloading instruction is used for indicating the first application to download a target application; and the first application responds to the downloading instruction and downloads the target application. It can be understood that, if the number of all the downloading tasks is equal to or greater than the first threshold, since the second application, if responding to the downloading request, downloads the target application, which makes the downloading task in the second application slow, the downloading instruction may be sent to the first application, and the first application may download the target application.
Further, the second application may record all download tasks corresponding to the sent download instruction, obtain the download request again within a preset time duration, and ignore the download request, so as to avoid repeated downloading. For example, when the second application sends a download instruction to the application 1 before, the application 1 is instructed to download the target application, and the download request for the target application is obtained again within the preset time length, the download request may be ignored.
Step S340: and if the all downloading tasks comprise target downloading tasks for downloading the target application, the second application does not respond to the downloading request and sends a second prompt message to the first application through interprocess communication.
In some embodiments, if the target download task is included in all download tasks, this may indicate that the target application is currently being downloaded and is downloaded again, which may result in repeated downloads. Therefore, the second application may not respond to the download request to avoid repeated downloads.
In addition, the second application may further generate a second prompt message or read a second pre-stored prompt message, and send the second prompt message to the first application, where 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 already being downloaded.
In some embodiments, referring to fig. 5, if the all 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:
step S341: if the all downloading tasks comprise target downloading tasks for downloading the target application, determining an application version corresponding to the target downloading tasks as a first version and an application version corresponding to the downloading request as a second version;
step S342: and if the second version is lower than or equal to the first version, the second application does not respond to the downloading request and sends a second prompt message to the first application through interprocess communication.
It will be appreciated that if the first version is the same as the second version, this means that if the second application responds to the download request, this will result in repeated downloads; if the first version is lower than the second version, the application version corresponding to the downloading request is higher, and the second application can respond to the downloading request to obtain the application version with the higher version; if the first version is higher than the second version, this means that if the second application responds to the download request, it will result in a repeated download. Thus, 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.
In this embodiment, the application downloading method may further include: if the second version is higher than the first version, the second application stops the target downloading task; and responding to the downloading request, and downloading the target application of the second version. It is understood that if the first version is lower than the second version, which indicates that the download request corresponds to a higher version of the application, the second application may respond to the download request to obtain a higher version of the application. Therefore, the target downloading task can be stopped first, and the target application with higher application version can be downloaded in response to the downloading request.
In addition, after the second application stops the target download task, the application download method may further include: and deleting the download file corresponding to the target download task. Therefore, under the condition of stopping the target downloading task, the downloading request is responded, and the target application with a higher application version is downloaded, so that the downloading file corresponding to the target downloading task is deleted, and the storage space is saved.
Step S350: the first application displays a second prompt message on an interface of the first application, wherein the second prompt message is used for prompting a user that a target application is downloaded.
In some embodiments, after the first application receives the second prompt message, the first application may display the second prompt message on an interface of the first application, where the second prompt message is used to prompt the user that the target application is already being downloaded, so as to avoid that the user mistakenly thinks that the target application is not downloaded and repeatedly performs the downloading operation.
In this embodiment of the application, after the second application responds to the download request and downloads the target application, the application downloading method may further include: installing the target application, and transmitting an installation result to the first application through interprocess communication; the first application displays the installation result in an interface of the first application. It will be appreciated that installation of the target application may also be accomplished by the second application, thereby enabling the download and installation of the target application to be accomplished by the second application. The downloading and the installation of the target application are substantially completed by the second application, but the first application does not really download the target application, so that the second prompt message is transmitted to the first application through the second application, and the first application displays the second prompt message, so that the user can know that the target application is downloaded and installed successfully, the user cannot sense the application which is actually downloaded and installed the target application, and the user experience is improved.
According to the application downloading method provided by the embodiment of the application, when the downloading request of the target application is acquired through the first application of the mobile terminal, the downloading request is sent to the second application in the mobile terminal through inter-process communication, then the second application determines all downloading tasks which are currently performed, if the target downloading tasks which are downloaded to the target application are not included in all downloading tasks, the second application responds to the downloading request and downloads the target application, so that the target application is downloaded by utilizing the second application, the situations that the applications are downloaded by a plurality of applications at the same time, the situations that the flow is increased, the occupied storage space is increased, the processes are killed and the like occur are avoided, and the application downloading can be managed well. And the number of the current downloading tasks is determined, and the target application is downloaded only by responding to the downloading request when the number is smaller than the first threshold value, so that the condition that the downloading progress is too slow is avoided. In addition, if all the downloading tasks include the target downloading task for downloading the target application, the downloading request is not responded, so that repeated installation of the target application is avoided, and the storage space is saved. And the second prompt message is displayed on the interface of the first application and used for prompting the user that the target application is downloaded, so that the situation that the user thinks the target application is not downloaded by mistake and repeatedly executes downloading operation is avoided.
Referring to fig. 6, a block diagram of an application downloading apparatus 400 according to an embodiment of the present application is shown. The application downloading apparatus 400 may be applied to the mobile terminal, which includes a touch screen. The application download apparatus 400 includes: a request sending module 410 and a download control module 420. The request sending module 410 is configured to send a download request to a 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 420 is configured to control the second application to respond to the download request and download the target application.
In this embodiment, the application downloading apparatus 400 may further include: and a permission determination module. The permission determining module is used for controlling the second application to determine whether the first application has a designated permission before the second application responds to the downloading request and downloads the target application, wherein the designated permission is the permission for downloading the target application through the second application. The download control module 420 may be specifically configured to: and if the first application has the appointed authority, the second application responds to the downloading request and downloads the target application.
In some embodiments, the permission determination module may be specifically configured to: the second application determines the downloading authority of the first application according to the authority configuration information; determining whether the designated right is included in the download right.
In this manner, the application download apparatus 400 may further include: and the permission changing module. And the permission changing module is used for changing the downloading permission of the first application by the second application according to the permission changing information issued by the server and writing the changed downloading permission into the permission configuration information.
In some embodiments, the application downloading apparatus 400 may further include: the device comprises a first message sending module and a first message display module. The first message sending module is used for sending a first prompt message to the first application through inter-process communication if the first application does not have the specified authority after the second application determines whether the first application has the specified authority; the second message display module is used for displaying a first prompt message on an interface of the first application by the first application, wherein the first prompt message is used for prompting a user that the target application cannot be downloaded in the first application.
In some embodiments, the application downloading apparatus 400 may further include: a second message sending module and a second message display module. The second message sending module is used for transmitting the downloading state information to the first application through inter-process communication in the process that the second application downloads the target application; the second message display module is used for the first application to display the download state information on an interface of the first application.
In some embodiments, the application downloading apparatus 400 may further include: and a task determination module. And the task determining module is used for determining all downloading tasks currently performed by the second application before the second application responds to the downloading request and downloads the target application. The download control module 420 may be specifically configured to, if a target download task for downloading the target application is not included in all the download tasks, respond to the download request by the second application, and download the target application.
In some embodiments, the application downloading apparatus 400 may further include: a third message sending module and a third message display module. The third message sending module is used for sending a second prompt message to the first application through interprocess communication if the target download task for downloading the target application is included in all the download tasks, and the second application does not respond to the download request; the third message display module is used for the first application to display a second prompt message on the interface of the first application, wherein the second prompt message is used for prompting a user that a target application is downloaded.
In this manner, the third message sending module may be specifically configured to: if the all downloading tasks comprise target downloading tasks for downloading the target application, determining an application version corresponding to the target downloading tasks as a first version and an application version corresponding to the downloading request as a second version; and if the second version is lower than or equal to the first version, the second application does not respond to the downloading request and sends a second prompt message to the first application through interprocess communication.
Further, the application downloading apparatus 400 may further include: a task stopping module and a request responding module. The task stopping module is used for stopping the target downloading task by the second application if the second version is higher than the first version after the application version corresponding to the target downloading task is determined as the first version; and the request response module is used for responding to the downloading request and downloading the target application of the second version.
In some embodiments, the application downloading apparatus 400 may further include: and a file deleting module. And the file deleting module is used for deleting the download file corresponding to the target download task after the second application stops the target download task.
In some embodiments, the download control module 420 may be specifically configured to: if the target downloading task for the target application is not included in all the downloading tasks, determining the number of all the downloading tasks; and if the number of all the downloading tasks is smaller than a first threshold value, the second application responds to the downloading request and downloads the target application.
Further, the application downloading device 400 may further include an instruction transmitting module. The instruction sending module is used for sending a downloading instruction to the first application through inter-process communication if the number of all downloading tasks is equal to or greater than a first threshold value after the number of all downloading tasks is determined, wherein the downloading instruction is used for indicating the first application to download a target application; the download control module 420 may be further configured to download the target application by the first application in response to the download instruction.
In some embodiments, the application downloading apparatus 400 may further include: a result transmission module and a result display module. The result transmission module is used for installing the target application after the second application responds to the downloading request and downloads the target application, and transmitting an installation result to the first application through inter-process communication; and the result display module is used for the first application to display the installation result in an interface of the first application.
In some embodiments, the application download apparatus 400 may further include a process inhibition module. The process prohibition module may be configured to prohibit a first application in the mobile terminal from starting a download process for downloading a target application when the first application obtains a download request for the target application.
In some embodiments, the first application comprises a game download center, a browser, and a third party store of the system, and the second application comprises at least a software store of the system.
In some embodiments, the first application and the second application communicate data therebetween via an interface for interprocess communication.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
In summary, according to the scheme provided by the application, when the first application of the mobile terminal obtains the download request of the target application, the download request is sent to the second application in the mobile terminal through the inter-process communication, and the second application responds to the download request to download the target application. Therefore, when the mobile terminal is simultaneously provided with a plurality of application programs capable of downloading the applications, if the applications are downloaded through the first application, the applications can be downloaded through the interprocess communication by utilizing the second application, the situation that the applications are downloaded by the plurality of applications simultaneously is avoided, and the application downloading management can be better realized.
Referring to fig. 7, a block diagram of a mobile terminal according to an embodiment of the present application is shown. The mobile terminal 100 may be an electronic device capable of running an application, such as a smart phone, a tablet computer, an electronic book, and a smart watch. 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 the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores. The processor 110 interfaces with various components throughout the mobile terminal 100 using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 8, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
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. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (20)

  1. An application downloading method, applied to a mobile terminal, the method comprising:
    when a first application in the mobile terminal obtains a downloading request of a target application, sending the downloading request to a second application in the mobile terminal through inter-process communication;
    and the second application responds to the downloading request and downloads the target application.
  2. The method of claim 1, wherein before the second application downloads the target application in response to the download request, the method further comprises:
    the second application determines whether the first application has a designated permission, wherein the designated permission is the permission for downloading the target application through the second application;
    the second application responds to the downloading request and downloads the target application, and the downloading process comprises the following steps:
    and if the first application has the appointed authority, the second application responds to the downloading request and downloads the target application.
  3. The method of claim 2, wherein the second application determining whether the first application has a specified permission comprises:
    the second application determines the downloading authority of the first application according to the authority configuration information;
    determining whether the designated right is included in the download right.
  4. The method of claim 3, further comprising:
    and the second application changes the downloading authority of the first application according to the authority change information issued by the server, and writes the changed downloading authority into the authority configuration information.
  5. The method of any of claims 2-4, wherein after the second application determines whether the first application has the specified permission, the method further comprises:
    if the first application does not have the designated permission, the second application sends a first prompt message to the first application through interprocess communication;
    the first application displays a first prompt message on an interface of the first application, wherein the first prompt message is used for prompting a user that the target application cannot be downloaded in the first application.
  6. The method according to any one of claims 1-5, further comprising:
    the second application transmits the downloading state information to the first application through inter-process communication in the process of downloading the target application;
    and the first application displays the download state information on an interface of the first application.
  7. The method according to any one of claims 1-6, wherein before the second application downloads the target application in response to the download request, the method further comprises:
    the second application determines all downloading tasks currently performed;
    the second application responds to the downloading request and downloads the target application, and the downloading process comprises the following steps:
    and if the target downloading task for downloading the target application is not included in all the downloading tasks, the second application responds to the downloading request and downloads the target application.
  8. The method of claim 7, further comprising:
    if the all downloading tasks comprise target downloading tasks for downloading the target application, the second application does not respond to the downloading request and sends a second prompt message to the first application through interprocess communication;
    the first application displays a second prompt message on an interface of the first application, wherein the second prompt message is used for prompting a user that a target application is downloaded.
  9. The method of claim 8, wherein if the all 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, comprising:
    if the all downloading tasks comprise target downloading tasks for downloading the target application, determining an application version corresponding to the target downloading tasks as a first version and an application version corresponding to the downloading request as a second version;
    and if the second version is lower than or equal to the first version, the second application does not respond to the downloading request and sends a second prompt message to the first application through interprocess communication.
  10. The method according to claim 9, wherein after the determining the application version corresponding to the target download task as the first version, the method further comprises:
    if the second version is higher than the first version, the second application stops the target downloading task;
    and responding to the downloading request, and downloading the target application of the second version.
  11. The method of claim 10, wherein after the second application stops the target download task, the method further comprises:
    and deleting the download file corresponding to the target download task.
  12. The method according to any one of claims 7-11, wherein if the target download task for the target application is not included in all the download tasks, the second application responds to the download request to download the target application, and comprises:
    if the target downloading task for the target application is not included in all the downloading tasks, determining the number of all the downloading tasks;
    and if the number of all the downloading tasks is smaller than a first threshold value, the second application responds to the downloading request and downloads the target application.
  13. The method of claim 12, wherein after determining the number of all download tasks, the method further comprises:
    if the number of all downloading tasks is equal to or larger than a first threshold value, the second application sends a downloading instruction to the first application through inter-process communication, and the downloading instruction is used for indicating the first application to download a target application;
    and the first application responds to the downloading instruction and downloads the target application.
  14. The method according to any one of claims 1-13, wherein after the second application downloads the target application in response to the download request, the method further comprises:
    installing the target application, and transmitting an installation result to the first application through interprocess communication;
    the first application displays the installation result in an interface of the first application.
  15. The method according to any one of claims 1 to 14, wherein when the first application in the mobile terminal obtains a download request for a target application, the method further comprises:
    and forbidding the first application to start a downloading process for downloading the target application.
  16. The method of any of claims 1-15, wherein the first application comprises a game download center, a browser, and a third party store of a system, and wherein the second application comprises at least a software store of a system.
  17. The method according to any of claims 1-17, wherein the first application and the second application are configured for data transfer via an interface for interprocess communication.
  18. An application downloading device, applied to a mobile terminal, the device comprising: a request sending module and a download control module, wherein,
    the request sending module is used for sending a downloading request to a second application in the mobile terminal through inter-process communication when the first application in the mobile terminal obtains the downloading request to a target application;
    and the download control module is used for controlling the second application to respond to the download request and download the target application.
  19. 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, the one or more programs configured to perform the method of any of claims 1-17.
  20. A computer-readable storage medium having program code stored therein, the program code being invoked by a processor to perform the method of any one of claims 1 to 17.
CN201980100131.8A 2019-11-27 2019-11-27 Application downloading method and device, mobile terminal and storage medium Pending CN114365090A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/121317 WO2021102748A1 (en) 2019-11-27 2019-11-27 Method and apparatus for downloading application, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114365090A true CN114365090A (en) 2022-04-15

Family

ID=76129820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980100131.8A Pending CN114365090A (en) 2019-11-27 2019-11-27 Application downloading method and device, mobile terminal and storage medium

Country Status (2)

Country Link
CN (1) CN114365090A (en)
WO (1) WO2021102748A1 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10003635B1 (en) * 2013-03-15 2018-06-19 Google Llc System and method for tracking event occurrences between applications
KR20160037019A (en) * 2014-09-26 2016-04-05 삼성전자주식회사 Electronic device, controlling method thereof and recording medium
JP6777992B2 (en) * 2016-01-21 2020-10-28 キヤノン株式会社 Communication equipment, control methods, and programs
CN107370740B (en) * 2017-07-28 2020-08-11 北京五八信息技术有限公司 Jump interception method and device
CN108009031B (en) * 2017-12-14 2020-05-26 维沃移动通信有限公司 Application program control method and mobile terminal
CN109710280B (en) * 2018-12-27 2022-04-15 上海掌门科技有限公司 Method and equipment for installing application on user equipment
CN110046015A (en) * 2019-04-08 2019-07-23 维沃移动通信有限公司 Using sharing method and terminal

Also Published As

Publication number Publication date
WO2021102748A1 (en) 2021-06-03

Similar Documents

Publication Publication Date Title
CN109408223B (en) Resource allocation method, device, terminal and storage medium
WO2021142609A1 (en) Information reporting method, apparatus and device, and storage medium
JP6571277B2 (en) Method and apparatus for loading terminal application
KR20200047494A (en) Automatic application updates
CN109361638B (en) Method, system and storage medium for sharing control authority of intelligent device
CN109542614B (en) Resource allocation method, device, terminal and storage medium
AU2019256257B2 (en) Processor core scheduling method and apparatus, terminal, and storage medium
CN110955499B (en) Processor core configuration method, device, terminal and storage medium
CN110417910B (en) Notification message sending method, device, server and storage medium
CN105653934B (en) Mobile terminal and application protection method thereof
WO2022179486A1 (en) Multi-core processor task scheduling method and apparatus, and device and storage medium
CN115088235A (en) Main node selection method and device, electronic equipment and storage medium
CN113656087A (en) Applet starting method, device, equipment and storage medium
CN107682389B (en) Method, terminal and computer readable storage medium for executing network request
CN110855736B (en) File transfer method, file transfer apparatus, and computer-readable storage medium
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
CN106550021B (en) Push method and device for push message
CN117319376A (en) File downloading control method and device, electronic equipment and storage medium
CN114365090A (en) Application downloading method and device, mobile terminal and storage medium
CN115878226A (en) H5 offline package loading method and device
CN111045789A (en) Virtual machine starting method and device, electronic equipment and storage medium
CN110781014B (en) Recording data multi-process distribution method and system based on Android device
CN107562407B (en) Device control method and electronic device
CN111767074A (en) Configuration updating method, device, terminal and storage medium
CN114610331A (en) Software installation method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination