CN105094869A - Target program determination method and apparatus - Google Patents

Target program determination method and apparatus Download PDF

Info

Publication number
CN105094869A
CN105094869A CN201410201940.7A CN201410201940A CN105094869A CN 105094869 A CN105094869 A CN 105094869A CN 201410201940 A CN201410201940 A CN 201410201940A CN 105094869 A CN105094869 A CN 105094869A
Authority
CN
China
Prior art keywords
application program
behavior
backstage
configuration file
event
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.)
Granted
Application number
CN201410201940.7A
Other languages
Chinese (zh)
Other versions
CN105094869B (en
Inventor
郑晓胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410201940.7A priority Critical patent/CN105094869B/en
Publication of CN105094869A publication Critical patent/CN105094869A/en
Application granted granted Critical
Publication of CN105094869B publication Critical patent/CN105094869B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

Embodiments of the invention provide a target program determination method and apparatus, and relates to the field of mobile terminals. The method comprises: acquiring a configuration file of an application; according to the configuration file, detecting whether a background listening behavior of the application is a behavior of listening to a specified system event; and if a detection result is that the background listening behavior of the application is the behavior of listening to the specified system event, determining that the application is a background self-started application. According to the target program determination method provided by the invention, by determining that the application is the background self-started application when it is detected according to the configuration file that the background listening behavior of the application is the behavior of listening to the specified system event, the problem that a mobile terminal in the prior art cannot determine whether a background self-started application is among installed applications is solved, and the effects that the background self-started application in a system can be automated so as to perform system optimization aiming at the background self-started applications are realized.

Description

Target program defining method and device
Technical field
The present invention relates to field of mobile terminals, particularly a kind of target program defining method and device.
Background technology
Along with the development of mobile network and electronic technology, the mobile terminals such as smart mobile phone, panel computer and E-book reader are more and more universal, and the various application programs developed for these mobile terminals also get more and more.
Under normal conditions, most of application program just brings into operation after receiving user's enabled instruction, but, other application programs can start on the backstage of mobile terminal voluntarily without the need to receiving the enabled instruction of user, such as, have some to download when connection of mobile terminal into network to be detected on backstage to start on backstage, download to point out user to use this to download in time when downloading task having been detected, this class application program is called as backstage self-triggered program.
When backstage self-triggered program starts on backstage and runs, need to consume certain system processing resources, system card may be caused to pause, affect Consumer's Experience, and this class method is when starting, usually can't send any prompting, mobile terminal cannot determine whether there is backstage self-triggered program in the application program of installing, also just system optimization cannot be carried out for this type of backstage self-triggered program, influential system performance.
Summary of the invention
The problem of backstage self-triggered program cannot be determined whether to have in the application program of installing to solve mobile terminal in prior art, embodiments providing a kind of target program defining method and device.Described technical scheme is as follows:
On the one hand, provide a kind of target program defining method, described method comprises:
Obtain the configuration file of application program, behavior is monitored on the backstage that described configuration file is used to indicate described application program;
Whether the backstage behavior of monitoring detecting described application program according to described configuration file is the behavior of monitoring appointing system event;
If the backstage that testing result is described application program behavior of monitoring is the behavior of monitoring appointing system event, then determine that described application program is backstage self-starting application program.
On the other hand, provide a kind of target program determining device, described device comprises:
File acquisition module, for obtaining the configuration file of application program, behavior is monitored on the backstage that described configuration file is used to indicate described application program;
Detection module, whether behavior is monitored on the backstage for detecting described application program according to described configuration file is the behavior of monitoring appointing system event;
Determination module, if be described application program for the testing result of described detection module, backstage behavior of monitoring is the behavior of monitoring appointing system event, then determine that described application program is backstage self-starting application program.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
By obtaining the configuration file of application program, when detecting that according to configuration file the behavior of monitoring of the backstage of application program is the behavior of monitoring appointing system event, determine that this application program is backstage self-starting application program, solve the problem that mobile terminal in prior art cannot determine whether to have in the application program of installing backstage self-triggered program, reaching can backstage self-triggered program in automatic system, to carry out system optimization for this type of backstage self-triggered program, thus the effect of the process resource of the system of saving, improve the effect of system performance.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the target program defining method that one embodiment of the invention provides;
Fig. 2 is the method flow diagram of the target program defining method that another embodiment of the present invention provides;
Fig. 3 is the information display schematic diagram that another embodiment of the present invention provides;
Fig. 4 is a kind of user operation response schematic diagram that another embodiment of the present invention provides;
Fig. 5 is the another kind of user operation response schematic diagram that another embodiment of the present invention provides;
Fig. 6 is the structure drawing of device of the target program determining device that one embodiment of the invention provides;
Fig. 7 is the structure drawing of device of the target program determining device that another embodiment of the present invention provides;
Fig. 8 is the block diagram of the terminal that one embodiment of the invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Please refer to Fig. 1, it illustrates the method flow diagram of the target program defining method that one embodiment of the invention provides, this target program defining method may be used for determining backstage self-triggered program in the terminal, and this mobile terminal can be smart mobile phone, panel computer or E-book reader etc.This target program defining method can comprise:
Step 102, obtains the configuration file of application program, and behavior is monitored on the backstage that this configuration file is used to indicate this application program;
Step 104, whether the backstage behavior of monitoring detecting this application program according to this configuration file is the behavior of monitoring appointing system event;
Step 106, if the backstage that testing result is this application program behavior of monitoring is the behavior of monitoring appointing system event, then determines that this application program is backstage self-starting application program.
In sum, the target program defining method that the embodiment of the present invention provides, by obtaining the configuration file of application program, when detecting that according to configuration file the behavior of monitoring of the backstage of application program is the behavior of monitoring appointing system event, determine that this application program is backstage self-starting application program, solve the problem that mobile terminal in prior art cannot determine whether to have in the application program of installing backstage self-triggered program, reaching can backstage self-triggered program in automatic system, to carry out system optimization for this type of backstage self-triggered program, thus the effect of the process resource of the system of saving, improve the effect of system performance.
Please refer to Fig. 2, it illustrates the method flow diagram of the target program defining method that another embodiment of the present invention provides, this target program defining method may be used for determining backstage self-triggered program in the terminal, and this mobile terminal can be smart mobile phone, panel computer or E-book reader etc.This target program defining method can comprise:
Step 202, obtains the configuration file of application program by package manager, behavior is monitored on the backstage that this configuration file is used to indicate this application program;
Carry package manager in the operating system that mobile device carries, for Android, each application program can obtain the primary package manager provided of Android by the context of self application, and its specific code is as follows:
PackageManagerpm=this.getApplicationContext().getPackageManager();
Wherein, namely pm is the package manager got.
System can obtain the configuration file of application program by package manager, the behavior characteristic information of each application program is included in this configuration file, these behavior characteristic information, for describing the various actions of application program, wherein just comprise the behavior of application program backstage monitoring system broadcast.
Step 204, whether the backstage behavior of monitoring detecting this application program according to this configuration file is the behavior of monitoring appointing system event;
Wherein, this system can detect in this configuration file and whether include appointing system event characteristic of correspondence character string.
Backstage self-triggered program has following characteristics: they can monitor the various various system events of mobile phone environment, when these system events produce, system can send the broadcast of corresponding event, application program can receive these broadcasts, when the system event that backstage self-triggered program is judged to receive is appointing system event, namely automatically start on backstage.
Based on this, system can detect in the configuration file of the application program got whether comprise application program Installation Events, application program unloading event, Wi-Fi (WirelessFidelity, Wireless Fidelity) change events, note receive event, calling reception event and date and arrange at least one event characteristic of correspondence character string in event.
Concrete; backstage self-triggered program usually can have application program to pacify loading, unloading, network change in systems in which, receives note, receives calling, start voluntarily when arranging the events such as date-time, and the broadcast corresponding with these appointing system events of system transmission 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 "-receive short message event;
" android.intent.action.PHONE_STATE "-receive telephone event;
" android.intent.action.TIME_SET "-date event is set.
Each broadcast is a character string, and the character string comprised in these broadcasts is each system event characteristic of correspondence character string.
Step 206, if the backstage that testing result is this application program behavior of monitoring is the behavior of monitoring appointing system event, then determines that this application program is backstage self-starting application program;
Which program is system can inquire by the package manager got has the behavior of monitoring these broadcasts, and these programs just can be defined as backstage self-triggered program.Concrete, system is inquired about the character string whether comprising above broadcast and is existed in the configuration file got, if existed, then confirms that this application program is backstage self-triggered program.
Step 208, closes this application program on backstage;
After systems axiol-ogy is backstage self-triggered program to this application program, if find, this application program starts on backstage, then close this application program on backstage, be optimized to optimize to system, thus reach saving system processing resources, improves the effect of system performance.
Or system also can close this application program when receiving the instruction of the cleaning background program that user sends.
Step 210, whether prompting user unloads this application program, and after user selects confirmation, this application program is unloaded.
Concrete, information display schematic diagram shown in Figure 3, wherein, system is after determining that this application program is backstage self-triggered program, with this application program of the form of prompting frame prompting user for backstage self-triggered program, whether inquiry user unloads, if user selects unloading, then this application program is unloaded.
In actual applications, smart mobile phone can provide backstage self-triggered program closing function, concrete, to carry the smart mobile phone of android system, a kind of user operation response schematic diagram shown in Figure 4, wherein, the icon of a backstage clearing function is shown in the main interface of smart mobile phone, after smart mobile phone detects that user clicks this icon, namely the configuration file of each application program of installing in smart mobile phone is obtained by package manager, and detect in the configuration file of each application program whether include in system occur application program install, unloading, network change, receive note, receive calling, character string in the system broadcasts sent when the particular events such as date-time are set, and the application program of the character string included in configuration file in system broadcasts corresponding to these particular events is defined as backstage self-triggered program, if detect, this backstage self-triggered program starts, then close this backstage self-triggered program, simultaneously to user's display by result that the backstage self-triggered program determined is closed.Smart mobile phone also can point out user to delete backstage self-triggered program, such as, another kind of user operation response schematic diagram shown in Figure 5, after smart mobile phone detects that user clicks the icon of backstage clearing function, namely all backstage self-triggered programs are determined according to the configuration file of each application program, and show each backstage self-triggered program list to user, in list, each backstage self-triggered program corresponding arranges a unloading button, when smart mobile phone detects that user clicks the unloading button of the correspondence of certain backstage self-triggered program, by this backstage self-triggered program unloading.
In actual applications, mobile terminal is after determining that an application program is backstage self-triggered program, also the mark of this application program is added into backstage self-triggered program list, when whether the application program of installing in subsequent detection mobile terminal is backstage self-triggered program, first the mark of this application program is obtained, whether the mark detecting this application program is present in the self-triggered program list of backstage, if the mark of this application program is present in the self-triggered program list of backstage, then determine that this application program is backstage self-triggered program, thus simplify the testing process of backstage self-triggered program, save system resource.
In sum, the target program defining method that the embodiment of the present invention provides, by obtaining the configuration file of application program, when detecting that according to configuration file the behavior of monitoring of the backstage of application program is the behavior of monitoring appointing system event, determine that this application program is backstage self-starting application program, solve the problem that mobile terminal in prior art cannot determine whether to have in the application program of installing backstage self-triggered program, reaching can backstage self-triggered program in automatic system, to carry out system optimization for this type of backstage self-triggered program, thus the effect of the process resource of the system of saving, improve the effect of system performance.
Please refer to Fig. 6, it illustrates the structure drawing of device of the target program determining device that one embodiment of the invention provides, this target program determining device may be used for determining backstage self-triggered program in the terminal, and this mobile terminal can be smart mobile phone, panel computer or E-book reader etc.This target program determining device can comprise:
File acquisition module 301, for obtaining the configuration file of application program, behavior is monitored on the backstage that described configuration file is used to indicate described application program;
Detection module 302, whether behavior is monitored on the backstage for detecting described application program according to described configuration file is the behavior of monitoring appointing system event;
Determination module 303, if be described application program for the testing result of described detection module 302, backstage behavior of monitoring is the behavior of monitoring appointing system event, then determine that described application program is backstage self-starting application program.
In sum, the target program determining device that the embodiment of the present invention provides, by obtaining the configuration file of application program, when detecting that according to configuration file the behavior of monitoring of the backstage of application program is the behavior of monitoring appointing system event, determine that this application program is backstage self-starting application program, solve the problem that mobile terminal in prior art cannot determine whether to have in the application program of installing backstage self-triggered program, reaching can backstage self-triggered program in automatic system, to carry out system optimization for this type of backstage self-triggered program, thus the effect of the process resource of the system of saving, improve the effect of system performance.
Please refer to Fig. 7, it illustrates the structure drawing of device of the target program determining device that another embodiment of the present invention provides, this target program determining device may be used for determining backstage self-triggered program in the terminal, and this mobile terminal can be smart mobile phone, panel computer or E-book reader etc.This target program determining device can comprise:
File acquisition module 401, for obtaining the configuration file of application program, behavior is monitored on the backstage that described configuration file is used to indicate described application program;
Detection module 402, whether behavior is monitored on the backstage for detecting described application program according to described configuration file is the behavior of monitoring appointing system event;
Determination module 403, if be described application program for the testing result of described detection module 302, backstage behavior of monitoring is the behavior of monitoring appointing system event, then determine that described application program is backstage self-starting application program.
Whether described detection module 402, include described appointing system event characteristic of correspondence character string for detecting in described configuration file.
Whether described detection module 402, comprise application program Installation Events for detecting in described configuration file, application program unloading event, Wi-Fi change events, note receive event, calling reception event and date and arrange at least one event characteristic of correspondence character string in event.
Described file acquisition module 401, for obtaining the configuration file of described application program by package manager.
Described device also comprises:
Stop module 404, for closing described application program on backstage;
Whether reminding module 405, unload described application program for pointing out user;
Unload module 406, for select confirmation user after, unloads described application program.
In sum, the target program determining device that the embodiment of the present invention provides, by obtaining the configuration file of application program, when detecting that according to configuration file the behavior of monitoring of the backstage of application program is the behavior of monitoring appointing system event, determine that this application program is backstage self-starting application program, solve the problem that mobile terminal in prior art cannot determine whether to have in the application program of installing backstage self-triggered program, reaching can backstage self-triggered program in automatic system, to carry out system optimization for this type of backstage self-triggered program, thus the effect of the process resource of the system of saving, improve the effect of system performance.
Please refer to Fig. 8, it illustrates the block diagram of the terminal that disclosure embodiment provides, the target program defining method that this terminal provides for implementing above-described embodiment, terminal 500 in disclosure embodiment can comprise one or more following ingredient: for performing computer program instructions to complete the processor of various flow process and method, for information and stored program instruction random access memory (RAM) and ROM (read-only memory) (ROM), for storing the storer of data and information, I/O equipment, interface, antenna etc.Concrete:
Terminal 500 can comprise RF (RadioFrequency, radio frequency) parts such as circuit 510, storer 520, input block 530, display unit 540, sensor 550, voicefrequency circuit 560, Wi-Fi (wirelessfidelity, Wireless Fidelity) module 570, processor 580, power supply 582, camera 590.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 8, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 8 each component parts to terminal 500:
RF circuit 510 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 580; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, LNA (LowNoiseAmplifier, low noise amplifier), diplexer etc.In addition, RF circuit 510 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, CDMA), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.
Storer 520 can be used for storing software program and module, and processor 580 is stored in software program and the module of storer 520 by running, thus performs various function application and the data processing of terminal 500.Storer 520 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 500.In addition, storer 520 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 530 can be used for the numeral or the character information that receive input, and generation arranges with the user of terminal 500 and function controls the input of relevant key signals.Particularly, input block 530 can comprise contact panel 531 and other input equipments 532.Contact panel 531, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 531 or near contact panel 531 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, contact panel 531 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 580, and the order that energy receiving processor 580 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 531.Except contact panel 531, input block 530 can also comprise other input equipments 532.Particularly, other input equipments 532 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 540 can be used for the various menus showing information or the information being supplied to user and the terminal 500 inputted by user.Display unit 540 can comprise display panel 541, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display panel 541.Further, contact panel 531 can cover display panel 541, when contact panel 531 detects thereon or after neighbouring touch operation, send processor 580 to determine the type of touch event, on display panel 541, provide corresponding vision to export with preprocessor 580 according to the type of touch event.Although in fig. 8, contact panel 531 and display panel 541 be as two independently parts to realize input and the input function of terminal 500, but in certain embodiments, can by integrated to contact panel 531 and display panel 541 and realize the input and output function of terminal 500.
Terminal 500 also can comprise at least one sensor 550, such as gyro sensor, magnetic induction sensor, optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 541, proximity transducer when terminal 500 moves in one's ear, can cut out display panel 541 and/or backlight.As the one of motion sensor, acceleration transducer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of identification terminal attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal 500 also other sensors such as configurable barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and terminal 500.Voicefrequency circuit 560 can by receive voice data conversion after electric signal, be transferred to loudspeaker 561, by loudspeaker 561 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 562, voice data is converted to after being received by voicefrequency circuit 560, after again voice data output processor 580 being processed, through RF circuit 510 to send to such as another terminal, or export voice data to storer 520 to process further.
Wi-Fi belongs to short range wireless transmission technology, and terminal 500 can help user to send and receive e-mail by Wi-Fi module 570, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 8 shows Wi-Fi module 570, be understandable that, it does not belong to must forming of terminal 500, can omit in the scope not changing disclosed essence as required completely.
Processor 580 is control centers of terminal 500, utilize the various piece of various interface and the whole terminal of connection, software program in storer 520 and/or module is stored in by running or performing, and call the data be stored in storer 520, perform various function and the process data of terminal 500, thus integral monitoring is carried out to terminal.Optionally, processor 580 can comprise one or more processing unit; Preferably, processor 580 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 580.
Terminal 500 also comprises the power supply 582 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 580 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Camera 590 is generally made up of camera lens, imageing sensor, interface, digital signal processor, CPU, display screen etc.Wherein, camera lens is fixed on the top of imageing sensor, manually can change focusing by adjustable lens; Imageing sensor is equivalent to " film " of traditional camera, is the heart of camera collection image; Interface is used for camera to utilize winding displacement, board to board connector, spring connected mode to be connected with terminal mainboard, and the image of collection is sent to described storer 520; Digital signal processor is processed the image gathered by mathematical operation, the analog image of collection is converted to digital picture and sends to storer 520 by interface.
Although not shown, terminal 500 can also comprise bluetooth module etc., does not repeat them here.
Terminal 500, except comprising one or more processor 580, also includes storer, and one or more module, and one or more module stores in storer, and is configured to be performed by one or more processor.One or more module above-mentioned has following function:
Obtain the configuration file of application program, behavior is monitored on the backstage that described configuration file is used to indicate described application program;
Whether the backstage behavior of monitoring detecting described application program according to described configuration file is the behavior of monitoring appointing system event;
If the backstage that testing result is described application program behavior of monitoring is the behavior of monitoring appointing system event, then determine that described application program is backstage self-starting application program.
Whether the described backstage behavior of monitoring detecting described application program according to described configuration file is the behavior of monitoring appointing system event, comprising:
Detect in described configuration file and whether include described appointing system event characteristic of correspondence character string.
Whether include described appointing system event characteristic of correspondence character string in the described configuration file of described detection, comprising:
Detect in described configuration file whether comprise application program Installation Events, application program unloading event, Wireless Fidelity Wi-Fi change events, note receive event, calling reception event and date and arrange at least one event characteristic of correspondence character string in event.
The configuration file of described acquisition application program, comprising:
The configuration file of described application program is obtained by package manager.
Described function also comprises:
Described application program is closed on backstage;
And/or,
Whether prompting user unloads described application program, and after user selects confirmation, described application program is unloaded.
In sum, the terminal that the embodiment of the present invention provides, by obtaining the configuration file of application program, when detecting that according to configuration file the behavior of monitoring of the backstage of application program is the behavior of monitoring appointing system event, determine that this application program is backstage self-starting application program, solve the problem that mobile terminal in prior art cannot determine whether to have in the application program of installing backstage self-triggered program, reaching can backstage self-triggered program in automatic system, to carry out system optimization for this type of backstage self-triggered program, thus the effect of the process resource of the system of saving, improve the effect of system performance.
It should be noted that: the target program determining device that above-described embodiment provides is when carrying out target program and determining, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the target program determining device that above-described embodiment provides and target program defining method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a target program defining method, is characterized in that, described method comprises:
Obtain the configuration file of application program, behavior is monitored on the backstage that described configuration file is used to indicate described application program;
Whether the backstage behavior of monitoring detecting described application program according to described configuration file is the behavior of monitoring appointing system event;
If the backstage that testing result is described application program behavior of monitoring is the behavior of monitoring appointing system event, then determine that described application program is backstage self-starting application program.
2. method according to claim 1, is characterized in that, whether the described backstage behavior of monitoring detecting described application program according to described configuration file is the behavior of monitoring appointing system event, comprising:
Detect in described configuration file and whether include described appointing system event characteristic of correspondence character string.
3. method according to claim 2, is characterized in that, whether includes described appointing system event characteristic of correspondence character string, comprising in the described configuration file of described detection:
Detect in described configuration file whether comprise application program Installation Events, application program unloading event, Wireless Fidelity Wi-Fi change events, note receive event, calling reception event and date and arrange at least one event characteristic of correspondence character string in event.
4. method according to claim 1, is characterized in that, the configuration file of described acquisition application program, comprising:
The configuration file of described application program is obtained by package manager.
5. method according to claim 1, is characterized in that, described method also comprises:
Described application program is closed on backstage;
And/or,
Whether prompting user unloads described application program, and after user selects confirmation, described application program is unloaded.
6. a target program determining device, is characterized in that, described device comprises:
File acquisition module, for obtaining the configuration file of application program, behavior is monitored on the backstage that described configuration file is used to indicate described application program;
Detection module, whether behavior is monitored on the backstage for detecting described application program according to described configuration file is the behavior of monitoring appointing system event;
Determination module, if be described application program for the testing result of described detection module, backstage behavior of monitoring is the behavior of monitoring appointing system event, then determine that described application program is backstage self-starting application program.
7. device according to claim 6, is characterized in that,
Whether described detection module, include described appointing system event characteristic of correspondence character string for detecting in described configuration file.
8. device according to claim 7, is characterized in that,
Whether described detection module, comprise application program Installation Events for detecting in described configuration file, application program unloading event, Wireless Fidelity Wi-Fi change events, note receive event, calling reception event and date and arrange at least one event characteristic of correspondence character string in event.
9. device according to claim 6, is characterized in that,
Described file acquisition module, for obtaining the configuration file of described application program by package manager.
10. device according to claim 6, is characterized in that, described device also comprises:
Stop module, for closing described application program on backstage;
Whether reminding module, unload described application program for pointing out user;
Unload module, for select confirmation user after, unloads described application program.
CN201410201940.7A 2014-05-14 2014-05-14 Target program determines method and device Active CN105094869B (en)

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 true CN105094869A (en) 2015-11-25
CN105094869B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019128553A1 (en) * 2017-12-29 2019-07-04 Oppo广东移动通信有限公司 Application processing method, electronic device, and computer-readable storage medium
CN112433613A (en) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 Method, system, electronic device and medium for starting function
WO2023202406A1 (en) * 2022-04-22 2023-10-26 华为技术有限公司 Display method and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
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 (3)

* Cited by examiner, † Cited by third party
Title
CSDN: "去除自启动应用的问题", 《HTTPS://BBS.CSDN.NET/TOPICS/390639162》 *
ZYUCHAO: "Intent匹配规则以及解析框架", 《HTTPS://WWW.CNBLOGS.COM/ZHOUYUCHAO/ARCHIVE/2012/10/10/2718338.HTML》 *
包依勤: "《基于Android的手机应用软件开发教程》", 31 December 2012, 南京大学出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019128553A1 (en) * 2017-12-29 2019-07-04 Oppo广东移动通信有限公司 Application processing method, electronic device, and computer-readable storage medium
CN112433613A (en) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 Method, system, electronic device and medium for starting function
WO2023202406A1 (en) * 2022-04-22 2023-10-26 华为技术有限公司 Display method and electronic device

Also Published As

Publication number Publication date
CN105094869B (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN105005909A (en) Method and device for predicting lost users
CN104780164A (en) Method and device for operating game client
CN104954402A (en) Application recommending method, system and apparatus
CN104965721A (en) Method and apparatus for updating an application
CN104765591A (en) Method and system for updating software configuration parameter, and terminal server
CN104407804A (en) Screen capturing method and screen capturing device as well as electronic device
CN104427083A (en) Volume adjusting method and device
CN103473092A (en) Method and device for processing downloaded applications and terminal equipment
CN104093123A (en) Application program information pushing method, device and system and mobile terminal
CN104571787A (en) Message display method and communication terminal
CN104133757A (en) Method for obtaining memory information and terminal
CN104216726A (en) Loading method and device for Android virtual machine
CN104159140A (en) Video processing method, apparatus and system
CN103546632B (en) A kind of quarter-bell ringing method for mobile terminal, device and mobile terminal
CN105530239A (en) Multimedia data obtaining method and device
CN103177217A (en) File scan method, file scan system, client-side and server
CN103312907B (en) Voice channel allocation management method, voice server and communication system
CN104253870A (en) Method and device for controlling data access period
CN104699501A (en) Method and device for running application program
CN105227598A (en) A kind of resource sharing method, device and system stored based on cloud
CN104135504B (en) A kind of service providing method, Apparatus and system based on application
CN104809055A (en) Application program test method and device based on cloud platform
CN104869550A (en) Communication event processing method and device
CN104468961A (en) Method and device for prompting position of terminal
CN105094869A (en) Target program determination method and apparatus

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