[go: up one dir, main page]

CN106537288A - Application autostart control method and device - Google Patents

Application autostart control method and device Download PDF

Info

Publication number
CN106537288A
CN106537288A CN201680001198.2A CN201680001198A CN106537288A CN 106537288 A CN106537288 A CN 106537288A CN 201680001198 A CN201680001198 A CN 201680001198A CN 106537288 A CN106537288 A CN 106537288A
Authority
CN
China
Prior art keywords
authority
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.)
Granted
Application number
CN201680001198.2A
Other languages
Chinese (zh)
Other versions
CN106537288B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to an application autostart control method and device, and belongs to the computer technical field; the method comprises the following steps: obtaining a trigger operation triggering and starting target service; detecting whether the target application registered to the target service has autostart authority or not after the trigger operation is obtained, wherein the autostart authority refers to the authority of automatically starting and operating; if the target application does not have the autostart right, the target application is prohibited from self-starting in the process of starting the target service by using the binding service mode. The method and device set autostart authority for applications, only allow the application with autostart permission to achieve autostart through the service, and can prevent unauthorized applications to achieve self-starting through the service, thus saving the system memory and saving power consumption.

Description

Method and device of the control using self-starting
Technical field
It relates to field of computer technology, method and device of more particularly to a kind of control using self-starting.
Background technology
At present, such as can install in the terminal device of mobile phone, panel computer etc types of applications (application, APP), expanding the function of terminal device.
The content of the invention
The embodiment of the present disclosure provides a kind of method and device of control using self-starting.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method of control application self-starting, methods described bag Include:
Obtain the trigger action that triggering starts destination service;
After the trigger action is got, whether the intended application of the detection registration destination service possesses self-starting Authority;Wherein, the self-starting authority refers to the authority of automatic operation;
If the intended application does not possess the self-starting authority, forbid the intended application using binding method of service The self-starting during the destination service is started.
Alternatively, whether the intended application of the detection registration destination service possesses self-starting authority, including:
Authority detection method is called, is asked to authority detection method sending permission detection;Wherein, the authority detection The mark of the intended application is carried in request, the authority detection method is used to obtain whether the intended application possesses described Self-starting authority;
Obtain the authority testing result that the authority detection method is returned;Wherein, the authority testing result is:The mesh Mark application possesses the self-starting authority, or, the intended application does not possess the self-starting authority.
Alternatively, methods described also includes:
After the trigger action is got, entering belonging to destination service described in the process of the intended application is detected Whether journey has been turned on;
If the process belonging to the destination service is not actuated, from the intended application of the detection registration destination service The step of whether possessing self-starting authority starts to perform.
Alternatively, 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 is returned;Wherein, the process detection result is:The mesh Process belonging to mark service has been turned on, or, the process belonging to the destination service is not actuated.
Alternatively, it is described to obtain the trigger action that triggering starts destination service, including:
Obtain the trigger action that triggering starts spell check service;
Wherein, the spell check service is the system service with spelling-checker.
Alternatively, methods described also includes:
The recommendation switch for receiving the self-starting authority of the intended application that cloud server sends is arranged, described to push away Recommend switch and arrange and by the cloud server according to the number of users for the intended application unlatching self-starting authority and be The intended application is closed the number of users of the self-starting authority and is determined;
The intended application is set to according to the recommendation switch and is turned on and off the self-starting authority.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device of control application self-starting, described device bag Include:
Acquisition module, is configured to obtain the trigger action that triggering starts destination service;
First detection module, is configured to after the trigger action is got, the detection registration destination service Whether intended application possesses self-starting authority;Wherein, the self-starting authority refers to the authority of automatic operation;
Disabled module, if being configured to the intended application does not possess the self-starting authority, forbids the target to answer Method of service self-starting during the destination service is started is bound with adopting.
Alternatively, the first detection module, including:
First sending submodule, is configured to call authority detection method, examines to the authority detection method sending permission Survey request;Wherein, the mark of the intended application is carried in the authority detection request, the authority detection method is used to obtain Whether the intended application possesses the self-starting authority;
First acquisition submodule, is configured to obtain the authority testing result that the authority detection method is returned;Wherein, institute Stating authority testing result is:The intended application possesses the self-starting authority, or, the intended application do not possess it is described from Start authority.
Alternatively, described device also includes:
Second detection module, is configured to 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 The step of whether intended application of the survey registration destination service possesses self-starting authority starts to perform.
Alternatively, second detection module, including:
Second sending submodule, is configured to calling process detection method, sends process inspection 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 to obtain the process detection result that the process detection method is returned;Wherein, institute Stating process detection result is:Process belonging to the destination service has been turned on, or, the process belonging to the destination service is not opened It is dynamic.
Alternatively, the acquisition module, is configured to obtain the trigger action that triggering starts spell check service;
Wherein, the spell check service is the system service with spelling-checker.
Alternatively, described device also includes:
Receiver module, the self-starting authority for being configured to receive the intended application that cloud server sends are pushed away Recommend switch to arrange, it is described to recommend switch setting to open the self-starting power according to for the intended application by the cloud server The number of users of limit and the number of users for closing the self-starting authority for the intended application determine;
Switch module, be configured to according to the recommendation switch be set to the intended application be turned on and off it is described oneself open Dynamic authority.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of device of control application self-starting, described device bag Include:
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is configured to:
Obtain the trigger action that triggering starts destination service;
After the trigger action is got, whether the intended application of the detection registration destination service possesses self-starting Authority;Wherein, the self-starting authority refers to the authority of automatic operation;
When the intended application does not possess the self-starting authority, forbid the intended application using binding method of service The self-starting during the destination service is started.
The technical scheme that the embodiment of the present disclosure is provided can include following beneficial effect:
By, after the trigger action for getting triggering startup destination service, the intended application of destination service is registered in detection Whether possess self-starting authority, when testing result does not possess self-starting authority for intended application, forbid intended application to adopt and tie up Determine method of service self-starting during destination service is started;Solve in correlation technique as application can be by service (such as Spell check is serviced) self-starting is realized, cause to take Installed System Memory and increase the problem of power consumption;Certainly open due to arranging for application Dynamic authority, only allows the application for possessing self-starting authority to realize self-starting by service, it is to avoid application without permission is by clothes Pragmatic existing self-starting, has reached the technique effect for saving Installed System Memory and the amount of saving energy.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
During accompanying drawing herein is merged in specification and the part of this specification is constituted, show the enforcement for meeting the disclosure Example, and be used for explaining the principle of the disclosure together with specification.
Fig. 1 is a kind of flow chart of the method for the control application self-starting according to an exemplary embodiment;
Fig. 2 is the flow chart of the method for implementing a kind of control application self-starting for exemplifying according to another exemplary;
Fig. 3 is a kind of block diagram of the device of the control application self-starting according to an exemplary embodiment;
Fig. 4 is the block diagram of the device for implementing a kind of control application self-starting for exemplifying according to another exemplary;
Fig. 5 is a kind of block diagram of the device according to an exemplary embodiment.
Specific embodiment
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.Conversely, they be only with as appended by The example of consistent apparatus and method in terms of some described in detail in claims, the disclosure.
Inventor to control using self-starting in terms of study during find, application can be taken by spell check Pragmatic existing self-starting, namely realize that automatic is run using by spell check service.Spell check service is with spelling The system service of audit function.After using registration spell check service, application can be by the service of binding (bind service) Mode starts self-starting during spell check is serviced in terminal device.As application can be by service (as spell check takes Business) self-starting is realized, cause to take Installed System Memory and increase power consumption.Wherein, service is service, and service is set in terminal Standby running background, needs the task of longtime running mainly for the treatment of some time-consuming logics or execution.Based on this, this public affairs Open embodiment and provide a kind of method of control using self-starting, and the device based on this method, to solve above-mentioned related skill Problem present in art.The technical scheme that the embodiment of the present disclosure is provided, core concept are to arrange self-starting authority for application, are realized Self-starting to applying is controlled.Wherein, self-starting authority refers to the authority of automatic operation.By in terminal device Whether each application installed possesses self-starting authority is managed, and only allows the application for possessing self-starting authority real by servicing Existing self-starting, it is to avoid application without permission realizes self-starting by service.
The method that the embodiment of the present disclosure is provided, the executive agent of each step can be terminal device, such as mobile phone, flat board electricity Brain, E-book reader, multimedia play equipment, PDA (Personal Digital Assistant, personal digital assistant), Wearable device etc..In the disclosed embodiments, 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 a kind of flow chart of the method for the control application self-starting according to an exemplary embodiment.The method Following several steps can be included:
In a step 101, obtain the trigger action that triggering starts destination service.
Terminal device obtains the trigger action that triggering starts destination service.The behaviour that the trigger action is typically performed by user Make, the trigger action being capable of trigger action system startup destination service.
Wherein, after destination service is using the destination service is registered, application is starting target by binding method of service The service of self-starting can be realized during service.Alternatively, destination service is system service, and system service is mainly used in holding Row system specified function.In one example, destination service is spell check service.Spell check service also referred to as spelling inspection Instrument is looked into, is the system service with spelling-checker.When spelling-checker is that digital examination is input into words in input frame Misspelling function.For example, by obtaining the words that input inframe is currently input into, which is entered with the words in built-in dictionary Row is compared, if the not current words being input in built-in dictionary, the words of the current input will be considered the presence of misspelling Words by mistake.After using 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, the trigger action is the operation that user is input into words in input frame.
In addition, application can be by describing statement registration destination service in file in its information.It is application that information describes file Base configuration file.By taking Android applications as an example, information describes file for AndroidManifest.xml files.In information In description file, developer can illustrate the Back ground Information applied, and believe such as using portal page, using required authority Breath, version information of application etc..Exemplarily, application can be by describing statement registration spell check clothes in file in its information Business.
In a step 102, after trigger action is got, whether the intended application of detection registration destination service possesses certainly Start authority.
After trigger action is got, whether the intended application of detection registration destination service possesses self-starting to terminal device Authority.Wherein, self-starting authority refers to the authority of automatic operation.In the disclosed embodiments, by adding self-starting power Limit so that by service, system can realize that self-starting is controlled to application.Exemplarily, self-starting authority is entitled OP_AutoStart.Alternatively, it is the corresponding mark of self-starting priority assignation (also referred to as value), for the unique mark authority, Mark corresponding to different authorities is also different.
In addition, if an application registration destination service is only existed in terminal device, intended application is the application, terminal Equipment detects whether the application possesses self-starting authority.If there is multiple application registration destination services, target in terminal device Using for a default application in the plurality of application, terminal device detects whether the default application possesses self-starting authority.It is silent Recognize and apply and can be selected by system or User Defined.
Alternatively, this step includes following several sub-steps:
1, authority detection method is called, is asked to the detection of authority detection method sending permission;
Wherein, the mark of intended application is carried in authority detection request, the mark of application is used for one application of unique mark. Alternatively, the mark of intended application includes the bag name (packagename) of intended application.
Authority detection method is used to obtain whether intended application possesses self-starting authority.Exemplarily, it is assumed that authority is detected Method is AutoStartManagerService.isAllowStartService methods, and operating system calls AutoStartManagerService.isAllowStartService methods, and intended application is carried to the method transmission Mark authority detection request.
2, obtain the authority testing result that authority detection method is returned;
Wherein, authority testing result is:Intended application possesses self-starting authority, or, intended application does not possess self-starting Authority.
Exemplarily, after AutoStartManagerService.isAllowStartService methods are called, root According to the mark of intended application, inquiry obtains whether intended application possesses self-starting authority.If intended application possesses self-starting authority, Then AutoStartManagerService.isAllowStartService methods are returned for indicating to possess certainly to operating system Start the first configured information of authority, such as the first configured information is true;If intended application does not possess self-starting authority, AutoStartManagerService.isAllowStartService methods are returned for indicating not possessing certainly to operating system Start the second configured information of authority, such as the second configured information is false.
In one example, so that destination service is for spell check service as an example, method of service is being bound for realizing adopting Insert in the code for realizing self-starting for realizing that whether detection application possesses the code of self-starting authority, the example code can be with It is as follows:
In step 103, if intended application does not possess self-starting authority, forbid intended application using binding method of service The self-starting during destination service is started.
If intended application does not possess self-starting authority, terminal device forbids intended application opening using binding method of service Self-starting during moving-target service.Binding method of service is one of common application Starting mode, and application is by binding clothes Business mode can its service bound is called start during startup optimization.If intended application does not possess self-starting power Limit, then terminal device does not perform the flow process of binding service during destination service is started, so that intended application cannot be opened Dynamic operation.
In addition, if intended application possesses self-starting authority, terminal device allows intended application using binding method of service The self-starting during destination service is started, namely terminal device execution binding service during destination service is started Flow process, so that intended application startup optimization.
In sum, the present embodiment provide method, by get triggering start destination service trigger action it Afterwards, whether the intended application of detection registration destination service possesses self-starting authority, does not possess certainly for intended application in testing result When starting authority, forbid intended application using the self-starting during destination service is started of binding method of service;Solve phase As application can realize self-starting (such as spell check service) by service in the technology of pass, cause to take Installed System Memory and increase consumption The problem of electricity;Due to realizing certainly using self-starting authority is arranged, only to allow the application for possessing self-starting authority to pass through to service Start, it is to avoid application without permission realizes self-starting by service, 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 following several steps:
In step 201, obtain the trigger action that triggering starts destination service.
The introduction and explanation above with respect to step 101 be can be found in about step 201, the present embodiment is repeated no more to this.
In step 202., after trigger action is got, entering belonging to destination service in the process of detection intended application Whether journey has been turned on.If so, then terminate flow process;If it is not, then performing following step 203.
After trigger action is got, the process in the process of detection 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 authority detecting steps are performed;If belonging to destination service Process have been turned on, then directly skip following authority detecting steps, perform the flow process of binding service.By the way, can Avoid performing unnecessary authority detecting step, save system and process expense.
Alternatively, 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, such as process name (process are carried in process detection request name).Whether the process that process detection method is used to obtain belonging to destination service has been turned on.
Exemplarily, it is assumed that process detection method is ApiActivityManagerService.getProcessRecord Locked methods, operating system call ApiActivityManagerService.getProcessRecordLocked methods, And the process detection request of the mark for carrying the process belonging to destination service is sent to the method.
2, obtain the process detection result that process detection method is returned;
Wherein, process detection result is:Process belonging to destination service has been turned on, or, the process belonging to destination service It is not actuated.
Exemplarily, ApiActivityManagerService.getProcessRecordLocked methods are called it Afterwards, the mark of the process according to belonging to destination service, inquiry obtain whether the process belonging to destination service has been turned on.If target takes Process belonging to business has been turned on, then ApiActivityManagerService.getProcessRecordLocked methods are to behaviour Return for indicating the 3rd configured information that process has been turned on as system, such as the 3rd configured information is not null;If target takes Process belonging to business is not actuated, then ApiActivityManagerService.getProcessRecordLocked methods are to behaviour Fourth configured information not actuated for indicating process is returned as system, such as the 4th configured information is null.
In step 203, whether the intended application of detection registration destination service possesses self-starting authority.If so, then perform Following step 204;If it is not, then performing following step 205.
In step 204, it is allowed to which intended application is using the self-starting during destination service is started of binding method of service.
In step 205, forbid intended application using the self-starting during destination service is started of binding method of service.
Can be found in the introduction and explanation above with respect to step 102-103 about step 203-205, the present embodiment to this no longer Repeat.
The method that the present embodiment is provided, 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 Follow-up authority 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 process can directly be terminated under condition, not perform follow-up authority detecting step, it is to avoid perform unnecessary authority detecting step, section Province's system processes expense.
It should be added that, whether application possesses self-starting authority, can be arranged by system default, also can be by user Self-defined setting.
Alternatively, can count respectively to open/close for each application in the cloud server corresponding to operating system and open certainly The number of users of dynamic authority.For a certain application, cloud server statistics opens the user of self-starting authority for the application Quantity and the number of users for the application closing self-starting authority, determine the self-starting authority of the application according to above-mentioned statistics Recommendation switch arrange.Exemplarily, by taking intended application as an example, cloud server opens self-starting authority according to for intended application Number of users and close self-starting authority number of users ratio, determine intended application self-starting authority recommendation switch Arrange.After installing terminal equipment intended application, the recommendation of the self-starting authority of intended application can be switched by cloud server Setting is sent to terminal device;Correspondingly, terminal device receives the self-starting authority of the intended application that cloud server sends Switch is recommended to arrange.Switch setting is recommended to refer to that recommendation is turned on and off self-starting authority.Terminal device is set according to recommendation switch It is set to intended application and is turned on and off self-starting authority.In one example, terminal device arranges automatic according to the recommendation switch It is set to intended application and is turned on and off self-starting authority.For example, if recommending switch to be set on, terminal device is target Using unlatching self-starting authority;If recommending switch to be set off, terminal device is that intended application closes self-starting authority. In another example, the recommendation switch setting is shown by terminal device, is combined the recommendation switch by user and is arranged real with itself Border demand is set to intended application and is turned on and off self-starting authority, and terminal device obtains the priority assignation instruction that user is arranged, The priority assignation arranged according to user is designated as intended application and is turned on and off self-starting authority.In addition, cloud server can be After installing terminal equipment intended application, the recommendation switch that the self-starting authority of intended application is sent to terminal device is arranged;Cloud End server also can be spaced the recommendation switch of the self-starting authority for sending intended application to terminal device at predetermined time intervals and arrange.
In one example, for a certain application, if the number of users that self-starting authority is opened in the application is more than The number of users of self-starting authority is closed for the application, then cloud server determines the recommendation switch of the self-starting authority of the application It is set on;If the application opens the number of users of self-starting authority less than the user that self-starting authority is closed for the application Quantity, then cloud server determine the self-starting authority of the application recommendation switch be set off.
In another example, for a certain application, if the number of users that self-starting authority is opened in the application takes The ratio of family sum is more than first threshold, then cloud server determines that the recommendation switch of the self-starting authority of the application is set on Open;If the ratio that the number of users of application unlatching self-starting authority accounts for total number of users is less than Second Threshold, then cloud service Device determines that the recommendation switch of the self-starting authority of the application is set off.Wherein, first threshold is equal to Second Threshold, or, First threshold is more than Second Threshold.Total number of users is referred to opens the number of users of self-starting authority and closes for the application for the application Close the summation of the number of users of self-starting authority.
It is following for disclosure device embodiment, can be used for performing method of disclosure embodiment.For disclosure device reality The details not disclosed in applying example, refer to method of disclosure embodiment.
Fig. 3 is a kind of block diagram of the device of the control application self-starting according to an exemplary embodiment.The device has There is the function of realizing said method example, the function can be realized by hardware, it is also possible to corresponding software reality is performed 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 to obtain the trigger action that triggering starts destination service.
First detection module 302, is configured to after the trigger action is got, the detection registration destination service Intended application whether possess self-starting authority;Wherein, the self-starting authority refers to the authority of automatic operation.
Disabled module 303, when being configured as the intended application and not possessing the self-starting authority, forbids the target Method of service self-starting during the destination service is started is bound using adopting.
In sum, the present embodiment provide device, by get triggering start destination service trigger action it Afterwards, whether the intended application of detection registration destination service possesses self-starting authority, does not possess certainly for intended application in testing result When starting authority, forbid intended application using the self-starting during destination service is started of binding method of service;Solve phase As application can realize self-starting (such as spell check service) by service in the technology of pass, cause to take Installed System Memory and increase consumption The problem of electricity;Due to realizing certainly using self-starting authority is arranged, only to allow the application for possessing self-starting authority to pass through to service Start, it is to avoid application without permission realizes self-starting by service, 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 to call authority detection method, to the authority detection method transmission route Limit detection request;Wherein, the mark of the intended application is carried in the authority detection request, the authority detection method is used for Obtain whether the intended application possesses the self-starting authority.
First acquisition submodule 302b, is configured to obtain the authority testing result that the authority detection method is returned;Its In, the authority testing result is:The intended application possesses the self-starting authority, or, the intended application does not possess The self-starting authority.
In another alternative embodiment provided based on embodiment illustrated in fig. 3, as shown in figure 4, described device also includes:The Two detection modules 304.
Second detection module 304, is configured to after the trigger action is got, and detects entering for the intended application 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 possesses the self-starting authority.
Alternatively, second detection module 304, including:Second sending submodule 304a and the second acquisition submodule 304b。
Second sending submodule 304a, is configured to 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 to obtain the process detection result that the process detection method is returned;Its In, the process detection result is:Process belonging to the destination service has been turned on, or, entering belonging to the destination service Journey is not actuated.
In another alternative embodiment provided based on embodiment illustrated in fig. 3, the acquisition module 301 is configured to obtain Take the trigger action that triggering starts spell check service.Wherein, the spell check service is to be with spelling-checker System service.
In another alternative embodiment provided based on embodiment illustrated in fig. 3, described device also includes:Receiver module and open Close module.
Receiver module, the self-starting authority for being configured to receive the intended application that cloud server sends are pushed away Recommend switch to arrange, it is described to recommend switch setting to open the self-starting power according to for the intended application by the cloud server The number of users of limit and the number of users for closing the self-starting authority for the intended application determine.
Switch module, be configured to according to the recommendation switch be set to the intended application be turned on and off it is described oneself open Dynamic authority.
It should be noted is that, above-described embodiment provide device when its function is realized, only with above-mentioned each function The division of module is illustrated, and in practical application, can distribute above-mentioned functions by different work(according to actual needs Can module complete, will the content structure of equipment be divided into different functional modules, to complete whole described above or portion Divide function.
With regard to the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the 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 control using the device of self-starting, can realize that the disclosure is carried For method.The device includes:Processor, and for storing the memory of the executable instruction of processor.Wherein, processor It is configured to:
Obtain the trigger action that triggering starts destination service;
After trigger action is got, whether the intended application of detection registration destination service possesses self-starting authority;Its In, self-starting authority refers to the authority of automatic operation;
When intended application does not possess self-starting authority, intended application is forbidden to start target clothes using binding method of service Self-starting during business.
Alternatively, the processor is configured to:
Authority detection method is called, is asked to the detection of authority detection method sending permission;Wherein, take in authority detection request Mark with intended application, authority detection method are used to obtain whether intended application possesses self-starting authority;
Obtain the authority testing result that authority detection method is returned;Wherein, authority testing result is:Intended application possesses certainly Start authority, or, intended application does not possess self-starting authority.
Alternatively, the processor is additionally configured to:
After trigger action is got, whether the process in the process of detection intended application belonging to destination service opens It is dynamic;
When the process belonging to destination service is not actuated, opened from whether the intended application of detection registration destination service possesses certainly The step of dynamic authority, starts to perform.
Alternatively, the processor is configured to:
Calling process detection method, sends process detection request to process detection method;Wherein, take 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 is returned;Wherein, process detection result is:Belonging to destination service Process has been turned on, or, the process belonging to destination service is not actuated.
Alternatively, the processor is configured to:
Obtain the trigger action that triggering starts spell check service;
Wherein, spell check service is the system service with spelling-checker.
Alternatively, the processor is additionally configured to:
Receive cloud server send intended application self-starting authority recommendation switch arrange, recommend switch arrange by Cloud server closes self-starting authority according to the number of users that self-starting authority is opened for intended application and for intended application Number of users determines;
Self-starting authority is turned on and off according to recommending switch to be set to intended application.
Fig. 5 is a kind of block diagram of the device 500 according to 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 assemblies:Process assembly 502, memory 505, power supply Component 506, multimedia groupware 508, audio-frequency assembly 510, input/output (I/O) interface 512, sensor cluster 514, Yi Jitong Letter component 516.
The integrated operation of 502 usual control device 500 of process assembly, such as with display, call, data communication, phase Machine operates and records the associated operation of operation.Process assembly 502 can refer to perform including one or more processors 520 Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 502 can include one or more modules, just Interaction between process assembly 502 and other assemblies.For example, process assembly 502 can include multi-media module, many to facilitate Interaction between media component 508 and process assembly 502.
Memory 505 is configured to store 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, and contact data, telephone book data disappear Breath, picture, video etc..Memory 505 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (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 the component that electric power is associated with for device 500.
Multimedia groupware 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 the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and the touch or slide related duration and pressure.In certain embodiments, many matchmakers Body component 508 includes a front-facing camera and/or post-positioned pick-up head.When device 500 be in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and Post-positioned pick-up head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 510 is configured to output and/or input audio signal.For example, audio-frequency assembly 510 includes a Mike Wind (MIC), when device 500 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone is matched somebody with somebody It is set to reception external audio signal.The audio signal for being received can be further stored in memory 505 or via communication set Part 516 sends.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
, for interface is provided between process assembly 502 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 512 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 cluster 514 includes one or more sensors, and the state for various aspects are provided for device 500 is commented Estimate.For example, sensor cluster 514 can detect the opening/closed mode of device 500, and the relative positioning of component is for example described Display and keypad of the component for device 500, sensor cluster 515 can be with 500 1 components of detection means 500 or device Position change, user is presence or absence of with what device 500 was contacted, 500 orientation of device or acceleration/deceleration and device 500 Temperature change.Sensor cluster 514 can include proximity transducer, be configured to detect when not having any physical contact The presence of object nearby.Sensor cluster 514 can also include optical sensor, such as CMOS or ccd image sensor, for into As used in application.In certain embodiments, the sensor cluster 515 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 combinations thereof.In an exemplary reality Apply in example, communication component 516 receives the 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 also includes near-field communication (NFC) module, to promote short distance to lead to Letter.For example, RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) can be based in NFC module Technology, bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 500 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realizations, for performing said method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided Such as include the memory 505 of instruction, above-mentioned instruction can be performed to complete said 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 process of device 500 When device is performed so that device 500 is able to carry out said method.
It should be appreciated that referenced herein " multiple " refer to two or more."and/or", description association The incidence relation of object, expression there may be three kinds of relations, and for example, A and/or B can be represented:Individualism A, while there is A And B, individualism B these three situations.Character "/" typicallys represent forward-backward correlation to liking a kind of relation of "or".
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow 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 exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is limited only by appended claim.

Claims (13)

1. a kind of method that self-starting is applied in control, it is characterised in that methods described includes:
Obtain the trigger action that triggering starts destination service;
After the trigger action is got, whether the intended application of the detection registration destination service possesses self-starting power Limit;Wherein, the self-starting authority refers to the authority of automatic operation;
If the intended application does not possess the self-starting authority, the intended application is forbidden to open using binding method of service Move self-starting during the destination service.
2. method according to claim 1, it is characterised in that the intended application of the destination service is registered in the detection is It is no to possess self-starting authority, including:
Authority detection method is called, is asked to authority detection method sending permission detection;Wherein, the authority detection request The middle mark for carrying the intended application, the authority detection method are used to obtaining whether the intended application to possess described from opening Dynamic authority;
Obtain the authority testing result that the authority detection method is returned;Wherein, the authority testing result is:The target should With possessing the self-starting authority, or, the intended application does not possess the self-starting authority.
3. method according to claim 1 and 2, it is characterised in that methods described also includes:
After the trigger action is got, detect that the process described in the process of the intended application belonging to destination service is It is no to have been turned on;
If the process belonging to the destination service is not actuated, from the intended application of the detection registration destination service whether The step of possessing self-starting authority starts to perform.
4. method according to claim 3, it is characterised 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 is returned;Wherein, the process detection result is:The target clothes Process belonging to business has been turned on, or, the process belonging to the destination service is not actuated.
5. the method according to any one of Claims 1-4, it is characterised in that the acquisition triggering starts destination service Trigger action, including:
Obtain the trigger action that triggering starts spell check service;
Wherein, the spell check service is the system service with spelling-checker.
6. the method according to any one of claim 1 to 5, it is characterised in that methods described also includes:
The recommendation switch for receiving the self-starting authority of the intended application that cloud server sends is arranged, and the recommendation is opened Close and arrange by the cloud server according to the number of users for the intended application unlatching self-starting authority and be described Intended application is closed the number of users of the self-starting authority and is determined;
The intended application is set to according to the recommendation switch and is turned on and off the self-starting authority.
7. the device of self-starting is applied in a kind of control, it is characterised in that described device includes:
Acquisition module, is configured to obtain the trigger action that triggering starts destination service;
First detection module, is configured to after the trigger action is got, the target of the detection registration destination service Using whether possessing self-starting authority;Wherein, the self-starting authority refers to the authority of automatic operation;
Disabled module, when being configured as the intended application and not possessing the self-starting authority, forbids the intended application to adopt With the self-starting during the destination service is started of binding method of service.
8. device according to claim 7, it is characterised in that the first detection module, including:
First sending submodule, is configured to call authority detection method, please to authority detection method sending permission detection Ask;Wherein, the mark of the intended application is carried in the authority detection request, the authority detection method is used to obtain described Whether intended application possesses the self-starting authority;
First acquisition submodule, is configured to obtain the authority testing result that the authority detection method is returned;Wherein, the power Limiting testing result is:The intended application possesses the self-starting authority, or, the intended application does not possess the self-starting Authority.
9. the device according to claim 7 or 8, it is characterised in that described device also includes:
Second detection module, is configured to after the trigger action is got, and detects institute in the process of the intended application State whether the process belonging to destination service has been turned on;
The first detection module, is additionally configured to when the process belonging to the destination service is not actuated, and detection registration is described Whether the intended application of destination service possesses the self-starting authority.
10. device according to claim 9, it is characterised in that second detection module, including:
Second sending submodule, is configured to calling process detection method, and sending process detection to the process detection method please Ask;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 have been turned in the process belonging to the acquisition destination service;
Second acquisition submodule, is configured to obtain the process detection result that the process detection method is returned;Wherein, it is described enter Journey testing result is:Process belonging to the destination service has been turned on, or, the process belonging to the destination service is not actuated.
11. devices according to any one of claim 7 to 10, it is characterised in that
The acquisition module, is configured to obtain the trigger action that triggering starts spell check service;
Wherein, the spell check service is the system service with spelling-checker.
12. devices according to any one of claim 7 to 11, it is characterised in that described device also includes:
Receiver module, the recommendation for being configured to the self-starting authority of the intended application that reception cloud server sends are opened Close and arrange, it is described to recommend switch setting to open the self-starting authority according to for the intended application by the cloud server Number of users and the number of users for closing the self-starting authority for the intended application determine;
Switch module, is configured to be set to the intended application according to the recommendation switch be turned on and off self-starting power Limit.
Device of the 13. a kind of controls using self-starting, it is characterised in that described device includes:
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is configured to:
Obtain the trigger action that triggering starts destination service;
After the trigger action is got, whether the intended application of the detection registration destination service possesses self-starting power Limit;Wherein, the self-starting authority refers to the authority of automatic operation;
When the intended application does not possess the self-starting authority, the intended application is forbidden to open using binding method of service Move self-starting during the 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 true CN106537288A (en) 2017-03-22
CN106537288B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423164A (en) * 2017-07-21 2017-12-01 北京小米移动软件有限公司 Using method for restarting and device
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
CN110895473A (en) * 2018-08-24 2020-03-20 山东华软金盾软件股份有限公司 Self-starting keep-alive system and method based on android mobile device
CN110955869A (en) * 2018-09-26 2020-04-03 南昌欧菲生物识别技术有限公司 Terminal software authority management method and device, terminal and storage medium
CN112905264A (en) * 2021-03-24 2021-06-04 北京小米移动软件有限公司 Application processing method, device and storage medium

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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423164A (en) * 2017-07-21 2017-12-01 北京小米移动软件有限公司 Using method for restarting and device
CN107423164B (en) * 2017-07-21 2021-02-09 北京小米移动软件有限公司 Application restart method and device
CN110895473A (en) * 2018-08-24 2020-03-20 山东华软金盾软件股份有限公司 Self-starting keep-alive system and method based on android mobile 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
CN112905264A (en) * 2021-03-24 2021-06-04 北京小米移动软件有限公司 Application processing method, device and storage medium

Also Published As

Publication number Publication date
CN106537288B (en) 2018-06-12
WO2018072193A1 (en) 2018-04-26

Similar Documents

Publication Publication Date Title
CN104484200B (en) The method and device upgraded to firmware
CN104216742B (en) Brush machine control method and device based on password
CN105553963B (en) The control method and device of positioning service
CN106537288A (en) Application autostart control method and device
CN106020943A (en) Application program dual-opening method and device
CN106528131A (en) Application function display method and apparatus, and terminal device
CN106791092A (en) The searching method and device of contact person
CN106485813A (en) Car's door controlling method and apparatus
CN106462835A (en) Calendar event creation method and device
CN106484392A (en) icon display method and device
CN107301242A (en) Method, device and the storage medium of page jump
CN106953969A (en) The screen control method and device of mobile terminal
CN106462698A (en) Authority control method and authority control device
CN104298903B (en) Access the method and device of mobile terminal
CN106611112A (en) Application program safe processing method, device and equipment
CN106406705A (en) A method and a device for information processing in a conversation process
CN106453774A (en) Method and apparatus for displaying contact information
CN107295099A (en) PUSH message processing method, device and storage medium
CN107395760A (en) The method and device of loading configuration file
CN104765646B (en) Component call method and device
CN107506496A (en) Scrap cleaning method, device and computer-readable recording medium
CN107704294A (en) The method and apparatus for handling reservation event
CN107656616A (en) Input interface displaying method, device, electronic equipment
CN106936986A (en) Application processing method and device
CN106775410A (en) Application program launching method, device and terminal

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