Installation management and control method and device, storage medium and electronic equipment

Through the combination of system package management services and three-party interactive services, the application installation requests are intercepted and backup, and user audit information is obtained, which solves the problem that the existing technology cannot intercept multiple installation methods and dynamic control, and achieves asynchronous installation and user needs satisfaction .

CN119065737APending Publication Date: 2024-12-03HUIZHOU TCL CLOUD INTERNET CORP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411068370.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing application installation control methods cannot intercept multiple installation methods and cannot achieve dynamic control, and asynchronous installation is difficult, resulting in the installation process being stuck in other application requests.

Method used

The system package management service intercepts installation requests, backs up the installation package, and obtains user audit information through the three-party interactive service to realize asynchronous installation and dynamic control.

Benefits of technology

It realizes interception and asynchronous installation of any form of installation behavior, meets the user's dynamic control needs, and avoids the problem of stuck in other requests during the installation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065737A_ABST
    Figure CN119065737A_ABST
Patent Text Reader

Abstract

The invention discloses an installation management and control method and device, a storage medium and electronic equipment, and relates to the technical field of the Internet, and the method comprises the steps: intercepting an installation request of a to-be-installed application program through a package management service in a system, and backing up an installation package of the to-be-installed application program when it is judged that installation is applied for the first time; acquiring a management and control communication object from a three-party interaction service in the system, and calling an installation request method of the management and control communication object to send an installation application to a three-party application; receiving installation auditing information fed back by the third-party application calling an opinion feedback method in the installation management and control object; calling an installation request method in the three-party interaction service to judge whether the user agrees to install the application program to be installed or not according to the installation auditing information; and if the user agrees to install, obtaining the backup installation package and triggering an installation process. According to the application, any form of application installation behaviors can be intercepted, management and control are performed according to the dynamic management and control requirements of the user, and asynchronous installation of the application is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to an installation control method, device, storage medium and electronic device. Background Art

[0002] Application installation control is the task of controlling the installation behavior of applications in a device. For example, based on parental control requirements, comprehensive control is performed on the installation behavior of applications in devices used by children. Currently, the method of application installation control is usually to directly modify the package code in the application installer used to install the application, thereby prohibiting the sending of installation requests for a prohibited application by judging the package name.

[0003] With the current static modification interception installation method, on the one hand, it is impossible to intercept many installation methods such as installation through adb commands, third-party installers, etc. On the other hand, it is impossible to control the installation according to the user's dynamic control needs. In addition, the installation process is executed sequentially in the system main process. Intercepting a certain installation will block the installation requests of other applications, and asynchronous installation of applications cannot be achieved. Summary of the invention

[0004] The embodiment of the present application provides an installation control solution, which can intercept any form of application installation behavior, and can control it according to the user's dynamic control needs, while realizing asynchronous installation of the application.

[0005] The embodiments of the present application provide the following technical solutions:

[0006] According to one embodiment of the present application, an installation management method includes: intercepting an installation request of an application to be installed through a package management service in a system, and backing up the installation package of the application to be installed when it is determined that the application to be installed is applying for installation for the first time; obtaining a management communication object from a three-party interactive service in the system, and calling a request installation method of the management communication object to send an installation application of the application to be installed to a three-party application; receiving installation review information fed back by the three-party application calling a feedback method in the installation management object, wherein the installation review information is obtained by the user reviewing the installation application, and the installation management object is located in the system service; calling the installation request method in the three-party interactive service to determine whether the user agrees to install the application to be installed based on the installation review information; if the user agrees to install, obtaining the backed-up installation package and triggering the installation process of the application to be installed.

[0007] In some embodiments of the present application, before intercepting the installation request of the application to be installed through the package management service in the system, the method also includes: obtaining the installation control object from the system service through the third-party application, and calling the callback function method in the installation control object to pass the callback function object to the system service; through the system service, encapsulating the callback function object into the control communication object and passing the control communication object into the three-party interactive service.

[0008] In some embodiments of the present application, backing up the installation package of the application to be installed when determining that the application to be installed is a first-time installation application includes: parsing the installation package of the application to be installed to obtain package information; querying whether there is a backed-up installation package corresponding to the package information in a predetermined package backup path; if not, calling the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path.

[0009] In some embodiments of the present application, after querying whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path, the method also includes: if so, calling the installation confirmation method in the three-party interactive service to determine whether the package information is recorded in the preset allowed installation file, and deleting the backed-up installation package in the predetermined package backup path; if there is a record, executing a first predetermined successful installation process for the application to be installed, so as to install the application to be installed based on the installation package of the application to be installed; if there is no record, executing a predetermined failed installation process for the application to be installed.

[0010] In some embodiments of the present application, if it does not exist, calling the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path, including: if it does not exist, determining whether the control communication object is passed in the three-party interactive service; if it is passed in, calling the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path; if it is not passed in, executing the predetermined failed installation process to end the installation of the application to be installed.

[0011] In some embodiments of the present application, after backing up the installation package of the application to be installed when determining that the application to be installed is the first application for installation, the method also includes: recording the installation application record information of the application to be installed in an installation application record file; correspondingly, if the user agrees to install, obtaining the backed-up installation package and triggering the installation process of the application to be installed, including: if the user agrees to install, querying whether the installation application record information of the application to be installed is stored in the installation application record file; if so, calling the silent installation method in the three-party interactive service to obtain the backed-up installation package and triggering a new installation request; intercepting the new installation request through the package management service in the system, and calling the installation confirmation method in the three-party interactive service to determine whether the package information of the installation package is recorded in the preset allowed installation file; if so, executing the second predetermined successful installation process for the application to be installed to install the application to be installed based on the backed-up installation package.

[0012] In some embodiments of the present application, after the installation request method in calling the three-party interactive service determines whether the user agrees to install the application to be installed based on the installation review information, the method also includes: if the user does not agree to install, deleting the backup installation package; and, deleting the installation application record information of the application to be installed recorded in the installation application record file.

[0013] According to one embodiment of the present application, an installation control device includes: an interception module, which is used to intercept the installation request of the application to be installed through the package management service in the system, and back up the installation package of the application to be installed when it is judged that the application to be installed is applied for installation for the first time; an application module, which is used to obtain the control communication object from the three-party interactive service in the system, and call the request installation method of the control communication object to send the installation application of the application to be installed to the three-party application; a receiving module, which is used to receive the installation review information fed back by the three-party application calling the feedback method in the installation control object, the installation review information is obtained by the user reviewing the installation application, and the installation control object is located in the system service; a judgment module, which is used to call the installation request method in the three-party interactive service to judge whether the user agrees to install the application to be installed according to the installation review information; an installation module, which is used to obtain the backed up installation package and trigger the installation process of the application to be installed if the user agrees to install.

[0014] In some embodiments of the present application, before intercepting the installation request of the application to be installed through the package management service in the system, the device also includes a setting module, which is used to: obtain the installation control object from the system service through the third-party application, and call the callback function method in the installation control object to pass the callback function object to the system service; encapsulate the callback function object into the control communication object through the system service and pass the control communication object into the three-party interactive service.

[0015] In some embodiments of the present application, the interception module is used to: parse the installation package of the application to be installed to obtain package information; query whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path; if not, call the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path.

[0016] In some embodiments of the present application, after querying whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path, the interception module is used to: if so, call the installation confirmation method in the three-party interactive service to determine whether the package information is recorded in the preset allowed installation file, and delete the backed-up installation package in the predetermined package backup path; if there is a record, execute the first predetermined successful installation process for the application to be installed, so as to install the application to be installed based on the installation package of the application to be installed; if there is no record, execute the predetermined failed installation process for the application to be installed.

[0017] In some embodiments of the present application, the interception module is used to: if it does not exist, determine whether the control communication object has been passed into the three-party interactive service; if it has been passed in, call the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path; if it has not been passed in, execute the predetermined failed installation process to end the installation of the application to be installed.

[0018] In some embodiments of the present application, after backing up the installation package of the application to be installed when determining that the application to be installed is the first application for installation, the interception module is used to: record the installation application record information of the application to be installed in the installation application record file; correspondingly, if the user agrees to install, obtain the backup installation package and trigger the installation process of the application to be installed, including: if the user agrees to install, query whether the installation application record information of the application to be installed is stored in the installation application record file; if it is stored, call the silent installation method in the three-party interactive service to obtain the backup installation package, and trigger a new installation request; intercept the new installation request through the package management service in the system, and call the installation confirmation method in the three-party interactive service to determine whether the package information of the installation package is recorded in the preset allowed installation file; if it is recorded, execute the second predetermined successful installation process for the application to be installed to install the application to be installed based on the backup installation package.

[0019] In some embodiments of the present application, after the installation request method in calling the three-party interactive service determines whether the user agrees to install the application to be installed based on the installation review information, the interception module is used to: delete the backup installation package if the user does not agree to install; and delete the installation application record information of the application to be installed recorded in the installation application record file.

[0020] According to another embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor of a computer, the computer executes the method described in the embodiment of the present application.

[0021] According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.

[0022] According to another embodiment of the present application, a computer program product or a computer program includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.

[0023] In an embodiment of the present application, an installation request of an application to be installed is intercepted through a package management service in the system, and the installation package of the application to be installed is backed up when it is determined that the application to be installed is applying for installation for the first time; a control communication object is obtained from a three-party interactive service in the system, and a request installation method of the control communication object is called to send the installation application of the application to be installed to the three-party application; installation review information fed back by the feedback method in the installation control object called by the three-party application is received, the installation review information is obtained by the user reviewing the installation application, and the installation control object is located in the system service; the installation request method in the three-party interactive service is called to determine whether the user agrees to install the application to be installed based on the installation review information; if the user agrees to install, the backed-up installation package is obtained and the installation process of the application to be installed is triggered.

[0024] In this way, the package management service in the system can effectively intercept installation requests for applications to be installed in any form. Furthermore, for installation behaviors intercepted by the package management service, an installation application can be sent to the third-party application by calling the request installation method in the control communication object in the third-party interactive service. Then, effective installation control can be performed according to the user's dynamic control needs in the third-party application. Furthermore, for the first application for installation, since the installation package is backed up, although the interception interrupts the installation progress, it is possible to continue waiting for the third-party application to call the feedback method in the installation control object to feedback the user's installation review information and execute the installation. The interception of a certain installation behavior will not block the processing of other installation requests, effectively realizing asynchronous installation. Furthermore, on the whole, it is possible to intercept any form of application installation behavior, and it can be controlled according to the user's dynamic control needs, while realizing asynchronous installation of the application, and the overall project maintenance is simple, and it can be reused for multiple projects and platforms. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] 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.

[0026] Figure 1 A schematic diagram of an installation management and control architecture according to an embodiment of the present application is shown.

[0027] Figure 2 A flow chart of an installation control method according to an embodiment of the present application is shown.

[0028] Figure 3 A flowchart of installation control according to an embodiment of the present application in a scenario is shown.

[0029] Figure 4 A block diagram of an installation control device according to an embodiment of the present application is shown.

[0030] Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0031] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.

[0032] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).

[0033] For example, the installation control method provided in the embodiment of the present disclosure includes a series of steps, but the installation control method provided in the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the installation control device provided in the embodiment of the present disclosure includes a series of units, but the device provided in the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units that need to be set to obtain relevant information or perform processing based on information.

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0035] Figure 1The schematic diagram of the installation control architecture according to an embodiment of the present application is schematically shown, under which the installation control architecture may include an application installer 110, a system 120 and a third-party application 130, wherein the system 120 may include a package management service 121 (PMS, PackageManagerService), a third-party interaction service 122 and a system service 123 (SystemService). In a specific example, the system may be an Android system.

[0036] Figure 2 A flowchart of an installation control method according to an embodiment of the present application is schematically shown. The executor of the installation control method can be any device with processing capabilities, such as a television, computer, mobile phone, smart watch, and household appliances.

[0037] See also Figure 1 and Figure 2 The installation management and control method of the embodiment of the present application may include steps S210 to S250.

[0038] Step S210, intercepting the installation request of the application to be installed through the package management service in the system, and backing up the installation package of the application to be installed when it is determined that the application to be installed is applying for installation for the first time; Step S220, obtaining the control communication object from the three-party interactive service in the system, and calling the request installation method of the control communication object to send the installation application of the application to be installed to the three-party application; Step S230, receiving the installation review information fed back by the three-party application calling the feedback method in the installation control object, the installation review information is obtained by the user through reviewing the installation application, and the installation control object is located in the system service; Step S240, calling the installation request method in the three-party interactive service to determine whether the user agrees to install the application to be installed according to the installation review information; Step S250, if the user agrees to install, obtaining the backed up installation package and triggering the installation process of the application to be installed.

[0039] In this way, the package management service in the system can effectively intercept any form of application installation requests for applications to be installed. Furthermore, for installation behaviors intercepted by the package management service, by calling the request installation method in the control communication object in the three-party interactive service, an installation application can be sent to the three-party application. Then, effective installation control can be performed according to the user's dynamic control needs in the three-party application. Furthermore, for the first application for installation, since the installation package is backed up, although the interception interrupts the installation progress, it is possible to continue waiting for the three-party application to call the feedback method in the installation control object to feedback the user's installation review information and execute the installation. The interception of a certain installation behavior will not block the processing of other installation requests, effectively realizing asynchronous installation. Furthermore, on the whole, it is possible to intercept any form of application installation behavior, and it can be controlled according to the user's dynamic control needs, while realizing asynchronous installation of applications. Moreover, the overall project maintenance is simple and can be reused for multiple projects and platforms.

[0040] The following describes the various steps performed when performing installation control under the embodiments of the present application and further optional specific embodiments.

[0041] Step S210: intercepting the installation request of the application to be installed through the package management service in the system, and backing up the installation package of the application to be installed when it is determined that the application to be installed is applying for installation for the first time.

[0042] The package management service (PMS) in the system is a key service in the system. The package management service can be responsible for the package management and permission management of applications. The package management service can implement functions including application upgrade, installation, uninstallation, metadata maintenance and permission control.

[0043] Any application installation request initiated in any form for the application to be installed will enter the package management service for core installation operations through various signature verifications. At this time, the package management service can intercept installation requests from all installation paths.

[0044] After intercepting the installation request of the application to be installed, it can be determined whether the application to be installed is the first application for installation. If it is determined that the application to be installed is the first application for installation, the installation package of the application to be installed can be backed up, specifically in the predetermined package backup path. For the first application for installation, since the installation package is backed up, although the interception interrupts the installation progress, it is possible to continue waiting for the third-party application to call the feedback method in the installation control object to feedback the user's installation review information and execute the installation. The interception of a certain installation behavior will not block the processing of other installation requests, effectively realizing asynchronous installation.

[0045] In one embodiment, before intercepting the installation request of the application to be installed by the package management service in the system, the method further includes:

[0046] Through the third-party application, the installation control object is obtained from the system service, and the callback function method in the installation control object is called to pass the callback function object to the system service; through the system service, the callback function object is encapsulated into the control communication object and the control communication object is passed into the three-party interactive service.

[0047] The system service provides an installation control object, which can be obtained and used by third-party applications. After the system is started, the third-party application is started, and the user implements the callback function object (Callback object) in the third-party application. The third-party application can obtain the installation control object from the system service and call the callback function method (setCallback method) in the installation control object to pass the callback function object to the system service. The package management service in the system can use the control communication object as a medium to transmit application installation control related data (such as installation application, etc.) to the third-party application.

[0048] Then, the system service encapsulates the callback function object into a management and control communication object and passes the management and control communication object into the three-party interactive service. Subsequently, the package management service in the system can obtain the management and control communication object from the three-party interactive service in the system when needed, and call the request installation method in the management and control communication object to send an installation application for the application to be installed to the three-party application.

[0049] Taking the Android system as an example, an installation control object named AuthorityControlPermissionManager can be registered in the system service registration file (SystemServiceRegistry.java file) of the system service. The installation control object can be obtained and used by third-party applications through the system service access method (context.getSystemService).

[0050] In one embodiment, backing up the installation package of the application to be installed when determining that the application to be installed is applied for installation for the first time may include:

[0051] Parse the installation package of the application to be installed to obtain package information; query whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path; if not, call the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path.

[0052] For the application to be installed that is intercepted for installation, the package management service in the system can parse the installation package of the application to be installed to obtain package information, which can be the package name or other package description information. The package management service can further query whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path.

[0053] If it does not exist, it means that the application to be installed is applying for installation for the first time. At this time, calling the package backup method in the three-party interactive service can back up the installation package of the application to be installed in the predetermined package backup path. After backing up the installation package, you can use the backed-up installation package after confirming the installation.

[0054] Furthermore, in some embodiments, after parsing the installation package of the application to be installed and obtaining the package information, it is possible to: determine whether the three-party interactive service is started; if started, query whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path; if not started, execute the predetermined failed installation process to end the installation.

[0055] In one embodiment, after querying whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path, the method may further include:

[0056] If it exists, the installation confirmation method in the three-party interactive service is called to determine whether the package information is recorded in the preset allowed installation file, and the backed up installation package in the predetermined package backup path is deleted; if there is a record, the first predetermined successful installation process is executed for the application to be installed to install the application to be installed based on the installation package of the application to be installed; if there is no record, the predetermined failed installation process is executed for the application to be installed.

[0057] If it exists, it means that the application to be installed is not the first time to apply for installation (because as described in the previous steps, the application to be installed that applies for installation for the first time will back up the corresponding installation package in the predetermined package backup path), which means that the application to be installed has been installed before. At this time, the package management service calls the installation confirmation method in the three-party interactive service to further determine whether the package information is recorded in the preset allowed installation file. At the same time, the package management service can delete the backed up installation package in the predetermined package backup path, and can delete the historical installation application record information of the application to be installed recorded in the installation application record file.

[0058] The preset allowed installation file is used to record the package information corresponding to the applications that are allowed to be installed. For example, if the user specifies a set of applications to be allowed to be installed through the launcher in the device, the package information of the installation packages corresponding to these applications can be recorded in the preset allowed installation file. If the package management service determines that the package information is recorded in the preset allowed installation file, it means that the application to be installed is an application that is allowed to be installed. Then, the first predetermined successful installation process is performed on the application to be installed, and the application to be installed can be installed based on the current installation package of the application to be installed.

[0059] On the contrary, if there is no record, it means that the application to be installed is an application that is not allowed to be installed, and executing a predetermined failed installation process for the application to be installed can end the installation process of the application to be installed.

[0060] In one embodiment, if the package backup path does not exist, calling the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path includes:

[0061] If it does not exist, determine whether the control communication object is passed in the three-party interactive service; if it is passed in, call the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path; if it is not passed in, execute the predetermined failed installation process to end the installation of the application to be installed.

[0062] In this embodiment, if it does not exist, it means that the application to be installed is applying for installation for the first time. At this time, it is first determined whether the control communication object is passed in the three-party interactive service. If it is passed, it means that the package management service in the system can use the control communication object to transmit application installation control related data to the three-party application, that is, the application that applies for installation for the first time can send an installation application to the three-party application, and then the package backup method in the three-party interactive service can be called to back up the installation package in the predetermined package backup path. After backing up the installation package, the backed-up installation package can be used after confirming the installation.

[0063] Otherwise, if it is not passed in, it means that the package management service in the system cannot send an installation application to the third-party application for the application that is applying for installation for the first time. At this time, executing the predetermined failed installation process can end the installation of the application to be installed. Further, it can also record that the control communication object or callback function object is empty.

[0064] Step S220, obtaining a management and control communication object from the three-party interactive service in the system, and calling the request installation method of the management and control communication object to send an installation application of the application to be installed to the three-party application.

[0065] The three-party interaction service is a service set up in the system that can be used for data interaction between three-party applications and related services in the system (such as package management services). The control communication objects passed in the three-party interaction service can be used by the package management service in the system to pass application installation control related data to the three-party application.

[0066] After executing the package backup record process, the package management service in the system can obtain the control communication object from the three-party interactive service and call the request installation method of the control communication object to send the installation application of the application to be installed to the three-party application.

[0067] After sending the installation application of the application to be installed to the third-party application, the predetermined failed installation process is executed to suspend the installation progress of the application to be installed, waiting for the user to perform subsequent steps through the installation review information fed back by the third-party application.

[0068] Step S230, receiving the installation review information fed back by the feedback method in the installation control object called by the third-party application, the installation review information is obtained by the user reviewing the installation application, and the installation control object is located in the system service. Step S240, calling the installation request method in the third-party interactive service to determine whether the user agrees to install the application to be installed based on the installation review information.

[0069] After sending the installation application to the third-party application, the user in the third-party application can review the installation application in real time or after waiting for a long time, and the installation review information obtained can be passed to the package management service in the system by calling the installation feedback method in the installation control object by the third-party application.

[0070] If the package management service in the system receives installation review information transmitted by the installation feedback method in the installation control object called by the third-party application, the installation request method in the third-party interactive service is further called to further determine whether the user agrees to install the application to be installed based on the installation review information.

[0071] Step S250: If the user agrees to install, the backup installation package is obtained and the installation process of the application to be installed is triggered.

[0072] For the application to be installed that is applied for installation for the first time, if the user agrees to install, the backup installation package is obtained and the installation process of the application to be installed is triggered, and the installation can be completed.

[0073] Furthermore, in one embodiment, after backing up the installation package of the application to be installed when determining that the application to be installed is the first application for installation, the method also includes: recording the installation application record information of the application to be installed in an installation application record file; correspondingly, if the user agrees to install, obtaining the backed-up installation package and triggering the installation process of the application to be installed, including: if the user agrees to install, querying whether the installation application record information of the application to be installed is stored in the installation application record file; if so, calling the silent installation method in the three-party interactive service to obtain the backed-up installation package and triggering a new installation request; intercepting the new installation request through the package management service in the system, and calling the installation confirmation method in the three-party interactive service to determine whether the package information of the installation package is recorded in the preset allowed installation file; if so, executing the second predetermined successful installation process for the application to be installed to install the application to be installed based on the backed-up installation package.

[0074] When it is determined that the application to be installed is applied for installation for the first time, the installation package of the application to be installed can be backed up, and the installation application record information of the application to be installed can be recorded in the installation application record file.

[0075] If the user agrees to install, then further query whether the installation application record information of the application to be installed is stored in the installation application record file; if it is stored, it means that the application to be installed is legally installed, and at this time, the silent installation method in the three-party interactive service can be called to obtain the backup installation package and trigger a new installation request, which will be intercepted again by the package management service in the system. On the contrary, if it is not stored, it means that the application to be installed is illegally installed, and the predetermined failed installation process can be executed to end the installation.

[0076] After interception, the package management service will call the installation confirmation method in the three-party interactive service to determine whether the package information of the installation package is recorded in the preset allowed installation file; if there is a record, it means that the application to be installed is an application that is allowed to be installed, and the second predetermined successful installation process is further executed for the application to be installed, and the application to be installed is installed based on the backup installation package. If there is no record, it means that the application to be installed is an application that is not allowed to be installed, and the predetermined failed installation process can be executed to end the installation. In this way, the installation of the application to be installed is further effectively controlled, and the reliability of installation control is further improved.

[0077] In one embodiment, after the installation request method in calling the three-party interactive service determines whether the user agrees to install the application to be installed based on the installation review information, the method also includes: if the user does not agree to install, deleting the backup installation package; and deleting the installation application record information of the application to be installed recorded in the installation application record file.

[0078] If the user does not agree to install, it means that the application to be installed is not agreed to be installed by the user in the third-party application. At this time, delete the backup installation package and delete the installation application record information of the application to be installed recorded in the installation application record file.

[0079] In order to better implement the installation control method provided in the embodiment of the present application, the above embodiment is further described below in conjunction with the process of application installation control in a scenario. In this scenario, by applying Figure 1 The architecture shown in the figure is combined with the aforementioned embodiments of the present application to implement application installation management. Figure 3 As shown, specifically, the process of application installation management in this scenario may include steps S310 to S3110.

[0080] Step S310: The third-party application obtains the installation management object from the system service.

[0081] Step S320: construct a callback function object in the third-party application.

[0082] Step S330: The third-party application calls the callback function method in the installation management object to pass the callback function object to the system service.

[0083] Step S340: encapsulate the callback function object into the management and control communication object through the system service.

[0084] Step S350: transferring the managed communication object to the three-party interactive service through the system service.

[0085] Step S360: the application installation program initiates an installation request for the application program to be installed.

[0086] Step S370: intercepting the installation request of the application to be installed through the package management service in the system.

[0087] Step S380, parsing the installation package of the application to be installed to obtain package information.

[0088] Step S390, query whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path; if not, call the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path; and record the installation application record information of the application to be installed in the installation application record file.

[0089] Step S3110, obtaining a management and control communication object from the three-party interactive service in the system.

[0090] Step S3120: Call the request installation method of the control communication object to send an installation application of the application to be installed to the third-party application.

[0091] Step S3130: The third-party application calls the feedback method in the installation control object to feed back the installation review information to the package management service.

[0092] Step S3140: Calling the installation request method in the three-party interactive service to determine whether the user agrees to install the application to be installed based on the installation review information.

[0093] Step S3150: If the user agrees to the installation, query whether the installation application record information of the application to be installed is stored in the installation application record file.

[0094] Step S3160: If there is storage, call the silent installation method in the three-party interactive service to obtain the backup installation package.

[0095] Step S3170, triggering a new installation request.

[0096] Step S3180: The package management service in the system intercepts the new installation request.

[0097] Step S3190: The package management service calls the installation confirmation method in the three-party interactive service to determine whether the package information of the installation package is recorded in the preset allowed installation file.

[0098] Step S3200: If there is a record, a second predetermined successful installation process is executed for the application to be installed to install the application to be installed based on the backup installation package.

[0099] Among them, after querying whether there is a backed up installation package corresponding to the package information in the predetermined package backup path in step S390, if it exists, the installation confirmation method in the three-party interactive service is called to determine whether the package information is recorded in the preset allowed installation file, and the backed up installation package in the predetermined package backup path is deleted; if there is a record, the first predetermined successful installation process is executed for the application to be installed, so as to install the application to be installed based on the installation package of the application to be installed; if there is no record, the predetermined failed installation process is executed for the application to be installed.

[0100] If it does not exist in step S390, the package backup method in the three-party interactive service is called to back up the installation package of the application to be installed in the predetermined package backup path, which may specifically include: if it does not exist, determining whether the control communication object is passed in the three-party interactive service; if it is passed in, calling the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path; if it is not passed in, executing the predetermined failed installation process to end the installation of the application to be installed.

[0101] In this scenario, by combining and applying the aforementioned embodiments of the present application to achieve application installation control, the package management service in the system can effectively intercept any form of application installation requests initiated by the application to be installed. Furthermore, for the installation behavior intercepted by the package management service, by calling the request installation method in the control communication object in the three-party interactive service, the installation application can be sent to the three-party application. Then, effective installation control can be performed according to the user's dynamic control needs in the three-party application. Furthermore, for the first application for installation, since the installation package is backed up, although the interception interrupts the installation progress, it is possible to continue waiting for the three-party application to call the feedback method in the installation control object to feedback the user's installation review information and execute the installation. The interception of a certain installation behavior will not block the processing of other installation requests, and asynchronous installation is effectively achieved. Furthermore, on the whole, it is possible to intercept any form of application installation behavior, and it can be controlled according to the user's dynamic control needs, while realizing asynchronous installation of the application, and the overall project maintenance is simple, and it can be reused for multiple projects and platforms.

[0102] In order to facilitate better implementation of the installation control method provided in the embodiment of the present application, the embodiment of the present application also provides an installation control device based on the above installation control method. The meanings of the terms are the same as those in the above installation control method, and the specific implementation details can refer to the description in the method embodiment. Figure 4 A block diagram of an installation control device according to an embodiment of the present application is shown.

[0103] like Figure 4As shown, the installation control device 400 may include: an interception module 410 can be used to intercept the installation request of the application to be installed through the package management service in the system, and back up the installation package of the application to be installed when it is determined that the application to be installed is applied for installation for the first time; the application module 420 can be used to obtain the control communication object from the three-party interactive service in the system, and call the request installation method of the control communication object to send the installation application of the application to be installed to the three-party application; the receiving module 430 can be used to receive the installation review information fed back by the feedback method in the installation control object called by the three-party application, the installation review information is obtained by the user reviewing the installation application, and the installation control object is located in the system service; the judgment module 440 can be used to call the installation request method in the three-party interactive service to determine whether the user agrees to install the application to be installed according to the installation review information; the installation module 450 can be used to obtain the backup installation package and trigger the installation process of the application to be installed if the user agrees to install.

[0104] In some embodiments of the present application, before intercepting the installation request of the application to be installed through the package management service in the system, the device also includes a setting module, which is used to: obtain the installation control object from the system service through the third-party application, and call the callback function method in the installation control object to pass the callback function object to the system service; encapsulate the callback function object into the control communication object through the system service and pass the control communication object into the three-party interactive service.

[0105] In some embodiments of the present application, the interception module is used to: parse the installation package of the application to be installed to obtain package information; query whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path; if not, call the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path.

[0106] In some embodiments of the present application, after querying whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path, the interception module is used to: if so, call the installation confirmation method in the three-party interactive service to determine whether the package information is recorded in the preset allowed installation file, and delete the backed-up installation package in the predetermined package backup path; if there is a record, execute the first predetermined successful installation process for the application to be installed, so as to install the application to be installed based on the installation package of the application to be installed; if there is no record, execute the predetermined failed installation process for the application to be installed.

[0107] In some embodiments of the present application, the interception module is used to: if it does not exist, determine whether the control communication object has been passed into the three-party interactive service; if it has been passed in, call the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path; if it has not been passed in, execute the predetermined failed installation process to end the installation of the application to be installed.

[0108] In some embodiments of the present application, after backing up the installation package of the application to be installed when determining that the application to be installed is the first application for installation, the interception module is used to: record the installation application record information of the application to be installed in the installation application record file; correspondingly, if the user agrees to install, obtain the backup installation package and trigger the installation process of the application to be installed, including: if the user agrees to install, query whether the installation application record information of the application to be installed is stored in the installation application record file; if it is stored, call the silent installation method in the three-party interactive service to obtain the backup installation package, and trigger a new installation request; intercept the new installation request through the package management service in the system, and call the installation confirmation method in the three-party interactive service to determine whether the package information of the installation package is recorded in the preset allowed installation file; if it is recorded, execute the second predetermined successful installation process for the application to be installed to install the application to be installed based on the backup installation package.

[0109] In some embodiments of the present application, after the installation request method in calling the three-party interactive service determines whether the user agrees to install the application to be installed based on the installation review information, the interception module is used to: delete the backup installation package if the user does not agree to install; and delete the installation application record information of the application to be installed recorded in the installation application record file.

[0110] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0111] In addition, the present application also provides an electronic device, such as Figure 5 As shown, Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown, specifically:

[0112] The electronic device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0113] in:

[0114] The processor 501 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the computer device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.

[0115] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0116] The electronic device also includes a power supply 503 for supplying power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 503 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0117] The electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0118] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 501 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 will run the computer program stored in the memory 502, thereby realizing various functions in the aforementioned embodiments of the present application, such as the processor 501 may perform the following steps:

[0119] Through the package management service in the system, the installation request of the application to be installed is intercepted, and when it is determined that the application to be installed is applied for installation for the first time, the installation package of the application to be installed is backed up; the control communication object is obtained from the three-party interactive service in the system, and the request installation method of the control communication object is called to send the installation application of the application to be installed to the three-party application; the installation review information fed back by the feedback method in the installation control object called by the three-party application is received, and the installation review information is obtained by the user reviewing the installation application, and the installation control object is located in the system service; the installation request method in the three-party interactive service is called to determine whether the user agrees to install the application to be installed according to the installation review information; if the user agrees to install, the backed up installation package is obtained and the installation process of the application to be installed is triggered.

[0120] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0121] To this end, an embodiment of the present application further provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided in the embodiment of the present application.

[0122] The storage medium may be a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0123] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0124] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0125] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.

Claims

1. An installation control method, characterized in that: include: intercepting the installation request of the application to be installed through the package management service in the system, and backing up the installation package of the application to be installed when it is determined that the application to be installed is applying for installation for the first time; Obtaining a control communication object from a three-party interactive service in the system, and calling a request installation method of the control communication object to send an installation application of the application to be installed to the three-party application; Receive installation review information fed back by the third-party application calling the feedback method in the installation control object, where the installation review information is obtained by the user reviewing the installation application, and the installation control object is located in the system service; Calling the installation request method in the three-party interactive service to determine whether the user agrees to install the application to be installed according to the installation review information; If the user agrees to install, the backup installation package is obtained and the installation process of the application to be installed is triggered.

2. The method according to claim 1, characterized in that Before intercepting the installation request of the application to be installed by the package management service in the system, the method further includes: Obtaining the installation control object from the system service through the third-party application, and calling a callback function method in the installation control object to pass the callback function object to the system service; Through the system service, the callback function object is encapsulated into the management and control communication object and the management and control communication object is passed into the three-party interactive service.

3. The method according to claim 1, characterized in that The backing up the installation package of the application to be installed when it is determined that the application to be installed is applied for installation for the first time includes: Parsing the installation package of the application to be installed to obtain package information; Query whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path; If it does not exist, the package backup method in the three-party interactive service is called to back up the installation package of the application to be installed in the predetermined package backup path.

4. The method according to claim 3, characterized in that After querying whether there is a backed-up installation package corresponding to the package information in the predetermined package backup path, the method further includes: If it exists, calling the installation confirmation method in the three-party interactive service to determine whether the package information is recorded in the preset allowed installation file, and deleting the backed-up installation package in the predetermined package backup path; If there is a record, executing a first predetermined successful installation process for the application to be installed, so as to install the application to be installed based on the installation package of the application to be installed; If there is no record, a predetermined failed installation process is executed for the application to be installed.

5. The method according to claim 3, characterized in that: If the package does not exist, calling the package backup method in the three-party interactive service to back up the installation package of the application to be installed in the predetermined package backup path includes: If not, determining whether the control communication object is passed into the three-party interactive service; If it is passed in, the package backup method in the three-party interactive service is called to back up the installation package of the application to be installed in the predetermined package backup path; If not, a predetermined failed installation process is executed to end the installation of the application to be installed.

6. The method according to any one of claims 1 to 5, characterized in that: After backing up the installation package of the application to be installed when determining that the application to be installed is the first application to be installed, the method further includes: Recording the installation application record information of the application to be installed in an installation application record file; Correspondingly, if the user agrees to install, the backup installation package is obtained and the installation process of the application to be installed is triggered, including: If the user agrees to install, query whether the installation application record file stores the installation application record information of the application to be installed; If there is storage, calling the silent installation method in the three-party interactive service to obtain the backup installation package and triggering a new installation request; intercepting the new installation request through the package management service in the system, and calling the installation confirmation method in the three-party interactive service to determine whether the package information of the installation package is recorded in the preset allowed installation file; If there is a record, a second predetermined successful installation process is performed on the application to be installed to install the application to be installed based on the backup installation package.

7. The method according to claim 6, characterized in that After the installation request method in calling the three-party interactive service determines whether the user agrees to install the application to be installed according to the installation review information, the method further includes: If the user does not agree to the installation, delete the backup installation package; And, deleting the installation application record information of the application to be installed recorded in the installation application record file.

8. An installation control device, characterized in that: include: An interception module, used to intercept the installation request of the application to be installed through the package management service in the system, and back up the installation package of the application to be installed when it is determined that the application to be installed is applying for installation for the first time; An application module, used to obtain a control communication object from a three-party interactive service in the system, and call a request installation method of the control communication object to send an installation application of the application to be installed to the three-party application; A receiving module, configured to receive installation audit information fed back by the third-party application calling a feedback method in an installation control object, wherein the installation audit information is obtained by a user reviewing the installation application, and the installation control object is located in a system service; A judgment module, used to call the installation request method in the three-party interactive service to judge whether the user agrees to install the application to be installed according to the installation review information; The installation module is used to obtain the backup installation package and trigger the installation process of the application to be installed if the user agrees to install.

9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 7.