CN105094869B - Target program determines method and device - Google Patents
Target program determines method and device Download PDFInfo
- Publication number
- CN105094869B CN105094869B CN201410201940.7A CN201410201940A CN105094869B CN 105094869 B CN105094869 B CN 105094869B CN 201410201940 A CN201410201940 A CN 201410201940A CN 105094869 B CN105094869 B CN 105094869B
- Authority
- CN
- China
- Prior art keywords
- application program
- backstage
- program
- event
- behavior
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a kind of target programs to determine method and device, is related to field of mobile terminals, which comprises obtains the configuration file of application program;Monitor whether behavior is the behavior for monitoring appointing system event according to the backstage that the configuration file detects the application program;If it is to monitor the behavior of appointing system event that behavior is monitored on the backstage that testing result is the application program, it is determined that the application program is backstage self-starting application program.The present invention passes through when it is to monitor the behavior of appointing system event that behavior is monitored on the backstage for detecting application program according to configuration file, determine that the application program is backstage self-starting application program, solve the problems, such as that mobile terminal can not determine whether there is backstage self-triggered program in the application program of installation in the prior art, reach can backstage self-triggered program in automatic system, to carry out the effect of system optimization for such backstage self-triggered program.
Description
Technical field
The present invention relates to field of mobile terminals, in particular to a kind of target program determines method and device.
Background technique
With the continuous development of mobile network and electronic technology, smart phone, tablet computer and E-book reader etc.
Mobile terminal is more more and more universal, also more and more for the various application programs of these mobile terminals exploitation.
In general, most of application programs just bring into operation after receiving user's enabled instruction, however, another
A little application programs may not need the enabled instruction for receiving user and voluntarily start on the backstage of mobile terminal, for example, have it is some under
It carries program to start on backstage when detecting connection of mobile terminal into network from the background, so as to timely when having detected downloading task
Prompt user is downloaded using the downloading program, and this kind of application programs are referred to as backstage self-triggered program.
Backstage self-triggered program needs to consume certain system processing resources when starting from the background and running, and may make
At system Caton, influence user experience, and this class method is on startup, can't usually issue any prompt, mobile terminal without
Method determines in the application program installed whether there is backstage self-triggered program, also can not just carry out for such backstage self-triggered program
System optimization influences system performance.
Summary of the invention
It can not determine in the application program of installation whether there is backstage self-starting journey to solve mobile terminal in the prior art
The problem of sequence, the embodiment of the invention provides a kind of target programs to determine method and device.The technical solution is as follows:
On the one hand, it provides a kind of target program and determines method, which comprises
The configuration file of application program is obtained, row is monitored on the backstage that the configuration file is used to indicate the application program
For;
Monitor whether behavior is to monitor appointing system event according to the backstage that the configuration file detects the application program
Behavior;
If it is to monitor the behavior of appointing system event that behavior is monitored on the backstage that testing result is the application program, it is determined that
The application program is backstage self-starting application program.
On the other hand, a kind of target program determining device is provided, described device includes:
File acquisition module, for obtaining the configuration file of application program, the configuration file is used to indicate the application
Monitor behavior in the backstage of program;
Detection module, the backstage for detecting the application program according to the configuration file monitor whether behavior is monitoring
The behavior of appointing system event;
Determining module, if it is prison that behavior is monitored on the backstage that the testing result for the detection module is the application program
Listen the behavior of appointing system event, it is determined that the application program is backstage self-starting application program.
The beneficial effect of technical solution provided in an embodiment of the present invention is:
By obtaining the configuration file of application program, behavior is monitored on the backstage for detecting application program according to configuration file
It is to determine that the application program is backstage self-starting application program when monitoring the behavior of appointing system event, solve the prior art
Whether middle mobile terminal can not determine the problem of backstage self-triggered program in the application program of installation, reaching being capable of automatic system
In backstage self-triggered program, so as to for such backstage self-triggered program carry out system optimization, to save the processing of system
The effect of resource improves the effect of system performance.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the method flow diagram that target program provided by one embodiment of the present invention determines method;
Fig. 2 be another embodiment of the present invention provides target program determine the method flow diagram of method;
Fig. 3 be another embodiment of the present invention provides prompt information display schematic diagram;
Fig. 4 be another embodiment of the present invention provides a kind of user's operation respond schematic diagram;
Fig. 5 be another embodiment of the present invention provides another user's operation respond schematic diagram;
Fig. 6 is the structure drawing of device of target program determining device provided by one embodiment of the present invention;
Fig. 7 be another embodiment of the present invention provides target program determining device structure drawing of device;
Fig. 8 is the structural block diagram of terminal provided by one embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Referring to FIG. 1, it illustrates the method flow diagram that target program provided by one embodiment of the present invention determines method,
The target program determines that method can be used for determining backstage self-triggered program in the terminal, which can be intelligence
Mobile phone, tablet computer or E-book reader etc..The target program determines that method may include:
Step 102, the configuration file of application program is obtained, the backstage which is used to indicate the application program is monitored
Behavior;
Step 104, monitor whether behavior is to monitor appointing system according to the backstage that the configuration file detects the application program
The behavior of event;
Step 106, if it is to monitor the behavior of appointing system event that behavior is monitored on the backstage that testing result is the application program,
Then determine that the application program is backstage self-starting application program.
In conclusion target program provided in an embodiment of the present invention determines method, by the configuration text for obtaining application program
Part is determined when it is to monitor the behavior of appointing system event that behavior is monitored on the backstage for detecting application program according to configuration file
The application program is backstage self-starting application program, and the application program of installation can not be determined by solving mobile terminal in the prior art
In whether have the problem of backstage self-triggered program, reach can backstage self-triggered program in automatic system, it is such to be directed to
Backstage self-triggered program carries out system optimization and improves the effect of system performance to save the effect of the process resource of system.
Referring to FIG. 2, it illustrates another embodiment of the present invention provides target program determine the method flow diagram of method,
The target program determines that method can be used for determining backstage self-triggered program in the terminal, which can be intelligence
Mobile phone, tablet computer or E-book reader etc..The target program determines that method may include:
Step 202, the configuration file of application program is obtained by package manager, which is used to indicate this using journey
Monitor behavior in the backstage of sequence;
Package manager is come in the operating system that mobile device is carried, by taking Android as an example, each application program can
The package manager of the primary offer of Android is obtained with the context applied by itself, specific code is as follows:
PackageManager pm=this.getApplicationContext () .getPackageManager ();
Wherein, pm is the package manager got.
System can obtain the configuration file of application program by package manager, include each application in the configuration file
The behavior characteristic information of program, these behavior characteristic informations are used to describe the various actions of application program, wherein just including application
The behavior of program backstage monitoring system broadcast.
Step 204, monitor whether behavior is to monitor appointing system according to the backstage that the configuration file detects the application program
The behavior of event;
Wherein, whether it includes the corresponding characteristic character of appointing system event which can detecte in the configuration file
String.
Backstage self-triggered program has the feature that they can monitor the various various system events of mobile phone environment, when this
When a little system events generate, system can send the broadcast message of corresponding event, and application program can receive these broadcast messages, when
When backstage self-triggered program judges that the system event received is appointing system event, i.e., in the automatic starting in backstage.
Based on this, whether system be can detecte in the configuration file of the application program got comprising application program installation thing
Part, application program unloading event, Wi-Fi (Wireless Fidelity, Wireless Fidelity) change events, short message receive event, exhale
It cries and receives the corresponding feature string of at least one of event and date setting event event.
Specifically, backstage self-triggered program would generally have application program to pacify loading, unloading, network change, reception in systems
To short message, receive calling, the setting events such as date-time when voluntarily start, system send with these appointing system events pair
The broadcast message answered is as follows:
" android.intent.action.PACKAGE_ADDED "-application program Installation Events;
" android.intent.action.PACKAGE_REMOVED "-application program unloading event;
" android.net.wifi.WIFI_STATE_CHANGED "-Wi-Fi change events;
" android.provider.Telephony.SMS_RECEIVED "-receives short message event;
" android.intent.action.PHONE_STATE "-receives telephone event;
Date event is arranged in " android.intent.action.TIME_SET "-.
Each broadcast message is a character string, and the character string for including in these broadcast messages is each system thing
The corresponding feature string of part.
Step 206, if it is to monitor the behavior of appointing system event that behavior is monitored on the backstage that testing result is the application program,
Then determine that the application program is backstage self-starting application program;
System, which passes through the package manager got, can inquire the behavior which program has these broadcast messages of monitoring,
These programs are assured that as backstage self-triggered program.Whether wrapped specifically, system is inquired in the configuration file got
Exist containing the character string to broadcast the message above, if it is present confirming that the application program is backstage self-triggered program.
Step 208, the application program is being closed from the background;
After system detection is backstage self-triggered program to the application program, if finding, the application program is opening from the background
It is dynamic, then the application program is being closed from the background, system is being optimized with optimization, to reach saving system processing resources, improving
The effect of system performance.
Alternatively, system can also close the application program when receiving the instruction of cleaning background program of user's sending.
Step 210, it prompts the user whether to unload the application program, and after user selects confirmation, which is unloaded
It carries.
Specifically, prompt information display schematic diagram shown in Figure 3, wherein system is determining that the application program is
After the self-triggered program of backstage, prompt user's application program as backstage self-triggered program in the form of prompting frame, inquiry user is
No unloading unloads the application program if user selects unloading.
In practical applications, smart phone can provide backstage self-triggered program closing function, specifically, to carry
For the smart phone of android system, a kind of user's operation shown in Figure 4 responds schematic diagram, wherein smart phone
Show the icon of a backstage clearing function passes through packet after smart phone detects that user clicks the icon in main interface
Manager obtains the configuration file for each application program installed in smart phone, and detects the configuration file of each application program
In whether include in system occur application program peace loading, unloading, network change, receive short message, receive calling, setting day
The character string in system broadcasts issued when the particular events such as time phase, and will include these particular events pair in configuration file
The application program for the character string in system broadcasts answered is determined as backstage self-triggered program, if detecting the backstage self-triggered program
It has been started up, then closes the backstage self-triggered program, while showing to user and closing determining backstage self-triggered program
Processing result.Smart phone can also prompt user to delete backstage self-triggered program, for example, shown in Figure 5 is another
Kind user's operation responds schematic diagram, after smart phone detects that user clicks the icon of backstage clearing function, i.e., according to each
The configuration file of application program determines all backstage self-triggered programs, and shows each backstage self-triggered program column to user
Table corresponds to each backstage self-triggered program in list and a unloading key is arranged, and smart phone detects that user clicks some
When the corresponding unloading key of backstage self-triggered program, i.e., the backstage self-triggered program is unloaded.
In practical applications, mobile terminal is after determining that an application program is backstage self-triggered program, also by the application
The mark of program is added into backstage self-triggered program list, and whether the application program installed in subsequent detection mobile terminal is backstage
When self-triggered program, the mark of the application program is obtained first, and the backstage that identifies whether to be present in for detecting the application program is opened certainly
In traverse sequence table, if the mark of the application program is present in the self-triggered program list of backstage, it is determined that the application program is
Backstage self-triggered program saves system resource to simplify the detection process of backstage self-triggered program.
In conclusion target program provided in an embodiment of the present invention determines method, by the configuration text for obtaining application program
Part is determined when it is to monitor the behavior of appointing system event that behavior is monitored on the backstage for detecting application program according to configuration file
The application program is backstage self-starting application program, and the application program of installation can not be determined by solving mobile terminal in the prior art
In whether have the problem of backstage self-triggered program, reach can backstage self-triggered program in automatic system, it is such to be directed to
Backstage self-triggered program carries out system optimization and improves the effect of system performance to save the effect of the process resource of system.
Referring to FIG. 6, it illustrates the structure drawing of device of target program determining device provided by one embodiment of the present invention,
The target program determining device can be used for determining backstage self-triggered program in the terminal, which can be intelligence
Mobile phone, tablet computer or E-book reader etc..The target program determining device may include:
File acquisition module 301, for obtaining the configuration file of application program, the configuration file is used to indicate described answer
Behavior is monitored with the backstage of program;
Detection module 302, for detected according to the configuration file application program backstage monitor behavior whether be
Monitor the behavior of appointing system event;
Determining module 303, if row is monitored on the backstage that the testing result for the detection module 302 is the application program
For the behavior for being monitoring appointing system event, it is determined that the application program is backstage self-starting application program.
In conclusion target program determining device provided in an embodiment of the present invention, by the configuration text for obtaining application program
Part is determined when it is to monitor the behavior of appointing system event that behavior is monitored on the backstage for detecting application program according to configuration file
The application program is backstage self-starting application program, and the application program of installation can not be determined by solving mobile terminal in the prior art
In whether have the problem of backstage self-triggered program, reach can backstage self-triggered program in automatic system, it is such to be directed to
Backstage self-triggered program carries out system optimization and improves the effect of system performance to save the effect of the process resource of system.
Referring to FIG. 7, it illustrates another embodiment of the present invention provides target program determining device structure drawing of device,
The target program determining device can be used for determining backstage self-triggered program in the terminal, which can be intelligence
Mobile phone, tablet computer or E-book reader etc..The target program determining device may include:
File acquisition module 401, for obtaining the configuration file of application program, the configuration file is used to indicate described answer
Behavior is monitored with the backstage of program;
Detection module 402, for detected according to the configuration file application program backstage monitor behavior whether be
Monitor the behavior of appointing system event;
Determining module 403, if row is monitored on the backstage that the testing result for the detection module 302 is the application program
For the behavior for being monitoring appointing system event, it is determined that the application program is backstage self-starting application program.
Whether the detection module 402 includes that the appointing system event is corresponding for detecting in the configuration file
Feature string.
The detection module 402, for detect in the configuration file whether comprising application program Installation Events, using journey
Sequence unloading event, Wi-Fi change events, short message receive event, calling at least one of reception event and date setting event
The corresponding feature string of event.
The file acquisition module 401, for obtaining the configuration file of the application program by package manager.
Described device further include:
Stop module 404, for closing the application program from the background;
Cue module 405 unloads the application program for prompting the user whether;
Unload module 406, for after user selects confirmation, the application program to be unloaded.
In conclusion target program determining device provided in an embodiment of the present invention, by the configuration text for obtaining application program
Part is determined when it is to monitor the behavior of appointing system event that behavior is monitored on the backstage for detecting application program according to configuration file
The application program is backstage self-starting application program, and the application program of installation can not be determined by solving mobile terminal in the prior art
In whether have the problem of backstage self-triggered program, reach can backstage self-triggered program in automatic system, it is such to be directed to
Backstage self-triggered program carries out system optimization and improves the effect of system performance to save the effect of the process resource of system.
Referring to FIG. 8, the structural block diagram of the terminal provided it illustrates an embodiment of the present disclosure, the terminal is for real
It applies target program provided by the above embodiment and determines method, the terminal 500 in the embodiment of the present disclosure may include one or more
Following component part: completing the processor of various processes and method for executing computer program instructions, for information and deposits
Store up program instruction random access memory (RAM) and read-only memory (ROM), for storing data with the memory of information, I/O
Equipment, interface, antenna etc..It is specific:
Terminal 500 may include RF (Radio Frequency, radio frequency) circuit 510, memory 520, input unit 530,
Display unit 540, sensor 550, voicefrequency circuit 560, Wi-Fi (wireless fidelity, Wireless Fidelity) module 570, place
Manage the components such as device 580, power supply 582, camera 590.It will be understood by those skilled in the art that terminal structure shown in Fig. 8 is simultaneously
The not restriction of structure paired terminal may include perhaps combining certain components or different than illustrating more or fewer components
Component layout.
It is specifically introduced below with reference to each component parts of the Fig. 8 to terminal 500:
RF circuit 510 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, handled to processor 580;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet
Include but be not limited to antenna, at least one amplifier, transceiver, coupler, LNA (Low Noise Amplifier, low noise
Amplifier), duplexer etc..In addition, RF circuit 510 can also be communicated with network and other equipment by wireless communication.The nothing
Any communication standard or agreement, including but not limited to GSM (Global System of Mobile can be used in line communication
Communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet without
Line service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code
Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), electronics
Mail, SMS (Short Messaging Service, short message service) etc..
Memory 520 can be used for storing software program and module, and processor 580 is stored in memory 520 by operation
Software program and module, thereby executing the various function application and data processing of terminal 500.Memory 520 can be main
Including storing program area and storage data area, wherein storing program area can answer needed for storage program area, at least one function
With program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to terminal 500
Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 520 may include high-speed random access memory,
It can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-states are deposited
Memory device.
Input unit 530 can be used for receiving the number or character information of input, and generate the user setting with terminal 500
And the related key signals input of function control.Specifically, input unit 530 may include touch panel 531 and other inputs
Equipment 532.Touch panel 531, also referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makes
With the operation of any suitable object or attachment such as finger, stylus on touch panel 531 or near touch panel 531), and
Corresponding attachment device is driven according to preset formula.Optionally, touch panel 531 may include touch detecting apparatus and touching
Touch two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letter
Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into
Contact coordinate, then give processor 580, and order that processor 580 is sent can be received and executed.Furthermore, it is possible to using
The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 531.It is defeated in addition to touch panel 531
Entering unit 530 can also include other input equipments 532.Specifically, other input equipments 532 can include but is not limited to physics
One of keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 540 can be used for showing information input by user or the information and terminal 500 that are supplied to user
Various menus.Display unit 540 may include display panel 541, optionally, can use LCD (Liquid Crystal
Display, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) come
Configure display panel 541.Further, touch panel 531 can cover display panel 541, when touch panel 531 is detected at it
On or near touch operation after, send processor 580 to determine the type of touch event, be followed by subsequent processing device 580 according to touching
The type for touching event provides corresponding visual output on display panel 541.Although in fig. 8, touch panel 531 and display surface
Plate 541 is the input and input function for realizing terminal 500 as two independent components, but in certain embodiments, it can
That terminal 500 is realized so that touch panel 531 and display panel 541 is integrated outputs and inputs function.
Terminal 500 may also include at least one sensor 550, such as gyro sensor, magnetic induction sensor, light sensing
Device, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor and proximity sensor,
In, ambient light sensor can adjust the brightness of display panel 541 according to the light and shade of ambient light, and proximity sensor can be in terminal
500 when being moved in one's ear, closes display panel 541 and/or backlight.As a kind of motion sensor, acceleration transducer can
The size for detecting (generally three axis) acceleration in all directions, can detect that size and the direction of gravity, can be used for when static
The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of identification terminal posture, Vibration identification correlation function
(such as pedometer, percussion) etc.;Barometer, hygrometer, thermometer, infrared sensor for can also configure as terminal 500 etc.
Other sensors, details are not described herein.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and terminal 500.Audio
Electric signal after the audio data received conversion can be transferred to loudspeaker 561, be converted to sound by loudspeaker 561 by circuit 560
Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 562, after being received by voicefrequency circuit 560
Audio data is converted to, then by after the processing of audio data output processor 580, such as another end is sent to through RF circuit 510
End, or audio data is exported to memory 520 to be further processed.
Wi-Fi belongs to short range wireless transmission technology, and terminal 500 can help user to receive and dispatch electricity by Wi-Fi module 570
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 8 shows
Go out Wi-Fi module 570, but it is understood that, and it is not belonging to must be configured into for terminal 500, it completely can be according to need
It to be omitted in the range for not changing disclosed essence.
Processor 580 is the control centre of terminal 500, utilizes each portion of various interfaces and the entire terminal of connection
Point, by running or execute the software program and/or module that are stored in memory 520, and calls and be stored in memory 520
Interior data execute the various functions and processing data of terminal 500, to carry out integral monitoring to terminal.Optionally, processor
580 may include one or more processing units;Preferably, processor 580 can integrate application processor and modem processor,
Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing
Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 580.
Terminal 500 further includes the power supply 582 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 580 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.
Camera 590 is generally by groups such as camera lens, imaging sensor, interface, digital signal processor, CPU, display screens
At.Wherein, camera lens is fixed on the top of imaging sensor, can change focusing by manually adjusting camera lens;Imaging sensor
It is equivalent to " film " of traditional camera, is the heart of camera collection image;Interface is used for camera using winding displacement, plate to plate
Connector, spring connection type are connect with terminal mainboard, and the image of acquisition is sent to the memory 520;Digital signal
Processor is handled by image of the mathematical operation to acquisition, the analog image of acquisition is converted to digital picture and by connecing
Mouth is sent to memory 520.
Although being not shown, terminal 500 can also be including bluetooth module etc., and details are not described herein.
Terminal 500 in addition to include one or more processor 580, further include have memory and one or more
Module, one or more module are stored in memory, and are configured to be executed by one or more processor.On
One or more module is stated with following function:
The configuration file of application program is obtained, row is monitored on the backstage that the configuration file is used to indicate the application program
For;
Monitor whether behavior is to monitor appointing system event according to the backstage that the configuration file detects the application program
Behavior;
If it is to monitor the behavior of appointing system event that behavior is monitored on the backstage that testing result is the application program, it is determined that
The application program is backstage self-starting application program.
The backstage for detecting the application program according to the configuration file monitors whether behavior is to monitor appointing system
The behavior of event, comprising:
Whether detect in the configuration file includes the corresponding feature string of the appointing system event.
It whether include the corresponding feature string of the appointing system event in the detection configuration file, packet
It includes:
It whether detects in the configuration file comprising application program Installation Events, application program unloading event, Wireless Fidelity
Wi-Fi change events, short message receive event, the calling corresponding spy of at least one of reception event and date setting event event
Levy character string.
The configuration file for obtaining application program, comprising:
The configuration file of the application program is obtained by package manager.
The function further include:
The application program is being closed from the background;
And/or
It prompts the user whether to unload the application program, and after user selects confirmation, the application program is unloaded.
In conclusion terminal provided in an embodiment of the present invention, by obtaining the configuration file of application program, according to configuration
It is when monitoring the behavior of appointing system event, after determining that the application program is that file, which detects that behavior is monitored on the backstage of application program,
Platform self-starting application program, solving mobile terminal in the prior art can not determine in the application program of installation whether there is backstage certainly
The problem of startup program, reach can backstage self-triggered program in automatic system, to be directed to such backstage self-triggered program
It carries out system optimization and improves the effect of system performance to save the effect of the process resource of system.
It should be understood that target program determining device provided by the above embodiment carry out target program determine when, only
The example of the division of the above functional modules, in practical application, can according to need and by above-mentioned function distribution by
Different functional modules is completed, i.e., the internal structure of device is divided into different functional modules, described above complete to complete
Portion or partial function.In addition, target program determining device provided by the above embodiment and target program determine embodiment of the method
Belong to same design, specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of target program determines method, which is characterized in that the described method includes:
The configuration file of application program is obtained, behavior is monitored on the backstage that the configuration file is used to indicate the application program;
Monitor whether behavior is the row for monitoring appointing system event according to the backstage that the configuration file detects the application program
For the appointing system event includes at least one of the following: application program Installation Events, application program unloading event, wireless guarantor
True Wi-Fi change events, short message receive event, calling reception event and date setting event;
If it is to monitor the behavior of appointing system event that behavior is monitored on the backstage that testing result is the application program, it is determined that described
Application program is backstage self-starting application program;
The mark of the backstage self-starting application program is added into backstage self-triggered program list, to detect the application of installation
When whether program is backstage self-triggered program, based on the backstage self-starting application program in the backstage self-triggered program list
Mark determines that the corresponding application program of the mark is backstage self-triggered program.
2. the method according to claim 1, wherein described detect the application program according to the configuration file
Backstage monitor behavior whether be monitor appointing system event behavior, comprising:
Whether detect in the configuration file includes the corresponding feature string of the appointing system event.
3. according to the method described in claim 2, it is characterized in that, whether including described in the detection configuration file
The corresponding feature string of appointing system event, comprising:
It whether detects in the configuration file comprising application program Installation Events, application program unloading event, Wireless Fidelity Wi-Fi
Change events, short message receive event, the calling corresponding tagged word of at least one of reception event and date setting event event
Symbol string.
4. the method according to claim 1, wherein the configuration file for obtaining application program, comprising:
The configuration file of the application program is obtained by package manager.
5. the method according to claim 1, wherein the method also includes:
The application program is being closed from the background;
And/or
It prompts the user whether to unload the application program, and after user selects confirmation, the application program is unloaded.
6. a kind of target program determining device, which is characterized in that described device includes:
File acquisition module, for obtaining the configuration file of application program, the configuration file is used to indicate the application program
Backstage monitor behavior;
Detection module, the backstage for detecting the application program according to the configuration file monitor whether behavior is to monitor to specify
The behavior of system event, the appointing system event include at least one of the following: application program Installation Events, application program unloading
Event, Wireless Fidelity Wi-Fi change events, short message receive event, calling reception event and date setting event;
Determining module, if it is to monitor to refer to that behavior is monitored on the backstage that the testing result for the detection module is the application program
Determine the behavior of system event, it is determined that the application program is backstage self-starting application program;
The mark of the backstage self-starting application program is added into backstage self-triggered program list, to detect the application of installation
When whether program is backstage self-triggered program, based on the backstage self-starting application program in the backstage self-triggered program list
Mark determines that the corresponding application program of the mark is backstage self-triggered program.
7. device according to claim 6, which is characterized in that
Whether the detection module in the configuration file includes the corresponding tagged word of the appointing system event for detecting
Symbol string.
8. device according to claim 7, which is characterized in that
The detection module, for whether detecting in the configuration file comprising application program Installation Events, application program unloading
Event, Wireless Fidelity Wi-Fi change events, short message receive at least one in event, calling reception event and date setting event
The corresponding feature string of kind event.
9. device according to claim 6, which is characterized in that
The file acquisition module, for obtaining the configuration file of the application program by package manager.
10. device according to claim 6, which is characterized in that described device further include:
Stop module, for closing the application program from the background;
Cue module unloads the application program for prompting the user whether;
Unload module, for after user selects confirmation, the application program to be unloaded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410201940.7A CN105094869B (en) | 2014-05-14 | 2014-05-14 | Target program determines method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410201940.7A CN105094869B (en) | 2014-05-14 | 2014-05-14 | Target program determines method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105094869A CN105094869A (en) | 2015-11-25 |
CN105094869B true CN105094869B (en) | 2019-09-20 |
Family
ID=54575392
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410201940.7A Active CN105094869B (en) | 2014-05-14 | 2014-05-14 | Target program determines method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105094869B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109992363B (en) * | 2017-12-29 | 2021-03-26 | Oppo广东移动通信有限公司 | Application program processing method and device, electronic equipment and computer readable storage medium |
CN112433613A (en) * | 2020-11-25 | 2021-03-02 | 平安普惠企业管理有限公司 | Method, system, electronic device and medium for starting function |
CN116974434A (en) * | 2022-04-22 | 2023-10-31 | 华为技术有限公司 | Display method and electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103595547A (en) * | 2013-11-15 | 2014-02-19 | 北京奇虎科技有限公司 | Broadcast intercept method and device of intelligent equipment |
-
2014
- 2014-05-14 CN CN201410201940.7A patent/CN105094869B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103595547A (en) * | 2013-11-15 | 2014-02-19 | 北京奇虎科技有限公司 | Broadcast intercept method and device of intelligent equipment |
Non-Patent Citations (1)
Title |
---|
去除自启动应用的问题;CSDN;《https://bbs.csdn.net/topics/390639162》;20131130;第1-3页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105094869A (en) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978176B (en) | Application programming interfaces call method, device and computer readable storage medium | |
CN104093123B (en) | The information-pushing method of application program, device and system, mobile terminal | |
CN106371964B (en) | Method and device for prompting message | |
CN103488939A (en) | Method, device and terminal for prompting user | |
CN108834132B (en) | Data transmission method and equipment and related medium product | |
CN106254910B (en) | Method and device for recording image | |
CN107465841B (en) | Fault information reporting method and terminal | |
CN104571979B (en) | A kind of method and apparatus for realizing split view | |
CN104407804A (en) | Screen capturing method and screen capturing device as well as electronic device | |
CN106791916B (en) | Method, device and system for recommending audio data | |
CN109144441A (en) | A kind of screen adjustment method, terminal and computer readable storage medium | |
CN106033467A (en) | Image file sharing method and device | |
CN108197934A (en) | A kind of method of payment and terminal device | |
CN109274818A (en) | Method for down loading, mobile terminal and the computer storage medium of application program | |
US20160308879A1 (en) | Application-Based Service Providing Method, Apparatus, and System | |
CN103177217A (en) | File scan method, file scan system, client-side and server | |
CN110020386A (en) | Application page sharing method, mobile terminal and computer readable storage medium | |
CN108920054A (en) | A kind of application recommended method and terminal | |
CN104573437A (en) | Information authentication method, device and terminal | |
CN104253870A (en) | Method and device for controlling data access period | |
CN103546632A (en) | Method and device for alarm ringing of mobile terminal and mobile terminal | |
CN109688611B (en) | Frequency band parameter configuration method, device, terminal and storage medium | |
CN106095423B (en) | Method, terminal and server for providing browsing service | |
CN105094869B (en) | Target program determines method and device | |
CN106919458B (en) | Method and device for Hook target kernel function |
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 | ||
GR01 | Patent grant |