CN106648739A - Control method and device of application installation - Google Patents
Control method and device of application installation Download PDFInfo
- Publication number
- CN106648739A CN106648739A CN201610893982.0A CN201610893982A CN106648739A CN 106648739 A CN106648739 A CN 106648739A CN 201610893982 A CN201610893982 A CN 201610893982A CN 106648739 A CN106648739 A CN 106648739A
- Authority
- CN
- China
- Prior art keywords
- application
- installation
- terminal
- debugging bridge
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a control method and device of application installation. The method comprises the following steps: intercepting an application installation command at an application installation interface of a terminal, and identifying application installation requested by a debugging bridge end; judging the effectiveness of an installation file to obtain an effectiveness judgment result; when the installation file is ineffective, generating an application installation result showing an installation failure; when the installation file is effective, sending the application installation command to an application installer through the application installation interface for application installation, and generating an application installation result by marking the installation file of an application; and returning the application installation result by the debugging bridge end to a control end. Therefore, for a process of connecting an application management tool to the terminal, by interception of the application installation command at the application installation interface, the application installation result showing the installation failure can be obtained before the application installer calls the application installation interface to execute the application installation, and the debugging bridge end can return the application installation result to the control end to successfully carry out the process of connecting the application management tool to the terminal.
Description
Technical field
It relates to Computer Applied Technology field, control method and device that more particularly to a kind of application is installed.
Background technology
With the quick popularization of the fast-developing and various terminals of computer application, the installation applied in various terminals,
The control end that connection can be passed through is realized.Specifically, by the application management instrument run in control end, can be to being connected
Terminal realize application installation.
Application management instrument is installed to the application that terminal asks to carry out in control end, be by terminal carry out itself with
What the debugging bridge joint of control end was realized.And the process of realizing connected between application management instrument and terminal in control end is:First
One false application is installed to terminal by debugging bridge joint, determines whether terminal has been successfully connected control end with this, it is determined that eventually
End has been successfully connected after control end, just can realize the installation applied in terminal by application management instrument.
Specifically, bridged by the debugging with control end, terminal obtains this vacation using corresponding installation order, and
After user confirms that this application is installed, installation order is sent to and applies erector.Using peace of the erector to this vacation application
Dress file carries out to be malfunctioned when light weight is parsed, and then the installation of false application is stuck in using in erector.
Now, operate in different processes from the debugging bridge end for realizing debugging bridge joint using erector, debugging bridge joint
End simultaneously cannot obtain installation results, and return to the application management instrument in control end.
For application management instrument, due to there is no installation results, the flow process of its connection terminal has been also led to
Failure, and then the installation applied in terminal cannot be realized by application management instrument.
The content of the invention
In in order to solve correlation technique in the flow process that application management instrument connects terminal, due to obtaining using installation
As a result the technical problem of the flow process failure of application management instrument connection terminal is caused, present disclose provides what a kind of application was installed
Control method and device.
A kind of control method that application is installed, methods described includes:
Intercept in the application mounting interface of terminal and apply installation order, the application peace that identification debugging bridge end request is carried out
Dress;
Application installation to the debugging bridge end request carries out installation file Effective judgement, obtains Effective judgement knot
Really;
When the Effective judgement result sign installation file is invalid, knot is installed in the application for generating install failure
Really;
When the Effective judgement result sign installation file is effective, will be described by the application mounting interface
It is sent to using installation order and applies erector, triggers the application installation that the application erector performs the request;
In the application that the application erector performs the request is installed, by the installation file life for indicating the application
Into applying installation results;
The debugging bridge end obtains the application installation results, and returns to the application management instrument in control end described
Using installation results.
The control device that a kind of application is installed, including:
Identification module is intercepted, for intercepting in the application mounting interface of terminal installation order is applied, identification debugging bridge joint please
The application for carrying out is asked to install;
Effective judgement module, sentences for carrying out installation file validity to the application installation of the debugging bridge joint request
It is disconnected, obtain Effective judgement result;
Result-generation module, for when the Effective judgement result sign installation file is invalid, generating and installing
The application installation results of failure;
Performing module is installed, for when the Effective judgement result sign installation file is effective, by described
The application installation order is sent to using mounting interface applies erector, triggered the application erector and perform the request
Application install;
File indicates module, during the application for performing the request in the application erector is installed, by indicating institute
Installation results are applied in the installation file generation for stating application;
As a result acquisition module, for the debugging bridge end application installation results are obtained, and to answering in control end
The application installation results are returned with management tool.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:
Triggering in terminal is carried out using after installation, the application installation order triggered in terminal will be acquired, in application
Mounting interface is intercepted applies installation order, recognizes that bridge end is debugged in control end asks the application for carrying out to be installed, to debugging bridge joint
The application installation that end request is carried out carries out installation file Availability, obtains Effective judgement result, in Effective judgement knot
When fruit sign installation file is invalid, the application installation results of install failure are generated, thus for application management instrument connects terminal
Flow process for, by using at mounting interface using installation order interception, be able to using erector calling using install
Interface is performed to be applied before installation process, identifies that bridge end is debugged in control end asks the application for carrying out to be installed, and then is obtained
The application installation results of install failure, because this is being obtained using installation results using mounting interface, are not in application
In erector, and when Effective judgement result sign installation file is effective, by will be using installation order using mounting interface
It is sent to and applies erector, triggers and perform asked application installation using erector, and by mark in the execution of here installation
Show installation file and apply installation results to generate, thus, also provide the process of realizing of application management instrument connection terminal, and then
The installation that application management instrument is smoothly realized being applied in terminal can be passed through, therefore, debugging bridge end can be in control end
Application management instrument is returned and applies installation results, is successfully made the flow process that application management instrument connects terminal such that it is able to logical
Cross the installation that application management instrument is realized being applied in terminal.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary, this can not be limited
It is open.
Description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the enforcement for meeting the present invention
Example, and be used to together explain the principle of the present invention in specification.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure;
Fig. 2 is a kind of block diagram of the device according to an exemplary embodiment
Fig. 3 is the flow chart of the control method that a kind of application according to an exemplary embodiment is installed;
Fig. 4 is a kind of flow chart of the control method that application is installed for implementing to exemplify according to another exemplary;
Fig. 5 is that intercepting to the application mounting interface in terminal for Fig. 3 correspondence embodiments applies installation order, identification debugging bridge
The flow chart that the application installation steps that connecing end request is carried out are described;
Fig. 6 is that the application installation to debugging bridge end request of Fig. 3 correspondence embodiments carries out installation file Effective judgement,
Obtain the flow chart that Effective judgement result step is described;
Fig. 7 is the simplified diagram that control is installed in the application according to an exemplary embodiment;
Fig. 8 is the block diagram of the control device that a kind of application according to an exemplary embodiment is installed;
Fig. 9 is a kind of block diagram of the control device that application is installed for implementing to exemplify according to another exemplary;
Figure 10 is the block diagram that the details in Fig. 8 correspondence embodiments to intercepting identification module is described;
Figure 11 is the block diagram being described to the details of Effective judgement module in Fig. 8 correspondence embodiments.
Specific embodiment
Here in detail explanation will be performed to exemplary embodiment, its example is illustrated in the accompanying drawings.Explained below is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.Conversely, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects described in detail in claims, the present invention.
Fig. 1 is the schematic diagram of the implementation environment according to involved by the disclosure.The implementation environment includes terminal 110 and control end
130。
The data interaction come and gone therebetween between the application management instrument run in control end 130 and terminal 110,
Further realize the management applied in terminal 110.
Wherein, terminal 110 is various intelligent terminals, for example, smart mobile phone, panel computer, Set Top Box etc..Control end 130
By realizing its manipulation to terminal 110 with the connection of terminal 110.For example, control end 130 can be computer etc..
Fig. 2 is a kind of block diagram of the device 200 according to an exemplary embodiment.For example, 200 can be shown in Fig. 1
Terminal 110 in implementation environment.
With reference to Fig. 2, device 200 can include following one or more assemblies:Process assembly 202, memory 204, power supply
Component 206, multimedia groupware 208, audio-frequency assembly 210, sensor cluster 214 and communication component 216.
The integrated operation of the usual control device 200 of process assembly 202, such as with display, call, data communication, phase
Machine operates and records associated operation of operation etc..Process assembly 202 can include one or more processors 218 to perform
Instruction, to complete all or part of step of following methods.Additionally, process assembly 202 can include one or more modules,
The interaction being easy between process assembly 202 and other assemblies.For example, process assembly 202 can include multi-media module, with convenient
Interaction between multimedia groupware 208 and process assembly 202.
Memory 204 is configured to store various types of data to support the operation in device 200.These data are shown
Example includes the instruction of any application program for operating on the device 200 or method.Memory 204 can be by any kind of
Volatibility or non-volatile memory device or combinations thereof realization, such as static RAM (SRAM), electrically erasable
Except programmable read only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory
(PROM), read-only storage (ROM), magnetic memory, flash memory, disk or CD.Also it is stored with memory 204 one
Or multiple modules, one or more modules are configured to be performed by the one or more processors 218, with complete following Fig. 3,
All or part of step in method shown in Fig. 4, Fig. 5 and Fig. 6 are arbitrary.
Power supply module 206 provides electric power for the various assemblies of device 200.Power supply module 206 can include power management system
System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 200.
Multimedia groupware 208 is included in the screen of one output interface of offer between described device 200 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and the touch or slide related duration and pressure.Screen can also include organic
Electroluminescent display (OLED).
Audio-frequency assembly 210 is configured to output and/or input audio signal.For example, audio-frequency assembly 210 includes a Mike
Wind (MIC), when device 200 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone is matched somebody with somebody
It is set to reception external audio signal.The audio signal for being received can be further stored in memory 204 or via communication set
Part 216 sends.In certain embodiments, audio-frequency assembly 210 also includes a loudspeaker, for exports audio signal.
Sensor cluster 214 includes one or more sensors, and the state for providing various aspects for device 200 is commented
Estimate.For example, sensor cluster 214 can detect the opening/closed mode of device 200, the relative positioning of component, sensor group
Part 214 can be with the change of the position of 200 1 components of detection means 200 or device and the temperature change of device 200.At some
In embodiment, the sensor cluster 214 can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 216 is configured to facilitate the communication of wired or wireless way between device 200 and other equipment.Device
200 can access based on the wireless network of communication standard, such as WiFi.In one exemplary embodiment, communication component 216 via
Broadcast channel receives the broadcast singal or broadcast related information from external broadcasting management system.In an exemplary embodiment
In, the communication component 216 also includes near-field communication (NFC) module, to promote junction service.For example, can be based in NFC module
RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other
Technology is realizing.
In the exemplary embodiment, device 200 can be by one or more application specific integrated circuits (ASIC), numeral letter
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realizations, for performing following methods.
Fig. 3 is the flow chart of the control method that a kind of application according to an exemplary embodiment is installed.The application peace
The control method of dress is applied to the terminal 110 of implementation environment shown in Fig. 1, and the terminal 110 in one exemplary embodiment can be with
It is the device shown in Fig. 2.
As shown in figure 3, the control method that the application is installed, can perform in terminal 110, may comprise steps of.
In the step 310, the application mounting interface in terminal is intercepted and applies installation order, identification debugging bridge end ask into
Capable application is installed.
Wherein, be the interface that provided using erector using mounting interface, using erector by call this interface come
Realize the installation applied in terminal.In terminal, acquired application installation order applies peace via being sent to using mounting interface
In dress device, and then the installation of application is realized for terminal in using erector.
Terminal will be acquired applies installation order, and is sent to and applies mounting interface, now by disclosure institute
Control is installed in the application of realization, is intercepted this at using mounting interface and is applied installation order.
The application installation order acquired in terminal, for the installation applied in initiating terminal.Using installation order bag
The application installation order that debugging bridge end is application management instrument transmission in control end is included, and terminal itself triggers generation
Using installation order.
That is, the application installation order triggered in acquired terminal, it may be possible to debug bridge end request, also may be used
Can be that terminal itself triggering is generated.
Therefore, after the installation order that is applied using interception at mounting interface, need to carrying out using installation order
Identification, to identify the application installation order of debugging bridge end transmission, this is using the application installation process corresponding to installation order
The application installation process that application management instrument is carried out by debugging bridge end request as in control end.
Here, it should be understood that the disclosure will realize control for the application installation process carried out to debugging bridge end request
System.
Debugging bridge end in terminal is used to realize debugging bridge joint of the terminal itself and control end between.Answering in control end
With management tool first by the debugging bridge end Installing of Command application in terminal, now, in terminal, debugging bridge end will be received
To the application installation order that application management instrument is transmitted, and then request carries out corresponding application and installs.
In a step 330, the application installation to debugging bridge end request carries out installation file Effective judgement, obtains effectively
Property judged result.
Wherein, ask the application for carrying out to be installed, there is corresponding installation file, the installation file is in Android terminal
In be with APK (AndroidPackage, Adroid installation kit) form exist.Identified currently by abovementioned steps 310
It is that application management means requests are carried out in control end to ask the application for carrying out to be installed, then have to corresponding installation file
Effect property judges whether the corresponding installation file of confirmation is effective document.
Pass through Effective judgement result obtained from carried out Effective judgement, denote installation file effectively or nothing
Effect.
For example, for the flow process of application management instrument connection terminal in control end, by the Effective judgement for carrying out,
Will determine that it is invalid using corresponding installation file to obtain out vacation, that is, obtain indicating the invalid Effective judgement knot of installation file
Really.
In step 350, when Effective judgement result sign installation file is invalid, the application for generating install failure is installed
As a result.
Wherein, when Effective judgement result sign installation file is invalid, if proceeding the installation applied, will go out
The application installation results of existing install failure.Based on this, when Effective judgement result sign installation file is invalid, just in application peace
Dress interface generates the application installation results of install failure.
Thus for the flow process of application management instrument connection terminal in control end, can obtain at using mounting interface
To the application installation results of install failure, and then in being no longer stuck in using erector, i.e., application management instrument is realized connecting with terminal
During the flow process for connecing no longer is got lodged in using installing, it is impossible to so that realizing that application management instrument installs the debugging bridge end of application to terminal
Can know.
Specifically, under the cooperation of bridge end is debugged in the terminal, application management instrument is to terminal institute in initiation control end
The application for carrying out is installed, and the installation by realizing applying using erector in terminal.
As previously described, debug and bridge end and run in different processes using erector, therefore, debugging bridge end without
Method obtains the installation results of install failure.
And in the application installation results using the install failure generated at mounting interface, debugging bridge end can be obtained directly
.
Here it should be added that, debug bridge end, as adb (Android Debug Bridge, Android
Debugging bridger), will play a part of to debug bridge, for running the Shell (order line) of place equipment, i.e. terminal.
The application installation order that application management instrument carries out being generated using installation to terminal in control end, is by debugging
Bridge end realizes the transmission of application management instrument to terminal.
And be also by adjusting for the application installation results for subsequently being carried out are to the return of application management instrument in control end
Examination bridge end is realized.
By process as above, it is recognised that applied in the terminal installation when, will terminal application peace
Attaching mouth is carried out using the interception of installation order, and the application that identifying debugging bridge end request is carried out is installed, for debugging bridge joint
The application of end request is installed, and carries out installation file Effective judgement, and the application peace of install failure is generated when installation file is invalid
Dress result, and then application management instrument is obtained in that and applies installation results, for being confirmed using installation results with obtaining
Set up between terminal in the control end being connected for application management instrument, realized using installation control, energy by the disclosure
It is enough to realize and the connection between terminal, so as to realize that application management instrument is installed to the application that terminal is carried out on this basis,
Therefore, the debugging bridge end that solving the problems, such as application management instrument cannot pass through in terminal installs application.
In step 370, when Effective judgement result sign installation file is effective, by applying using mounting interface
Installation order is sent to applies erector, and triggering is installed using the application that erector performs request.
Wherein, after confirming that installation file is effective by Effective judgement, you can confirm current debugging bridge end request
Application installation be really using installation process, and and application management instrument connects the flow process of terminal in non-executing control end,
Now, directly by realizing that application is installed using erector.
Thus, with reference to process as above, installed to the application that terminal is carried out by application management instrument in control end,
Process is realized there is provided application management instrument connection terminal, application management instrument is also provided by its connection with terminal,
The process of realizing of application is installed to terminal, and then the installation that application management instrument is smoothly realized being applied in terminal can be passed through.
For the control method that the application that the disclosure is realized is installed, in its implementing in Android terminal, adjust
Examination bridge end with the addition of to installing the strategy being controlled to the application of terminal using management tool.
In Android terminal, allow users to realize Android ends by control ends such as computers by debugging bridge end
Application in end is installed, and this also can provide convenience chance while user is facilitated to some bad applications.
Such as, in the case of user is unwitting, some bad applications are stealthily attached in Android terminal, to user
Cause inconvenience or puzzlement.
Therefore, debug bridge end to the addition of to installing the strategy being controlled to the application of terminal using management tool, i.e.,
When application management instrument is installed to terminal and applied, need what operation is carried out to Android terminal to the clear and definite control end of user,
Obtain to be installed after user confirms.
Therefore, with reference to process as above, after the Effective judgement for realizing installation file, in Effective judgement
As a result will prompt the user whether that confirming that this is applied installs using erector when sign installation file is effective.
And then after user confirms that this application is installed, using erector the application peace of debugging bridge end request can be performed
Dress.
In step 380, in the application that request is performed using erector is installed, by the installation file life of sign application
Into applying installation results.
Wherein, carry out, using during installation, installation file being entered using mounting interface calling using erector
Rower shows that it is the installation file from debugging bridge end request to indicate this installation file, in order to return to application management instrument
Using installation results.
In step 390, debugging bridge end is obtained applies installation results, and should to the application management instrument return of control end
Use installation results.
Wherein, using the application installation results of the install failure generated at mounting interface, debugged by the bridge joint in terminal
End, will return to the application management instrument of control end.
Fig. 4 is the flow chart of the control method that a kind of application according to an exemplary embodiment is installed.Step 310 it
Before, the control method that the application is installed, as shown in figure 4, may comprise steps of.
In step 410, the debugging for being carried out and control end between by terminal itself is bridged, and debugging bridge end receives control
The application installation order of application management instrument transmission in end.
Wherein, the triggering of application management instrument carries out the installation applied in terminal in control end, on the one hand, the peace of this application
Dress is application management instrument to realize being installed with the vacation application that the connection of terminal is initiated;On the other hand, then it is application management work
Have the real application initiated after realizing being connected with terminal to install.
No matter which kind of application is installed, and the application management instrument in control end all will apply installation order to terminal transmission, this
When, terminal will be received by the debugging bridge end of itself.
In step 430, the application mounting interface by debugging bridge end and carrying out is called, and will be sent to using installation order
Using mounting interface.
Wherein, the Shell threads of terminal are run by debugging bridge end, and then is installed by Shell thread dispatchings application
Interface, will be sent to using installation order and apply mounting interface.
By process as above, implement to provide using the initiation installed in terminal, and then with reference to Fig. 3 pair
The embodiment answered, you can realize the connection of application management instrument and terminal, and by this connection, realize application management instrument to
Terminal installs the process of application, and then solves conflicting between application management instrument and debugging bridge end in control end.
Fig. 5 is the description that the details to step 310 according to an exemplary embodiment is carried out.The step 310, such as schemes
Shown in 5, may comprise steps of.
In step 311, installation order is being applied using interception at mounting interface.
Wherein, for being sent to using the application installation order of mounting interface, intercepted, thus can intercept and obtain
All application installation orders in terminal, and it is not transmitted directly onto and apply erector.
In step 313, it is determined that according to calling using the thread of mounting interface using installation order.
Wherein, as previously described, after interception is applied installation order, will identify that what debugging bridge end was asked
Using installation order, this identification process according to call using mounting interface thread realize.
In terminal, bridge end is debugged by running Shell threads to carry out using the debugging of mounting interface, and then will receive
Application installation order be sent to and apply mounting interface.
Therefore, it is corresponding, for the application installation that debugging bridge end request is carried out is identified, it is only necessary to really
Recognize that to call using mounting interface be Shell, you can determine corresponding application installation order be debug that bridge end request carries out should
With installation.
Based on this, after the installation order that is applied using interception at mounting interface, it is determined that installing life according to this application
Order is called using the thread of mounting interface.
In step 315, the application installation that debugging bridge end request is carried out is identified according to the corresponding title of thread.
Wherein, for according to calling using the thread of mounting interface using installation order, the title corresponding to it will be determined,
When this title is Shell, you can determine that the currently requested application for carrying out is installed debugging bridge end request and carried out.
By process as above, the application installation identification carried out by Fig. 3 correspondence embodiments is provided and implemented
Process, and then process is easily implemented by this, the application realized by Fig. 3 correspondence embodiments is installed control and is further carried
High efficiency.
Fig. 6 is the description that the details to step 330 according to an exemplary embodiment is carried out.The step 330, such as schemes
Shown in 6, may comprise steps of.
In step 331, connect the software kit access service of system intialization in terminal.
Wherein, software kit access service, as DefaultContainerService are serviced,
The validity of installation file is judged in DefaultContainerService services.
It is lack of competence read-write peace in the process that application is installed according to its security strategy for Android terminal
Dress file, and only DefaultContainerService services have permission, accordingly, it would be desirable to connection system is preset
DefaultContainerService is serviced.
In step 333, reading debugging bridge end request by software kit access service carries out apply installation corresponding
Installation file, to judge whether installation file is effective, and accordingly generates Effective judgement result.
Wherein, installation file is read in software kit access service, to judge whether it is real installation file, is being sentenced
Break after being effective to installation file, corresponding generation indicates the effective Effective judgement result of this installation file;Determining
After installation file is invalid, corresponding generation indicates the invalid Effective judgement result of this installation file.
Due to being that the Effective judgement for carrying out installation file is installed in the application carried out to debugging bridge end request, therefore,
When connecting the flow process of terminal corresponding to application management instrument in control end, due to being to carry out false application to install, its installation file is
Invalid, now, the Effective judgement result invalid by sign installation file is generated.
And in control end application management instrument really by debug bridge end carry out in terminal using install process,
It is then corresponding to generate the effective Effective judgement result of sign installation file.
In one exemplary embodiment, this installation file will be also indicated in this Effective judgement result to correspond to adjust
Examination bridge end, in order to return final application installation results to application management instrument.
In one exemplary embodiment, for the installation file Effective judgement for being carried out, then following two can be passed through
The mode of kind is realized:
(1) it is path for indicate installation file, then can directly judges in installation file whether mere formality part, is judging
When obtaining that there is file in installation file, the effective Effective judgement result of output sign installation file.
(2) it is URL (Uniform Resoure Locator, URL) for indicate installation file, then
This URL is added to the assertManager of system intialization, if added successfully, illustrate the installation text as resource file
Part is successfully accessed, and is effective installation file.
Wherein, assertManager is an explorer preset in system, and it can realize resource file by URL
Reading, accordingly, it is capable to be enough in the Effective judgement for realizing installation file.
According to the control method that the application that the disclosure is provided is installed, it is possible to understand that, application management instrument in control end
The application carried out to terminal is installed, and can install the brief signal for controlling to realize by the application shown in Fig. 7.
Application management instrument 610 realizes its connection with terminal by the debugging bridge end 630 in terminal, i.e., by step
Process shown in 650 to step 670 is realized.
On this basis, also will realize that application management instrument 610 is carried out to terminal 630 by step 650 to step 670
Application install.
By this process so that application management instrument 610 to the application that terminal 630 is carried out is installed, on the one hand due to being Jing
Confirmed by user, therefore, on the other hand obtained safety, so that debugging bridge end can with control end in apply
Special connected mode is adapted in management tool 610, and then realizes that connection and application are installed.
It is following for disclosure device embodiment, can be used for performing what the application that the above-mentioned terminal 110 of the disclosure performs was installed
Control method embodiment.For the details not disclosed in disclosure device embodiment, the control of disclosure application installation is refer to
Embodiment of the method.
Fig. 8 is the block diagram of the control device that a kind of application according to an exemplary embodiment is installed.The application is installed
Control device, can be used for terminal 110 in implementation environment shown in Fig. 1, perform the control method that the application shown in Fig. 3 is installed
Overall Steps.As shown in figure 8, the control device that the application is installed, including but not limited to:Intercept identification module 710, validity to sentence
Disconnected module 730, result-generation module 750, installation performing module 760, file sign module 770 and result acquisition module 780.
Identification module 710 is intercepted, for intercepting in the application mounting interface of terminal installation order is applied, identification debugging bridge joint
The application that request is carried out is installed.
Effective judgement module 730, for carrying out installation file Effective judgement to the application installation of debugging bridge joint request,
Obtain Effective judgement result.
Result-generation module 750, for when Effective judgement result sign installation file is invalid, generating install failure
Using installation results.
Performing module 760 is installed, for when Effective judgement result sign installation file is effective, by connecing using installation
Mouth will be sent to using installation order applies erector, and triggering is installed using the application that erector performs request.
File indicates module 770, in installing in the application that request is performed using erector, by the peace of sign application
Dress file generated application installation results.
As a result acquisition module 780, for debugging bridge end acquisition installation results are applied, and to the application management in control end
Instrument is returned and applies installation results.
Fig. 9 is the control device that a kind of application according to an exemplary embodiment is installed.The control that the application is installed
Device, as shown in figure 9, including but not limited to:Order receiver module 810 and order delivery module 830.
Order receiver module 810, for the debugging bridge joint carried out and control end between by terminal itself, debugs bridge end
Receive the application installation order of application management instrument transmission in control end.
Order delivery module 830, the application mounting interface of row is called during for by debugging bridge end, will be ordered using installing
Order is sent to applies mounting interface.
Figure 10 is the description carried out to the details for intercepting identification module 710 according to an exemplary embodiment.The interception identification
Module 710, as shown in Figure 10, including but not limited to:Order intercepts submodule 711, thread determination sub-module 713 and request identification
Submodule 715.
Order intercepts submodule 711, for applying installation order using interception at mounting interface.
Thread determination sub-module 713, for determining according to calling using the thread of mounting interface using installation order.
Request identification submodule 715, for identifying that debugging bridge end asks what is carried out to answer according to the corresponding title of thread
With installation.
Figure 11 is the description carried out to the details of Effective judgement module 730 according to an exemplary embodiment.The validity
Judge module 730, as shown in figure 11, including but not limited to:Service connection submodule 731 and file availability judging submodule
733。
Service connection submodule 731, for connecting terminal in system intialization software kit access service.
File availability judging submodule 733, is carried out for reading debugging bridge end request by software kit access service
Using corresponding installation file is installed, to judge whether installation file is effective, and Effective judgement result is accordingly generated.
Optionally, the disclosure also provides a kind of terminal, and the terminal can be used in implementation environment shown in Fig. 1, execution Fig. 3,
The all or part of step of the control method that the application shown in Fig. 4, Fig. 5 and Fig. 6 are arbitrary is installed.Described device includes:
Processor;
For storing the memory of processor executable;
Wherein, the processor is configured to perform:
Intercept in the application mounting interface of terminal and apply installation order, the application peace that identification debugging bridge end request is carried out
Dress;
Application installation to the debugging bridge end request carries out installation file Effective judgement, obtains Effective judgement knot
Really;
When the Effective judgement result sign installation file is invalid, knot is installed in the application for generating install failure
Really;
When the Effective judgement result sign installation file is effective, will be described by the application mounting interface
It is sent to using installation order and applies erector, triggers the application installation that the application erector performs the request;
In the application that the application erector performs the request is installed, by the installation file life for indicating the application
Into applying installation results;
The debugging bridge end obtains the application installation results, and returns to the application management instrument in control end described
Using installation results.
The concrete mode of the computing device operation of the device in the embodiment is in the control installed about the application
Detailed description is performed in the embodiment of method, explanation will be not set forth in detail herein.
In the exemplary embodiment, a kind of storage medium is additionally provided, the storage medium is computer-readable recording medium,
It for example can be the provisional and non-transitorycomputer readable storage medium for including instructing.The storage is situated between and refers to for example including instruction
Memory 204, above-mentioned instruction can perform to complete the control method that above-mentioned application is installed by the processor 218 of device 200.
It should be appreciated that the precision architecture for being described above and being shown in the drawings is the invention is not limited in, and
And can without departing from the scope perform various modifications and changes.The scope of the present invention is only limited by appended claim.
Claims (8)
1. the control method that a kind of application is installed, it is characterised in that methods described includes:
Intercept in the application mounting interface of terminal and apply installation order, the application that identification debugging bridge end request is carried out is installed;
Application installation to the debugging bridge end request carries out installation file Effective judgement, obtains Effective judgement result;
When the Effective judgement result sign installation file is invalid, the application installation results of install failure are generated;
The Effective judgement result indicate the installation file it is effective when, by the application mounting interface by the application
Installation order is sent to applies erector, triggers the application installation that the application erector performs the request;
In the application that the application erector performs the request is installed, should by indicating the installation file generation of the application
Use installation results;
The debugging bridge end obtains the application installation results, and returns the application to the application management instrument in control end
Installation results.
2. method according to claim 1, it is characterised in that the application mounting interface in terminal intercepts application and installs
Order, before the application that identification debugging bridge end request is carried out is installed, methods described also includes:
The debugging carried out and control end between by terminal itself is bridged, and the debugging bridge end is received to be applied in the control end
The application installation order of management tool transmission;
The application mounting interface carried out by the debugging bridge end is called, and the application installation order is sent to described
Using mounting interface.
3. method according to claim 1, it is characterised in that described to install life intercepting the application using mounting interface
Order, the application that identification debugging bridge end request is carried out is installed, including:
Using the interception application installation order at mounting interface;
It is determined that calling the thread of the application mounting interface according to the application installation order;
The application that identifying debugging bridge end request according to the corresponding title of the thread is carried out is installed.
4. method according to claim 1, it is characterised in that described that the application for stating debugging bridge end request is installed
Installation file Effective judgement is carried out, Effective judgement result is obtained, including:
The software kit access service of system intialization in connection terminal;
Read by the software kit access service and state the installation file that debugging bridge end request carries out applying installation corresponding, with
Judge whether the installation file is effective, and accordingly generate Effective judgement result.
5. the control device that a kind of application is installed, it is characterised in that include:
Intercept identification module, for intercepting in the application mounting interface of terminal installation order applied, identification debugging bridge joint ask into
Capable application is installed;
Effective judgement module, for carrying out installation file Effective judgement to the application installation of the debugging bridge joint request, obtains
To Effective judgement result;
Result-generation module, for when the Effective judgement result sign installation file is invalid, generating install failure
Application installation results;
Performing module is installed, for when the Effective judgement result sign installation file is effective, by the application
The application installation order is sent to and applies erector by mounting interface, is triggered the application erector and is performed answering for the request
With installation;
File indicates module, in installing in the application of the application erector execution request, answers by the way that sign is described
Installation file is generated and applies installation results;
As a result acquisition module, for the debugging bridge end application installation results are obtained, and to the application pipe in control end
Science and engineering tool returns the application installation results.
6. device according to claim 5, it is characterised in that described device also includes:
Order receiver module, for the debugging bridge joint carried out and control end between by terminal itself, the debugging bridge joint termination
Receive the application installation order of application management instrument transmission in the control end;
Order delivery module, the application mounting interface for being carried out by the debugging bridge end is called, by the application
Installation order is sent to the application mounting interface.
7. device according to claim 5, it is characterised in that the interception identification module includes:
Order intercepts submodule, for using the interception application installation order at mounting interface;
Thread determination sub-module, for determining the thread that the application mounting interface is called according to the application installation order;
Request identification submodule, for identifying the application peace that debugging bridge end request is carried out according to the corresponding title of the thread
Dress.
8. device according to claim 5, it is characterised in that the Effective judgement module includes:
Service connection submodule, for connecting terminal in system intialization software kit access service;
File availability judging submodule, is carried out for reading the debugging bridge end request by the software kit access service
Using corresponding installation file is installed, to judge whether the installation file is effective, and Effective judgement is accordingly generated
As a result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610893982.0A CN106648739A (en) | 2016-10-13 | 2016-10-13 | Control method and device of application installation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610893982.0A CN106648739A (en) | 2016-10-13 | 2016-10-13 | Control method and device of application installation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106648739A true CN106648739A (en) | 2017-05-10 |
Family
ID=58856982
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610893982.0A Pending CN106648739A (en) | 2016-10-13 | 2016-10-13 | Control method and device of application installation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648739A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102272722A (en) * | 2009-01-08 | 2011-12-07 | 德国捷德有限公司 | Method for installing an electronic ticket and/or payment application on a mobile terminal |
CN102663292A (en) * | 2012-03-26 | 2012-09-12 | 大唐微电子技术有限公司 | Method and system for realizing smart card application and deployment |
CN103577757A (en) * | 2013-11-15 | 2014-02-12 | 北京奇虎科技有限公司 | Virus defending method and device |
CN104951336A (en) * | 2015-05-27 | 2015-09-30 | 小米科技有限责任公司 | Application program installation method and device |
-
2016
- 2016-10-13 CN CN201610893982.0A patent/CN106648739A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102272722A (en) * | 2009-01-08 | 2011-12-07 | 德国捷德有限公司 | Method for installing an electronic ticket and/or payment application on a mobile terminal |
CN102663292A (en) * | 2012-03-26 | 2012-09-12 | 大唐微电子技术有限公司 | Method and system for realizing smart card application and deployment |
CN103577757A (en) * | 2013-11-15 | 2014-02-12 | 北京奇虎科技有限公司 | Virus defending method and device |
CN104951336A (en) * | 2015-05-27 | 2015-09-30 | 小米科技有限责任公司 | Application program installation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104536891B (en) | System detection method and device | |
US9367403B2 (en) | Terminal and application restoring method | |
CN103514075B (en) | The method and apparatus that monitoring api function is called in the terminal | |
CN103744686A (en) | Control method and system for installing application in intelligent terminal | |
CN110727941B (en) | Privacy data protection method and device, terminal equipment and storage medium | |
CN104050266A (en) | Recording method and device for user behaviors and webpage browser | |
US11846972B2 (en) | Method and apparatus for generating software test reports | |
WO2020211359A1 (en) | System performance bottleneck positioning method and system | |
CN104317699A (en) | Application program verifying method and device | |
CN104636170A (en) | Application acquiring method and device and electronic device | |
CN106413129A (en) | Method and device for binding terminal to intelligent equipment | |
CN111381829A (en) | Online programming method and device, electronic equipment and storage medium | |
CN106775834A (en) | Brush machine verification method and device | |
CN104991857B (en) | Trace debug method and device | |
CN104021076B (en) | Application testing method and router | |
CN110889116B (en) | Advertisement interception method and device and electronic equipment | |
CN104516743A (en) | Upgrading method and system of embedded device firmware based on ActiveX | |
CN106648739A (en) | Control method and device of application installation | |
CN106599231A (en) | Page display method and apparatus | |
CN105204895A (en) | Application version information acquiring method, equipment and system | |
US20160196423A1 (en) | Smart device and method for dynamically detecting applications | |
CN111966368B (en) | Application program silent installation method and system, android terminal and readable medium | |
CN107220082A (en) | Installation method, device and the equipment of application program | |
CN111382416B (en) | Application program operation identification method and device, terminal equipment and storage medium | |
CN106155863A (en) | Terminal anticipatory behavior control method and terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |