CN106095414A - Method and device for managing application program and electronic equipment - Google Patents

Method and device for managing application program and electronic equipment Download PDF

Info

Publication number
CN106095414A
CN106095414A CN201610380197.5A CN201610380197A CN106095414A CN 106095414 A CN106095414 A CN 106095414A CN 201610380197 A CN201610380197 A CN 201610380197A CN 106095414 A CN106095414 A CN 106095414A
Authority
CN
China
Prior art keywords
package name
application
application package
name
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610380197.5A
Other languages
Chinese (zh)
Inventor
赵昱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610380197.5A priority Critical patent/CN106095414A/en
Publication of CN106095414A publication Critical patent/CN106095414A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Abstract

The embodiment of the invention discloses a method and a device for managing an application program and electronic equipment, relates to an information management technology, and can be used for improving the endurance time of the electronic equipment and improving the management efficiency of the application program. The method for managing the application program comprises the following steps: acquiring an application program package name for calling a job scheduling application program programming interface; judging whether the acquired application program package name is matched with a preset optimization processing strategy or not; if the application program package names are matched with the application program package names, the application programs corresponding to the acquired application program package names registered in the job service are eliminated; and stopping the mapping process of the acquired application program package name. The invention is suitable for effectively managing the application program.

Description

A kind of manage the method for application program, device and electronic equipment
Technical field
The present invention relates to information management technique, particularly relate to a kind of manage the method for application program, device and electronic equipment.
Background technology
Along with compunication and the development of Internet technology, electronic equipment, such as, intelligent mobile phone, individual The application such as personal digital assistant, palm PC, notebook computer is more and more extensive, the application program of installation (App, Application) also get more and more, it is provided that application function more and more abundanter, greatly meet the individual character of different user Change demand.Along with being on the increase of the application program installed, each application program expends the electricity of electronic equipment in running And memory source etc. also gets more and more, but the battery of electronic equipment, CPU and memory source are the most relatively limited.Thus, when answering With the process of program reside backstage run always time, and along with the long-time use of electronic equipment, the Resident Process on backstage more comes The most, the electricity of consuming, CPU usage and memory source consumption also get more and more so that electric device battery flying power Dramatic decrease, meanwhile, the speed of service of electronic equipment is slower, heating, card machine or the situation without response even occurs.
In order to application program is effectively managed, it is to avoid when the drastically decline of the electronic equipment speed of service and continuation of the journey Between shortening, in prior art, for some without the application program of running background, its process of killing, needs backstage is transported The application program of row, by arranging system wake-up mechanism, when electronic equipment is in screen lock state, answers needing some run It is timed by program or variable interval wakes up up, to reduce the electricity consumed when application program runs completely.Backstage will be needed to transport Row is registered to job service (JobService) by the application program of system wake-up, and should in job scheduling (JobScheduler) With Program Interfaces (API, Application Programming Interface) can be an application program or all A plurality of JobService entry condition is enumerated or be set out to application program, such as:
Start when electronic equipment charges;
Start when electronic equipment is connected to not limit flow network (such as, Wifi);
Start when the electronic equipment free time;
Startup etc. is completed before specific deadline or with minimum delay.
So, the application program being registered in JobService by calling JobScheduler API, JobService entry condition starts when meeting, and carries out dormancy, wait next after the application program started completes task Secondary startup, can effectively reduce the power consumption of electronic equipment.
But the method for this management application program, some application program is in order to be often active in backstage to obtain more Resource and interests, such as, networking download, advertisement etc., various system wake-up mechanism can be utilized, after electronic equipment screen locking Frequently self application program is waken up up, lights screen, cause application program to enliven on backstage always, thus consume electricity, Reducing the cruising time of electronic equipment, the application program management also making electronic equipment is inefficient.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of and manages the method for application program, device and electronic equipment, it is possible to carry Rise the cruising time of electronic equipment, improve the efficiency of management of application program, to solve in the method for existing management application program, Frequently self application program is waken up up after electronic equipment screen locking, cause that electronic equipment cruising time is short, application program The problem that the efficiency of management is relatively low.
First aspect, the embodiment of the present invention provides a kind of method managing application program, including:
Obtain the application package name calling job scheduling application programming interface;
Judge whether the application package name obtained processes strategy with the optimization pre-set and match;
If matched, remove the application journey that the application package name of the described acquisition of registration is corresponding in job service Sequence;
Stop the process that the application package name of described acquisition maps.
In conjunction with first aspect, in the first embodiment of first aspect, job scheduling application journey is called in described acquisition The application package name of sequence DLL includes:
From system cache, read the application package name that registration job scheduling application programming interface is called.
In conjunction with first aspect, in the second embodiment of first aspect, job scheduling application journey is called in described acquisition The application package name of sequence DLL includes:
Inject the Hook Function pre-set in systems, so that described Hook Function monitors application call operation During scheduling application DLL, hook described in call the application program of job scheduling application programming interface, and obtain The described application package name calling job scheduling application programming interface.
In conjunction with first aspect, in the third embodiment of first aspect, job scheduling application journey is called in described acquisition The application package name of sequence DLL includes:
Calling system destroys the application programming interface of process, so that system destroys the application programming interface of process Calling process enumeration function enumeration process, obtains the application package name that the process enumerated maps;
The application package name of acquisition is respectively applied journey with registered in advance in job scheduling application programming interface Sequence bag name is mated, if matched, the entitled job scheduling application programming that calls of the application package of described acquisition connects The application package name of mouth.
In conjunction with first aspect, in the 4th kind of embodiment of first aspect, the described application package name judging to obtain Whether process strategy to match include with the optimization pre-set:
The application package name of acquisition is mated with the white list application package name collection pre-set, if obtained Application package name and the white list application package name that pre-sets concentrate arbitrary white list application package name the most not phase With, determine whether the application package name of described acquisition processes strategy with the optimization pre-set and match.
In conjunction with first aspect, in the 5th kind of embodiment of first aspect, the described application package name judging to obtain Whether process strategy to match include with the optimization pre-set:
The application package name of acquisition is mated with the blacklist application package name collection pre-set, if obtained Application package name concentrate arbitrary blacklist application package name identical, really with the blacklist application package name that pre-sets Whether the application package name of fixed described acquisition processes strategy with the optimization pre-set matches.
In conjunction with first aspect, in the 6th kind of embodiment of first aspect, the described application package name judging to obtain Whether process strategy to match include with the optimization pre-set:
The application package name of acquisition is mated with the white list application package name collection pre-set, if obtained Application package name and the white list application package name that pre-sets concentrate arbitrary white list application package name the most not phase With, and the application package name and the blacklist application package name that pre-sets that obtain concentrate arbitrary blacklist application package Name all differs, and shows the application package name of described acquisition and notifies user;
The operational order that the application package name of the described extraction that foundation user browses displaying is chosen, if operational order is Stop, determining whether the application package name of described acquisition processes strategy with the optimization pre-set and match.
In conjunction with first aspect, first aspect the first to any one embodiment in the 6th kind, in the of first aspect In seven kinds of embodiments, the application program that the application package name of the described acquisition that described removing is registered in job service is corresponding Including:
Call inefficacy job scheduling application programming interface method, by answering of the described acquisition of registration in job service It is set to lose efficacy with the application program that program bag name is corresponding.
Second aspect, the embodiment of the present invention provides a kind of device managing application program, including: bag name acquisition module, bag Name extraction module, registration removing module and process stopping modular, wherein,
Bag name acquisition module, for obtaining the application package name calling job scheduling application programming interface;
Bag name extraction module, for judging whether the application package name obtained processes strategy phase with the optimization pre-set Coupling;
Module is removed in registration, if for matching, removes the application program of the described acquisition of registration in job service The application program that bag name is corresponding;
Process stopping modular, for stopping the process that the application package name of described acquisition maps.
In conjunction with second aspect, in the first embodiment of second aspect, described bag name acquisition module includes: caching is single Unit and bag name acquiring unit, wherein,
Buffer unit, for caching application information in the system cache;
Bag name acquiring unit, for from system cache, reads what registration job scheduling application programming interface was called Application package name.
In conjunction with second aspect, in the second embodiment of second aspect, described bag name acquisition module includes: inject single Unit, monitoring unit and hook unit, wherein,
Injection unit, for injecting the Hook Function pre-set in systems;
Monitoring unit, for utilizing described Hook Function to monitor application call job scheduling application programming During interface, notice hooks unit;
Hook unit, be used for calling described in hooking the application program of job scheduling application programming interface, and obtain institute State the application package name calling job scheduling application programming interface.
In conjunction with second aspect, in the third embodiment of second aspect, described bag name acquisition module includes: call list Unit and bag name matching unit, wherein,
Call unit, destroys the application programming interface of process for calling system, so that system destroys answering of process With Program Interfaces calling process enumeration function enumeration process, obtain the application package name that the process enumerated maps;
Bag name matching unit, the application package name being used for obtaining is with registered in advance at job scheduling application programming Each application package name in interface is mated, if matched, the application package of described acquisition is entitled calls operation tune The application package name of degree application programming interface.
In conjunction with second aspect, in the 4th kind of embodiment of second aspect, described bag name extraction module includes: white list Matching unit, wherein,
White list matching unit, for by the application package name of acquisition and the white list application package name pre-set Collection mates, if the application package name obtained concentrates arbitrary white list with the white list application package name pre-set Application package name all differs, and determines whether the application package name of described acquisition processes strategy phase with the optimization pre-set Coupling.
In conjunction with second aspect, in the 5th kind of embodiment of second aspect, described bag name extraction module includes: blacklist Matching unit,
Blacklist matching unit, for by the application package name of acquisition and the blacklist application package name pre-set Collection mates, if the application package name obtained concentrates arbitrary blacklist with the blacklist application package name pre-set Application package name is identical, determines whether the application package name of described acquisition processes strategy phase with the optimization pre-set Join.
In conjunction with second aspect, in the 6th kind of embodiment of second aspect, described bag name extraction module includes: black and white name Single matching unit and writing unit, wherein,
Black and white lists matching unit, for by the application package name of acquisition and the white list application package pre-set Name collection mates, if the application package name obtained concentrates arbitrary white name with the white list application package name pre-set Single utility program Bao Mingjun differs, and the application package name obtained is concentrated with the blacklist application package name pre-set Arbitrary blacklist application package name all differs, and shows the application package name of described acquisition and notifies user;
Writing unit, the operational order that the application package name of the described acquisition for browsing displaying according to user is chosen, If operational order is for stopping, determining whether the application package name of described acquisition processes strategy phase with the optimization pre-set Join.
In conjunction with second aspect, second aspect the first to any one embodiment in the 6th kind, in the of second aspect In seven kinds of embodiments, described registration is removed module and is included: method call unit and attribute arrange unit, wherein,
Method call unit, is used for calling inefficacy job scheduling application programming interface method;
Attribute arranges unit, for by application corresponding for the application package name of the described acquisition of registration in job service Program is set to lose efficacy.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment includes: housing, processor, deposit Reservoir, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, processor and memorizer and arranges On circuit boards;Power circuit, powers for each circuit or the device for above-mentioned electronic equipment;Memorizer is used for storing can be held Line program code;Processor runs and executable program code pair by reading the executable program code of storage in memorizer The program answered, for the method performing aforementioned arbitrary described management application program.
The a kind of of embodiment of the present invention offer manages the method for application program, device and electronic equipment, is called by acquisition The application package name of job scheduling application programming interface;Judge the application package name that obtains whether with pre-set Optimization processes strategy and matches;If matched, remove the application package name of the described acquisition of registration in job service right The application program answered;Stop the process that the application package name of described acquisition maps.Can promote electronic equipment cruising time, Improve the efficiency of management of application program, to solve in the method for existing management application program, frequency after electronic equipment screen locking Numerous self application program is waken up up, cause the problem that electronic equipment cruising time is short, application program management is inefficient.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the method flow schematic diagram that embodiments of the invention one manage application program;
Fig. 2 is the apparatus structure schematic diagram that embodiments of the invention two manage application program;
Fig. 3 is the structural representation of one embodiment of electronic equipment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings the embodiment of the present invention is described in detail.
It will be appreciated that described embodiment be only the present invention a part of embodiment rather than whole embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained under not making creative work premise all its Its embodiment, broadly falls into the scope of protection of the invention.
Fig. 1 is the method flow schematic diagram that embodiments of the invention one manage application program, as it is shown in figure 1, the present embodiment Method may include that
Step 101, obtains the application package name calling job scheduling application programming interface;
In the present embodiment, as an alternative embodiment, answering of job scheduling application programming interface is called in described acquisition Include by program bag name:
From system cache, read the application package name that registration job scheduling application programming interface is called.
In the present embodiment, application program, after being registered to job service, needs to register job scheduling application programming and connects Mouth calls, to enable applications to call job scheduling application programming interface, to load JobService entry condition. Wherein, job scheduling application programming interface allows by being defined on certain later time or in the condition specified for system The operation of lower asynchronous operation, thus save battery electric quantity.
In the present embodiment, after electronic equipment enters screen lock state, system can store registration and make in internal memory (Cache) The application package name of industry scheduling application program interface call, starts with the JobService corresponding to application package name Condition is monitored.
As another alternative embodiment, the application package name of job scheduling application programming interface is called in described acquisition Including:
Inject the Hook Function pre-set in systems, so that described Hook Function monitors application call operation During scheduling application DLL, hook described in call the application program of job scheduling application programming interface, and obtain The described application package name calling job scheduling application programming interface.
In the present embodiment, by injecting hook (Hook) function, utilize Hook Function monitoring application program to job scheduling Application programming interface (JobScheduler API) calls, and compiles job scheduling application program monitoring application program When calling (request) of journey interface, intercepts application program and job scheduling application programming interface is called behavior.
As yet another alternative embodiment, the application package name of job scheduling application programming interface is called in described acquisition Including:
Calling system destroys application programming interface (API, the Application Programming of process Interface), so that system destroys the application programming interface calling process enumeration function enumeration process of process, acquisition piece The application package name that the process lifted maps;
The application package name of acquisition is respectively applied journey with registered in advance in job scheduling application programming interface Sequence bag name is mated, if matched, the entitled job scheduling application programming that calls of the application package of described acquisition connects The application package name of mouth.
In the present embodiment, as an alternative embodiment, process enumeration function is Enum () function.
Step 102, it is judged that whether the application package name of acquisition processes strategy with the optimization pre-set matches;
In the present embodiment, as an alternative embodiment, the described application package name judging to obtain whether with pre-set Optimization process strategy and match and include:
The application package name of acquisition is mated with the white list application package name collection pre-set, if obtained Application package name and the white list application package name that pre-sets concentrate arbitrary white list application package name the most not phase With, determine whether the application package name of described acquisition processes strategy with the optimization pre-set and match.
As another alternative embodiment, whether the described application package name judging to obtain processes with the optimization pre-set Strategy matches and includes:
The application package name of acquisition is mated with the blacklist application package name collection pre-set, if obtained Application package name concentrate arbitrary blacklist application package name identical, really with the blacklist application package name that pre-sets Whether the application package name of fixed described acquisition processes strategy with the optimization pre-set matches.
In the present embodiment, whether the application package name obtained by judgement meets optimization processes strategy, wherein, at optimization Reason strategy includes that white list optimization processes strategy (white list application package name collection) and blacklist optimization processes strategy (black name Single utility program bag name collection), if the application package name obtained is concentrated in blacklist application package name, or, answering of acquisition Not concentrating in white list application package name by program bag name, the application package name of this acquisition processes with the optimization pre-set Strategy matches, and shows that the application program background service of this acquisition or process can be stopped to save electricity, the most permissible Carry out stopping process.
In the present embodiment, white list application package name collection and blacklist application package name collection can be according to actual needs It is configured, for example, it is possible to by user setup, or, the technical staff of Virtual network operator after application program being analyzed, Forming white list application package name collection and blacklist application package name collection, and be issued to electronic equipment, electronic equipment connects Receive and store.
As yet another alternative embodiment, whether the described application package name judging to obtain processes with the optimization pre-set Strategy matches and includes:
The application package name of acquisition is mated with the white list application package name collection pre-set, if obtained Application package name and the white list application package name that pre-sets concentrate arbitrary white list application package name the most not phase With, and the application package name and the blacklist application package name that pre-sets that obtain concentrate arbitrary blacklist application package Name all differs, and shows the application package name of described acquisition and notifies user;
In the present embodiment, appoint if the application package name extracted is concentrated with the white list application package name pre-set One white list application package name is identical, it is not necessary to process this application package name;And, the application package name of extraction Concentrate arbitrary blacklist application package name identical, by this application package name with the blacklist application package name pre-set Write coupling application package name is concentrated.
The operational order that the application package name of the described extraction that foundation user browses displaying is chosen, if operational order is Stop, determining whether the application package name of described acquisition processes strategy with the optimization pre-set and match.
In the present embodiment, for said circumstances, the relative information displaying of the application package name of extraction can be set at electronics On standby screen, and notify user, such as, notify that user checks that electronic equipment screen is to determine whether to answer this in ring mode Process by program bag name.
Step 103, if matched, removes the application package name of the described acquisition of registration in job service corresponding Application program;
In the present embodiment, due to the mechanism permission application program self-starting of registration job service (JobService), therefore, If needing thoroughly to terminate this application program background process and service, need terminate background process corresponding to this use program with Before service, this application program is removed from the job service of registration.
As an alternative embodiment, the application package name of the described acquisition that described removing is registered in job service is corresponding Application program include:
Call inefficacy job scheduling application programming interface (disable JobScheduler API) method, will make The application program that in industry service, the application package name of the described acquisition of registration is corresponding is set to lose efficacy.
Certainly, in actual application, it is also possible to by managership, the described extraction of registration in job service is deleted The application program that application package name is corresponding.
Step 104, stops the process that the application package name of described acquisition maps.
Embodiments of the invention one manage the method for application program, call job scheduling application programming by acquisition and connect The application package name of mouth;Judge whether the application package name obtained processes strategy with the optimization pre-set and match;As Fruit matches, and removes the application program that the application package name of the described acquisition of registration is corresponding in job service;Stop described The process that the application package name obtained maps.So, for some by being registered in job service and can be by system wake-up Application program, by removing its registration in job service so that when process or the service stopping this application program, permissible Prevent this application program from residing at backstage by the way of system wake-up, thus avoid this application program to enliven on backstage always, Can thoroughly solve background process frequently wake up up cause system cannot the problem of deep-sleep, thus save electric quantity for electronic equipment and disappear Consumption, promotes the cruising time of electronic equipment, is effectively increased the efficiency of management of application program in electronic equipment;Simultaneously, additionally it is possible to Effectively prevent the job service login mechanism that some malicious application utilize system to provide, the most resident backstage, upset system Properly functioning environment, and security of system is caused potential threat.
Fig. 2 is the apparatus structure schematic diagram that embodiments of the invention two manage application program, as in figure 2 it is shown, the present embodiment Device may include that module 23 and process stopping modular are removed in bag name acquisition module 21, bag name extraction module 22, registration 24, wherein,
Bag name acquisition module 21, for obtaining the application package name calling job scheduling application programming interface;
In the present embodiment, as an alternative embodiment, bag name acquisition module 21 includes: buffer unit and bag name obtain single Unit's (not shown), wherein,
Buffer unit, for caching application information in the system cache;
Bag name acquiring unit, for from system cache, reads what registration job scheduling application programming interface was called Application package name.
In the present embodiment, after electronic equipment enters screen lock state, system can store registration and make in internal memory (Cache) The application package name of industry scheduling application program interface call, starts with the JobService corresponding to application package name Condition is monitored.
As another alternative embodiment, bag name acquisition module 21 includes: injection unit, monitoring unit and hook unit, Wherein,
Injection unit, for injecting the Hook Function pre-set in systems;
Monitoring unit, for utilizing described Hook Function to monitor application call job scheduling application programming During interface, notice hooks unit;
Hook unit, be used for calling described in hooking the application program of job scheduling application programming interface, and obtain institute State the application package name calling job scheduling application programming interface.
In the present embodiment, by injecting Hook function, utilize Hook Function monitoring application program to JobSchedulerAPI Call, when monitoring application program and job scheduling application programming interface being called, intercept application program to operation Scheduling application DLL call behavior.
As yet another alternative embodiment, bag name acquisition module 21 includes: call unit and bag name matching unit, wherein,
Call unit, destroys the application programming interface of process for calling system, so that system destroys answering of process With Program Interfaces calling process enumeration function enumeration process, obtain the application package name that the process enumerated maps;
Bag name matching unit, the application package name being used for obtaining is with registered in advance at job scheduling application programming Each application package name in interface is mated, if matched, the application package of described acquisition is entitled calls operation tune The application package name of degree application programming interface.
Bag name extraction module 22, for judging whether the application package name obtained processes strategy with the optimization pre-set Match;
In the present embodiment, as an alternative embodiment, bag name extraction module 22 includes: white list matching unit is (in figure not Illustrate), wherein,
White list matching unit, for by the application package name of acquisition and the white list application package name pre-set Collection mates, if the application package name obtained concentrates arbitrary white list with the white list application package name pre-set Application package name all differs, and determines whether the application package name of described acquisition processes strategy phase with the optimization pre-set Coupling.
As another alternative embodiment, bag name extraction module 22 includes: blacklist matching unit, wherein,
Blacklist matching unit, for by the application package name of acquisition and the blacklist application package name pre-set Collection mates, if the application package name obtained concentrates arbitrary blacklist with the blacklist application package name pre-set Application package name is identical, determines whether the application package name of described acquisition processes strategy phase with the optimization pre-set Join.
As yet another alternative embodiment, bag name extraction module 22 includes: black and white lists matching unit and writing unit, its In,
Black and white lists matching unit, for by the application package name of acquisition and the white list application package pre-set Name collection mates, if the application package name obtained concentrates arbitrary white name with the white list application package name pre-set Single utility program Bao Mingjun differs, and the application package name obtained is concentrated with the blacklist application package name pre-set Arbitrary blacklist application package name all differs, and shows the application package name of described extraction and notifies user;
In the present embodiment, white list application package name collection and blacklist application package name collection can be according to actual needs It is configured, for example, it is possible to by user setup, or, the technical staff of Virtual network operator after application program being analyzed, Forming white list application package name collection and blacklist application package name collection, and be issued to electronic equipment, electronic equipment connects Receive and store.
Writing unit, the operational order that the application package name of the described acquisition for browsing displaying according to user is chosen, If operational order is for stopping, determining whether the application package name of described acquisition processes strategy phase with the optimization pre-set Join.
Module 23 is removed in registration, if for matching, removes the application journey of the described acquisition of registration in job service The application program that sequence bag name is corresponding;
In the present embodiment, as an alternative embodiment, registration is removed module 23 and is included: method call unit and attribute set Put unit, wherein,
Method call unit, is used for calling inefficacy job scheduling application programming interface method;
Attribute arranges unit, for by application corresponding for the application package name of the described acquisition of registration in job service Program is set to lose efficacy.
Process stopping modular 24, for stopping the process that the application package name of described acquisition maps.
The device of the present embodiment, may be used for performing the technical scheme of embodiment of the method shown in Fig. 1, and it realizes principle and skill Art effect is similar to, and here is omitted.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating Relation or order in any this reality.And, term " includes ", " comprising " or its any other variant are intended to Comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that those are wanted Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that Including process, method, article or the equipment of described key element there is also other identical element.
Each embodiment in this specification all uses relevant mode to describe, identical similar portion between each embodiment Dividing and see mutually, what each embodiment stressed is the difference with other embodiments.
For device embodiment, owing to it is substantially similar to embodiment of the method, so the comparison described is simple Single, relevant part sees the part of embodiment of the method and illustrates.
Represent in flow charts or the logic described otherwise above at this and/or step, for example, it is possible to be considered as to use In the sequencing list of the executable instruction realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (system such as computer based system, including processor or other can hold from instruction Row system, device or equipment instruction fetch also perform the system instructed) use, or combine these instruction execution systems, device or set Standby and use.For the purpose of this specification, " computer-readable medium " can be any can to comprise, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or combines these instruction execution systems, device or equipment and the dress that uses Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following: have the electricity of one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read only memory (ROM), erasable read only memory (EPROM or flash memory), the fiber device edited, and portable optic disk is read-only deposits Reservoir (CDROM).It addition, computer-readable medium can even is that and can print the paper of described program thereon or other are suitable Medium, because then can carry out editing, interpreting or if desired with it such as by paper or other media are carried out optical scanning His suitable method is processed to electronically obtain described program, is then stored in computer storage.
Should be appreciated that each several part of the present invention can realize by hardware, software, firmware or combinations thereof.
In the above-described embodiment, multiple steps or method can be with storing in memory and by suitably instructing execution Software or firmware that system performs realize.Such as, if realized with hardware, with the most the same, available Any one or their combination in following technology well known in the art realize: have for data signal realizes logic merit The discrete logic of the logic gates of energy, has the special IC of suitable combination logic gate circuit, programmable gate Array (PGA), field programmable gate array (FPGA) etc..
The embodiment of the present invention also provides for a kind of electronic equipment, and described electronic equipment comprises the dress described in aforementioned any embodiment Put.
Fig. 3 is the structural representation of one embodiment of electronic equipment of the present invention, it is possible to achieve implement shown in Fig. 1-2 of the present invention The flow process of example, as it is shown on figure 3, above-mentioned electronic equipment may include that housing 31, processor 32, memorizer 33, circuit board 34 and electricity Source circuit 35, wherein, circuit board 34 is placed in the interior volume that housing 31 surrounds, processor 32 and memorizer 33 and is arranged on circuit On plate 34;Power circuit 35, powers for each circuit or the device for above-mentioned electronic equipment;Memorizer 33 is used for storing can be held Line program code;Processor 32 runs and executable program generation by reading the executable program code of storage in memorizer 33 The program that code is corresponding, for the method performing the management application program described in aforementioned any embodiment.
Processor 32 to concrete process and the processor 32 of performing of above-mentioned steps by running executable program code The step performed further, may refer to the description of Fig. 1-2 illustrated embodiment of the present invention, does not repeats them here.
This electronic equipment exists in a variety of forms, includes but not limited to:
(1) mobile communication equipment: the feature of this kind equipment is to possess mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart mobile phone (such as iPhone), multimedia handset, functional mobile phone, and low End mobile phone etc..
(2) super mobile personal computer equipment: this kind equipment belongs to the category of personal computer, has calculating and processes merit Can, the most also possess mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind equipment can show and play content of multimedia.This kind equipment includes: audio frequency, Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server: providing the equipment of the service of calculating, the composition of server includes that processor, hard disk, internal memory, system are total Lines etc., server is similar with general computer architecture, but owing to needing to provide highly reliable service, is therefore processing energy The aspects such as power, stability, reliability, safety, extensibility, manageability require higher.
(5) other have the electronic equipment of data interaction function.
Those skilled in the art are appreciated that and realize all or part of step that above-described embodiment method is carried Suddenly the program that can be by completes to instruct relevant hardware, and described program can be stored in a kind of computer-readable storage medium In matter, this program upon execution, including one or a combination set of the step of embodiment of the method.
For convenience of description, describing apparatus above is to be divided into various units/modules to be respectively described with function.Certainly, exist Implement the function of each unit/module to be realized in same or multiple softwares and/or hardware during the present invention.
As seen through the above description of the embodiments, those skilled in the art is it can be understood that arrive this
Invention can add the mode of required general hardware platform by software and realize.Based on such understanding, the present invention The part that the most in other words prior art contributed of technical scheme can embody with the form of software product, should Computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that One computer equipment (can be personal computer, server, or the network equipment etc.) perform each embodiment of the present invention or The method described in some part of person's embodiment.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art in the technical scope that the invention discloses, the change that can readily occur in or replacement, all answer Contain within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.

Claims (10)

1. the method managing application program, it is characterised in that including:
Obtain the application package name calling job scheduling application programming interface;
Judge whether the application package name obtained processes strategy with the optimization pre-set and match;
If matched, remove the application program that the application package name of the described acquisition of registration is corresponding in job service;
Stop the process that the application package name of described acquisition maps.
The method of management application program the most according to claim 1, it is characterised in that job scheduling is called in described acquisition should Include by the application package name of Program Interfaces:
From system cache, read the application package name that registration job scheduling application programming interface is called.
The method of management application program the most according to claim 1, it is characterised in that job scheduling is called in described acquisition should Include by the application package name of Program Interfaces:
Inject the Hook Function pre-set in systems, so that described Hook Function monitors application call job scheduling During application programming interface, hook described in call the application program of job scheduling application programming interface, and obtain described Call the application package name of job scheduling application programming interface.
The method of management application program the most according to claim 1, it is characterised in that job scheduling is called in described acquisition should Include by the application package name of Program Interfaces:
Calling system destroys the application programming interface of process, so that the application programming interface that system destroys process is called Process enumeration function enumeration process, obtains the application package name that the process enumerated maps;
By the application package name obtained and each application package in job scheduling application programming interface registered in advance Name is mated, if matched, the application package of described acquisition is entitled calls job scheduling application programming interface Application package name.
The method of management application program the most according to claim 1, it is characterised in that the application program that described judgement obtains Whether bag name processes strategy and matches and include with the optimization pre-set:
The application package name of acquisition is mated with the white list application package name collection pre-set, if obtain should The white list application package name pre-set by program Bao Mingyu concentrates arbitrary white list application package name all to differ, really Whether the application package name of fixed described acquisition processes strategy with the optimization pre-set matches.
The method of management application program the most according to claim 1, it is characterised in that the application program that described judgement obtains Whether bag name processes strategy and matches and include with the optimization pre-set:
The application package name of acquisition is mated with the blacklist application package name collection pre-set, if obtain should The blacklist application package name pre-set by program Bao Mingyu concentrates arbitrary blacklist application package name identical, determines institute Whether the application package name stating acquisition matches with the optimization process strategy pre-set.
The method of management application program the most according to claim 1, it is characterised in that the application program that described judgement obtains Whether bag name processes strategy and matches and include with the optimization pre-set:
The application package name of acquisition is mated with the white list application package name collection pre-set, if obtain should The white list application package name pre-set by program Bao Mingyu concentrates arbitrary white list application package name all to differ, and The application package name obtained and the blacklist application package name pre-set concentrate arbitrary blacklist application package name equal Differ, show the application package name of described acquisition and notify user;
The operational order that the application package name of the described extraction that foundation user browses displaying is chosen, if operational order is for stopping Only, determine whether the application package name of described acquisition processes strategy with the optimization pre-set and match.
8. according to the method for the management application program described in any one of claim 1 to 7, it is characterised in that described removing is being made The application program that in industry service, the application package name of the described acquisition of registration is corresponding includes:
Call inefficacy job scheduling application programming interface method, by the application journey of the described acquisition of registration in job service Application program corresponding to sequence bag name is set to lose efficacy.
9. the device managing application program, it is characterised in that including: bag name acquisition module, bag name extraction module, registration are clearly Except module and process stopping modular, wherein,
Bag name acquisition module, for obtaining the application package name calling job scheduling application programming interface;
Bag name extraction module, for judging whether the application package name obtained processes strategy phase with the optimization pre-set Join;
Module is removed in registration, if for matching, removes the application package name of the described acquisition of registration in job service Corresponding application program;
Process stopping modular, for stopping the process that the application package name of described acquisition maps.
10. an electronic equipment, it is characterised in that described electronic equipment includes: housing, processor, memorizer, circuit board and electricity Source circuit, wherein, circuit board is placed in the interior volume that housing surrounds, processor and memorizer and arranges on circuit boards;Power supply Circuit, powers for each circuit or the device for above-mentioned electronic equipment;Memorizer is used for storing executable program code;Process Device runs the program corresponding with executable program code by reading the executable program code of storage in memorizer, is used for holding The method of the management application program described in the aforementioned any claim 1-8 of row.
CN201610380197.5A 2016-06-01 2016-06-01 Method and device for managing application program and electronic equipment Pending CN106095414A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610380197.5A CN106095414A (en) 2016-06-01 2016-06-01 Method and device for managing application program and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610380197.5A CN106095414A (en) 2016-06-01 2016-06-01 Method and device for managing application program and electronic equipment

Publications (1)

Publication Number Publication Date
CN106095414A true CN106095414A (en) 2016-11-09

Family

ID=57229900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610380197.5A Pending CN106095414A (en) 2016-06-01 2016-06-01 Method and device for managing application program and electronic equipment

Country Status (1)

Country Link
CN (1) CN106095414A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543333A (en) * 2018-05-29 2019-12-06 视联动力信息技术股份有限公司 Dormancy processing method and device for processor, mobile terminal and storage medium
CN110677869A (en) * 2019-09-16 2020-01-10 Oppo广东移动通信有限公司 Network connection control method, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6772031B1 (en) * 2000-05-30 2004-08-03 International Business Machines Corporation Method of, system for, and computer program product for providing a job monitor
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN105373405A (en) * 2015-11-26 2016-03-02 努比亚技术有限公司 Device and method for dynamically loading application programs
CN105446776A (en) * 2015-11-20 2016-03-30 北京金山安全软件有限公司 Application program closing method and device and electronic equipment
CN105468409A (en) * 2015-11-20 2016-04-06 北京金山安全软件有限公司 Application program closing method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6772031B1 (en) * 2000-05-30 2004-08-03 International Business Machines Corporation Method of, system for, and computer program product for providing a job monitor
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN105446776A (en) * 2015-11-20 2016-03-30 北京金山安全软件有限公司 Application program closing method and device and electronic equipment
CN105468409A (en) * 2015-11-20 2016-04-06 北京金山安全软件有限公司 Application program closing method and device and electronic equipment
CN105373405A (en) * 2015-11-26 2016-03-02 努比亚技术有限公司 Device and method for dynamically loading application programs

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543333A (en) * 2018-05-29 2019-12-06 视联动力信息技术股份有限公司 Dormancy processing method and device for processor, mobile terminal and storage medium
CN110677869A (en) * 2019-09-16 2020-01-10 Oppo广东移动通信有限公司 Network connection control method, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN106445783A (en) Method and device for detecting jamming of electronic equipment and electronic equipment
CN106201698A (en) Method and device for managing application program and electronic equipment
CN105183137A (en) Mobile terminal and wake lock control method and system thereof
CN105740690A (en) Unlocking method and mobile terminal
CN103118188A (en) Application heartbeat cycle adjusting method and device, and terminal
CN102436457B (en) Method and equipment for distributing progresses of browser
CN105224421B (en) Data backup method and device and electronic equipment
KR20140045337A (en) Mechanism for low power standby mode control circuit
CN102934072A (en) Information processing device and method
CN106411920A (en) Data sharing method and device
CN107729755A (en) A kind of terminal safety management method, terminal and computer-readable recording medium
CN106125891A (en) Terminal power optimization method, device and terminal
CN110716631A (en) Power supply management method, device, equipment and readable storage medium
CN109977093A (en) More virtual systems based on LXC check the method and device of container log
Chen et al. Anole: A case for energy-aware mobile application design
CN106095414A (en) Method and device for managing application program and electronic equipment
CN104375851A (en) Intelligent terminal and energy saving method thereof
US11816200B2 (en) Terminal and method for managing launch of an application of a terminal
CN112148477A (en) Service process processing method, electronic device and storage medium
KR20140026308A (en) Apparatus and method for managing power in multi-core system
CN105700667B (en) Application operation method and electronic equipment
CN108271238A (en) The power-saving method and terminal device of a kind of terminal device
CN104158857B (en) A kind of apparatus and method that the service of networking operating system is provided
CN104102560A (en) Method and device for testing system performance
CN106250222A (en) Method and device for managing application program and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161109

RJ01 Rejection of invention patent application after publication