CN104123162B - The method and device that control application program is opened certainly - Google Patents

The method and device that control application program is opened certainly Download PDF

Info

Publication number
CN104123162B
CN104123162B CN201410367202.XA CN201410367202A CN104123162B CN 104123162 B CN104123162 B CN 104123162B CN 201410367202 A CN201410367202 A CN 201410367202A CN 104123162 B CN104123162 B CN 104123162B
Authority
CN
China
Prior art keywords
application program
component
certainly
layer
application
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
CN201410367202.XA
Other languages
Chinese (zh)
Other versions
CN104123162A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410367202.XA priority Critical patent/CN104123162B/en
Publication of CN104123162A publication Critical patent/CN104123162A/en
Application granted granted Critical
Publication of CN104123162B publication Critical patent/CN104123162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of method and device for controlling application program to open certainly, method therein includes:Application layer by monitoring module, monitor by the interface to being used to transfer the corresponding component of the application program in ccf layer;The application layer gets the corresponding module information of the application program by monitoring the interface;The application layer utilizes the module information, it is preset open rule certainly in matched, if the match is successful, it is determined that the application program from opening, and notify the ccf layer control the application program set out certainly for.The present invention is expanded to scope is intercepted on all components, and goes out some rules by analyzing the activity-summary of these components, is reduced and is intercepted by mistake.

Description

The method and device that control application program is opened certainly
Technical field
The present invention relates to terminal security technical field, and in particular to the method and device that a kind of control application program is opened certainly.
Background technology
It is the system based on component that Android (Android) system is one, and these components include broadcast (broadcast groups Part), provider (supplier's component), service (serviced component) and activity (movable component).Each Android Software is formed by these parts assemblings, by configuring function and the behavior of these components, can be achieved with software by user or Other assemblies wake up in person's system.Under many circumstances, this wake-up behavior is not actively to be triggered by user, this behavior quilt Referred to as application program is opened certainly or software is opened certainly.The software of Android reduce system cruising time for not only serious from setting out, The fluency of the system for also substantially reducing.
At present, many security firms have all added and have forbidden Android software from the function of opening in the product, but realize There is very big defect in method.By taking 360 mobile guards as an example, the fail-safe software is by disabling the broadcast of third party software Component is prevented from opening, it is this prohibit have the following disadvantages from opening mode:1. effectively identification software cannot open certainly.Present many softwares (mobile phone QQ, Taobao, assistant's class software etc.) has been able to be realized by service components backstage from opening, and only Broadcast components as control point, cannot comprehensive monitoring software set out certainly as this implementation cannot be by addition From opening with user, actively wake-up is distinguished software, greatly reduces Consumer's Experience.2. this software that intercepts has one from the mode for opening Fixed risk.The anti-of disabling component is a kind of breakneck behavior from mode is opened, once component is disabled, even if user is manual Software of the wake-up packet containing the component cannot also cancel this disabled status, if user has unloaded 360 mobile guards, then banned Only will be into permanent afunction state from the program for opening.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the method and device that the control application program of problem is opened certainly.
According to one aspect of the present invention, there is provided a kind of method of control application program from opening, including:Application layer leads to Monitoring module is crossed, the interface to being used to transfer the corresponding component of the application program in ccf layer is monitored;The application journey Sequence layer gets the corresponding module information of the application program by monitoring the interface;The application layer is using described Module information, it is preset open rule certainly in matched, if the match is successful, it is determined that the application program is led to from opening Know the ccf layer control the application program set out certainly for.
Preferably, it is described it is preset open rule certainly in carry out matching and include:By the corresponding component of the application program The running status of type and/or the application program, determines whether the application program opens certainly.
Preferably, if determining that the component type is broadcast component according to the module information, institute is determined whether State whether application program has been in running status, if it is, determining that the application program, not from opening, is not prohibited by described answering With the startup behavior of program, otherwise, it determines the application program is to open certainly, and notify that the ccf layer controls the application program Set out certainly for.
Preferably, it is described to notify that the ccf layer control the setting out certainly for application program is to include:By injecting framework The system service process of layer realizes that dynamic broadcast is filtered, and when the application program is not waken up, abandons institute's broadcast in need The broadcast of component treatment, realizes that prevention is opened certainly;After the application program is waken up by user, start the application program.
Preferably, if determining that the component type is serviced component according to the module information, institute is determined whether State whether application program has been in running status, if it is, determining that the application program, not from opening, is not prohibited by described answering With the startup behavior of program, otherwise, it determines the application program is to open certainly, and notify that the ccf layer stops the application program Set out certainly for.
Preferably, also include:Prompting message is sent to user, points out user to stopped opening certainly for the application program Behavior;When user is set allows the application program to open certainly, the application layer notifies that the ccf layer no longer forbids institute State application program set out certainly for.
Preferably, if determining that the component type is movable component or supplier's component according to the module information, Determine that the application program, not from opening, is not prohibited by the startup behavior of the application program.
Preferably, the monitoring module of the application layer interrupts the interface in the ccf layer using hook mechanism The process of the corresponding component of the application program is transferred, so as to realize the monitoring to the interface.
According to another aspect of the present invention, there is provided the device that a kind of control application program is opened certainly, including:Monitoring unit, For by application layer by monitoring module, to being used to transfer the interface of the corresponding component of the application program in ccf layer Monitored;Module information acquiring unit, for by monitoring the interface, getting the corresponding component letter of the application program Breath;From opening control unit, for utilizing the module information in the application layer, it is preset open rule certainly in carry out Match somebody with somebody, if the match is successful, it is determined that the application program is opened certainly, and notify that the ccf layer controls opening certainly for the application program Behavior.
Preferably, it is described from open control unit specifically for:By the corresponding component type of the application program and/or institute The running status of application program is stated, determines whether the application program opens certainly.
Preferably, it is described from open control unit specifically for:If determining the component type according to the module information It is broadcast component, then determines whether whether the application program has been in running status, if it is, determines the application Program not from opening, is not prohibited by the startup behavior of the application program, otherwise, it determines the application program is to open certainly, and notifies The ccf layer control the application program set out certainly for.
Preferably, it is described from open control unit specifically for:Dynamic is realized by the system service process for injecting ccf layer Broadcast filtering, when the application program is not waken up, abandons the broadcast of the institute's broadcast component in need treatment, realizes prevention certainly Open;After the application program is waken up by user, start the application program.
Preferably, it is described from open control unit specifically for:If determining the component type according to the module information It is serviced component, then determines whether whether the application program has been in running status, if it is, determines the application Program not from opening, is not prohibited by the startup behavior of the application program, otherwise, it determines the application program is to open certainly, and notifies The ccf layer stop the application program set out certainly for.
Preferably, also include:Tip element, prompting message is sent to user, points out user to stopped the application Program set out certainly for;It is described to be additionally operable to from opening control unit, when user set allow the application program from open when, by institute State application layer notify the ccf layer no longer forbid the application program set out certainly for.
Preferably, it is described from open control unit specifically for:If determining the component type according to the module information It is movable component or supplier's component, it is determined that the application program not from opening, is not prohibited by the startup row of the application program For.
Preferably, the monitoring module of the application layer interrupts the interface in the ccf layer using hook mechanism The process of the corresponding component of the application program is transferred, so as to realize the monitoring to the interface.
Analysis as before to prior art, tradition forbids application program from the method for opening just for application program Broadcast components, but can trigger in fact application program from the component that opens also comprising activity, service and provider.In order to reach more preferable interception result, the present invention is expanded to scope is intercepted on all components, and by analyzing this The activity-summary of a little components goes out some rules, reduces and intercepts by mistake.Specifically, application layer is responsible for transferring by monitoring ccf layer The interface of the corresponding component of application program, gets the corresponding module information of application program;And the module information is utilized, pre- Being opened certainly for putting matched in rule, so that it is determined that whether application program is from opening, and is finally decided whether to prohibit according to component type Only this set out certainly for.
Described above is only the general introduction of technical solution of the present invention, in order to better understand technological means of the invention, And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows control application program according to an embodiment of the invention from the method flow diagram for opening;And
Fig. 2 shows control application program according to an embodiment of the invention from the embodiment of the method schematic diagram for opening.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
In order to the application program of more efficiently solution Android is from the problem that opens, the present invention proposes a kind of intelligentized control The scheme that application program processed is opened certainly.
It will be appreciated by those skilled in the art that operating system includes application layer (app layers) and system framework layer (framework layers).A kind of preferred implementation of the present invention is app layers and framework layers to be improved, so as to utilize The coordinated of this two-layer realizes that quick startup communicates on intelligent terminal.Specifically, a monitoring mould can be increased at app layers Block, component is waken up so as to realize application program from the operation opened for monitoring framework layers, such that it is able to application program from Before opening, responsible application program from the relevant information of component for opening is got, and analyze the type of the component, according to pre-setting Open rule certainly, it is determined whether forbid the application program from set out for.
Fig. 1 is a kind of method flow diagram for controlling application program to open certainly provided in an embodiment of the present invention.The method includes step Rapid S101-S103.
S101:App layers by monitoring module, to being used to transfer the corresponding component of application program and connect in framework layers Mouth is monitored.
By taking Android system as an example, before an application program is started, can go out to need in framework layer analysis first The component Name to be started, while framework layers can record the information related to the application program launching, such as is activated Component Name, type (being broadcast, activity, service or provider) of the component etc..By injection and Java hook, can just monitor the framework layers of interface for recording the information, and the information is returned to app layers of prison Module (for example, mobile phone antivirus client) is listened, then is decided whether to allow the startup behavior of the application program by the antivirus client. Therefore, it is that the app layers of interface interchange by monitoring framework layers is realized actually to monitor behavior.Because this interface sheet Body provides for being waken up the relevant information of component, so only needing to being solved on a small quantity from the data of framework layers of acquisition Analysis is i.e. available.
It is the control application program of the embodiment of the present invention from the embodiment of the method schematic diagram for opening referring to Fig. 2.App layers of prison Module is listened to monitor the interface for being used to transfer the corresponding component of application program in framework layers, and the number that will be listened to Matched according to the preset rule that opens certainly, then returned to framework layers according to matching result, so that Framework layers controls opening certainly for application program.
Can realize monitoring the interface for transferring component using interrupt mechanism.Specifically, can be using hook (hook or hook Son) mechanism realize to framework layers in monitored for transferring the interface of component.Skilled in the art realises that, Hook mechanism allows application program to intercept and capture message or the particular event for the treatment of operating system.Hook is actually a treatment message Program segment, called by system, it is linked into system.Whenever specific message sends, before without purpose window is reached, hook Subprogram just first captures the message, that is, Hook Function first obtains control.At this moment Hook Function is that (can be changed with working process Become) message, it is also possible to do not deal with and continue to transmit the message, the transmission of end can also be forced.Of the invention real Apply in example, the process for transferring the corresponding component of application program is interrupted using hook mechanism, realize being obtained from before opening in application program Take its module information.
S102:App layers, by monitoring the interface, gets the corresponding module information of application program.
By taking Android system as an example, four big basic modules are respectively activity (movable component), broadcast (broadcast Component), service (serviced component) and provider (supplier's component).
These four component types are briefly described below.
(1) activity components
In application program, an activity is exactly generally a single screen, and it can show some controls above The event that can also monitor and process user is responded.
(2) broadcast components
Application program can be filtered using broadcast to external event, so that only to external event interested (such as when phone incoming call, or data network it is available when) received and responded.Broadcast does not have user interface. However, they can start an activity or service to respond the information that they are received, or use status bar manager (NotificationManager) user is notified.Notice can attract the notice of user with a variety of modes -- dodges Dynamic back of the body lamp, vibrations, broadcasting sound etc..In general it is that a lasting icon is put on status bar, user can open it simultaneously Obtain message.
(3) service components
One Service is one section of program without user interface of life cycle long, can be used to develop such as monitoring class Program.For example, a media player that song is being played from playlist.In an application program for media player In, it should multiple activity are had, is allowed user to select song and is played song.However, music playback this function Not corresponding activity, because user will be considered that music should played also when other screens are navigate to certainly 's.In this example, this activity of media player can start one using Context.startService () Service, such that it is able to keep the broadcasting of music on backstage.Meanwhile, system will also keep this service to perform always, directly To this service end of run.Furthermore it is also possible to by using Context.bindService () method, be connected to one On individual service (if this service does not run will also start it).After a service is connected to, can be with The interface that service is provided is communicated with it.For media player this example, can also be suspended, be replayed Operation.
(4) provider components
Android platform provides Content Provider (content provider), makes a specified number for application program Other application programs are supplied to according to collection.These data can be stored in file system, in a SQLite database or to appoint What his reasonable manner, other application programs can be obtained from the content provider by ContentResolver classes or Data are stored in, it is only in need just to need content provider in multiple application program data sharings.For example, address book data quilt Multiple application programs are used, and must be stored in a content provider.It is advantageous in that the access side for having unified data Formula.
S103:App layers using the module information that gets, it is preset open rule certainly in matched, if matched into Work(, it is determined that application program from opening, and notify framework layer control the application program set out certainly for.
Step S103 includes two key points, and one is to need to judge whether application program opens certainly, then is how to control application Program set out certainly for.
First, judge whether application program opens certainly according to component type.
Analysis as before to prior art, tradition forbids application program from the method for opening just for application program Broadcast components, but can trigger in fact application program from the component that opens also comprising activity, service and provider.In order to reach more preferable interception result, the present invention is expanded to scope is intercepted on all components, and by analyzing this The activity-summary of a little components goes out some rules, reduces and intercepts by mistake.
As described before, by means such as injection and java hook, the startup behavior of each software can be in real time monitored, And the component for causing the software to be waken up can be analyzed.
Determine whether software set out certainly for when, following rule can be followed:
(1) activity components
Activity components are visualization components, its trigger startup behavior can not be intercepted because this behavior more by User is triggered, and non-software is opened certainly.
(2) broadcast components
Process in two kinds of situation.If the software comprising the broadcast components has been in running status (for example, killing After malicious client terminal start-up success, the running status of each application program in mobile phone can be monitored, when a component is activated, so that it may To travel through this running status list, differentiate whether the application program comprising the component is in running status.Concrete implementation side Method is exactly to inject each application program, in this procedure set a monitor), then it is assumed that current startup behavior not from Open, it is not necessary to which intercepted, such case is typically occurred in multi-process Android software.Conversely, being then considered to open certainly.
(3) service components
Discriminant approach is similar with broadcast components.But the importance of service components is typically higher than Broadcast components, inappropriate interception most likely results in some running software exceptions, in order to avoid such case, when What service components triggered sets out during to be intercepted certainly, can further give and point out, and guiding user completes expected operation.Example Such as, it is contemplated that operation typically have following several scenes:Such as when user is paid in mobile phone Taobao, even if user forbids From opening, now he also is intended to Alipay can be waken up Alipay;Another scene is 360 mobile guards and 360 mobile phones Assistant, when this two application programs coexist, mobile phone bodyguard constantly can wake up mobile phone assistant by service components, if What user inherently prohibited mobile phone assistant opens function certainly, then at this time user is probably not intended to mobile phone assistant and is opened It is dynamic.According to specific usage scenario, user can produce different expections to prohibiting from the effect for opening.
(4) provider components
The startup behavior that provider components trigger is not intercepted typically.
By the application to the above rule, can judge that application program is set out as together with the presence or absence of oneself with accurate When again to the normal using not causing puzzlement of user.
After application program being determined and whether opens certainly, safe interception mode is taken.
Traditional hold-up interception method may cause function of application to lack, and in order to avoid such case, the present invention proposes one The new interception scheme of set.
(1) for broadcast components, the component is no longer disabled, but by injecting the critical processes of android system System_server (system service) process realizes that (dynamic broadcast filtering is exactly for dynamic broadcast filtering:Can dynamically configure Which application can receive broadcast in inactive state, and which can not receive broadcast), when software is not waken up, Suo Youxu Will the broadcast of broadcast components treatment can all be simply discarded, realize prevention from opening;And work as software and waken up by user Afterwards, this filtering behavior will be automatically stopped, and the normal operation of software will not be had any impact, safer.
(2) for service components, if it find that being to set out be the fortune for then notifying android system to stop the software Go and give user to point out accordingly, it is banned that user can determine whether certain software needs according to current use demand at any time Only open certainly.Wherein, " notifying that android system stops the operation of the software " refers to:App layers is notified with interface mode Framework layers;After injection system_server processes, a new service, mobile phone antivirus client can be added in the process End can be communicated with the service.Because the service operation is in system_server processes, with any process of kill Authority, thus mobile phone antivirus client only need to call the service interface can stopping certain software operation.For safety For the sake of, the interface does not stop running software directly, but is completed by calling framework layers of interface.
The interception mode being combined by above-mentioned number of ways, can safely and effectively forbid software to open certainly.
Below with a specific example, the control application program that the present invention is provided is described from the method for opening.
As a example by implementing the present invention program on QQ softwares, flow is as follows:
1. user forbids QQ software self-startings in app layers of mobile phone antivirus client, and QQ softwares are out of service;
2. QQ is added in broadcast filtering list, and now all broadcast for issuing QQ softwares can be simply discarded;
3. when certain QQ Games Software needs to be authorized by QQ, will attempt waking up QQ by service modes;
4.framework layers listens to QQ and attempts starting, and the component for starting the software is com.tencent.qq/ Com.tencent.qq.service, the type of component is service, and framework layers transmits the message to mobile phone antivirus Client;
5. mobile phone antivirus client finds QQ software banned self-startings, will be by residing in system_server In a startup behavior for service stopping QQ softwares;In order to not cause puzzlement to user, " 360 mobile phones can be reminded on screen Antivirus client has forbidden QQ to start ";
6. user find forbid QQ start after, QQ game cannot normally run, will manually opened QQ softwares (from starter Middle opening, opens any software from starter, and antivirus client is not intercepted) or taken in mobile phone antivirus client Disappear and forbid QQ self-startings;
7. user is again turned on QQ game, and QQ game is applied authorizing again to QQ, and starting component is still Com.tencent.qq/com.tencent.qq.service, the type of component is service, and framework layers by the message It is sent to mobile phone antivirus client;
8. mobile phone antivirus client finds that QQ has been started up or be stopped taboo from opening, then directly let pass, and stop The broadcast of the software is issued in filtering.
Corresponding with the above method, the present invention also provides a kind of device for controlling application program to open certainly.The device can lead to Hardware, software or software and hardware combining mode is crossed to realize.The device can refer to the functional module of terminal inner, it is also possible to refer to end End in itself, as long as terminal includes realizing the function of the device.Wherein, the operating system of terminal includes ccf layer and applies journey Sequence layer.The device includes:
Monitoring unit, for by application layer by monitoring module, in ccf layer be used for transfer the application journey The interface of the corresponding component of sequence is monitored;
Module information acquiring unit, for by monitoring the interface, getting the corresponding component letter of the application program Breath;
From opening control unit, for utilizing the module information in the application layer, rule is opened certainly preset Matched, if the match is successful, it is determined that the application program is opened certainly, and notified that the ccf layer controls the application program Set out certainly for.
Preferably, it is described from open control unit specifically for:By the corresponding component type of the application program and/or institute The running status of application program is stated, determines whether the application program opens certainly.
Preferably, it is described from open control unit specifically for:If determining the component type according to the module information It is broadcast component, then determines whether whether the application program has been in running status, if it is, determines the application Program not from opening, is not prohibited by the startup behavior of the application program, otherwise, it determines the application program is to open certainly, and notifies The ccf layer control the application program set out certainly for.
Preferably, it is described from open control unit specifically for:Dynamic is realized by the system service process for injecting ccf layer Broadcast filtering, when the application program is not waken up, abandons the broadcast of the institute's broadcast component in need treatment, realizes prevention certainly Open;After the application program is waken up by user, start the application program.
Preferably, it is described from open control unit specifically for:If determining the component type according to the module information It is serviced component, then determines whether whether the application program has been in running status, if it is, determines the application Program not from opening, is not prohibited by the startup behavior of the application program, otherwise, it determines the application program is to open certainly, and notifies The ccf layer stop the application program set out certainly for.
Preferably, the device also includes:Tip element, prompting message is sent to user, points out user to stopped institute State application program set out certainly for;It is described to be additionally operable to from opening control unit, when user set allow the application program from open when, By the application layer notify the ccf layer no longer forbid the application program set out certainly for.
Preferably, it is described from open control unit specifically for:If determining the component type according to the module information It is movable component or supplier's component, it is determined that the application program not from opening, is not prohibited by the startup row of the application program For.
Preferably, the monitoring module of the application layer interrupts the interface in the ccf layer using hook mechanism The process of the corresponding component of the application program is transferred, so as to realize the monitoring to the interface.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this hair Bright preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim is in itself All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Unit or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, can use any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can the alternative features of or similar purpose identical, equivalent by offer carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed One of meaning mode can be used in any combination.
All parts embodiment of the invention can be realized with hardware, or be run with one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) realize control application program according to embodiments of the present invention from the device for opening In some or all parts some or all functions.The present invention is also implemented as described herein for performing Some or all equipment or program of device (for example, computer program and computer program product) of method.So Realize that program of the invention can be stored on a computer-readable medium, or can have one or more signal shape Formula.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or with any other shape Formula is provided.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element is not excluded the presence of as multiple Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
The present invention provides following scheme:
A kind of method of A1, control application program from opening, including:
Application layer by monitoring module, to being used to transfer the interface of the corresponding component of the application program in ccf layer Monitored;
The application layer gets the corresponding module information of the application program by monitoring the interface;
The application layer utilizes the module information, it is preset open rule certainly in matched, if matched into Work(, it is determined that the application program from opening, and notify the ccf layer control the application program set out certainly for.
A2, the method as described in A1, it is described it is preset open rule certainly in carry out matching and include:By the application program The running status of corresponding component type and/or the application program, determines whether the application program opens certainly.
A3, the method as described in A2, if determining that the component type is broadcast component according to the module information, enter One step judges whether the application program has been in running status, if it is, the application program is determined not from opening, no Forbid the startup behavior of the application program, otherwise, it determines the application program is to open certainly, and notify the ccf layer control institute State application program set out certainly for.
A4, the method as described in A3, it is described to notify that the ccf layer control the setting out certainly for application program is to include:
Realize that dynamic broadcast is filtered by the system service process for injecting ccf layer, when the application program is not waken up When, the broadcast of the institute's broadcast component in need treatment is abandoned, realize that prevention is opened certainly;After the application program is waken up by user, Start the application program.
A5, the method as described in A2, if determining that the component type is serviced component according to the module information, enter One step judges whether the application program has been in running status, if it is, the application program is determined not from opening, no Forbid the startup behavior of the application program, otherwise, it determines the application program is to open certainly, and notify that the ccf layer stops institute State application program set out certainly for.
A6, the method as described in A5, also include:
To user send prompting message, point out user stopped the application program set out certainly for;
When user is set allows the application program to open certainly, the application layer notifies that the ccf layer is no longer forbidden The application program set out certainly for.
A7, the method as described in A2, if determining that the component type is movable component or carries according to the module information Donor component, it is determined that the application program not from opening, is not prohibited by the startup behavior of the application program.
A8, the method as described in any one of A1 to A7, the monitoring module of the application layer are interrupted using hook mechanism The interface in the ccf layer transfers the process of the corresponding component of the application program, so as to realize the prison to the interface Listen.
The device that B9, a kind of control application program are opened certainly, including:
Monitoring unit, for by application layer by monitoring module, in ccf layer be used for transfer the application journey The interface of the corresponding component of sequence is monitored;
Module information acquiring unit, for by monitoring the interface, getting the corresponding component letter of the application program Breath;
From opening control unit, for utilizing the module information in the application layer, rule is opened certainly preset Matched, if the match is successful, it is determined that the application program is opened certainly, and notified that the ccf layer controls the application program Set out certainly for.
B10, the device as described in B9, it is described from open control unit specifically for:By corresponding group of the application program The running status of part type and/or the application program, determines whether the application program opens certainly.
B11, the device as described in B10, it is described from open control unit specifically for:If determined according to the module information The component type is broadcast component, then determine whether whether the application program has been in running status, if it is, Determine that the application program, not from opening, is not prohibited by the startup behavior of the application program, otherwise, it determines the application program is From opening, and notify the ccf layer control the application program set out certainly for.
B12, the device as described in B11, it is described from open control unit specifically for:By the system service for injecting ccf layer Process realizes that dynamic broadcast is filtered, and when the application program is not waken up, abandon that institute's broadcast component in need processes is wide Broadcast, realize that prevention is opened certainly;After the application program is waken up by user, start the application program.
B13, the device as described in B10, it is described from open control unit specifically for:If determined according to the module information The component type is serviced component, then determine whether whether the application program has been in running status, if it is, Determine that the application program, not from opening, is not prohibited by the startup behavior of the application program, otherwise, it determines the application program is From opening, and notify the ccf layer stop the application program set out certainly for.
B14, the device as described in B13, also include:Tip element, prompting message is sent to user, points out user stop over Stopped the application program set out certainly for;It is described to be additionally operable to from opening control unit, allow the application program when user is set When opening, by the application layer notify the ccf layer no longer forbid the application program set out certainly for.
B15, the device as described in B14, it is described from open control unit specifically for:If determined according to the module information The component type is movable component or supplier's component, it is determined that the application program not from opening, is not prohibited by the application The startup behavior of program.
B16, the device as described in any one of B9 to B16, the monitoring module of the application layer is using in hook mechanism The interface in the disconnected ccf layer transfers the process of the corresponding component of the application program, so as to realize to the interface Monitor.

Claims (14)

1. a kind of method that control application program is opened certainly, it is characterised in that including:
By monitoring module, the interface to being used to transfer the corresponding component of the application program in ccf layer is carried out application layer Monitor;
The application layer gets the corresponding module information of the application program by monitoring the interface;
The application layer determines component type using the module information, by the corresponding component type of the application program And/or the running status of the application program, determine that whether the application program opens, and notify the ccf layer according to component certainly Application program described in Type Control set out certainly for;Wherein, the component type includes broadcast component, serviced component, activity group One or more in part or supplier's component.
2. the method for claim 1, it is characterised in that if determining that the component type is according to the module information Broadcast component, then determine whether whether the application program has been in running status, if it is, determining the application journey Sequence not from opening, is not prohibited by the startup behavior of the application program, otherwise, it determines the application program is to open certainly, and notifies institute State ccf layer control the application program set out certainly for.
3. the method for claim 1, it is characterised in that described to notify the ccf layer according to component type control Setting out certainly for application program is to include:
Realize that dynamic broadcast is filtered by the system service process for injecting ccf layer, when the application program is not waken up, lose Abandon the broadcast component in need treatment broadcast, realize prevention from opening;After the application program is waken up by user, start institute State application program.
4. the method for claim 1, it is characterised in that if determining that the component type is according to the module information Serviced component, then determine whether whether the application program has been in running status, if it is, determining the application journey Sequence not from opening, is not prohibited by the startup behavior of the application program, otherwise, it determines the application program is to open certainly, and notifies institute State ccf layer stop the application program set out certainly for.
5. method as claimed in claim 4, it is characterised in that also include:
To user send prompting message, point out user stopped the application program set out certainly for;
When user is set allows the application program to open certainly, it is described that the application layer notifies that the ccf layer is no longer forbidden Application program set out certainly for.
6. the method for claim 1, it is characterised in that if determining that the component type is according to the module information Movable component or supplier's component, it is determined that the application program not from opening, is not prohibited by the startup behavior of the application program.
7. the method as described in any one of claim 1 to 6, it is characterised in that the monitoring module of the application layer is used Hook mechanism, the interface interrupted in the ccf layer transfers the process of the corresponding component of the application program, so as to realize Monitoring to the interface.
8. it is a kind of to control application program from the device for opening, it is characterised in that including:
Monitoring unit, for by application layer by monitoring module, in ccf layer be used for transfer the application program pair The interface of the component answered is monitored;
Module information acquiring unit, for by monitoring the interface, getting the corresponding module information of the application program;
From control unit is opened, for determining component type using the module information in the application layer, answered by described With the corresponding component type of program and/or the running status of the application program, determine that whether the application program opens, and lead to certainly Know the ccf layer according to component type control the application program set out certainly for;
Wherein, the component includes one or more in broadcast component, serviced component, movable component or supplier's component.
9. device as claimed in claim 8, it is characterised in that it is described from open control unit specifically for:If according to described Module information determines that the component type is broadcast component, then determine whether whether the application program has been in operation shape State, if it is, determining that the application program, not from opening, is not prohibited by the startup behavior of the application program, otherwise, it determines institute State application program be from opening, and notify the ccf layer control the application program set out certainly for.
10. device as claimed in claim 9, it is characterised in that it is described from open control unit specifically for:By injecting framework The system service process of layer realizes that dynamic broadcast is filtered, and when the application program is not waken up, abandons institute's broadcast in need The broadcast of component treatment, realizes that prevention is opened certainly;After the application program is waken up by user, start the application program.
11. devices as claimed in claim 8, it is characterised in that it is described from open control unit specifically for:If according to described Module information determines that the component type is serviced component, then determine whether whether the application program has been in operation shape State, if it is, determining that the application program, not from opening, is not prohibited by the startup behavior of the application program, otherwise, it determines institute State application program be from opening, and notify the ccf layer stop the application program set out certainly for.
12. devices as claimed in claim 11, it is characterised in that also include:Tip element, prompting message is sent to user, Prompting user stopped the application program set out certainly for;It is described to be additionally operable to from opening control unit, permit when user is set Perhaps when described application program is opened certainly, notify that the ccf layer no longer forbids oneself of the application program by the application layer Set out for.
13. devices as claimed in claim 12, it is characterised in that it is described from open control unit specifically for:If according to institute State module information and determine that the component type is movable component or supplier's component, it is determined that the application program is not opened certainly, It is not prohibited by the startup behavior of the application program.
14. device as described in any one of claim 8 to 13, it is characterised in that the monitoring module of the application layer is adopted The interface in the ccf layer is interrupted with hook mechanism and transfer the process of the corresponding component of the application program, so as to realize Monitoring to the interface.
CN201410367202.XA 2014-07-29 2014-07-29 The method and device that control application program is opened certainly Active CN104123162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410367202.XA CN104123162B (en) 2014-07-29 2014-07-29 The method and device that control application program is opened certainly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410367202.XA CN104123162B (en) 2014-07-29 2014-07-29 The method and device that control application program is opened certainly

Publications (2)

Publication Number Publication Date
CN104123162A CN104123162A (en) 2014-10-29
CN104123162B true CN104123162B (en) 2017-06-16

Family

ID=51768586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410367202.XA Active CN104123162B (en) 2014-07-29 2014-07-29 The method and device that control application program is opened certainly

Country Status (1)

Country Link
CN (1) CN104123162B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375869B (en) * 2014-11-28 2018-04-10 北京奇虎科技有限公司 Self-starting application control method and device
CN104462978B (en) * 2014-12-24 2017-09-15 北京奇虎科技有限公司 A kind of method and apparatus of application program rights management
CN104461725B (en) * 2014-12-30 2018-05-08 小米科技有限责任公司 The method and device for controlling application process to start
CN104462952B (en) * 2014-12-31 2017-11-10 北京奇虎科技有限公司 A kind of method and device forbidden using self-starting
CN105095746B (en) * 2015-07-02 2018-06-19 北京奇虎科技有限公司 Application program launching method for authenticating and device
CN105159771A (en) * 2015-09-21 2015-12-16 北京奇虎科技有限公司 Method and apparatus for processing inter-application chain type start
CN105912094A (en) * 2016-04-18 2016-08-31 深圳市万普拉斯科技有限公司 Switch off wake up method and device
CN106126322A (en) * 2016-06-14 2016-11-16 深圳市万普拉斯科技有限公司 Method for controlling application starting and device
CN106201738B (en) * 2016-06-27 2020-09-29 北京小米移动软件有限公司 System broadcast calling method and device
CN106155704A (en) * 2016-08-05 2016-11-23 硕诺科技(深圳)有限公司 A kind of method and system stoping application program mutually to wake up up
CN106383727A (en) * 2016-09-05 2017-02-08 深圳市金立通信设备有限公司 Recent task list clearing optimization method and terminal
CN106341732B (en) * 2016-09-27 2020-01-03 Tcl集团股份有限公司 Management method of desktop starter and intelligent television
CN106874085A (en) * 2017-01-09 2017-06-20 深圳市金立通信设备有限公司 A kind of management method and terminal for opening application certainly
CN106919460A (en) 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of method for controlling broadcast transmission, device and mobile terminal
CN109144676B (en) * 2017-06-15 2022-05-17 阿里巴巴集团控股有限公司 Self-starting detection method and device of application program and server
CN111630493A (en) * 2017-09-26 2020-09-04 深圳传音通讯有限公司 Terminal intelligent control method, device, equipment and computer readable storage medium
CN107944277B (en) * 2017-11-21 2020-07-31 Oppo广东移动通信有限公司 Application starting control method and device, storage medium and intelligent terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2511815A1 (en) * 2009-12-08 2012-10-17 Infraware Technology, Inc. Terminal device having virtual machine-based hierarchical structure for executing heterogeneous applications
CN103019706A (en) * 2012-11-29 2013-04-03 北京奇虎科技有限公司 Method and device for processing startup item
CN103577237A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Application program starting control method and device
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment
CN103595766A (en) * 2013-10-23 2014-02-19 北京奇虎科技有限公司 Method and device for achieving push notification of extensive application program
CN103744503A (en) * 2014-01-08 2014-04-23 广州市久邦数码科技有限公司 Method and system for prohibiting automatic running of applications after boot
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application programs

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2511815A1 (en) * 2009-12-08 2012-10-17 Infraware Technology, Inc. Terminal device having virtual machine-based hierarchical structure for executing heterogeneous applications
CN103019706A (en) * 2012-11-29 2013-04-03 北京奇虎科技有限公司 Method and device for processing startup item
CN103595766A (en) * 2013-10-23 2014-02-19 北京奇虎科技有限公司 Method and device for achieving push notification of extensive application program
CN103577237A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Application program starting control method and device
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment
CN103744503A (en) * 2014-01-08 2014-04-23 广州市久邦数码科技有限公司 Method and system for prohibiting automatic running of applications after boot
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application programs

Also Published As

Publication number Publication date
CN104123162A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN104123162B (en) The method and device that control application program is opened certainly
CN104462978B (en) A kind of method and apparatus of application program rights management
CN107203369A (en) Bullet frame reminding method and device based on Android
CN103577237B (en) The control method and device of application program launching
CN106201468B (en) A kind of processing method of screenshotss, device and electronic equipment
CN106874089B (en) A kind of processing method, device and the mobile terminal of application program self-starting
CN102347941B (en) A kind of safety applications control method based on open platform
CN103577749B (en) The treating method and apparatus of informing message
CN106874086B (en) A kind of processing method, device and the mobile terminal of application program self-starting
CN105530261B (en) The guard method of privacy information and device
CN106127030A (en) A kind of interface control method and device
CN106874048B (en) A kind of processing method, device and the mobile terminal of application program self-starting
CN103778012B (en) The method and device of change terminal operator's informaiton
CN106909834A (en) A kind of data processing method and device
CN106503155A (en) User's variable body control method and system
CN106201811A (en) The fault recovery method of application program and terminal
CN106506559A (en) Access Behavior- Based control method and device
CN104361281A (en) Method for solving phishing attack of Android platform
CN106843977A (en) A kind of processing method of application program self-starting, device and mobile terminal
CN108334404A (en) The operation method and device of application program
CN107766103A (en) A kind of terminal control method and device, terminal and readable storage medium storing program for executing
CN104461829B (en) Calculating equipment optimization method and apparatus based on window application
CN107770776A (en) WIFI security protection systems, wireless network means of defence, device and electronic equipment
CN104461741B (en) Graphics device interface based computing device optimizing method and device
CN105653904B (en) Using the processing method of screen locking, device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220808

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right