CN106537288B - The method and device of self-starting is applied in control - Google Patents

The method and device of self-starting is applied in control Download PDF

Info

Publication number
CN106537288B
CN106537288B CN201680001198.2A CN201680001198A CN106537288B CN 106537288 B CN106537288 B CN 106537288B CN 201680001198 A CN201680001198 A CN 201680001198A CN 106537288 B CN106537288 B CN 106537288B
Authority
CN
China
Prior art keywords
permission
self
starting
intended application
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201680001198.2A
Other languages
Chinese (zh)
Other versions
CN106537288A (en
Inventor
伍亮雄
刘海涛
刘鸣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Publication of CN106537288A publication Critical patent/CN106537288A/en
Application granted granted Critical
Publication of CN106537288B publication Critical patent/CN106537288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The disclosure is directed to a kind of method and devices controlled using self-starting, belong to field of computer technology.The method includes:Obtain the trigger action that triggering starts destination service;After the trigger action is got, whether the intended application that the destination service is registered in detection has self-starting permission;Wherein, the self-starting permission refers to start automatically the permission of operation;If the intended application does not have the self-starting permission, forbid the intended application using the self-starting during the destination service is started of binding method of service.The disclosure is due to using setting self-starting permission, only to allow the application for having self-starting permission to realize self-starting by service, application without permission being avoided to realize self-starting by service, has reached the technique effect for saving Installed System Memory and the amount of saving energy.

Description

The method and device of self-starting is applied in control
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of method and device controlled using self-starting.
Background technology
At present, can such as be installed in the terminal device of mobile phone, tablet computer etc types of applications (application, APP), to expand the function of terminal device.
Invention content
The embodiment of the present disclosure provides a kind of method and device controlled using self-starting.The technical solution is as follows:
According to the embodiment of the present disclosure in a first aspect, providing a kind of method controlled using self-starting, the method packet It includes:
Obtain the trigger action that triggering starts destination service;
After the trigger action is got, whether the intended application that the destination service is registered in detection has self-starting Permission;Wherein, the self-starting permission refers to start automatically the permission of operation;
If the intended application does not have the self-starting permission, forbid the intended application using binding method of service The self-starting during the destination service is started.
Optionally, whether the intended application that the destination service is registered in the detection has self-starting permission, including:
Permission detection method is called, detects and asks to the permission detection method sending permission;Wherein, the permission detection Carry the mark of the intended application in request, the permission detection method for obtain the intended application whether have it is described Self-starting permission;
Obtain the permission testing result that the permission detection method returns;Wherein, the permission testing result is:The mesh Mark application has the self-starting permission, alternatively, the intended application does not have the self-starting permission.
Optionally, the method further includes:
After the trigger action is got, detect described in the process of the intended application belonging to destination service into Whether journey has been turned on;
If the process belonging to the destination service is not actuated, the intended application of the destination service is registered from the detection The step of whether having self-starting permission starts to perform.
Optionally, whether the process described in the process of the detection intended application belonging to destination service has been turned on, Including:
Calling process detection method sends process detection request to the process detection method;Wherein, the process detection The mark of the process belonging to the destination service is carried in request, the process detection method is used to obtain the destination service institute Whether the process of category has been turned on;
Obtain the process detection result that the process detection method returns;Wherein, the process detection result is:The mesh Process belonging to mark service has been turned on, alternatively, the process belonging to the destination service is not actuated.
Optionally, the trigger action for obtaining triggering and starting destination service, including:
Obtain the trigger action that triggering starts spell check service;
Wherein, the spell check service is the system service for having spelling-checker.
Optionally, the method further includes:
The recommendation switch setting of the self-starting permission for the intended application that cloud server is sent is received, it is described to push away Switch setting, which is recommended, by the cloud server according to the number of users for the intended application unlatching self-starting permission and is The number of users that the intended application closes the self-starting permission determines;
The intended application is set as according to the recommendation switch and is turned on and off the self-starting permission.
According to the second aspect of the embodiment of the present disclosure, a kind of device controlled using self-starting, described device packet are provided It includes:
Acquisition module is configured as obtaining the trigger action that triggering starts destination service;
First detection module is configured as after the trigger action is got, and the destination service is registered in detection Whether intended application has self-starting permission;Wherein, the self-starting permission refers to start automatically the permission of operation;
Disabled module if being configured as the intended application does not have the self-starting permission, forbids the target should With using the self-starting during the destination service is started of binding method of service.
Optionally, the first detection module, including:
First sending submodule is configured as calling permission detection method, be examined to the permission detection method sending permission Survey request;Wherein, the mark of the intended application is carried in the permission detection request, the permission detection method is used to obtain Whether the intended application has the self-starting permission;
First acquisition submodule is configured as obtaining the permission testing result that the permission detection method returns;Wherein, institute Stating permission testing result is:The intended application has the self-starting permission, alternatively, the intended application do not have it is described from Start permission.
Optionally, described device further includes:
Second detection module is configured as after the trigger action is got, and detects the process of the intended application Described in process belonging to destination service whether have been turned on;
The first detection module is additionally configured to when the process belonging to the destination service is not actuated, from the inspection Survey that the step of whether intended application for registering the destination service has self-starting permission starts to perform.
Optionally, second detection module, including:
Second sending submodule is configured as calling process detection method, and process inspection is sent to the process detection method Survey request;Wherein, the mark of the process belonging to the destination service, the process detection side are carried in the process detection request Whether the process that method is used to obtain belonging to the destination service has been turned on;
Second acquisition submodule is configured as obtaining the process detection result that the process detection method returns;Wherein, institute Stating process detection result is:Process belonging to the destination service has been turned on, alternatively, the process belonging to the destination service does not open It is dynamic.
Optionally, the acquisition module is configured as obtaining the trigger action that triggering starts spell check service;
Wherein, the spell check service is the system service for having spelling-checker.
Optionally, described device further includes:
Receiving module is configured as pushing away for the self-starting permission of the intended application that reception cloud server is sent Switch is recommended to set, it is described that switch setting is recommended to open the self-starting power according to for the intended application by the cloud server It the number of users of limit and the number of users of the self-starting permission is closed for the intended application determines;
Switch module, be configured as according to it is described recommend switch be set as the intended application be turned on and off it is described oneself open Dynamic permission.
According to the third aspect of the embodiment of the present disclosure, a kind of device controlled using self-starting, described device packet are provided It includes:
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is configured as:
Obtain the trigger action that triggering starts destination service;
After the trigger action is got, whether the intended application that the destination service is registered in detection has self-starting Permission;Wherein, the self-starting permission refers to start automatically the permission of operation;
When the intended application does not have the self-starting permission, forbid the intended application using binding method of service The self-starting during the destination service is started.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
By the way that after the trigger action for getting triggering startup destination service, the intended application of destination service is registered in detection Whether have self-starting permission, when testing result does not have self-starting permission for intended application, intended application is forbidden to use and is tied up Determine method of service self-starting during destination service is started;It solves in the relevant technologies since application can be by servicing (such as Spell check service) realization self-starting, the problem of causing to occupy Installed System Memory and increase power consumption;Due to be opened certainly using setting Dynamic permission only allows the application for having self-starting permission to realize self-starting by service, application without permission is avoided to pass through clothes Pragmatic existing self-starting, has reached the technique effect for saving Installed System Memory and the amount of saving energy.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and for explaining the principle of the disclosure together with specification.
Fig. 1 is the flow chart according to a kind of method of control application self-starting shown in an exemplary embodiment;
Fig. 2 is the flow chart of a kind of method of control application self-starting shown according to another exemplary embodiment;
Fig. 3 is the block diagram according to a kind of device of control application self-starting shown in an exemplary embodiment;
Fig. 4 is the block diagram of the device of a kind of control application self-starting shown according to another exemplary embodiment;
Fig. 5 is the block diagram according to a kind of device shown in an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Inventor to control using studying in terms of self-starting during find, using can be taken by spell check Pragmatic existing self-starting namely application are realized by spell check service starts operation automatically.Spell check service is that have spelling The system service of audit function.After registration spell check service, (bind service) is serviced using that can pass through to bind Mode self-starting during terminal device starts spell check service.Since application can (such as spell check takes by service Business) realize self-starting, cause to occupy Installed System Memory and increase power consumption.Wherein, service is service, services and is set in terminal Standby running background needs the task of longtime running mainly for the treatment of certain time-consuming logics or execution.Based on this, this public affairs It opens embodiment and provides a kind of control using the method for self-starting and the device based on this method, to solve above-mentioned related skill The problem of art.The technical solution that the embodiment of the present disclosure provides, core concept are to set self-starting permission for application, are realized The self-starting of application is controlled.Wherein, self-starting permission refers to start automatically the permission of operation.By in terminal device Whether each application of installation, which has self-starting permission, is managed, and only allows the application for having self-starting permission real by servicing Existing self-starting avoids application without permission from realizing self-starting by service.
The method that the embodiment of the present disclosure provides, the executive agent of each step can be terminal device, such as mobile phone, tablet electricity Brain, E-book reader, multimedia play equipment, PDA (Personal Digital Assistant, personal digital assistant), Wearable device etc..In the embodiments of the present disclosure, the type of the operating system of terminal device is not construed as limiting, such as Android (peaces It is tall and erect) operating system, iOS operating systems, Windows Phone operating systems etc..
Fig. 1 is the flow chart according to a kind of method of control application self-starting shown in an exemplary embodiment.This method It can include the following steps:
In a step 101, the trigger action that triggering starts destination service is obtained.
Terminal device obtains the trigger action that triggering starts destination service.The trigger action is typically behaviour performed by the user Make, which being capable of trigger action system startup destination service.
Wherein, after destination service is using the destination service is registered, starting target using by binding method of service The service of self-starting can be realized during service.Optionally, destination service is system service, and system service is mainly used for holding Row system specified function.In one example, destination service is spell check service.Spell check service also referred to as spelling inspection Tool is looked into, is the system service with spelling-checker.When spelling-checker is that digital examination inputs words in input frame Misspelling function.For example, by obtaining the words currently inputted in input frame, by its with the words in built-in dictionary into Row compares, if not having the words currently inputted in built-in dictionary, which will be considered as that there are misspellings Words accidentally.After registration spell check service, spell check service can be started in system by binding method of service During realize self-starting.In one example, terminal device obtains the trigger action that triggering starts spell check service.Example Such as, which inputs the operation of words for user in input frame.
In addition, using can be by declaring registration destination service in describing file in its information.It is application that information, which describes file, Base configuration file.By taking Android is applied as an example, information describes file as AndroidManifest.xml files.In information It describes in file, developer can illustrate the basic information of application, for example believe using portal page, using required permission Breath, the version information applied etc..Illustratively, using can pass through in describing file in its information statement registration spell check take Business.
In a step 102, after trigger action is got, whether the intended application of detection registration destination service has certainly Start permission.
For terminal device after trigger action is got, whether the intended application of detection registration destination service has self-starting Permission.Wherein, self-starting permission refers to start automatically the permission of operation.In the embodiments of the present disclosure, it is weighed by adding self-starting Limit so that system can realize that self-starting controls to application by service.Illustratively, self-starting permission is entitled OP_AutoStart.Optionally, it is the corresponding mark (also referred to as be worth) of self-starting priority assignation, for the unique mark permission, Mark corresponding to different permissions is also different.
If in addition, there is only an application registration destination service in terminal device, intended application is the application, terminal Equipment detects whether the application has self-starting permission.If there are multiple applications in terminal device to register destination service, target Using for a default application in multiple application, terminal device detects whether the default application has self-starting permission.It is silent Recognize and apply and can be selected by system or User Defined.
Optionally, this step includes following several sub-steps:
1, permission detection method is called, detects and asks to permission detection method sending permission;
Wherein, the mark of intended application is carried in permission detection request, the mark of application is for one application of unique mark. Optionally, the mark of intended application includes the packet name (packagename) of intended application.
Permission detection method is used to obtain whether intended application has self-starting permission.Illustratively, it is assumed that permission detects Method is AutoStartManagerService.isAllowStartService methods, and operating system is called AutoStartManagerService.isAllowStartService methods, and carry intended application to this method transmission Mark permission detection request.
2, obtain the permission testing result that permission detection method returns;
Wherein, permission testing result is:Intended application has self-starting permission, alternatively, intended application does not have self-starting Permission.
Illustratively, after AutoStartManagerService.isAllowStartService methods are called, root According to the mark of intended application, inquiry obtains whether intended application has self-starting permission.If intended application has self-starting permission, Then AutoStartManagerService.isAllowStartService methods are used to indicate to operating system return and have certainly Start the first instruction information of permission, such as the first instruction information is true;If intended application does not have self-starting permission, AutoStartManagerService.isAllowStartService methods are used to indicate not to operating system return to be had certainly Start the second instruction information of permission, such as the second instruction information is false.
In one example, it by taking destination service is spell check service as an example, is being used to implement using binding method of service It realizes to be inserted into the code of self-starting and is used to implement detection application and whether has the code of self-starting permission, which can be with It is as follows:
In step 103, if intended application does not have self-starting permission, forbid intended application using binding method of service The self-starting during destination service is started.
If intended application does not have self-starting permission, terminal device forbids intended application being opened using binding method of service Self-starting during moving-target services.It is one of common application Starting mode to bind method of service, is taken using by binding Business mode can start operation during the service of its binding is called startup.If intended application does not have self-starting power It limits, then terminal device does not perform the flow of binding service during destination service is started, so that intended application can not open Dynamic operation.
In addition, if intended application has self-starting permission, terminal device allows intended application using binding method of service Self-starting namely terminal device perform binding service during destination service is started during destination service is started Flow, so that intended application starts operation.
In conclusion method provided in this embodiment, by get triggering start destination service trigger action it Afterwards, whether the intended application of detection registration destination service has self-starting permission, does not have certainly for intended application in testing result When starting permission, forbid intended application using binding method of service self-starting during destination service is started;Solves phase Since application can realize self-starting by servicing (such as spell check service) in the technology of pass, cause to occupy Installed System Memory and increase consumption The problem of electricity;Due to using setting self-starting permission, the application for having self-starting permission only to be allowed to be realized certainly by servicing Start, application without permission is avoided to realize self-starting by service, has reached the skill for saving Installed System Memory and the amount of saving energy Art effect.
In another alternative embodiment provided based on embodiment illustrated in fig. 1, as shown in Fig. 2, the control application self-starting Method can include the following steps:
In step 201, the trigger action that triggering starts destination service is obtained.
In relation to step 201 reference can be made to introduction and explanation, the present embodiment above with respect to step 101 repeat no more this.
In step 202, after trigger action is got, detect in the process of intended application belonging to destination service into Whether journey has been turned on.If so, terminate flow;If it is not, then perform following step 203.
After trigger action is got, detect the process in the process of intended application belonging to destination service is terminal device It is no to have been turned on.If the process belonging to destination service is not actuated, following permission detecting steps are performed;If belonging to destination service Process have been turned on, then directly skip following permission detecting steps, perform the flow of binding service.It by the above-mentioned means, can It avoids performing unnecessary permission detecting step, saves system processing expense.
Optionally, this step includes following several sub-steps:
1, calling process detection method sends process detection request to process detection method;
Wherein, the mark of the process belonging to destination service is carried in process detection request, such as process name (process name).Whether the process that process detection method is used to obtain belonging to destination service has been turned on.
Illustratively, it is assumed that process detection method is ApiActivityManager Service.getProcessRecordLocked methods, operating system are called ApiActivityManagerService.getProcessRecordLocked methods, and sent to this method and carry target clothes The process detection request of the mark of process belonging to business.
2, obtain the process detection result that process detection method returns;
Wherein, process detection result is:Process belonging to destination service has been turned on, alternatively, the process belonging to destination service It is not actuated.
Illustratively, ApiActivityManagerService.getProcessRecordLocked methods are called it Afterwards, whether the mark of the process according to belonging to destination service, the process that inquiry obtains belonging to destination service have been turned on.If target takes Process belonging to business has been turned on, then ApiActivityManagerService.getProcessRecordLocked methods are to behaviour Make system return and be used to indicate the third instruction information that process has been turned on, such as third instruction information is not null;If target takes Process belonging to business is not actuated, then ApiActivityManagerService.getProcessRecordLocked methods are to behaviour Make system return and be used to indicate the 4th not actuated instruction information of process, such as the 4th instruction information is null.
In step 203, whether the intended application of detection registration destination service has self-starting permission.If so, it performs Following step 204;If it is not, then perform following step 205.
In step 204, allow intended application using binding method of service self-starting during destination service is started.
In step 205, forbid intended application using binding method of service self-starting during destination service is started.
Can be found in introduction and the explanation above with respect to step 102-103 in relation to step 203-205, the present embodiment to this no longer It repeats.
Method provided in this embodiment, also by after the trigger action for getting triggering startup destination service, detecting Whether the process in the process of intended application belonging to destination service has been turned on, in process of the testing result belonging to destination service not Subsequent permission detecting step is performed in the case of startup, and is the feelings that the process belonging to destination service has been turned in testing result Flow can directly be terminated under condition, do not perform subsequent permission detecting step, avoid performing unnecessary permission detecting step, saved Province's system processing expense.
It should be added that using whether having self-starting permission, can be set by system default, it also can be by user Self-defined setting.
Optionally, it can count in the cloud server corresponding to operating system and be opened certainly for each application unlatching/closing respectively The number of users of dynamic permission.For a certain application, cloud server statistics opens the user of self-starting permission for the application Quantity and the number of users that self-starting permission is closed for the application determine the self-starting permission of the application according to above-mentioned statistical result Recommendation switch setting.Illustratively, by taking intended application as an example, cloud server opens self-starting permission according to for intended application Number of users and close self-starting permission number of users ratio, determine intended application self-starting permission recommendation switch Setting.After installing terminal equipment intended application, cloud server can switch the recommendation of the self-starting permission of intended application Setting is sent to terminal device;Correspondingly, terminal device receives the self-starting permission for the intended application that cloud server is sent Recommend switch setting.Switch setting is recommended to refer to recommend to be turned on and off self-starting permission.Terminal device is set according to recommendation switch It is set to intended application and is turned on and off self-starting permission.In one example, terminal device is automatic according to recommendation switch setting It is set as intended application and is turned on and off self-starting permission.For example, if switch is recommended to be set on, terminal device is target Using unlatching self-starting permission;If switch is recommended to be set off, terminal device closes self-starting permission for intended application. In another example, terminal device shows recommendation switch setting, combines the setting of recommendation switch by user and itself is real Border demand is set as intended application and is turned on and off self-starting permission, and terminal device obtains the priority assignation instruction of user setting, Intended application is designated as according to the priority assignation of user setting and is turned on and off self-starting permission.In addition, cloud server can be After installing terminal equipment intended application, the recommendation that the self-starting permission of intended application is sent to terminal device switchs setting;Cloud The recommendation that end server can also be spaced the self-starting permission for sending intended application to terminal device at predetermined time intervals switchs setting.
In one example, for a certain application, the number of users that self-starting permission is opened if the application is more than The number of users of self-starting permission is closed for the application, then cloud server determines the recommendation switch of the self-starting permission of the application It is set on;The number of users of self-starting permission is opened less than the user that self-starting permission is closed for the application if the application Quantity, then cloud server determine the self-starting permission of the application recommendation switch be set off.
In another example, for a certain application, the number of users that self-starting permission is opened if the application occupies The ratio of family sum is more than first threshold, then cloud server determines that the recommendation switch of the self-starting permission of the application is set on It opens;The number of users that self-starting permission is opened if the application accounts for the ratio of total number of users and is less than second threshold, then cloud service Device determines that the recommendation switch of the self-starting permission of the application is set off.Wherein, first threshold is equal to second threshold, alternatively, First threshold is more than second threshold.Total number of users refers to open the number of users of self-starting permission with being that the application is closed for the application Close the summation of the number of users of self-starting permission.
Following is embodiment of the present disclosure, can be used for performing embodiments of the present disclosure.For disclosure device reality The details not disclosed in example is applied, please refers to embodiments of the present disclosure.
Fig. 3 is the block diagram according to a kind of device of control application self-starting shown in an exemplary embodiment.The device has Have and realize the exemplary function of the above method, the function it is real can also to be performed corresponding software by hardware realization by hardware It is existing.The device can include:Acquisition module 301, first detection module 302 and disabled module 303.
Acquisition module 301 is configured as obtaining the trigger action that triggering starts destination service.
First detection module 302 is configured as after the trigger action is got, and the destination service is registered in detection Intended application whether have self-starting permission;Wherein, the self-starting permission refers to start automatically the permission of operation.
Disabled module 303 when being configured as the intended application and not having the self-starting permission, forbids the target Using using the self-starting during the destination service is started of binding method of service.
In conclusion device provided in this embodiment, by get triggering start destination service trigger action it Afterwards, whether the intended application of detection registration destination service has self-starting permission, does not have certainly for intended application in testing result When starting permission, forbid intended application using binding method of service self-starting during destination service is started;Solves phase Since application can realize self-starting by servicing (such as spell check service) in the technology of pass, cause to occupy Installed System Memory and increase consumption The problem of electricity;Due to using setting self-starting permission, the application for having self-starting permission only to be allowed to be realized certainly by servicing Start, application without permission is avoided to realize self-starting by service, has reached the skill for saving Installed System Memory and the amount of saving energy Art effect.
In the alternative embodiment provided based on embodiment illustrated in fig. 3, as shown in figure 4, the first detection module 302, including:First sending submodule 302a and the first acquisition submodule 302b.
First sending submodule 302a is configured as calling permission detection method, to the permission detection method transmission route Limit detection request;Wherein, the mark of the intended application is carried in the permission detection request, the permission detection method is used for Obtain whether the intended application has the self-starting permission.
First acquisition submodule 302b is configured as obtaining the permission testing result that the permission detection method returns;Its In, the permission testing result is:The intended application has the self-starting permission, alternatively, the intended application does not have The self-starting permission.
In another alternative embodiment provided based on embodiment illustrated in fig. 3, as shown in figure 4, described device further includes:The Two detection modules 304.
Second detection module 304, is configured as after the trigger action is got, detect the intended application into Whether the process described in journey belonging to destination service has been turned on.
The first detection module 302 is additionally configured to when the process belonging to the destination service is not actuated, detection note Whether the intended application of the volume destination service has the self-starting permission.
Optionally, second detection module 304, including:Second sending submodule 304a and the second acquisition submodule 304b。
Second sending submodule 304a, is configured as calling process detection method, to the process detection method send into Journey detection request;Wherein, the mark of the process belonging to the destination service, the process inspection are carried in the process detection request Whether the process that survey method is used to obtain belonging to the destination service has been turned on.
Second acquisition submodule 304b is configured as obtaining the process detection result that the process detection method returns;Its In, the process detection result is:Process belonging to the destination service has been turned on, alternatively, belonging to the destination service into Journey is not actuated.
In another alternative embodiment provided based on embodiment illustrated in fig. 3, the acquisition module 301 is configured as obtaining Triggering is taken to start the trigger action of spell check service.Wherein, the spell check service be there is spelling-checker be System service.
In another alternative embodiment provided based on embodiment illustrated in fig. 3, described device further includes:It receiving module and opens Close module.
Receiving module is configured as pushing away for the self-starting permission of the intended application that reception cloud server is sent Switch is recommended to set, it is described that switch setting is recommended to open the self-starting power according to for the intended application by the cloud server It the number of users of limit and the number of users of the self-starting permission is closed for the intended application determines.
Switch module, be configured as according to it is described recommend switch be set as the intended application be turned on and off it is described oneself open Dynamic permission.
It should be noted is that above-described embodiment provide device when realizing its function, only with above-mentioned each function The division progress of module, can be according to actual needs and by above-mentioned function distribution by different work(for example, in practical application Energy module is completed, i.e., the content structure of equipment is divided into different function modules, to complete whole described above or portion Divide function.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
One exemplary embodiment of the disclosure additionally provides a kind of device controlled using self-starting, can realize that the disclosure carries The method of confession.The device includes:Processor and the memory for storing the executable instruction of processor.Wherein, processor It is configured as:
Obtain the trigger action that triggering starts destination service;
After trigger action is got, whether the intended application of detection registration destination service has self-starting permission;Its In, self-starting permission refers to start automatically the permission of operation;
When intended application does not have self-starting permission, intended application is forbidden to start target clothes using binding method of service Self-starting during business.
Optionally, which is configured as:
Permission detection method is called, detects and asks to permission detection method sending permission;Wherein, it is taken in permission detection request Mark with intended application, permission detection method are used to obtain whether intended application has self-starting permission;
Obtain the permission testing result that permission detection method returns;Wherein, permission testing result is:Intended application has certainly Start permission, alternatively, intended application does not have self-starting permission.
Optionally, which is additionally configured to:
After trigger action is got, detect whether the process in the process of intended application belonging to destination service has opened It is dynamic;
When the process belonging to destination service is not actuated, opened certainly from whether the intended application of detection registration destination service has The step of dynamic permission, starts to perform.
Optionally, which is configured as:
Calling process detection method sends process detection request to process detection method;Wherein, it is taken in process detection request Whether the mark with the process belonging to destination service, the process that process detection method is used to obtain belonging to destination service have been turned on;
Obtain the process detection result that process detection method returns;Wherein, process detection result is:Belonging to destination service Process has been turned on, alternatively, the process belonging to destination service is not actuated.
Optionally, which is configured as:
Obtain the trigger action that triggering starts spell check service;
Wherein, spell check service is the system service for having spelling-checker.
Optionally, which is additionally configured to:
Receive cloud server send intended application self-starting permission recommendation switch setting, recommend switch setting by Cloud server is according to the number of users that self-starting permission is opened for intended application and is that intended application closes self-starting permission Number of users determines;
Self-starting permission is turned on and off according to switch is recommended to be set as intended application.
Fig. 5 is the block diagram according to a kind of device 500 shown in an exemplary embodiment.For example, device 500 can be mobile Phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, Personal digital assistant etc..
With reference to Fig. 5, device 500 can include following one or more components:Processing component 502, memory 505, power supply Component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor module 514, Yi Jitong Believe component 516.
The integrated operation of 502 usual control device 500 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 502 can refer to including one or more processors 520 to perform It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 can include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 can include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 505 is configured as storing various types of data to support the operation in device 500.These data are shown Example includes the instruction of any application program or method for operating on device 500, contact data, and telephone book data disappears Breath, picture, video etc..Memory 505 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 can include power management system System, one or more power supplys and other generate, manage and distribute electric power associated component with for device 500.
Multimedia component 508 is included in the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 is in operation mode, such as screening-mode or During video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when device 500 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 505 or via communication set Part 516 is sent.In some embodiments, audio component 510 further includes a loud speaker, for exports audio signal.
I/O interfaces 512 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor module 514 can detect opening/closed state of device 500, and the relative positioning of component, for example, it is described Component is the display and keypad of device 500, and sensor module 515 can be with 500 1 components of detection device 500 or device Position change, the existence or non-existence that user contacts with device 500,500 orientation of device or acceleration/deceleration and device 500 Temperature change.Sensor module 514 can include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 514 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as Wi-Fi, 2G or 3G or combination thereof.In an exemplary reality It applies in example, communication component 516 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel Breath.In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, short distance to be promoted to lead to Letter.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) can be based in NFC module Technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 505 of instruction, above-metioned instruction can be performed to complete the above method by the processor 520 of device 500.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 500 When device performs so that device 500 is able to carry out the above method.
It should be understood that referenced herein " multiple " refer to two or more."and/or", description association The incidence relation of object, expression may have three kinds of relationships, for example, A and/or B, can represent:Individualism A, exists simultaneously A And B, individualism B these three situations.It is a kind of relationship of "or" that character "/", which typicallys represent forward-backward correlation object,.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as illustratively, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.

Claims (11)

  1. A kind of 1. method controlled using self-starting, which is characterized in that the method includes:
    Obtain the trigger action that triggering starts destination service;
    After the trigger action is got, target clothes described in the process of the intended application of the destination service are registered in detection Whether the process belonging to business has been turned on;
    If the process belonging to the destination service is not actuated, detect whether the intended application has self-starting permission;Wherein, institute State the permission that self-starting permission refers to start automatically operation;
    If the intended application does not have the self-starting permission, the intended application is forbidden to be opened using binding method of service Self-starting during the dynamic destination service.
  2. 2. according to the method described in claim 1, it is characterized in that, the intended application that the destination service is registered in the detection is It is no to have self-starting permission, including:
    Permission detection method is called, detects and asks to the permission detection method sending permission;Wherein, the permission detection request The middle mark for carrying the intended application, the permission detection method for obtain the intended application whether have it is described from opening Dynamic permission;
    Obtain the permission testing result that the permission detection method returns;Wherein, the permission testing result is:The target should With having the self-starting permission, alternatively, the intended application does not have the self-starting permission.
  3. 3. according to the method described in claim 1, it is characterized in that, target described in the process of the detection intended application Whether the process belonging to service has been turned on, including:
    Calling process detection method sends process detection request to the process detection method;Wherein, the process detection request The middle mark for carrying the process belonging to the destination service, the process detection method are used to obtain belonging to the destination service Whether process has been turned on;
    Obtain the process detection result that the process detection method returns;Wherein, the process detection result is:The target clothes Process belonging to business has been turned on, alternatively, the process belonging to the destination service is not actuated.
  4. 4. method according to any one of claims 1 to 3, which is characterized in that described obtain triggers startup destination service Trigger action, including:
    Obtain the trigger action that triggering starts spell check service;
    Wherein, the spell check service is the system service for having spelling-checker.
  5. 5. method according to any one of claims 1 to 4, which is characterized in that the method further includes:
    The recommendation switch setting of the self-starting permission for the intended application that cloud server is sent is received, the recommendation is opened Setting is closed by the cloud server according to the number of users for the intended application unlatching self-starting permission and described in being The number of users that intended application closes the self-starting permission determines;
    The intended application is set as according to the recommendation switch and is turned on and off the self-starting permission.
  6. 6. a kind of device controlled using self-starting, which is characterized in that described device includes:
    Acquisition module is configured as obtaining the trigger action that triggering starts destination service;
    Second detection module is configured as after the trigger action is got, and the target of the destination service is registered in detection Whether the process described in the process of application belonging to destination service has been turned on;
    First detection module, be configured as process belonging to the destination service it is not actuated when, detecting the intended application is It is no to have self-starting permission;Wherein, the self-starting permission refers to start automatically the permission of operation;
    Disabled module when being configured as the intended application and not having the self-starting permission, forbids the intended application to adopt With the self-starting during the destination service is started of binding method of service.
  7. 7. device according to claim 6, which is characterized in that the first detection module, including:
    First sending submodule is configured as calling permission detection method, please to permission detection method sending permission detection It asks;Wherein, the mark of the intended application is carried in the permission detection request, the permission detection method is described for obtaining Whether intended application has the self-starting permission;
    First acquisition submodule is configured as obtaining the permission testing result that the permission detection method returns;Wherein, the power Limiting testing result is:The intended application has the self-starting permission, alternatively, the intended application does not have the self-starting Permission.
  8. 8. device according to claim 6, which is characterized in that second detection module, including:
    Second sending submodule is configured as calling process detection method, and sending process detection to the process detection method please It asks;Wherein, the mark of the process belonging to the destination service is carried in the process detection request, the process detection method is used Whether had been turned in the process belonging to the acquisition destination service;
    Second acquisition submodule is configured as obtaining the process detection result that the process detection method returns;Wherein, it is described into Journey testing result is:Process belonging to the destination service has been turned on, alternatively, the process belonging to the destination service is not actuated.
  9. 9. according to claim 6 to 8 any one of them device, which is characterized in that
    The acquisition module is configured as obtaining the trigger action that triggering starts spell check service;
    Wherein, the spell check service is the system service for having spelling-checker.
  10. 10. according to claim 6 to 9 any one of them device, which is characterized in that described device further includes:
    Receiving module, the recommendation for being configured as receiving the self-starting permission for the intended application that cloud server is sent are opened Setting is closed, it is described that switch setting is recommended to open the self-starting permission according to for the intended application by the cloud server It number of users and the number of users of the self-starting permission is closed for the intended application determines;
    Switch module is configured as switch being recommended to be set as the intended application be turned on and off self-starting power according to described Limit.
  11. 11. a kind of device controlled using self-starting, which is characterized in that described device includes:
    Processor;
    For storing the memory of the executable instruction of the processor;
    Wherein, the processor is configured as:
    Obtain the trigger action that triggering starts destination service;
    After the trigger action is got, target clothes described in the process of the intended application of the destination service are registered in detection Whether the process belonging to business has been turned on;
    If the process belonging to the destination service is not actuated, detect whether the intended application has self-starting permission;Wherein, institute State the permission that self-starting permission refers to start automatically operation;
    When the intended application does not have the self-starting permission, the intended application is forbidden to be opened using binding method of service Self-starting during the dynamic destination service.
CN201680001198.2A 2016-10-21 2016-10-21 The method and device of self-starting is applied in control Active CN106537288B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/102790 WO2018072193A1 (en) 2016-10-21 2016-10-21 Method and device for controlling application to start automatically

Publications (2)

Publication Number Publication Date
CN106537288A CN106537288A (en) 2017-03-22
CN106537288B true CN106537288B (en) 2018-06-12

Family

ID=58335880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680001198.2A Active CN106537288B (en) 2016-10-21 2016-10-21 The method and device of self-starting is applied in control

Country Status (2)

Country Link
CN (1) CN106537288B (en)
WO (1) WO2018072193A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423164B (en) * 2017-07-21 2021-02-09 北京小米移动软件有限公司 Application restart method and device
CN110895473B (en) * 2018-08-24 2023-05-02 山东华软金盾软件股份有限公司 Self-starting keep-alive system and method based on android mobile equipment
CN110955869A (en) * 2018-09-26 2020-04-03 南昌欧菲生物识别技术有限公司 Terminal software authority management method and device, terminal and storage medium
CN109445920A (en) * 2018-10-22 2019-03-08 Oppo广东移动通信有限公司 Method, electronic device and the computer readable storage medium of self-starting are applied in control

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927476A (en) * 2014-05-07 2014-07-16 上海联彤网络通讯技术有限公司 Intelligent system and method for achieving application program authority management
WO2014137014A1 (en) * 2013-03-08 2014-09-12 (주)인프라웨어테크놀러지 Auto-verification method of smart application using terminal automatic execution control
CN104462980A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Authority management method, device and system of application programs and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014137014A1 (en) * 2013-03-08 2014-09-12 (주)인프라웨어테크놀러지 Auto-verification method of smart application using terminal automatic execution control
CN103927476A (en) * 2014-05-07 2014-07-16 上海联彤网络通讯技术有限公司 Intelligent system and method for achieving application program authority management
CN104462980A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Authority management method, device and system of application programs and mobile terminal

Also Published As

Publication number Publication date
CN106537288A (en) 2017-03-22
WO2018072193A1 (en) 2018-04-26

Similar Documents

Publication Publication Date Title
CN104484200B (en) The method and device upgraded to firmware
CN104267977B (en) application program operation method and device
EP3151117B1 (en) Method and device for delaying information broadcasting
CN105553963B (en) The control method and device of positioning service
CN105975156B (en) Application interface display methods and device
CN104837154B (en) The control method and device of wireless access points
CN105512545B (en) Access rights management method and device
CN106203167B (en) Application rights management method and device
CN106537288B (en) The method and device of self-starting is applied in control
CN106970769A (en) Multi-screen display method and device
CN105354017B (en) Information processing method and device
CN106791092A (en) The searching method and device of contact person
CN109669730A (en) A kind of process keepalive method, device, electronic equipment and medium
CN107463372B (en) Data-driven page updating method and device
CN106951299A (en) The operating method and device of application program
CN107135147A (en) Method, device and the computer-readable recording medium of sharing position information
CN106462835A (en) Calendar event creation method and device
CN105704322B (en) Weather information acquisition methods and device
CN105653903B (en) The management method and device of application program permission
CN107423146A (en) The method, apparatus and system that control application program is mutually called
CN106471513A (en) Authority control method and device
CN105868624A (en) Application program authority management method and device
CN105682187B (en) Icon display method and device
CN105323318B (en) Amending method, device and the equipment of parameter
CN107295099A (en) PUSH message processing method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant