CN110399135B - Method and device for installing application program - Google Patents

Method and device for installing application program Download PDF

Info

Publication number
CN110399135B
CN110399135B CN201810569358.4A CN201810569358A CN110399135B CN 110399135 B CN110399135 B CN 110399135B CN 201810569358 A CN201810569358 A CN 201810569358A CN 110399135 B CN110399135 B CN 110399135B
Authority
CN
China
Prior art keywords
program
installation
application
target application
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810569358.4A
Other languages
Chinese (zh)
Other versions
CN110399135A (en
Inventor
江沛合
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810569358.4A priority Critical patent/CN110399135B/en
Publication of CN110399135A publication Critical patent/CN110399135A/en
Application granted granted Critical
Publication of CN110399135B publication Critical patent/CN110399135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a method and a device for installing an application program, which relate to the technical field of Internet, and the method comprises the following steps: and the application management program downloads the target application program according to the downloading request of the user. When the installation target application program is initiated, the installation parameters of the application management program are modified into the installation parameters which are issued by the application management server and matched with the installation program, and the target application program is sent to the installation program, so that the installation program can install the target application program. Because the application management program modifies the installation parameters of the application management program into the installation parameters matched with the installation program when the application management program initiates installation of the target application program, the installation program can take the target application program as the application program downloaded from the application market of the manufacturer and install the target application program without guiding the re-downloading of the application program, thereby avoiding repeated downloading of the application program by a user and bringing convenience for the user to install the application program.

Description

Method and device for installing application program
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a method and a device for installing an application program.
Background
At present, some domestic mobile device manufacturers such as vivo, oppo, huawei, millet and the like all have application markets, and users of the mobile device manufacturers can download and install required application programs in the corresponding application markets. However, when the user downloads the application program from another application market except the application market of the manufacturer and installs the application program, the mobile device corresponding to the manufacturer intercepts installation of the application program and guides the user to the application market of the manufacturer to download the application program again, which causes the user to download and install the application program repeatedly, which wastes the flow of the user and brings inconvenience to the user to install the application program.
Disclosure of Invention
The embodiment of the invention provides a method and a device for installing an application program, which are used for avoiding repeated downloading of the application program by a user and improving the convenience of the user for installing the application program.
In a first aspect, an embodiment of the present invention provides a method for installing an application, where the method includes: and the application management program downloads the target application program specified by the user according to the downloading request of the user. When the target application program is initiated to be installed, the installation parameters of the application management program are modified into installation parameters which are issued by the application management server and matched with the installation program; and sending the target application program to the installation program so that the installation program can install the target application program. The application management program downloads the target application program in advance according to the downloading request of the user and indicates that the user wants to install the target application program, so that when the application management program initiates installation of the target application program, the installation parameters of the application management program are modified into the installation parameters which can be verified by the installation program, and when the installation program installs the target application program, the installation program is considered as installation initiated by an application market of a manufacturer and the target application program is identified as the application program downloaded from the application market of the manufacturer and installed, and the user is not guided to download the target application program again, so that the user is prevented from repeatedly downloading and installing the application program, and convenience is brought to the user for installing the application program.
Optionally, before initiating installation of the target application, it is confirmed that a user has input an instruction to install the target application. Because the installation instruction is input by the user before the target application program is installed, the target application program is initiated to be installed, and the target application program is the application program which the user wants to install, the user experience can be improved by preventing the installation program from intercepting the application program when the target application program is installed.
Optionally, the modifying the installation parameter of the application management program into an installation parameter that is issued by the application management server and matches with the installation program specifically includes:
calling a startActivities interface when the target application program is started to be installed; and are
And when the startActivities interface is monitored through a hook component, modifying the installation parameters of the application management program into installation parameters which are issued by the application management server and matched with the installation program. The call condition of the startActivities interface is monitored in real time through the hook component, so that when the application management program is determined to call the startActivities interface, the target application program which needs to be installed and downloaded by the application management program can be found in time, and the installation parameters of the application management program can be modified in time, so that the installation program cannot intercept the installation initiated by the target application program.
Optionally, the sending the target application to the installer specifically includes:
and sending the target application program to the installation program through the startActivities interface.
Optionally, when initiating installation of the target application, querying a user whether to authorize use of a network interception component;
when the user is determined to be authorized to use the network interception component, controlling the network interception component to intercept an installation parameter verification request sent by the installation program to a manufacturer server;
and when the installation of the target application program is monitored to be finished, releasing the network interception of the installation program by the network interception component. Since the installer determines that the installation parameters of the application manager do not match the pre-stored installation parameters in the whitelist, and further sending an installation parameter verification request to the manufacturer server for verification, in the embodiment of the present invention, when the installation of the target application is initiated, under the condition that a user is authorized to use the network interception component, the network interception component intercepts an installation parameter verification request sent by an installation program to a manufacturer server, so that the manufacturer server is prevented from verifying the installation parameters of the application management program, and when the installation program does not receive a message that the installation parameter verification returned by the manufacturer server fails, the target application will continue to be installed, rather than directing the user to go to the vendor's own application marketplace to re-download the application level, therefore, the user is prevented from repeatedly downloading the application program, and convenience is brought to the user for installing the application program.
Optionally, the controlling the network interception component to intercept an installation parameter verification request sent by the installer to the vendor server includes:
and setting the installation program as an application program for the network interception component to perform network interception through an Application Programming Interface (API) so as to control the network interception component to intercept an installation parameter verification request sent by the installation program to a manufacturer server. The installation program is set as the application program intercepted by the network interception component, so that the network interception component intercepts the installation parameter verification request when receiving the installation parameter verification request sent by the installation program, the manufacturer server cannot verify the installation parameters of the application management program, and the installation program continues to install the target application program when not receiving the verification result returned by the manufacturer server, so that the user is prevented from repeatedly downloading and installing the application program.
Optionally, the intercepting, by the control network component, an installation parameter verification request sent by the installer to the vendor server includes:
and setting the IP data packet sent by the installation program as the IP data packet for the network interception component to carry out network interception so as to control the network interception component to intercept the IP data packet carrying the installation parameters when receiving the IP data packet carrying the installation parameters and sent to a manufacturer server by the installation program. The IP packet sent by the installation program is set as the IP packet intercepted by the network interception component, so that the network interception component intercepts the IP packet when determining that the received IP packet is the IP packet sent by the installation program, the situation that the installation parameter of the application management program in the IP packet is verified after the manufacturer server receives the IP packet sent by the installation program is prevented, and the installation program is further enabled to install the target application program when the installation program does not receive the installation parameter verification result returned by the manufacturer server, so that the situation that the user is guided to the application market of the manufacturer to download the application program again is avoided, and convenience is brought to the user for installing the application program.
In a second aspect, an embodiment of the present invention provides an apparatus for installing an application, including:
the downloading module is used for downloading the target application program specified by the user according to the downloading request of the user;
the parameter adjusting module is used for modifying the installation parameters of the application management program into installation parameters which are issued by the application management server and are matched with the installation program when the target application program is initiated to be installed;
and the sending module is used for sending the target application program to the installation program so that the installation program can install the target application program.
Optionally, the system further comprises a receiving module;
the receiving module is used for confirming that a user inputs an instruction for installing the target application program before the parameter adjusting module initiates the installation of the target application program.
Optionally, the parameter adjusting module is specifically configured to:
calling a startActivities interface when the target application program is started to be installed; and when the startActivities interface is monitored through a hook component, modifying the installation parameters of the application management program into installation parameters which are issued by the application management server and matched with the installation program.
Optionally, the sending module is specifically configured to:
and sending the target application program to the installation program through the startActivities interface.
Optionally, the system further comprises a network interception module;
the network interception module is used for inquiring whether a user authorizes to use the network interception component when the target application program is started to be installed;
when the user is determined to be authorized to use the network interception component, controlling the network interception component to intercept an installation parameter verification request sent by the installation program to a manufacturer server;
and when the installation of the target application program is monitored to be finished, releasing the network interception of the installation program by the network interception component.
Optionally, the network intercepting module is specifically configured to:
and setting the installation program as an application program for the network interception component to perform network interception through an Application Programming Interface (API) so as to control the network interception component to intercept an installation parameter verification request sent by the installation program to a manufacturer server.
Optionally, the network intercepting module is specifically configured to:
and setting the IP data packet sent by the installation program as the IP data packet for the network interception component to carry out network interception so as to control the network interception component to intercept the IP data packet carrying the installation parameters when receiving the IP data packet carrying the installation parameters and sent to a manufacturer server by the installation program.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes at least one processing unit and at least one storage unit, where the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit is caused to execute the steps of any one of the above methods.
In a fourth aspect, an embodiment of the present invention provides a computer-readable medium, which stores a computer program executable by a terminal device, and when the program runs on the terminal device, the program causes the terminal device to execute any of the steps of the method described above.
In the embodiment of the invention, the application management program downloads the target application program in advance according to the downloading request of the user and indicates that the user wants to install the target application program, so when the installation of the target application program is initiated, the installation parameters of the application management program are modified into the installation parameters which can be verified by the installation program, and when the installation program installs the target application program, the target application program which is considered to be initiated by the application market owned by the manufacturer is installed, and the installation program can identify the target application program as the application program downloaded from the application market owned by the manufacturer without guiding the user to download the target application program again, so that the user is prevented from repeatedly downloading and installing the application program, convenience is brought to the user for installing the application program, and meanwhile, the flow cost for downloading the application program again is saved for the user. The installation parameter modified by the application management program is the installation parameter which is issued by the application management server and matched with the installation program, and the installation parameter matched with the installation program can be updated according to the actual requirement of a manufacturer, but the installation parameter which is obtained by the application management server and matched with the installation program has certain hysteresis, so that the installation program still can be identified as a non-manufacturer own application market by the installation program after the application management program modifies the installation parameter, and an installation parameter verification request is sent to the manufacturer server. When the installation program does not receive the verification result returned by the manufacturer server, the target application program can be continuously installed, so that when the installation parameters of the application management program are not matched with the white list in the installation program, the installation parameter verification request sent to the manufacturer server by the installation program can be intercepted, the smooth installation of the target application program by the installation program is realized, and the repeated downloading and installation of the application program by a user are avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1a is a schematic diagram illustrating installation of a target application according to an embodiment of the present invention;
fig. 1b is an application scenario diagram according to an embodiment of the present invention;
FIG. 1c is a schematic diagram of an anti-washout strategy according to an embodiment of the present invention;
fig. 1d is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for installing an application according to an embodiment of the present invention;
fig. 3 is a schematic view of a download interface of an application management program according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an application management page of an application management program according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a network interception method according to an embodiment of the present invention;
fig. 6 is a schematic view of an installation interface of an application management program according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a network interception method according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating a method for installing an application according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus for installing an application according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
For convenience of understanding, terms referred to in the embodiments of the present invention are explained below.
Installing a program: the installation program is used for assisting a user to install other software or drivers. The names of the installation programs are usually "setup", "install", and the like. The installation program also typically provides a removal program (or anti-installation program) to assist the user in removing the software from the computer.
The application management program comprises the following steps: the method is used for managing application programs, WIFI, pictures and the like on the mobile device, such as the Tencent WIFI manager, the Tencent mobile phone manager and the like.
Washing the bag: and when the mobile equipment is installed, guiding a user to go to channel B to download the installation package of the same application program, so that the mobile equipment is finally installed with the installation package of the application program downloaded from channel B.
VpnService: one service component provided by the system with the Android of more than 4.0 can intercept an IP data layer of a network layer, and network requests sent by application programs in the Android mobile phone can be finally intercepted by VpnService.
Hook: hook is a system mechanism provided in Windows to replace "interrupts" under DOS, with chinese translated as a "Hook" or "Hook". After a Hook event has occurred for a particular system event, the program will be notified of the event by the system upon the occurrence of the Hook event, at which point the program can respond to the event at a first time. In the Android operating system, the system maintains a set of event distribution mechanism of the system. The application is executed step by step down according to the flow of events. Hook intercepts and monitors the transmission of events before the events are transmitted to a terminal, integrates own codes into the process of the Hook program to become a part of a target process, and then processes some own specific events.
In a specific practical process, the inventor of the present invention finds that, when a user downloads an application program from an application market owned by a non-manufacturer and installs the application program, an installation program in a mobile device corresponding to the manufacturer displays a popup window, and guides the user to re-download the application program from the application market owned by the manufacturer through the popup window, and at this time, the user repeatedly downloads and installs the application program, which not only brings inconvenience to the user, but also increases the flow cost for the user to download the application program, so that a method for preventing the installation program from guiding the user to re-download and install the application program is required to improve the convenience of the user in installing the application program.
To this end, the inventors of the present invention considered that if a user downloads a target application from a non-vendor-owned application marketplace (such as an application manager) and initiates installation of the target application, the user trusts the non-vendor-owned application marketplace and also wishes to install the target application on the terminal device. If the installer intercepts the installation of the target application program and guides the user to go to the application market owned by the manufacturer to download the application program again, the situation is obviously contrary to the intention of the user. The inventor of the present invention analyzes and discovers that, as shown in fig. 1a, an application management program initiates an installation target application program, and the installation program compares installation parameters of the application management program with installation parameters in a pre-stored white list, wherein the installation parameters in the white list are issued by a manufacturer server according to actual conditions and are updated regularly. The installation parameters in the white list are matched with the application market of the vendor or matched with the application market of the vendor partner. And when the installation program determines that the installation parameters of the application management program are matched with the installation parameters in the white list, directly installing the target application program. Because the memory corresponding to the installation program is limited, only part of installation parameters in the manufacturer server are stored in the white list. And when the installation program determines that the installation parameters of the application management program are not matched with the installation parameters in the white list, sending an installation parameter verification request to the manufacturer server, and further verifying the installation parameters of the application management program by the manufacturer server. And when the manufacturer server judges that the installation parameters of the application management program are legal, sending a message that the verification is passed to the installation program so that the installation program directly installs the target application program. And when the manufacturer server judges that the installation parameters of the application management program are illegal, sending a message that the verification fails to pass to the installation program, intercepting and guiding the installation by the installation program at the moment, specifically displaying a popup window to guide a user to go to an application market of the manufacturer to download the application program and install the application program. And when the installation program does not receive the verification result message returned by the manufacturer server within the set time period, the installation program enables the installation parameters of the default application management program to be legal and directly installs the target application program.
In the installation process of the target application program, the installation program mainly realizes the installation parameter verification of the application management program through a preset white list and sends an installation parameter verification request to a manufacturer server, and as long as one verification passes in the two verification processes, the installation program can consider the application management program initiating the installation to be legal and can not guide a user to go to an application market of the manufacturer to download the application program again. Thus, to avoid the installer from intercepting the installation of the target application, the installation parameters of the application manager may be matched to a white list in the installer. And the installation parameters before the application management program is modified are not matched with the white list in the installation program, so in the embodiment of the invention, when the application management program initiates the installation of the target application program, the installation parameters of the application management program are modified into the installation parameters matched with the white list in the installation program. In order to modify the installation parameters of the application management program, the installation parameters matched with the white list of the installation program are obtained in advance and stored in the application management server. And the management server issues installation parameters to the application management program according to the manufacturer corresponding to the installation program.
However, the white list in the installation program is updated according to the installation parameters issued by the manufacturer server, and a certain time is required for obtaining the installation parameters matched with the white list of the installation program, which may cause that the installation parameters issued to the application management program by the application management server are not updated, so that the application management program after the installation parameters are modified may still be identified as an application market which is not owned by the manufacturer by the installation program. At this time, the installation program further sends an installation parameter verification request to the manufacturer server, and when the installation program does not receive a verification result returned by the manufacturer server within a set time period, the target application program is directly installed. Based on the characteristics, in the embodiment of the invention, when the user authorization is obtained, when the application management program initiates installation of the target application program, the network interception component is adopted to intercept the installation parameter verification request sent by the installation program to the manufacturer server, so that the manufacturer server cannot verify the installation parameters of the application management program and return a verification result, and the installation program directly installs the target application program when the verification result is not received within a set time period, thereby avoiding repeated downloading and installation of the application program by the user, bringing convenience to the user for installing the application program, and reducing the flow cost for downloading the application program.
The method for installing the application program in the embodiment of the present invention may be applied to an application scenario as shown in fig. 1b, where the application scenario includes the terminal device 101, the application management server 102, and the vendor server 103.
The terminal device 101 is an electronic device with network communication capability, and the electronic device may be a smart phone, a tablet computer, a portable personal computer, or the like. The terminal apparatus 101 has installed thereon an application management program, an installation program, various kinds of application programs, and the like. The terminal apparatus 101 is connected to an application management server 102 and a vendor server 103 via a wireless network.
The application management server 102 is a server corresponding to the application management program, and the application management server 102 is a server or a server cluster or a cloud computing center formed by a plurality of servers. The application management server 102 controls the application management program to implement the method for installing the application program in the embodiment of the present invention, which specifically includes the following control forms, as shown in table 1.
Table 1.
Control name Form of control
Regional control Method for installing application program aiming at regional control implementation
On/off control Method for controlling opening or closing of application program for implementation and installation
Manufacturer control Method for using different installation application programs for different manufacturers
Installation parameter control Setting multiple installation parameters for a manufacturer, and selecting by user according to weight
Application management program installation control Supporting cloud configuration and installation of target application program
The region control in table 1 means that the application management server 102 can control the application management program to use the method for installing the application program in the embodiment of the present invention in a different region, for example, the application management server 102 sets a method for installing the application program that users in beijing and shanghai can use the method for installing the application program provided in the embodiment of the present invention, and other regions cannot be used. When the user downloads the target application program from the application management program in Beijing and Shanghai, the application management server 102 issues a package washing prevention strategy to the application management program in Beijing and Shanghai, and the application management program in Beijing and Shanghai adopts the package washing prevention strategy to avoid the installation program from washing the target application program after receiving the package washing prevention strategy. Since the application management server 102 does not issue the anti-washout policy to the application management programs located in the regions other than beijing and shanghai, when the application management programs in these regions download the target application program and initiate installation of the target application program, the installation program verifies the installation parameters of the application management program to determine whether to guide the user to go to the application market owned by the manufacturer to download the application program.
The on/off control in table 1 means that the application management server 102 may remotely control the application management program to be turned on or off, for example, if the application management server 102 sends an instruction to start the anti-washing package to the application management program, after receiving the instruction, the application management program modifies the installation parameters of the application management program when initiating the installation of the target application program, and at the same time, starts the network interception component to intercept the installation parameter verification request sent by the installation program to the vendor server, thereby preventing the installation program from washing the target application program. If the application management server 102 sends an instruction for stopping the anti-washing package to the application management program, after the application management program receives the instruction, when the installation of the target application program is initiated, the installation program verifies the installation parameters of the application management program to determine whether to guide the user to go to the application market of the manufacturer to download the application program.
The manufacturer control in table 1 refers to issuing different anti-washing policies for installation programs of different manufacturers, where the anti-washing policies may be installation parameters of an application management program modified to installation parameters matched with the installation program when initiating installation of a target application program; or when the installation target application program is initiated, the control network interception component intercepts an installation parameter verification request sent by the installation program to the manufacturer server; or when the installation target application program is initiated, modifying the installation parameters of the application management program into the installation parameters matched with the installation program, and simultaneously controlling the network interception component to intercept the installation parameter verification request sent by the installation program to the manufacturer server.
For some manufacturers, the anti-washing policy sent by the application management server to the application management program is that when the application management program initiates installation of a target application program, the installation parameters of the application management program are modified into installation parameters matched with the installation program, so that the installation program directly installs the target application program.
For some manufacturers, the anti-washing package policy sent by the application management server to the application management program is that when the installation target application program is initiated, the network interception component is controlled to intercept the installation parameter verification request sent to the manufacturer server, so that the installation program directly installs the target application program.
For example, when installing an application, some manufacturers' installers first match the installation parameters of the application management program with a pre-stored white list, if the installation parameters do not match the pre-stored white list, send an installation parameter verification request to a manufacturer server for verification, and if the manufacturer server fails in verification, the installer guides a user to download the application again to the application market of the manufacturers. For such manufacturers, the anti-washing policy issued by the application management server to the application management program is that when the application management program initiates installation of the target application program, the installation parameter of the application management program is modified into an installation parameter matched with the installation program, and the network interception component is controlled to intercept an installation parameter verification request sent by the installation program to the manufacturer server, so that the installation program directly installs the target application program, as shown in fig. 1 c.
The installation parameter control in table 1 means that installation parameters of own application markets of different vendors and installation parameters of application markets of partners of different vendors are stored in the application management server 102. The application management server 102 issues different installation parameters to the application management program for different vendors. When the installation parameters are issued, only the installation parameters of the application market of the manufacturer itself can be issued, only the installation parameters of the application market of the manufacturer partner can be issued, the installation parameters of the application market of the manufacturer itself and the installation parameters of the application market of the manufacturer partner can be issued at the same time, then the installation parameters of the application market of the manufacturer itself and the installation parameters of the application market of the manufacturer partner are set with different weights, for example, the installation parameters of the application market of the manufacturer itself are set with higher weights, the installation parameters of the application market of the manufacturer partner are set with lower weights, and the application management program selects the installation parameters according to the weights.
The application management program installation control in table 1 means that the terminal device can download and install the application management program from the application management server 102. Secondly, after the application management program is installed, if the user downloads the target application program from the application management program, the application management program sends a download request to the application management server 102, and the application management server 102 returns an installation package of the target application program.
The manufacturer server 103 is a server corresponding to the installation program, and the installation programs on the terminal devices of different manufacturers correspond to different manufacturer servers, for example, the installation program on the brand a mobile phone corresponds to the brand a manufacturer server. The manufacturer server stores the application programs in the manufacturer own application market and the installation parameters of the manufacturer own application market. The manufacturer server updates the white list of the installation program by issuing the installation parameters to the installation program. The vendor server 103 is a server or a server cluster or a cloud computing center consisting of several servers.
Further, in the application scenario diagram shown in fig. 1d, a schematic structural diagram of the terminal device 101 is shown in fig. 1c, and the terminal device 101 includes: an application management program 1011, a startActivities interface 1012, an installer 1013, a Hook component 1014, a network intercept component 1015.
The application management program 1011 downloads a target application program designated by the user in accordance with a download request from the user. The application management program 1011 may directly initiate installation of the target application program after the target application program is downloaded, or may initiate installation of the target application program only when receiving an instruction for installing the target application program input by the user. The application management program 1011 calls the startActivities interface 1012 after initiating installation of the target application program. The Hook component 1014 monitors the calling condition of the startActivities interface 1012 in real time, modifies the installation parameters of the application management program into the installation parameters which are sent by the application management server 102 and matched with the installation program 1013 when determining that the application management program 1011 calls the startActivities interface, and then sends the target application program to the installation program 1013 through the startActivities interface by the application management program 1011.
The application management program 1011, after initiating installation of the target application, may ask the user whether to authorize the use of the network interception component 1015 in the form of a popup, and upon determining that the user authorizes the use of the interception component, the application management program 1011 controls the network interception component 1015 to intercept the installation parameter verification request sent by the installer 1013 to the vendor server 103. When the application management program 1011 monitors that the installation of the target application program is finished, the network interception of the installation program 1013 by the network interception component 1015 is released.
Based on the application scenario diagram shown in fig. 1b and the schematic structural diagram of the terminal device shown in fig. 1d, an embodiment of the present invention provides a flow of a method for installing an application, where the flow of the method may be executed by an application management program, and as shown in fig. 2, the method includes the following steps:
in step S201, the application management program downloads the target application program specified by the user according to the download request of the user.
The application management program may be an application program on the management terminal device, such as a Tencent cell phone manager, or may be a program on the management terminal device, such as a Tencent WIFI manager, or may be a program on the management terminal device, such as a file, a picture, an audio, a video, and the like.
The application manager also provides an application downloading function, for example, the downloading interface is as shown in fig. 3, and if the user wants to download the WeChat, the user clicks the "enter" icon on the right side of the WeChat in fig. 3 with a finger, so as to download the WeChat.
Step S202, when the installation target application program is initiated, the installation parameters of the application management program are modified into the installation parameters which are issued by the application management server and matched with the installation program.
In a possible implementation manner, after the application management program finishes downloading the target application program, the installation of the target application program is directly initiated, for example, after the application management program finishes downloading the WeChat, the installation of the WeChat is directly initiated.
In another possible implementation, after the application management program finishes downloading the target application program, the relevant installation file of the target application program is saved in the terminal device, and when the user needs to install the target application program, an instruction for installing the target application program is input in the application management program. And after receiving an instruction for installing the target application program input by the user, the application management program initiates the installation of the target application program. Illustratively, as shown in fig. 4, the user downloads both the WeChat and QQ applications from the application manager. And then, when the user enters the application management page corresponding to the application management program, the user can see that two application programs to be installed exist in the application management page. And if the user needs to install the WeChat at the moment, clicking an arrow on the right side of the WeChat with a finger to initiate the installation of the WeChat.
The installation parameters of the application management program comprise the package name, the occupied memory and the like of the application management program.
The application market distinguishes the application market from other application markets by the installation parameters. For example, the manufacturer a uses the manufacturer name as the package name of the application market, and the server of the manufacturer a issues the package name of the application market to the installation program corresponding to the manufacturer a, and the installation program stores the package name in the white list. Since the application manager is not the vendor's own application market, the installation parameters of the application manager are not the same as the installation parameters of the vendor's own application market. In order to modify the installation parameters of the application management program into the installation parameters matched with the white list of the installation program, the installation parameters matched with the white list of the installation program need to be known in advance.
In one possible implementation, the manufacturer-owned application market may be analyzed manually to determine installation parameters of the manufacturer-owned application market, and then the installation parameters of each manufacturer-owned application market are saved in the application management server. And the application management server issues installation parameters of application markets carried by different manufacturers to the application management program aiming at the different manufacturers. And after receiving the installation parameters of the application market of the manufacturer, the application management program modifies the installation parameters of the application management program into the installation parameters of the application market of the manufacturer. Illustratively, vendor B's own package name for the application market is set to "pingpaiB". And the application management server issues the packet name 'pingpai B' of the application market of the manufacturer B to an application management program in the terminal equipment corresponding to the manufacturer B. And when the application management program initiates installation of the target application program, the package name of the application management program is modified into pingpaB.
In specific implementation, the application management program modifies the installation parameters of the application management program into installation parameters which are issued by the application management server and are matched with the installation program through a Hook component, and the specific process is as follows:
when the application management program initiates installation of the target application program, the startActivities interface is called, and when the startActivities interface is monitored through the Hook component, the installation parameters of the application management program are modified into the installation parameters which are issued by the application management server and matched with the installation program.
The Hook component monitors the startActivities interface in real time, when the Hook component monitors that the application management program calls the startActivities interface to install the target application program, the Hook component can inform the application management program to modify the installation parameters of the Hook component into the installation parameters which are issued by the application management server and matched with the installation program, and the Hook component can also directly modify the installation parameters of the application management program into the installation parameters which are issued by the application management server and matched with the installation program.
Step S203, sending the target application to the installer, so that the installer installs the target application.
Optionally, the application manager sends the target application to the installer through a startActivities interface. And when receiving the target application program, the installation program compares the installation parameters of the application management program which initiates installation with a preset white list, directly installs the target application program if the installation parameters of the application management program are matched with the white list, and sends an installation parameter verification request to the manufacturer server to further verify the installation parameters of the application management program if the installation parameters of the target application management program are not matched with the white list. The application management program downloads the target application program in advance according to the downloading request of the user and indicates that the user wants to install the target application program, so that when the application management program initiates installation of the target application program, the installation parameters of the application management program are modified into the installation parameters which can be verified by the installation program, and when the installation program installs the target application program, the installation program is considered to be installation initiated by the application market owned by the manufacturer, the target application program is identified as the application program downloaded from the application market owned by the manufacturer, and the user is not guided to download the target application program again, so that the repeated downloading and installation of the application program by the user are avoided, and convenience is brought to the installation of the application program by the user.
Because the installation parameters of the application management program after being modified are issued by the application management server, the installation parameters matched with the installation program in the installation program can be updated according to the actual requirements of manufacturers, and the application management server needs a certain time for obtaining the installation parameters matched with the installation program, the application management program after being modified is still possibly identified as an application market which is not owned by the manufacturers by the installation program, and an installation parameter verification request is sent to the manufacturer server. In order to prevent the manufacturer server from verifying the installation parameters of the application management program, an embodiment of the present invention provides a network interception method, as shown in fig. 5, including the following steps:
step S501, when the installation target application program is initiated, inquiring whether the user authorizes the use of the network interception component.
The network interception component comprises VpnService. Specifically, as shown in fig. 6, when the user initiates installation wechat, the pop-up window asks the user whether to authorize the application manager to use VpnService, and if the user clicks the button "yes", the application manager may use VpnService. If the user clicks the button "no," the application manager may not use VpnService.
And step S502, when the user is determined to be authorized to use the network interception component, controlling the network interception component to intercept an installation parameter verification request sent by the installation program to the manufacturer server.
In one possible implementation, the application management program sets the installation program as an application program for the network interception component to perform network interception through the application programming interface API, so as to control the network interception component to intercept the installation parameter verification request sent by the installation program to the vendor server. Illustratively, in the android system above version 5.0, the application management application sets the installation program to pass through the VPN through the addlowreapplication of the API interface of the VpnService, but the VPN does not process nor forward, so that the installation parameter verification request sent by the installation program to the vendor server cannot be forwarded to the vendor server, and the vendor server is prevented from verifying the installation parameters of the application management program.
In a possible implementation manner, the IP data packet sent by the installation program is set as an IP data packet for the network interception component to perform network interception, so as to control the network interception component to intercept the IP data packet carrying the installation parameters when receiving the IP data packet carrying the installation parameters and sent by the installation program to the vendor server. Exemplarily, in the android system of version 4.0-5.0, the application management program sets an IP packet of the installation program to pass through the VPN through addRoute of VpnService, but does not forward or directly disassemble the IP packet, so that the installation program cannot surf the internet. Specifically, the following describes a procedure of VpnService intercepting an IP sent by an installer, as shown in fig. 7, including the following steps:
step S701, the VpnService intercepts the IP data packet sent by the installation program.
Step S702, the IP data packet is analyzed, and the source port of the IP data packet is obtained.
In step S703, it is determined whether the mapping relationship between the source port and the UID is stored in the memory, if yes, step S704 is executed, otherwise step S708 is executed.
Step S704, determining the UID of the installer according to the mapping relationship between the source port and the UID.
Step S705, determining whether the UID of the installer is in the white list allowing the internet access, if so, executing step S706, otherwise, executing step S707.
Step S706, allowing the installation program to surf the Internet.
Step S707, the IP packet sent by the application program is disassembled or discarded.
Step S708, analyzing the/proc/net/tcp file and/proc/net/udp file to obtain the mapping relation between the source port and the UID.
In the embodiment of the invention, when the application management program initiates installation of the target application program, the network interception component intercepts the installation parameter verification request sent by the installation program to the manufacturer server under the condition that the user is authorized to use the network interception component, so that the manufacturer server is prevented from verifying the installation parameters of the application management program, and the installation program continues to install the target application program instead of guiding the user to go to the application market of the manufacturer to download the application program again when the installation program does not receive the message that the installation parameter verification returned by the manufacturer server fails, thereby avoiding the repeated downloading of the application program by the user and bringing convenience for the user to install the application program.
And step S503, when the installation of the target application program is monitored to be finished, releasing the network interception of the installation program by the network interception component.
And when the target application program is installed, generating an icon corresponding to the target application program, and stopping the network interception of the installation program by the network interception component when the application management program monitors the icon of the target application program.
Since intercepting the internet access request of the installation program by using the network interception component for a long time will affect the installation program to install other application programs, the application management program needs to release the network interception of the installation program by the network interception component when monitoring that the installation of the target application program is finished. If the application management program initiates installation of the target application program and does not detect that the target application program is installed within a set time period, the user may cancel the installation of the target application program at this time, or the target application program fails in the installation process, and at this time, the application management program also removes the network interception of the network interception component to the installation program, so that the user is prevented from having bad experience due to the fact that the installation program cannot surf the internet for a long time.
For better explaining the embodiment of the present invention, the following describes, in combination with a specific implementation scenario, a method for installing an application program according to the embodiment of the present invention, where a target application program is set as a WeChat and a vendor is set as m, and an application management server issues a package name of the vendor m to an application management program in advance, as shown in fig. 8, the method includes the following steps:
step S801, the application management program downloads the wechat application package according to the download request of the user.
In step S802, the application management program receives an instruction for installing the wechat application package input by the user.
In step S803, the application management program initiates installation of the wechat application package, and executes step S804 and step S811.
In step S804, the application management program calls a startActivities interface.
Step S805, the Hook component monitors that the startActivities interface is called by the application management program for installing the WeChat application package, and informs the application management program to modify the package name of the Hook component.
In step S806, the application manager modifies the package name of itself to the package name of the vendor m.
In step S807, the application management program sends the wechat application package to the installer.
Step S808, the installer determines whether the package name of the application management program matches the pre-stored white list, if yes, step S809 is executed, otherwise step S810 is executed.
Step S809, the installer directly installs the wechat application package.
In step S810, the installer sends a package name verification request to the vendor server, where the package name verification request carries the package name of the application management program.
In step S811, the user is asked whether to authorize the application manager to use VpnService, if yes, step S812 is executed, otherwise, step S815 is executed.
In step S812, the application manager sets VpnService to intercept the network request of the installer through the API of VpnService.
In step S813, when the VpnService receives the packet name verification request sent by the installer, the VpnService intercepts the packet name verification request.
In step S814, the installation program installs the wechat application package when the installation program does not receive the verification result fed back by the vendor server within the set time period.
In step S815, when the VpnService receives the packet name verification request sent by the installer, the VpnService forwards the verification request to the vendor server.
In step S816, the installer receives the verification result sent by the vendor server.
In step S817, the installer determines whether the verification result is a verification pass, if so, step S818 is executed, otherwise, step S819 is executed.
In step S818, the installer intercepts the installation of the wechat application package and guides the user to go to the application market of the vendor m to download the wechat application package.
In step S819, the installer installs the wechat application package.
In the embodiment of the invention, the application management program downloads the target application program in advance according to the downloading request of the user, which indicates that the user wants to install the target application program. When the installation of the target application program is initiated, the installation parameters of the application management program are modified into the installation parameters which can be verified by the installation program, so that the installation program can not guide the user to download the target application program again, the user is prevented from repeatedly downloading and installing the application program, convenience is brought to the user for installing the application program, and meanwhile, the flow cost for downloading the application program again is saved for the user. Under the condition that the user authorizes the application management program to use the network interception component, if the application management program initiates target application program installation, the network interception component is adopted to intercept an installation parameter verification request sent by the installation program to a manufacturer server, so that the manufacturer server can not verify the installation parameters of the application management program. When the installation program does not receive the verification result returned by the manufacturer server, the target application program can be continuously installed, so that when the installation program determines that the installation parameters of the application management program are not matched with the white list, the installation program can also intercept the installation parameter verification request sent to the manufacturer server by the installation program, the direct installation of the target application program by the installation program is realized, and the repeated downloading and installation of the application program by a user are avoided.
After the target application program is installed by adopting the method for installing the application program in the embodiment of the invention, the success rate of direct installation of the target application program can be effectively improved, for example, the application management program is set as a Tencent WIFI manager, and an anti-washout strategy is not issued aiming at the version 3.2 of the Tencent WIFI manager. Aiming at the 3.3 version of Tencent WIFI housekeeper, anti-washing strategies of four manufacturers, namely Huacheng, OPPO, ViVO and Samsung, are issued. Counting the success rate of downloading the target application program from the Tencent WIFI Administer 3.2 version and the Tencent WIFI Administer 3.3 version and directly installing the target application program on the terminal equipment corresponding to the manufacturer, as shown in Table 2:
table 2.
Manufacturer(s) Tencent WIFI Administrator 3.2 version Tencent WIFI Administrator 3.3 version Amount of change
OPPO 27.25% 27.52% 1.01%
ViVO 37.54% 55.59% 48.11%
Huawei 37.37% 45.00% 20.40%
Three stars 54.58% 59.98% 9.9%
As can be seen from table 2, after the anti-washout policy for different manufacturers is issued in the Tencent WIFI concierge version 3.3, the success rate of downloading and directly installing the application program from the Tencent WIFI concierge version 3.3 by the user can be effectively improved, the repeated downloading and installation of the application program by the user are avoided, the traffic cost for downloading the application program is reduced, and convenience is brought to the user for installing the application program.
Based on the same technical concept, an embodiment of the present invention provides an apparatus for installing an application, as shown in fig. 9, the apparatus 900 includes: a downloading module 901, a parameter adjusting module 902, a sending module 903, a receiving module 904 and a network intercepting module 905.
A downloading module 901, configured to download a target application program specified by a user according to a downloading request of the user;
a parameter adjusting module 902, configured to modify, when installation of the target application is initiated, an installation parameter of the application management program into an installation parameter that is issued by the application management server and matches with the installation program;
a sending module 903, configured to send the target application to the installer, so that the installer installs the target application.
Optionally, a receiving module 904 is further included;
the receiving module is used for confirming that a user inputs an instruction for installing the target application program before the parameter adjusting module initiates the installation of the target application program.
Optionally, the parameter adjusting module 902 is specifically configured to:
calling a startActivities interface when the target application program is started to be installed; and when the startActivities interface is monitored through a hook component, modifying the installation parameters of the application management program into installation parameters which are issued by the application management server and matched with the installation program.
Optionally, the sending module 903 is specifically configured to:
and sending the target application program to the installation program through the startActivities interface.
Optionally, a network interception module 905 is further included;
the network interception module 905 is configured to query, when initiating installation of the target application program, whether a user authorizes use of a network interception component;
when the user is determined to be authorized to use the network interception component, controlling the network interception component to intercept an installation parameter verification request sent by the installation program to a manufacturer server;
and when the installation of the target application program is monitored to be finished, releasing the network interception of the installation program by the network interception component.
Optionally, the network interception module 905 is specifically configured to:
and setting the installation program as an application program for the network interception component to perform network interception through an Application Programming Interface (API) so as to control the network interception component to intercept an installation parameter verification request sent by the installation program to a manufacturer server.
Optionally, the network interception module 905 is specifically configured to:
and setting the IP data packet sent by the installation program as the IP data packet for the network interception component to carry out network interception so as to control the network interception component to intercept the IP data packet carrying the installation parameters when receiving the IP data packet carrying the installation parameters and sent to a manufacturer server by the installation program.
Based on the same technical concept, an embodiment of the present invention provides a terminal device, as shown in fig. 10, including at least one processor 1001 and a memory 1002 connected to the at least one processor, where a specific connection medium between the processor 1001 and the memory 1002 is not limited in the embodiment of the present invention, and the processor 1001 and the memory 1002 in fig. 10 are connected through a bus as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present invention, the memory 1002 stores instructions executable by the at least one processor 1001, and the at least one processor 1001 may execute the steps included in the method for installing an application program by executing the instructions stored in the memory 1002.
The processor 1001 is a control center of the terminal device, and can connect various parts of the terminal device by using various interfaces and lines, and install an application by executing or executing instructions stored in the memory 1002 and calling data stored in the memory 1002. Alternatively, the processor 1001 may include one or more processing units, and the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 1001. In some embodiments, the processor 1001 and the memory 1002 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 1001 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
Memory 1002, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 1002 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 1002 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 1002 of embodiments of the present invention may also be circuitry or any other device capable of performing a storage function to store program instructions and/or data.
The terminal device further includes an input unit 1003, a display unit 1004, a radio frequency unit 1005, an audio circuit 1006, a speaker 1007, a microphone 1008, a Wireless Fidelity (WiFi) module 1009, a bluetooth module 1010, a power supply 1011, an external interface 1012, an earphone jack 1013, and the like.
The input unit 1003 may be used to receive a request for downloading a target application program input by a user, an instruction for installing the target application program input by the user, an instruction for authorizing the application manager to use the network interception component input by the user, and the like. For example, the input unit 1003 may include a touch screen 10031 and other input devices 10032. The touch screen 10031 can collect touch operations by a user (e.g., operations by a user on or near the touch screen 10031 using any suitable object such as a finger, a joint, a stylus, etc.), i.e., the touch screen 10031 can be used to detect touch pressure and touch input position and touch input area, and drive the corresponding connection device according to a preset program. The touch screen 10031 can detect a touch operation of the touch screen 10031 by a user, convert the touch operation into a touch signal and send the touch signal to the processor 1001, or can be understood as sending touch information of the touch operation to the processor 1001, and can receive and execute a command sent by the processor 1001. The touch information may include at least one of pressure magnitude information and pressure duration information. The touch screen 10031 can provide an input interface and an output interface between the terminal device and the user. In addition, the touch screen 10031 can be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1003 may include other input devices 10032 in addition to the touch screen 10031. For example, other input devices 10032 can include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1004 may be used to display information input by a user or information provided to a user. Further, the touch screen 10031 can cover the display unit 1004, and when the touch screen 10031 detects a touch operation thereon or nearby, the touch screen 10031 transmits pressure information of the touch operation to the processor 1001 for determination. In the embodiment of the present invention, the touch screen 10031 and the display unit 1004 may be integrated into one component to implement the input, output, and display functions of the terminal device. For convenience of description, the embodiment of the present invention is schematically illustrated by taking the touch screen 10031 as the functional set of the touch screen 10031 and the display unit 1004 as an example, but in some embodiments, the touch screen 10031 and the display unit 1004 can also be taken as two separate components.
When the display unit 1004 and the touch panel are superimposed on each other in the form of a layer to form the touch screen 10031, the display unit 1004 may function as an input device and an output device, and when functioning as an output device, may be used to display an image, for example, to display an installation interface of a target application. The Display unit 1004 may include at least one of a Liquid Crystal Display (LCD), a Thin Film Transistor Liquid Crystal Display (TFT-LCD), an Organic Light Emitting Diode (OLED) Display, an Active Matrix Organic Light Emitting Diode (AMOLED) Display, an In-Plane Switching (IPS) Display, a flexible Display, a 3D Display, and the like. Some of these displays may be configured to be transparent to allow a user to see from the outside, which may be referred to as transparent displays, and the terminal device may include two or more display units according to a specific desired embodiment.
The rf unit 1005 may be used for transceiving information or receiving and transmitting signals during a call. Typically, the radio frequency circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. Further, the radio frequency unit 1005 may also communicate with a network device and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
The audio circuitry 1006, speaker 1007, and microphone 1008 can provide an audio interface between a user and a terminal device. The audio circuit 1006 may transmit the converted electrical signal of the received audio data to the speaker 1007, and the converted electrical signal is converted into a sound signal by the speaker 1007 and output. On the other hand, the microphone 1008 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1006 and then converted into audio data, and then the audio data is processed by the audio data output processor 1001, and then sent to another electronic device through the radio frequency unit 1005, or the audio data is output to the memory 1002 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and the terminal device can help the user send and receive e-mails, browse webpages, access streaming media, and the like through the WiFi module 1009, and it provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 1009, it is understood that it does not belong to the essential constitution of the terminal device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
Bluetooth is a short-range wireless communication technology. By using the bluetooth technology, the communication between mobile communication terminal devices such as a palm computer, a notebook computer, a mobile phone and the like can be effectively simplified, the communication between the devices and the Internet (Internet) can also be successfully simplified, the terminal devices enable the data transmission between the terminal devices and the Internet to be more rapid and efficient through the bluetooth module 1010, and the way is widened for wireless communication. Bluetooth technology is an open solution that enables wireless transmission of voice and data. Although fig. 10 shows the WiFi module 1009, it is understood that it does not belong to the essential constitution of the terminal device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The terminal device may also include a power source 1011 (such as a battery) for receiving external power to power the various components within the terminal device. Preferably, the power source 1011 may be logically connected to the processor 1001 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
The terminal device may further include an external interface 1012, where the external interface 1012 may include a standard Micro USB interface, and may also include a multi-pin connector, which may be used to connect the terminal device to communicate with other devices, and may also be used to connect a charger to charge the terminal device.
Although not shown, the terminal device may further include a camera, a flash, and other possible functional modules, which are not described herein.
Based on the same inventive concept, the embodiment of the present invention further provides a computer-readable storage medium, which stores computer instructions that, when executed on a terminal device, cause the terminal device to execute the steps of the method for installing an application program as described above.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (13)

1. A method of installing an application, comprising:
the application management program downloads a target application program specified by a user according to a downloading request of the user;
when the target application program is initiated to be installed, the installation parameters of the application management program are modified into installation parameters which are issued by an application management server and matched with the installation program; and ask the user whether to authorize the use of the network interception component; when the user is determined to be authorized to use the network interception component, controlling the network interception component to intercept an installation parameter verification request sent by the installation program to a manufacturer server;
sending the target application program to the installation program so that the installation program can install the target application program;
and when the installation of the target application program is monitored to be finished, releasing the network interception of the installation program by the network interception component.
2. The method of claim 1, prior to initiating installation of the target application, further comprising:
confirming that the user inputs an instruction to install the target application program.
3. The method according to claim 2, wherein the modifying the installation parameter of the application management program into an installation parameter that is delivered by an application management server and matches with the installation program specifically comprises:
calling a startActivities interface when the target application program is started to be installed; and are
And when the startActivities interface is monitored through a Hook component, modifying the installation parameters of the application management program into installation parameters which are issued by the application management server and matched with the installation program.
4. The method of claim 3, wherein sending the target application to the installer specifically comprises:
and sending the target application program to the installation program through the startActivities interface.
5. The method of claim 1, wherein the controlling the network intercept component to intercept an installation parameter validation request sent by the installer to a vendor server comprises:
and setting the installation program as an application program for the network interception component to perform network interception through an Application Programming Interface (API) so as to control the network interception component to intercept an installation parameter verification request sent by the installation program to a manufacturer server.
6. The method of claim 1, wherein the controlling network intercepting component intercepting an installation parameter verification request sent by the installer to a vendor server comprises:
and setting the IP data packet sent by the installation program as the IP data packet for the network interception component to carry out network interception so as to control the network interception component to intercept the IP data packet carrying the installation parameters when receiving the IP data packet carrying the installation parameters and sent to a manufacturer server by the installation program.
7. An apparatus for installing an application, comprising:
the downloading module is used for downloading the target application program specified by the user according to the downloading request of the user;
the parameter adjusting module is used for modifying the installation parameters of the application management program into installation parameters which are issued by the application management server and are matched with the installation program when the target application program is initiated to be installed; and are
The sending module is used for sending the target application program to the installation program so that the installation program can install the target application program;
the network interception module is used for inquiring whether the user authorizes to use the network interception component when the target application program is initiated to be installed; when the user is determined to be authorized to use the network interception component, controlling the network interception component to intercept an installation parameter verification request sent by the installation program to a manufacturer server; and when the installation of the target application program is monitored to be finished, releasing the network interception of the installation program by the network interception component.
8. The apparatus of claim 7, further comprising a receiving module;
the receiving module is used for confirming that a user inputs an instruction for installing the target application program before the parameter adjusting module initiates the installation of the target application program.
9. The apparatus of claim 8, wherein the parameter adjustment module is specifically configured to:
calling a startActivities interface when the target application program is started to be installed; and are
And when the startActivities interface is monitored through a hook component, modifying the installation parameters of the application management program into installation parameters which are issued by the application management server and matched with the installation program.
10. The apparatus of claim 9, wherein the sending module is specifically configured to:
and sending the target application program to the installation program through the startActivities interface.
11. The apparatus of claim 7, wherein the network intercept module is specifically configured to:
and setting the installation program as an application program for the network interception component to perform network interception through an Application Programming Interface (API) so as to control the network interception component to intercept an installation parameter verification request sent by the installation program to a manufacturer server.
12. The apparatus of claim 11, wherein the network intercept module is specifically configured to:
and setting the IP data packet sent by the installation program as the IP data packet for the network interception component to carry out network interception so as to control the network interception component to intercept the IP data packet carrying the installation parameters when receiving the IP data packet carrying the installation parameters and sent to a manufacturer server by the installation program.
13. A terminal device, comprising at least one processing unit and at least one memory unit, wherein the memory unit stores a computer program which, when executed by the processing unit, causes the processing unit to carry out the steps of the method according to any one of claims 1 to 6.
CN201810569358.4A 2018-06-05 2018-06-05 Method and device for installing application program Active CN110399135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810569358.4A CN110399135B (en) 2018-06-05 2018-06-05 Method and device for installing application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810569358.4A CN110399135B (en) 2018-06-05 2018-06-05 Method and device for installing application program

Publications (2)

Publication Number Publication Date
CN110399135A CN110399135A (en) 2019-11-01
CN110399135B true CN110399135B (en) 2021-08-03

Family

ID=68322341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810569358.4A Active CN110399135B (en) 2018-06-05 2018-06-05 Method and device for installing application program

Country Status (1)

Country Link
CN (1) CN110399135B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111596942A (en) * 2020-05-21 2020-08-28 四川普思科创信息技术有限公司 Method and device for forcibly triggering software upgrading and software upgrading system
CN115065627B (en) * 2022-05-20 2024-04-12 北京奇艺世纪科技有限公司 Parameter modification method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092653A (en) * 2013-01-16 2013-05-08 珠海市君天电子科技有限公司 Method and device capable of providing official application program in application market
CN103441848A (en) * 2013-08-16 2013-12-11 广东欧珀移动通信有限公司 Application authentication method and system of mobile terminal
CN105893081A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Application software installation device and method
CN107239695A (en) * 2017-04-10 2017-10-10 青岛海信移动通信技术股份有限公司 The method and mobile terminal of application program are installed in a kind of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8990901B2 (en) * 2012-05-05 2015-03-24 Citrix Systems, Inc. Systems and methods for network filtering in VPN

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092653A (en) * 2013-01-16 2013-05-08 珠海市君天电子科技有限公司 Method and device capable of providing official application program in application market
CN103441848A (en) * 2013-08-16 2013-12-11 广东欧珀移动通信有限公司 Application authentication method and system of mobile terminal
CN105893081A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Application software installation device and method
CN107239695A (en) * 2017-04-10 2017-10-10 青岛海信移动通信技术股份有限公司 The method and mobile terminal of application program are installed in a kind of mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Android移动终端隐私数据保护系统设计与实现";张斯;《中国优秀硕士学位论文全文数据库 信息科技辑》;20170215;第1-85页 *

Also Published As

Publication number Publication date
CN110399135A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
US12041165B2 (en) Key updating method, apparatus, and system
EP3716656B1 (en) Profile generation method, profile acquisition method, and related device and storage medium
EP4432274A2 (en) Control method applied to screen projection scenario and related device
US11937080B2 (en) Method for updating network access application authentication information, terminal, and server
KR102334501B1 (en) Profile transmission method, related device and storage medium
US20230020910A1 (en) Method and device for performing communication by using virtual subscriber identity module
WO2019218124A1 (en) Method for automatically switching sim cards, and electronic apparatus
WO2015131790A1 (en) Network connection method, application authentication server, terminal and router
CN110869907A (en) Method and terminal for browsing application page
CN108604281B (en) Data processing method and terminal thereof
CN109873794B (en) Protection method for denial of service attack and server
WO2013159632A1 (en) Method, firewall, terminal and readable storage medium for implementing security protection
CN105704712B (en) Network resource sharing method, mobile terminal and server
US20190347419A1 (en) Virus program cleanup method, storage medium and electronic terminal
CN110399135B (en) Method and device for installing application program
EP2869229B1 (en) Method, device and equipment for installing an application
CN108460251B (en) Method, device and system for running application program
WO2019071581A1 (en) Application startup control method and user terminal
US10628078B2 (en) Data access method and related device
CN110225106A (en) A kind of data transmission method, device and storage medium
CN114564262B (en) Control method, device, equipment and medium for popup window
CN105490810B (en) Method, device and system for processing virtual resource data
CN111918014B (en) Method and device for displaying video image
CN111338636B (en) Kernel preprocessing method, kernel preprocessing device and electronic equipment
CN114416136A (en) Application upgrading method and device

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230918

Address after: 309 West, floor 3, No. 49, Zhichun Road, Haidian District, Beijing 100080

Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 35th floor, Tencent building, Keji Zhongyi Road, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.