WO2018072193A1 - Method and device for controlling application to start automatically - Google Patents

Method and device for controlling application to start automatically Download PDF

Info

Publication number
WO2018072193A1
WO2018072193A1 PCT/CN2016/102790 CN2016102790W WO2018072193A1 WO 2018072193 A1 WO2018072193 A1 WO 2018072193A1 CN 2016102790 W CN2016102790 W CN 2016102790W WO 2018072193 A1 WO2018072193 A1 WO 2018072193A1
Authority
WO
WIPO (PCT)
Prior art keywords
starting
self
permission
target
target application
Prior art date
Application number
PCT/CN2016/102790
Other languages
French (fr)
Chinese (zh)
Inventor
伍亮雄
刘海涛
刘鸣
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to CN201680001198.2A priority Critical patent/CN106537288B/en
Priority to PCT/CN2016/102790 priority patent/WO2018072193A1/en
Publication of WO2018072193A1 publication Critical patent/WO2018072193A1/en

Links

Images

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

Definitions

  • the present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for controlling self-starting of an application.
  • APPs applications
  • terminal devices such as mobile phones and tablet computers to expand the functions of the terminal devices.
  • Embodiments of the present disclosure provide a method and apparatus for controlling application self-starting.
  • the technical solution is as follows:
  • a method of controlling an application self-starting comprising:
  • the target application that is registered with the target service After obtaining the triggering operation, detecting whether the target application that is registered with the target service has a self-starting permission; wherein the self-starting permission refers to a permission to automatically start running;
  • the target application does not have the self-starting permission, the target application is prohibited from self-starting in the process of starting the target service by using a binding service mode.
  • the detecting whether the target application that registers the target service has a self-starting right includes:
  • the method further includes:
  • whether the process to which the target service belongs in the process of detecting the target application is started includes:
  • the acquiring the triggering operation that triggers the startup of the target service includes:
  • the spell check service is a system service with a spell check function.
  • the method further includes:
  • the self-starting authority is turned on or off according to the recommended switch setting for the target application.
  • an apparatus for controlling self-starting of an application comprising:
  • An acquisition module configured to acquire a trigger operation that triggers a startup target service
  • the first detecting module is configured to: after detecting the triggering operation, detecting whether the target application that registers the target service has a self-starting right; wherein the self-starting right refers to the right to automatically start running;
  • the forbidden module is configured to prevent the target application from self-starting in the process of starting the target service by using the binding service mode if the target application does not have the self-starting permission.
  • the first detecting module includes:
  • the first sending submodule is configured to invoke a permission detecting method, and send a permission detecting request to the right detecting method; wherein the right detecting request carries an identifier of the target application, and the right detecting method is used to acquire the Whether the target application has the self-starting authority;
  • the first obtaining sub-module is configured to obtain the permission detection result returned by the permission detecting method, where the permission detecting result is: the target application has the self-starting permission, or the target application does not have the Describe the self-starting permissions.
  • the device further includes:
  • a second detecting module configured to: after detecting the triggering operation, detecting whether a process to which the target service belongs in a process of the target application is started;
  • the first detecting module is further configured to start from the step of detecting whether the target application that registers the target service has a self-starting permission when the process to which the target service belongs is not started.
  • the second detecting module includes:
  • the second sending submodule is configured to invoke a process detection method, and send a process detection request to the process detection method, where the process detection request carries an identifier of a process to which the target service belongs, and the process detection method uses Obtaining whether the process to which the target service belongs has been started;
  • the second obtaining submodule is configured to obtain the process detection result returned by the process detection method, where the process detection result is: the process to which the target service belongs has been started, or the process to which the target service belongs is not start up.
  • the obtaining module is configured to acquire a triggering operation that triggers initiation of a spell checking service
  • the spell check service is a system service with a spell check function.
  • the device further includes:
  • a receiving module configured to receive the recommended switch setting of the self-starting permission of the target application sent by the cloud server, where the recommended switch is set by the cloud server according to the user who starts the self-starting permission for the target application The number and the number of users who have closed the self-starting authority for the target application;
  • a switch module configured to enable or disable the self-starting authority according to the recommended switch setting for the target application.
  • an apparatus for controlling self-starting of an application comprising:
  • a memory for storing executable instructions of the processor
  • processor is configured to:
  • the target application When the target application does not have the self-starting permission, the target application is prohibited from being started in the process of starting the target service by using a binding service mode.
  • the target application of the registered target service After the triggering operation of the triggering target service is obtained, it is detected whether the target application of the registered target service has the self-starting permission, and when the detection result is that the target application does not have the self-starting right, the target application is prohibited from adopting the binding service mode in the startup target.
  • the self-starting process in the service process solves the problem that the application can self-start through the service (such as the spell check service), which causes the system memory and the power consumption to be occupied; since the self-starting permission is set for the application, only the permission is allowed.
  • the self-starting application realizes self-starting through the service, avoiding the unauthorised application self-starting through the service, and achieves the technical effect of saving system memory and saving power consumption.
  • FIG. 1 is a flowchart of a method for controlling an application self-starting according to an exemplary embodiment
  • FIG. 2 is a flow chart showing a method of controlling an application self-starting according to another exemplary embodiment
  • FIG. 3 is a block diagram of an apparatus for controlling application self-starting, according to an exemplary embodiment
  • FIG. 4 is a block diagram showing an apparatus for controlling an application self-starting according to another exemplary embodiment
  • FIG. 5 is a block diagram of an apparatus, according to an exemplary embodiment.
  • the spell check service is a system service with spell checking. After the application registers the spell check service, the application can be self-started during the process of starting the spell check service by the terminal device through a bind service. Since the application can be self-started through a service (such as a spell check service), it takes up system memory and increases power consumption.
  • the service is service, and the service runs in the background of the terminal device, and is mainly used to process certain time-consuming logic or perform tasks that need to run for a long time.
  • the embodiments of the present disclosure provide a method for controlling self-starting of an application, and a device based on the method, to solve the problems in the related art.
  • the core idea of the technical solution provided by the embodiment of the present disclosure is to set a self-starting permission for the application to implement self-starting control of the application.
  • the self-starting permission refers to the permission to start the operation automatically.
  • the method provided by the embodiment of the present disclosure may be a terminal device, such as a mobile phone, a tablet computer, an e-book reader, a multimedia playback device, a PDA (Personal Digital Assistant), a wearable device, or the like.
  • the type of the operating system of the terminal device is not limited, such as an Android (Android) operating system, an iOS operating system, a Windows Phone operating system, and the like.
  • FIG. 1 is a flow chart showing a method of controlling an application self-starting according to an exemplary embodiment. The method can include the following steps:
  • step 101 a triggering operation that triggers the startup of the target service is obtained.
  • the terminal device acquires a trigger operation that triggers the startup target service.
  • the triggering operation is typically an operation performed by a user that can trigger an operating system to launch a target service.
  • the target service is that after the application registers the target service, the application can implement the self-starting service in the process of starting the target service by using the binding service mode.
  • the target service is a system service, and the system service is mainly used to perform specified system functions.
  • the target service is a spell check service.
  • the spell check service also known as the spell checker, is a system service with spell checking.
  • the spell check feature is a feature that checks for spelling errors when typing words into the input box. For example, by taking the words currently entered in the input box and comparing them with the words in the built-in dictionary, if there is no currently entered word in the built-in dictionary, the currently entered word will be considered as having spelling. Wrong word word.
  • the terminal device After applying the registration spell check service, you can implement self-starting during the system startup spell check service by binding service.
  • the terminal device obtains a triggering action that triggers initiation of the spell check service.
  • the triggering operation is an operation in which a user inputs a word in an input box.
  • the application can declare the registration target service by stating in its information description file.
  • the information description file is the basic configuration file of the application. Take the Android application as an example, the information description file is the AndroidManifest.xml file.
  • the developer can explain the basic information of the application, such as the application portal page, the permission information required by the application, the version information of the application, and the like.
  • an application may register a spell check service by stating in its information description file.
  • step 102 after obtaining the triggering operation, it is detected whether the target application of the registration target service has the self-starting authority.
  • the terminal device After obtaining the triggering operation, the terminal device detects whether the target application of the registered target service has the self-starting right.
  • the self-starting permission refers to the permission to start the operation automatically.
  • the system can control the self-starting of the application through the service.
  • the name of the self-starting permission is OP_AutoStart.
  • a corresponding identifier (also referred to as a value) is set for the self-starting permission, and the identifier is uniquely identified, and the identifier corresponding to the different permissions is different.
  • the target application is the application, and the terminal device detects whether the application has self-start permission. If there are multiple application registration target services in the terminal device, the target application is one of the multiple applications, and the terminal device detects whether the default application has self-start permission.
  • the default app can be selected by the system or user.
  • this step includes the following sub-steps:
  • the permission detection request carries the identifier of the target application, and the identifier of the application is used to uniquely identify an application.
  • the identity of the target application includes a package name of the target application.
  • the permission detection method is used to obtain whether the target application has self-starting permission.
  • the permission detection method is the AutoStartManagerService.isAllowStartService method
  • the operating system calls the AutoStartManagerService.isAllowStartService method, and sends a permission detection request carrying the identity of the target application to the method.
  • the permission detection result is: the target application has self-starting authority, or the target application does not have self-starting permission.
  • the query obtains whether the target application has self-starting permission. If the target application has the self-starting permission, the AutoStartManagerService.isAllowStartService method returns a first indication information indicating that the self-starting permission is provided to the operating system, for example, the first indication information is true; if the target application does not have the self-starting permission, the AutoStartManagerService.
  • the isAllowStartService method returns a second indication information indicating that the self-starting authority is not provided to the operating system, for example, the second indication information is false.
  • step 103 if the target application does not have the self-starting permission, the target application is prohibited from being started in the process of starting the target service by using the binding service mode.
  • the terminal device prohibits the target application from using the binding service mode to start automatically during the startup of the target service.
  • the binding service mode is one of the common application startup methods. The application can be started in the process of the bound service being invoked by the binding service. Row. If the target application does not have the self-starting permission, the terminal device does not execute the process of binding the service during the startup of the target service, so that the target application cannot start running.
  • the terminal device allows the target application to use the binding service mode to start the self-starting process in the process of starting the target service, that is, the terminal device performs the binding service process in the process of starting the target service, Make the target application start running.
  • the method provided in this embodiment detects whether the target application of the registration target service has the self-starting permission after the triggering operation of triggering the startup target service is obtained, and the detection result is that the target application does not have the self-starting permission.
  • the target application is prohibited from adopting the binding service mode to start self-starting in the process of starting the target service; solving the problem in the related technology that the application can be self-started by the service (such as the spell check service), resulting in occupying system memory and increasing power consumption.
  • the self-starting permission is set for the application, only the application with the self-starting permission is allowed to self-start through the service, and the unauthorised application is prevented from self-starting through the service, thereby achieving the technical effect of saving system memory and saving power consumption.
  • the method for controlling the self-starting of the application may include the following steps:
  • step 201 a triggering operation that triggers the startup of the target service is obtained.
  • step 201 For the step 201, reference may be made to the introduction and description of the step 101, which is not described in this embodiment.
  • step 202 after the triggering operation is acquired, it is detected whether the process to which the target service belongs in the process of the target application has started. If yes, the process ends; if not, the following step 203 is performed.
  • the terminal device After obtaining the triggering operation, the terminal device detects whether the process to which the target service belongs in the process of the target application has started. If the process to which the target service belongs is not started, perform the following permission detection step; if the process to which the target service belongs is started, skip the following permission detection step and execute the process of binding the service. In the above manner, it is possible to avoid performing unnecessary permission detection steps and save system processing overhead.
  • this step includes the following sub-steps:
  • the process detection request carries the identifier of the process to which the target service belongs, such as the process name.
  • the process detection method is used to obtain whether the process to which the target service belongs has been started.
  • the process detection method is the ApiActivityManagerService.getProcessRecordLocked method
  • the operating system calls The ApiActivityManagerService.getProcessRecordLocked method sends a process detection request carrying the identity of the process to which the target service belongs to the method.
  • the process detection result is: the process to which the target service belongs is started, or the process to which the target service belongs is not started.
  • the query acquires whether the process to which the target service belongs is started. If the process to which the target service belongs is started, the ApiActivityManagerService.getProcessRecordLocked method returns a third indication information indicating that the process has been started to the operating system, for example, the third indication information is not null; if the process to which the target service belongs is not started, the ApiActivityManagerService The .getProcessRecordLocked method returns a fourth indication information indicating that the process is not started to the operating system, for example, the fourth indication information is null.
  • step 203 it is detected whether the target application of the registration target service has self-starting authority. If yes, the following step 204 is performed; if not, the following step 205 is performed.
  • step 204 the target application is allowed to self-start in the process of starting the target service by using the binding service mode.
  • step 205 the target application is prohibited from self-starting in the process of starting the target service by using the binding service mode.
  • the method provided in this embodiment further detects whether the process to which the target service belongs in the process of the target application is started after the triggering operation of triggering the startup target service is acquired, and if the detection result is that the process to which the target service belongs is not started.
  • the subsequent permission detection step is executed, and when the detection result is that the process to which the target service belongs has been started, the process can be directly ended, the subsequent permission detection step is not executed, unnecessary unnecessary permission detection steps are avoided, and system processing overhead is saved.
  • the application has the self-starting permission, which can be set by the system default or by the user.
  • the number of users that enable or disable the self-starting permission for each application may be separately counted in the cloud server corresponding to the operating system.
  • the cloud server counts the number of users who have self-starting permissions for the application and the number of users who have turned off self-starting permissions for the application. Determine the recommended switch settings for the self-starting permissions of the app.
  • the cloud server determines the recommended switch setting of the self-starting permission of the target application according to the proportion of the number of users who open the self-starting permission for the target application and the number of the users who turn off the self-starting permission.
  • the cloud server may send the recommended switch setting of the self-starting permission of the target application to the terminal device; correspondingly, the terminal device receives the recommended switch setting of the self-starting permission of the target application sent by the cloud server.
  • Recommended switch settings are recommended to enable or disable self-start permissions.
  • the terminal device turns on or off the self-starting permission according to the recommended switch setting as the target application.
  • the terminal device automatically sets the self-starting permission to be turned on or off for the target application according to the recommended switch setting. For example, if the recommended switch is set to be on, the terminal device turns on the self-starting permission for the target application; if the recommended switch is set to off, the terminal device turns off the self-starting permission for the target application.
  • the terminal device displays the recommended switch setting, and the user sets the permission setting setting for the target application to be turned on or off by the user in combination with the recommended switch setting and the actual demand setting, and the terminal device acquires the permission setting indication set by the user, according to the user.
  • the set permission settings indicate that self-start permissions are turned on or off for the target app.
  • the cloud server may send the recommended switch setting of the self-starting permission of the target application to the terminal device after the terminal device installs the target application; the cloud server may also send the recommended switch of the self-starting permission of the target application to the terminal device every predetermined time interval. Settings.
  • the cloud server determines that the recommended switch of the self-starting permission of the application is set to If the number of users who have started the self-starting permission for the application is less than the number of users who have turned off the self-starting permission for the application, the cloud server determines that the recommended switch for the self-starting permission of the application is set to off.
  • the cloud server determines that the recommended switch of the self-starting permission of the application is set to be on. If the ratio of the number of users who have started the self-starting permission to the total number of users is less than the second threshold, the cloud server determines that the recommended switch of the self-starting permission of the application is set to off.
  • the first threshold is equal to the second threshold, or the first threshold is greater than the second threshold.
  • the total number of users is the sum of the number of users who have self-starting permissions for the app and the number of users who have turned off self-launch permissions for the app.
  • FIG. 3 is a block diagram of an apparatus for controlling application self-starting, according to an exemplary embodiment.
  • the apparatus has a function of implementing the above-described method examples, and the functions may be implemented by hardware or by hardware to execute corresponding software.
  • the apparatus may include an acquisition module 301, a first detection module 302, and a prohibition module 303.
  • the obtaining module 301 is configured to acquire a triggering operation that triggers the startup target service.
  • the first detecting module 302 is configured to: after detecting the triggering operation, detecting whether the target application that registers the target service has a self-starting right; wherein the self-starting right refers to the right to automatically start running.
  • the forbidden module 303 is configured to, when the target application does not have the self-starting permission, prohibit the target application from self-starting in the process of starting the target service by using a binding service mode.
  • the apparatus detects whether the target application of the registration target service has the self-starting permission after the triggering operation of triggering the startup target service is acquired, and the detection result is that the target application does not have the self-starting permission.
  • the target application is prohibited from adopting the binding service mode to start self-starting in the process of starting the target service; solving the problem in the related technology that the application can be self-started by the service (such as the spell check service), resulting in occupying system memory and increasing power consumption.
  • the self-starting permission is set for the application, only the application with the self-starting permission is allowed to self-start through the service, and the unauthorised application is prevented from self-starting through the service, thereby achieving the technical effect of saving system memory and saving power consumption.
  • the first detecting module 302 includes: a first sending submodule 302a and a first obtaining submodule 302b.
  • the first sending sub-module 302a is configured to invoke a permission detecting method, and send a permission detecting request to the right detecting method; wherein the right detecting request carries an identifier of the target application, and the right detecting method is used to acquire Whether the target application has the self-starting authority.
  • the first obtaining sub-module 302b is configured to obtain the permission detection result returned by the permission detecting method, wherein the permission detecting result is: the target application has the self-starting authority, or the target application does not have the The self-starting authority.
  • the apparatus further includes: a second detecting module 304.
  • the second detecting module 304 is configured to detect, after the triggering operation is acquired, whether a process to which the target service belongs in the process of the target application has been started.
  • the first detecting module 302 is further configured to: when the process to which the target service belongs is not started, detect whether the target application that registers the target service has the self-starting right.
  • the second detecting module 304 includes: a second sending submodule 304a and a second obtaining submodule 304b.
  • the second sending sub-module 304a is configured to invoke a process detection method, and send a process detection request to the process detection method, where the process detection request carries an identifier of a process to which the target service belongs, and the process detection method Used to obtain whether the process to which the target service belongs has been started.
  • the second obtaining sub-module 304b is configured to acquire the process detection result returned by the process detection method, where the process detection result is: the process to which the target service belongs has been started, or the process to which the target service belongs not initiated.
  • the obtaining module 301 is configured to acquire a triggering operation that triggers initiation of the spell checking service.
  • the spell check service is a system service with a spell check function.
  • the apparatus further includes: a receiving module and a switch module.
  • a receiving module configured to receive the recommended switch setting of the self-starting permission of the target application sent by the cloud server, where the recommended switch is set by the cloud server according to the user who starts the self-starting permission for the target application The number and the number of users who have closed the self-starting authority for the target application are determined.
  • a switch module configured to enable or disable the self-starting authority according to the recommended switch setting for the target application.
  • An exemplary embodiment of the present disclosure also provides an apparatus for controlling self-starting of an application, which can implement the method provided by the present disclosure.
  • the apparatus includes a processor and a memory for storing executable instructions of the processor.
  • the processor is configured to:
  • the self-starting permission refers to the permission to automatically start the running
  • the target application When the target application does not have the self-starting permission, the target application is prohibited from adopting the binding service mode to start automatically during the startup of the target service.
  • the processor is configured to:
  • the permission detection method is sent, and the permission detection request is sent to the permission detection method; wherein the permission detection request carries the identifier of the target application, and the permission detection method is used to obtain whether the target application has the self-start permission;
  • the permission detection result returned by the permission detection method; wherein the permission detection result is: the target application has the self-starting permission, or the target application does not have the self-starting permission.
  • the processor is further configured to:
  • the execution starts from the step of detecting whether the target application of the registration target service has the self-start permission.
  • the processor is configured to:
  • the process detection method is sent to send a process detection request to the process detection method, where the process detection request carries the identifier of the process to which the target service belongs, and the process detection method is used to obtain whether the process to which the target service belongs is started.
  • the process detection result returned by the process detection method is obtained.
  • the process detection result is: the process to which the target service belongs is started, or the process to which the target service belongs is not started.
  • the processor is configured to:
  • the spell check service is a system service with spell check function.
  • the processor is further configured to:
  • Receiving the recommended switch setting of the self-starting permission of the target application sent by the cloud server, and the recommended switch setting is determined by the cloud server according to the number of users who open the self-starting permission for the target application and the number of users who turn off the self-starting permission for the target application;
  • FIG. 5 is a block diagram of an apparatus 500, according to an exemplary embodiment.
  • device 500 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • apparatus 500 can include one or more of the following components: processing component 502, memory 505, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and Communication component 516.
  • Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 502 can include one or more processors 520 to execute instructions to perform all or part of the steps of the above described methods.
  • processing component 502 can include one or more modules to facilitate interaction between component 502 and other components.
  • processing component 502 can include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
  • Memory 505 is configured to store various types of data to support operation at device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phone book data, messages, pictures, videos, and the like.
  • Memory 505 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 506 provides power to various components of device 500.
  • Power component 506 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 500.
  • the multimedia component 508 includes a screen between the device 500 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 510 is configured to output and/or input an audio signal.
  • audio component 510 includes a microphone (MIC) that is configured to receive an external audio signal when device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 505 or transmitted via communication component 516.
  • audio component 510 also includes a speaker for outputting an audio signal.
  • the I/O interface 512 provides an interface between the processing component 502 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 514 includes one or more sensors for providing device 500 with various aspects of status assessment.
  • sensor assembly 514 can detect an open/closed state of device 500, a relative positioning of components, such as the display and keypad of device 500, and sensor component 515 can also detect a change in position of one component of device 500 or device 500. The presence or absence of user contact with device 500, device 500 orientation or acceleration/deceleration, and temperature variation of device 500.
  • Sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 515 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices.
  • the device 500 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof.
  • communication component 516 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 516 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 505 comprising instructions executable by processor 520 of apparatus 500 to perform the above method.
  • the non-transitory computer readable storage medium may be ROM, random Access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices.
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of apparatus 500, to enable apparatus 500 to perform the above method.
  • a plurality as referred to herein means two or more.
  • "and/or” describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately.
  • the character "/" generally indicates that the contextual object is an "or" relationship.

Abstract

The present invention relates to the technical field of computers. The present invention is related to a method and device for controlling an application to start automatically. The method comprises: acquiring a triggering operation for triggering the start of a target service; after acquiring the triggering operation, detecting whether a target application registered to the target service has automatic-starting permission; wherein the automatic-starting permission is permission to automatically start operation; and if the target application does not have the automatic-starting permission, preventing the target application from automatically starting by binding to a service during a process of starting the target service. The disclosure sets the automatic-starting permission for an application, and only enables applications having automatic-starting permission to start automatically via a service, thus preventing an unpermitted application from starting automatically via a service, and achieving the technical effect of saving the system memory and reducing the power consumption.

Description

控制应用自启动的方法及装置Method and device for controlling application self-starting 技术领域Technical field
本公开涉及计算机技术领域,特别涉及一种控制应用自启动的方法及装置。The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for controlling self-starting of an application.
背景技术Background technique
目前,诸如手机、平板电脑之类的终端设备中可安装各类应用(application,APP),以扩充终端设备的功能。At present, various applications (applications, APPs) can be installed in terminal devices such as mobile phones and tablet computers to expand the functions of the terminal devices.
发明内容Summary of the invention
本公开实施例提供了一种控制应用自启动的方法及装置。所述技术方案如下:Embodiments of the present disclosure provide a method and apparatus for controlling application self-starting. The technical solution is as follows:
根据本公开实施例的第一方面,提供了一种控制应用自启动的方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, there is provided a method of controlling an application self-starting, the method comprising:
获取触发启动目标服务的触发操作;Get the trigger action that triggers the launch target service;
在获取到所述触发操作之后,检测注册所述目标服务的目标应用是否具备自启动权限;其中,所述自启动权限是指自动启动运行的权限;After obtaining the triggering operation, detecting whether the target application that is registered with the target service has a self-starting permission; wherein the self-starting permission refers to a permission to automatically start running;
若所述目标应用不具备所述自启动权限,则禁止所述目标应用采用绑定服务方式在启动所述目标服务的过程中自启动。If the target application does not have the self-starting permission, the target application is prohibited from self-starting in the process of starting the target service by using a binding service mode.
可选地,所述检测注册所述目标服务的目标应用是否具备自启动权限,包括:Optionally, the detecting whether the target application that registers the target service has a self-starting right includes:
调用权限检测方法,向所述权限检测方法发送权限检测请求;其中,所述权限检测请求中携带所述目标应用的标识,所述权限检测方法用于获取所述目标应用是否具备所述自启动权限;Calling a permission detection method, and sending a permission detection request to the permission detection method; wherein the permission detection request carries an identifier of the target application, and the permission detection method is configured to acquire whether the target application has the self-starting Permission
获取所述权限检测方法返回的权限检测结果;其中,所述权限检测结果为:所述目标应用具备所述自启动权限,或者,所述目标应用不具备所述自启动权限。Obtaining the permission detection result returned by the permission detection method; wherein the permission detection result is: the target application has the self-starting authority, or the target application does not have the self-starting permission.
可选地,所述方法还包括: Optionally, the method further includes:
在获取到所述触发操作之后,检测所述目标应用的进程中所述目标服务所属的进程是否已启动;After obtaining the triggering operation, detecting whether a process to which the target service belongs in the process of the target application has been started;
若所述目标服务所属的进程未启动,则从所述检测注册所述目标服务的目标应用是否具备自启动权限的步骤开始执行。If the process to which the target service belongs is not started, starting from the step of detecting whether the target application that registers the target service has the self-starting permission starts.
可选地,所述检测所述目标应用的进程中所述目标服务所属的进程是否已启动,包括:Optionally, whether the process to which the target service belongs in the process of detecting the target application is started, includes:
调用进程检测方法,向所述进程检测方法发送进程检测请求;其中,所述进程检测请求中携带所述目标服务所属的进程的标识,所述进程检测方法用于获取所述目标服务所属的进程是否已启动;Calling a process detection method, and sending a process detection request to the process detection method, where the process detection request carries an identifier of a process to which the target service belongs, and the process detection method is used to acquire a process to which the target service belongs Whether it has been activated;
获取所述进程检测方法返回的进程检测结果;其中,所述进程检测结果为:所述目标服务所属的进程已启动,或者,所述目标服务所属的进程未启动。Obtaining a process detection result returned by the process detection method, where the process detection result is: the process to which the target service belongs is started, or the process to which the target service belongs is not started.
可选地,所述获取触发启动目标服务的触发操作,包括:Optionally, the acquiring the triggering operation that triggers the startup of the target service includes:
获取触发启动拼写检查服务的触发操作;Get the trigger action that triggers the start of the spell check service;
其中,所述拼写检查服务是具有拼写检查功能的系统服务。Wherein, the spell check service is a system service with a spell check function.
可选地,所述方法还包括:Optionally, the method further includes:
接收云端服务器发送的所述目标应用的所述自启动权限的推荐开关设置,所述推荐开关设置由所述云端服务器根据为所述目标应用开启所述自启动权限的用户数量和为所述目标应用关闭所述自启动权限的用户数量确定;Receiving a recommendation switch setting of the self-starting permission of the target application sent by the cloud server, where the recommendation switch is set by the cloud server according to the number of users that open the self-starting permission for the target application and is the target Applying the number of users who close the self-starting permission to determine;
根据所述推荐开关设置为所述目标应用开启或关闭所述自启动权限。The self-starting authority is turned on or off according to the recommended switch setting for the target application.
根据本公开实施例的第二方面,提供了一种控制应用自启动的装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, there is provided an apparatus for controlling self-starting of an application, the apparatus comprising:
获取模块,被配置为获取触发启动目标服务的触发操作;An acquisition module configured to acquire a trigger operation that triggers a startup target service;
第一检测模块,被配置为在获取到所述触发操作之后,检测注册所述目标服务的目标应用是否具备自启动权限;其中,所述自启动权限是指自动启动运行的权限;The first detecting module is configured to: after detecting the triggering operation, detecting whether the target application that registers the target service has a self-starting right; wherein the self-starting right refers to the right to automatically start running;
禁止模块,被配置为若所述目标应用不具备所述自启动权限,则禁止所述目标应用采用绑定服务方式在启动所述目标服务的过程中自启动。The forbidden module is configured to prevent the target application from self-starting in the process of starting the target service by using the binding service mode if the target application does not have the self-starting permission.
可选地,所述第一检测模块,包括:Optionally, the first detecting module includes:
第一发送子模块,被配置为调用权限检测方法,向所述权限检测方法发送权限检测请求;其中,所述权限检测请求中携带所述目标应用的标识,所述权限检测方法用于获取所述目标应用是否具备所述自启动权限; The first sending submodule is configured to invoke a permission detecting method, and send a permission detecting request to the right detecting method; wherein the right detecting request carries an identifier of the target application, and the right detecting method is used to acquire the Whether the target application has the self-starting authority;
第一获取子模块,被配置为获取所述权限检测方法返回的权限检测结果;其中,所述权限检测结果为:所述目标应用具备所述自启动权限,或者,所述目标应用不具备所述自启动权限。The first obtaining sub-module is configured to obtain the permission detection result returned by the permission detecting method, where the permission detecting result is: the target application has the self-starting permission, or the target application does not have the Describe the self-starting permissions.
可选地,所述装置还包括:Optionally, the device further includes:
第二检测模块,被配置为在获取到所述触发操作之后,检测所述目标应用的进程中所述目标服务所属的进程是否已启动;a second detecting module, configured to: after detecting the triggering operation, detecting whether a process to which the target service belongs in a process of the target application is started;
所述第一检测模块,还被配置为当所述目标服务所属的进程未启动时,从所述检测注册所述目标服务的目标应用是否具备自启动权限的步骤开始执行。The first detecting module is further configured to start from the step of detecting whether the target application that registers the target service has a self-starting permission when the process to which the target service belongs is not started.
可选地,所述第二检测模块,包括:Optionally, the second detecting module includes:
第二发送子模块,被配置为调用进程检测方法,向所述进程检测方法发送进程检测请求;其中,所述进程检测请求中携带所述目标服务所属的进程的标识,所述进程检测方法用于获取所述目标服务所属的进程是否已启动;The second sending submodule is configured to invoke a process detection method, and send a process detection request to the process detection method, where the process detection request carries an identifier of a process to which the target service belongs, and the process detection method uses Obtaining whether the process to which the target service belongs has been started;
第二获取子模块,被配置为获取所述进程检测方法返回的进程检测结果;其中,所述进程检测结果为:所述目标服务所属的进程已启动,或者,所述目标服务所属的进程未启动。The second obtaining submodule is configured to obtain the process detection result returned by the process detection method, where the process detection result is: the process to which the target service belongs has been started, or the process to which the target service belongs is not start up.
可选地,所述获取模块,被配置为获取触发启动拼写检查服务的触发操作;Optionally, the obtaining module is configured to acquire a triggering operation that triggers initiation of a spell checking service;
其中,所述拼写检查服务是具有拼写检查功能的系统服务。Wherein, the spell check service is a system service with a spell check function.
可选地,所述装置还包括:Optionally, the device further includes:
接收模块,被配置为接收云端服务器发送的所述目标应用的所述自启动权限的推荐开关设置,所述推荐开关设置由所述云端服务器根据为所述目标应用开启所述自启动权限的用户数量和为所述目标应用关闭所述自启动权限的用户数量确定;a receiving module configured to receive the recommended switch setting of the self-starting permission of the target application sent by the cloud server, where the recommended switch is set by the cloud server according to the user who starts the self-starting permission for the target application The number and the number of users who have closed the self-starting authority for the target application;
开关模块,被配置为根据所述推荐开关设置为所述目标应用开启或关闭所述自启动权限。And a switch module configured to enable or disable the self-starting authority according to the recommended switch setting for the target application.
根据本公开实施例的第三方面,提供了一种控制应用自启动的装置,所述装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for controlling self-starting of an application, the apparatus comprising:
处理器;processor;
用于存储所述处理器的可执行指令的存储器;a memory for storing executable instructions of the processor;
其中,所述处理器被配置为:Wherein the processor is configured to:
获取触发启动目标服务的触发操作;Get the trigger action that triggers the launch target service;
在获取到所述触发操作之后,检测注册所述目标服务的目标应用是否具备 自启动权限;其中,所述自启动权限是指自动启动运行的权限;After obtaining the triggering operation, detecting whether the target application that registers the target service has Self-starting permission; wherein the self-starting permission refers to the permission to automatically start running;
当所述目标应用不具备所述自启动权限时,禁止所述目标应用采用绑定服务方式在启动所述目标服务的过程中自启动。When the target application does not have the self-starting permission, the target application is prohibited from being started in the process of starting the target service by using a binding service mode.
本公开实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过在获取到触发启动目标服务的触发操作之后,检测注册目标服务的目标应用是否具备自启动权限,在检测结果为目标应用不具备自启动权限时,禁止目标应用采用绑定服务方式在启动目标服务的过程中自启动;解决了相关技术中由于应用可通过服务(如拼写检查服务)实现自启动,导致占用系统内存及增加耗电量的问题;由于为应用设置自启动权限,仅允许具备自启动权限的应用通过服务实现自启动,避免未经允许的应用通过服务实现自启动,达到了节省系统内存及节省耗电量的技术效果。After the triggering operation of the triggering target service is obtained, it is detected whether the target application of the registered target service has the self-starting permission, and when the detection result is that the target application does not have the self-starting right, the target application is prohibited from adopting the binding service mode in the startup target. The self-starting process in the service process solves the problem that the application can self-start through the service (such as the spell check service), which causes the system memory and the power consumption to be occupied; since the self-starting permission is set for the application, only the permission is allowed. The self-starting application realizes self-starting through the service, avoiding the unauthorised application self-starting through the service, and achieves the technical effect of saving system memory and saving power consumption.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in the specification
图1是根据一示例性实施例示出的一种控制应用自启动的方法的流程图;FIG. 1 is a flowchart of a method for controlling an application self-starting according to an exemplary embodiment;
图2是根据另一示例性实施例示出的一种控制应用自启动的方法的流程图;2 is a flow chart showing a method of controlling an application self-starting according to another exemplary embodiment;
图3是根据一示例性实施例示出的一种控制应用自启动的装置的框图;FIG. 3 is a block diagram of an apparatus for controlling application self-starting, according to an exemplary embodiment;
图4是根据另一示例性实施例示出的一种控制应用自启动的装置的框图;FIG. 4 is a block diagram showing an apparatus for controlling an application self-starting according to another exemplary embodiment; FIG.
图5是根据一示例性实施例示出的一种装置的框图。FIG. 5 is a block diagram of an apparatus, according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。 Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with aspects of the present disclosure as detailed in the appended claims.
发明人在对控制应用自启动方面进行研究的过程中发现,应用可通过拼写检查服务实现自启动,也即应用通过拼写检查服务实现自动启动运行。拼写检查服务是具有拼写检查功能的系统服务。应用注册拼写检查服务之后,应用可通过绑定服务(bind service)方式在终端设备启动拼写检查服务的过程中自启动。由于应用可通过服务(如拼写检查服务)实现自启动,导致占用系统内存及增加耗电量。其中,服务即为service,服务在终端设备的后台运行,主要用于处理某些耗时的逻辑或者执行需要长期运行的任务。基于此,本公开实施例提供了一种控制应用自启动的方法,和基于这个方法的装置,以解决上述相关技术中存在的问题。本公开实施例提供的技术方案,核心思想是为应用设置自启动权限,实现对应用的自启动进行控制。其中,自启动权限是指自动启动运行的权限。通过对终端设备中安装的各个应用是否具备自启动权限进行管理,仅允许具备自启动权限的应用通过服务实现自启动,避免未经允许的应用通过服务实现自启动。The inventor found in the process of controlling the self-starting of the application that the application can be self-started by the spell checking service, that is, the application realizes the automatic startup operation through the spell checking service. The spell check service is a system service with spell checking. After the application registers the spell check service, the application can be self-started during the process of starting the spell check service by the terminal device through a bind service. Since the application can be self-started through a service (such as a spell check service), it takes up system memory and increases power consumption. The service is service, and the service runs in the background of the terminal device, and is mainly used to process certain time-consuming logic or perform tasks that need to run for a long time. Based on this, the embodiments of the present disclosure provide a method for controlling self-starting of an application, and a device based on the method, to solve the problems in the related art. The core idea of the technical solution provided by the embodiment of the present disclosure is to set a self-starting permission for the application to implement self-starting control of the application. Among them, the self-starting permission refers to the permission to start the operation automatically. By managing whether each application installed in the terminal device has the self-starting permission, only the application with the self-starting permission can be self-started through the service, so as to prevent the unauthorized application from self-starting through the service.
本公开实施例提供的方法,各步骤的执行主体可以是终端设备,如手机、平板电脑、电子书阅读器、多媒体播放设备、PDA(Personal Digital Assistant,个人数字助理)、可穿戴设备等。在本公开实施例中,对终端设备的操作系统的类型不作限定,如Android(安卓)操作系统、iOS操作系统、Windows Phone操作系统等。The method provided by the embodiment of the present disclosure may be a terminal device, such as a mobile phone, a tablet computer, an e-book reader, a multimedia playback device, a PDA (Personal Digital Assistant), a wearable device, or the like. In the embodiment of the present disclosure, the type of the operating system of the terminal device is not limited, such as an Android (Android) operating system, an iOS operating system, a Windows Phone operating system, and the like.
图1是根据一示例性实施例示出的一种控制应用自启动的方法的流程图。该方法可以包括如下几个步骤:FIG. 1 is a flow chart showing a method of controlling an application self-starting according to an exemplary embodiment. The method can include the following steps:
在步骤101中,获取触发启动目标服务的触发操作。In step 101, a triggering operation that triggers the startup of the target service is obtained.
终端设备获取触发启动目标服务的触发操作。该触发操作通常是由用户执行的操作,该触发操作能够触发操作系统启动目标服务。The terminal device acquires a trigger operation that triggers the startup target service. The triggering operation is typically an operation performed by a user that can trigger an operating system to launch a target service.
其中,目标服务是应用注册该目标服务之后,应用通过绑定服务方式在启动目标服务的过程中能够实现自启动的服务。可选地,目标服务为系统服务,系统服务主要用于执行指定的系统功能。在一个示例中,目标服务为拼写检查服务。拼写检查服务也称为拼写检查工具,是具有拼写检查功能的系统服务。拼写检查功能是指检查在输入框中输入字词时的拼写错误的功能。例如,通过获取输入框内当前输入的字词,将其与内置词典中的字词进行比对,如果内置词典中没有当前输入的字词,则该当前输入的字词将被视为存在拼写错误的字 词。应用注册拼写检查服务之后,能够通过绑定服务方式在系统启动拼写检查服务的过程中实现自启动。在一个示例中,终端设备获取触发启动拼写检查服务的触发操作。例如,该触发操作为用户在输入框中输入字词的操作。The target service is that after the application registers the target service, the application can implement the self-starting service in the process of starting the target service by using the binding service mode. Optionally, the target service is a system service, and the system service is mainly used to perform specified system functions. In one example, the target service is a spell check service. The spell check service, also known as the spell checker, is a system service with spell checking. The spell check feature is a feature that checks for spelling errors when typing words into the input box. For example, by taking the words currently entered in the input box and comparing them with the words in the built-in dictionary, if there is no currently entered word in the built-in dictionary, the currently entered word will be considered as having spelling. Wrong word word. After applying the registration spell check service, you can implement self-starting during the system startup spell check service by binding service. In one example, the terminal device obtains a triggering action that triggers initiation of the spell check service. For example, the triggering operation is an operation in which a user inputs a word in an input box.
另外,应用可通过在其信息描述文件中申明注册目标服务。信息描述文件是应用的基础配置文件。以Android应用为例,信息描述文件为AndroidManifest.xml文件。在信息描述文件中,开发者可以说明应用的基础信息,比如应用入口页面、应用所需要的权限信息、应用的版本信息等。示例性地,应用可通过在其信息描述文件中申明注册拼写检查服务。In addition, the application can declare the registration target service by stating in its information description file. The information description file is the basic configuration file of the application. Take the Android application as an example, the information description file is the AndroidManifest.xml file. In the information description file, the developer can explain the basic information of the application, such as the application portal page, the permission information required by the application, the version information of the application, and the like. Illustratively, an application may register a spell check service by stating in its information description file.
在步骤102中,在获取到触发操作之后,检测注册目标服务的目标应用是否具备自启动权限。In step 102, after obtaining the triggering operation, it is detected whether the target application of the registration target service has the self-starting authority.
终端设备在获取到触发操作之后,检测注册目标服务的目标应用是否具备自启动权限。其中,自启动权限是指自动启动运行的权限。在本公开实施例中,通过添加自启动权限,使得系统能够对应用通过服务实现自启动进行控制。示例性地,自启动权限的名称为OP_AutoStart。可选地,为自启动权限设置对应的标识(也称为值),用于唯一标识该权限,不同的权限所对应的标识也不同。After obtaining the triggering operation, the terminal device detects whether the target application of the registered target service has the self-starting right. Among them, the self-starting permission refers to the permission to start the operation automatically. In the embodiment of the present disclosure, by adding the self-starting authority, the system can control the self-starting of the application through the service. Illustratively, the name of the self-starting permission is OP_AutoStart. Optionally, a corresponding identifier (also referred to as a value) is set for the self-starting permission, and the identifier is uniquely identified, and the identifier corresponding to the different permissions is different.
另外,若终端设备中仅存在一个应用注册目标服务,则目标应用即为该应用,终端设备检测该应用是否具备自启动权限。若终端设备中存在多个应用注册目标服务,则目标应用为该多个应用中的一个默认应用,终端设备检测该默认应用是否具备自启动权限。默认应用可以由系统或用户自定义选定。In addition, if there is only one application registration target service in the terminal device, the target application is the application, and the terminal device detects whether the application has self-start permission. If there are multiple application registration target services in the terminal device, the target application is one of the multiple applications, and the terminal device detects whether the default application has self-start permission. The default app can be selected by the system or user.
可选地,本步骤包括如下几个子步骤:Optionally, this step includes the following sub-steps:
1,调用权限检测方法,向权限检测方法发送权限检测请求;1. Invoking a permission detection method, and sending a permission detection request to the permission detection method;
其中,权限检测请求中携带目标应用的标识,应用的标识用于唯一标识一个应用。可选地,目标应用的标识包括目标应用的包名(packagename)。The permission detection request carries the identifier of the target application, and the identifier of the application is used to uniquely identify an application. Optionally, the identity of the target application includes a package name of the target application.
权限检测方法用于获取目标应用是否具备自启动权限。示例性地,假设权限检测方法为AutoStartManagerService.isAllowStartService方法,操作系统调用AutoStartManagerService.isAllowStartService方法,并向该方法发送携带有目标应用的标识的权限检测请求。The permission detection method is used to obtain whether the target application has self-starting permission. Illustratively, assuming that the permission detection method is the AutoStartManagerService.isAllowStartService method, the operating system calls the AutoStartManagerService.isAllowStartService method, and sends a permission detection request carrying the identity of the target application to the method.
2,获取权限检测方法返回的权限检测结果;2. Obtain the permission detection result returned by the permission detection method;
其中,权限检测结果为:目标应用具备自启动权限,或者,目标应用不具备自启动权限。Among them, the permission detection result is: the target application has self-starting authority, or the target application does not have self-starting permission.
示例性地,AutoStartManagerService.isAllowStartService方法被调用之后, 根据目标应用的标识,查询获取目标应用是否具备自启动权限。若目标应用具备自启动权限,则AutoStartManagerService.isAllowStartService方法向操作系统返回用于指示具备自启动权限的第一指示信息,例如第一指示信息为true;若目标应用不具备自启动权限,则AutoStartManagerService.isAllowStartService方法向操作系统返回用于指示不具备自启动权限的第二指示信息,例如第二指示信息为false。Illustratively, after the AutoStartManagerService.isAllowStartService method is called, According to the identifier of the target application, the query obtains whether the target application has self-starting permission. If the target application has the self-starting permission, the AutoStartManagerService.isAllowStartService method returns a first indication information indicating that the self-starting permission is provided to the operating system, for example, the first indication information is true; if the target application does not have the self-starting permission, the AutoStartManagerService. The isAllowStartService method returns a second indication information indicating that the self-starting authority is not provided to the operating system, for example, the second indication information is false.
在一个示例中,以目标服务为拼写检查服务为例,在用于实现采用绑定服务方式实现自启动的代码中插入用于实现检测应用是否具备自启动权限的代码,该代码示例可以如下:In one example, taking the target service as a spell check service as an example, insert code for implementing whether the detection application has self-starting permission in the code for implementing self-starting by using the binding service mode, and the code example can be as follows:
Figure PCTCN2016102790-appb-000001
Figure PCTCN2016102790-appb-000001
在步骤103中,若目标应用不具备自启动权限,则禁止目标应用采用绑定服务方式在启动目标服务的过程中自启动。In step 103, if the target application does not have the self-starting permission, the target application is prohibited from being started in the process of starting the target service by using the binding service mode.
若目标应用不具备自启动权限,则终端设备禁止目标应用采用绑定服务方式在启动目标服务的过程中自启动。绑定服务方式是常见的应用启动方式之一,应用通过绑定服务方式能够在其绑定的服务被调用启动的过程中启动运 行。若目标应用不具备自启动权限,则终端设备在启动目标服务的过程中不执行绑定服务的流程,以使得目标应用无法启动运行。If the target application does not have the self-starting permission, the terminal device prohibits the target application from using the binding service mode to start automatically during the startup of the target service. The binding service mode is one of the common application startup methods. The application can be started in the process of the bound service being invoked by the binding service. Row. If the target application does not have the self-starting permission, the terminal device does not execute the process of binding the service during the startup of the target service, so that the target application cannot start running.
另外,若目标应用具备自启动权限,则终端设备允许目标应用采用绑定服务方式在启动目标服务的过程中自启动,也即终端设备在启动目标服务的过程中执行绑定服务的流程,以使得目标应用启动运行。In addition, if the target application has the self-starting permission, the terminal device allows the target application to use the binding service mode to start the self-starting process in the process of starting the target service, that is, the terminal device performs the binding service process in the process of starting the target service, Make the target application start running.
综上所述,本实施例提供的方法,通过在获取到触发启动目标服务的触发操作之后,检测注册目标服务的目标应用是否具备自启动权限,在检测结果为目标应用不具备自启动权限时,禁止目标应用采用绑定服务方式在启动目标服务的过程中自启动;解决了相关技术中由于应用可通过服务(如拼写检查服务)实现自启动,导致占用系统内存及增加耗电量的问题;由于为应用设置自启动权限,仅允许具备自启动权限的应用通过服务实现自启动,避免未经允许的应用通过服务实现自启动,达到了节省系统内存及节省耗电量的技术效果。In summary, the method provided in this embodiment detects whether the target application of the registration target service has the self-starting permission after the triggering operation of triggering the startup target service is obtained, and the detection result is that the target application does not have the self-starting permission. The target application is prohibited from adopting the binding service mode to start self-starting in the process of starting the target service; solving the problem in the related technology that the application can be self-started by the service (such as the spell check service), resulting in occupying system memory and increasing power consumption. Since the self-starting permission is set for the application, only the application with the self-starting permission is allowed to self-start through the service, and the unauthorised application is prevented from self-starting through the service, thereby achieving the technical effect of saving system memory and saving power consumption.
在基于图1所示实施例提供的另一可选实施例中,如图2所示,该控制应用自启动的方法可以包括如下几个步骤:In another optional embodiment provided based on the embodiment shown in FIG. 1, as shown in FIG. 2, the method for controlling the self-starting of the application may include the following steps:
在步骤201中,获取触发启动目标服务的触发操作。In step 201, a triggering operation that triggers the startup of the target service is obtained.
有关步骤201可参见上文针对步骤101的介绍和说明,本实施例对此不再赘述。For the step 201, reference may be made to the introduction and description of the step 101, which is not described in this embodiment.
在步骤202中,在获取到触发操作之后,检测目标应用的进程中目标服务所属的进程是否已启动。若是,则结束流程;若否,则执行下述步骤203。In step 202, after the triggering operation is acquired, it is detected whether the process to which the target service belongs in the process of the target application has started. If yes, the process ends; if not, the following step 203 is performed.
终端设备在获取到触发操作之后,检测目标应用的进程中目标服务所属的进程是否已启动。如果目标服务所属的进程未启动,则执行下述权限检测步骤;如果目标服务所属的进程已启动,则直接跳过下述权限检测步骤,执行绑定服务的流程。通过上述方式,能够避免执行不必要的权限检测步骤,节省系统处理开销。After obtaining the triggering operation, the terminal device detects whether the process to which the target service belongs in the process of the target application has started. If the process to which the target service belongs is not started, perform the following permission detection step; if the process to which the target service belongs is started, skip the following permission detection step and execute the process of binding the service. In the above manner, it is possible to avoid performing unnecessary permission detection steps and save system processing overhead.
可选地,本步骤包括如下几个子步骤:Optionally, this step includes the following sub-steps:
1,调用进程检测方法,向进程检测方法发送进程检测请求;1, calling the process detection method, sending a process detection request to the process detection method;
其中,进程检测请求中携带目标服务所属的进程的标识,如进程名(process name)。进程检测方法用于获取目标服务所属的进程是否已启动。The process detection request carries the identifier of the process to which the target service belongs, such as the process name. The process detection method is used to obtain whether the process to which the target service belongs has been started.
示例性地,假设进程检测方法为ApiActivityManagerService.getProcessRecordLocked方法,操作系统调用 ApiActivityManagerService.getProcessRecordLocked方法,并向该方法发送携带目标服务所属的进程的标识的进程检测请求。Illustratively, assume that the process detection method is the ApiActivityManagerService.getProcessRecordLocked method, the operating system calls The ApiActivityManagerService.getProcessRecordLocked method sends a process detection request carrying the identity of the process to which the target service belongs to the method.
2,获取进程检测方法返回的进程检测结果;2. Obtain the process detection result returned by the process detection method;
其中,进程检测结果为:目标服务所属的进程已启动,或者,目标服务所属的进程未启动。The process detection result is: the process to which the target service belongs is started, or the process to which the target service belongs is not started.
示例性地,ApiActivityManagerService.getProcessRecordLocked方法被调用之后,根据目标服务所属的进程的标识,查询获取目标服务所属的进程是否已启动。若目标服务所属的进程已启动,则ApiActivityManagerService.getProcessRecordLocked方法向操作系统返回用于指示进程已启动的第三指示信息,例如第三指示信息不为null;若目标服务所属的进程未启动,则ApiActivityManagerService.getProcessRecordLocked方法向操作系统返回用于指示进程未启动的第四指示信息,例如第四指示信息为null。Illustratively, after the ApiActivityManagerService.getProcessRecordLocked method is called, according to the identifier of the process to which the target service belongs, the query acquires whether the process to which the target service belongs is started. If the process to which the target service belongs is started, the ApiActivityManagerService.getProcessRecordLocked method returns a third indication information indicating that the process has been started to the operating system, for example, the third indication information is not null; if the process to which the target service belongs is not started, the ApiActivityManagerService The .getProcessRecordLocked method returns a fourth indication information indicating that the process is not started to the operating system, for example, the fourth indication information is null.
在步骤203中,检测注册目标服务的目标应用是否具备自启动权限。若是,则执行下述步骤204;若否,则执行下述步骤205。In step 203, it is detected whether the target application of the registration target service has self-starting authority. If yes, the following step 204 is performed; if not, the following step 205 is performed.
在步骤204中,允许目标应用采用绑定服务方式在启动目标服务的过程中自启动。In step 204, the target application is allowed to self-start in the process of starting the target service by using the binding service mode.
在步骤205中,禁止目标应用采用绑定服务方式在启动目标服务的过程中自启动。In step 205, the target application is prohibited from self-starting in the process of starting the target service by using the binding service mode.
有关步骤203-205可参见上文针对步骤102-103的介绍和说明,本实施例对此不再赘述。For the steps 203-205, reference may be made to the introduction and description of the steps 102-103, which are not described in this embodiment.
本实施例提供的方法,还通过在获取到触发启动目标服务的触发操作之后,检测目标应用的进程中目标服务所属的进程是否已启动,在检测结果为目标服务所属的进程未启动的情况下执行后续的权限检测步骤,而在检测结果为目标服务所属的进程已启动的情况下即可直接结束流程,不执行后续的权限检测步骤,避免执行不必要的权限检测步骤,节省系统处理开销。The method provided in this embodiment further detects whether the process to which the target service belongs in the process of the target application is started after the triggering operation of triggering the startup target service is acquired, and if the detection result is that the process to which the target service belongs is not started. The subsequent permission detection step is executed, and when the detection result is that the process to which the target service belongs has been started, the process can be directly ended, the subsequent permission detection step is not executed, unnecessary unnecessary permission detection steps are avoided, and system processing overhead is saved.
需要补充说明的是,应用是否具备自启动权限,可以由系统默认设置,也可由用户自定义设置。It should be added that the application has the self-starting permission, which can be set by the system default or by the user.
可选地,操作系统所对应的云端服务器中可分别统计为各个应用开启/关闭自启动权限的用户数量。对于某一应用来说,云端服务器统计为该应用开启自启动权限的用户数量和为该应用关闭自启动权限的用户数量,根据上述统计结 果确定该应用的自启动权限的推荐开关设置。示例性地,以目标应用为例,云端服务器根据为目标应用开启自启动权限的用户数量和关闭自启动权限的用户数量的比例,确定目标应用的自启动权限的推荐开关设置。在终端设备安装目标应用之后,云端服务器可将目标应用的自启动权限的推荐开关设置发送给终端设备;相应地,终端设备接收云端服务器发送的目标应用的自启动权限的推荐开关设置。推荐开关设置是指推荐开启或关闭自启动权限。终端设备根据推荐开关设置为目标应用开启或关闭自启动权限。在一个示例中,终端设备根据该推荐开关设置自动设置为目标应用开启或关闭自启动权限。例如,若推荐开关设置为开启,则终端设备为目标应用开启自启动权限;若推荐开关设置为关闭,则终端设备为目标应用关闭自启动权限。在另一示例中,终端设备将该推荐开关设置进行显示,由用户结合该推荐开关设置和自身实际需求设置为目标应用开启或关闭自启动权限,终端设备获取用户设置的权限设置指示,根据用户设置的权限设置指示为目标应用开启或关闭自启动权限。另外,云端服务器可在终端设备安装目标应用之后,向终端设备发送目标应用的自启动权限的推荐开关设置;云端服务器也可每隔预定时间间隔向终端设备发送目标应用的自启动权限的推荐开关设置。Optionally, the number of users that enable or disable the self-starting permission for each application may be separately counted in the cloud server corresponding to the operating system. For an application, the cloud server counts the number of users who have self-starting permissions for the application and the number of users who have turned off self-starting permissions for the application. Determine the recommended switch settings for the self-starting permissions of the app. Exemplarily, taking the target application as an example, the cloud server determines the recommended switch setting of the self-starting permission of the target application according to the proportion of the number of users who open the self-starting permission for the target application and the number of the users who turn off the self-starting permission. After the terminal device installs the target application, the cloud server may send the recommended switch setting of the self-starting permission of the target application to the terminal device; correspondingly, the terminal device receives the recommended switch setting of the self-starting permission of the target application sent by the cloud server. Recommended switch settings are recommended to enable or disable self-start permissions. The terminal device turns on or off the self-starting permission according to the recommended switch setting as the target application. In one example, the terminal device automatically sets the self-starting permission to be turned on or off for the target application according to the recommended switch setting. For example, if the recommended switch is set to be on, the terminal device turns on the self-starting permission for the target application; if the recommended switch is set to off, the terminal device turns off the self-starting permission for the target application. In another example, the terminal device displays the recommended switch setting, and the user sets the permission setting setting for the target application to be turned on or off by the user in combination with the recommended switch setting and the actual demand setting, and the terminal device acquires the permission setting indication set by the user, according to the user. The set permission settings indicate that self-start permissions are turned on or off for the target app. In addition, the cloud server may send the recommended switch setting of the self-starting permission of the target application to the terminal device after the terminal device installs the target application; the cloud server may also send the recommended switch of the self-starting permission of the target application to the terminal device every predetermined time interval. Settings.
在一个示例中,对于某一应用来说,若为该应用开启自启动权限的用户数量大于为该应用关闭自启动权限的用户数量,则云端服务器确定该应用的自启动权限的推荐开关设置为开启;若为该应用开启自启动权限的用户数量小于为该应用关闭自启动权限的用户数量,则云端服务器确定该应用的自启动权限的推荐开关设置为关闭。In an example, for an application, if the number of users who open the self-starting permission for the application is greater than the number of users who turn off the self-starting permission for the application, the cloud server determines that the recommended switch of the self-starting permission of the application is set to If the number of users who have started the self-starting permission for the application is less than the number of users who have turned off the self-starting permission for the application, the cloud server determines that the recommended switch for the self-starting permission of the application is set to off.
在另一示例中,对于某一应用来说,若为该应用开启自启动权限的用户数量占用户总数的比例大于第一阈值,则云端服务器确定该应用的自启动权限的推荐开关设置为开启;若为该应用开启自启动权限的用户数量占用户总数的比例小于第二阈值,则云端服务器确定该应用的自启动权限的推荐开关设置为关闭。其中,第一阈值等于第二阈值,或者,第一阈值大于第二阈值。用户总数是指为该应用开启自启动权限的用户数量与为该应用关闭自启动权限的用户数量的总和。In another example, for an application, if the ratio of the number of users who have started the self-starting permission to the total number of users is greater than the first threshold, the cloud server determines that the recommended switch of the self-starting permission of the application is set to be on. If the ratio of the number of users who have started the self-starting permission to the total number of users is less than the second threshold, the cloud server determines that the recommended switch of the self-starting permission of the application is set to off. The first threshold is equal to the second threshold, or the first threshold is greater than the second threshold. The total number of users is the sum of the number of users who have self-starting permissions for the app and the number of users who have turned off self-launch permissions for the app.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。 The following is an apparatus embodiment of the present disclosure, which may be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the method embodiments of the present disclosure.
图3是根据一示例性实施例示出的一种控制应用自启动的装置的框图。该装置具有实现上述方法示例的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置可以包括:获取模块301、第一检测模块302和禁止模块303。FIG. 3 is a block diagram of an apparatus for controlling application self-starting, according to an exemplary embodiment. The apparatus has a function of implementing the above-described method examples, and the functions may be implemented by hardware or by hardware to execute corresponding software. The apparatus may include an acquisition module 301, a first detection module 302, and a prohibition module 303.
获取模块301,被配置为获取触发启动目标服务的触发操作。The obtaining module 301 is configured to acquire a triggering operation that triggers the startup target service.
第一检测模块302,被配置为在获取到所述触发操作之后,检测注册所述目标服务的目标应用是否具备自启动权限;其中,所述自启动权限是指自动启动运行的权限。The first detecting module 302 is configured to: after detecting the triggering operation, detecting whether the target application that registers the target service has a self-starting right; wherein the self-starting right refers to the right to automatically start running.
禁止模块303,被配置为当所述目标应用不具备所述自启动权限时,禁止所述目标应用采用绑定服务方式在启动所述目标服务的过程中自启动。The forbidden module 303 is configured to, when the target application does not have the self-starting permission, prohibit the target application from self-starting in the process of starting the target service by using a binding service mode.
综上所述,本实施例提供的装置,通过在获取到触发启动目标服务的触发操作之后,检测注册目标服务的目标应用是否具备自启动权限,在检测结果为目标应用不具备自启动权限时,禁止目标应用采用绑定服务方式在启动目标服务的过程中自启动;解决了相关技术中由于应用可通过服务(如拼写检查服务)实现自启动,导致占用系统内存及增加耗电量的问题;由于为应用设置自启动权限,仅允许具备自启动权限的应用通过服务实现自启动,避免未经允许的应用通过服务实现自启动,达到了节省系统内存及节省耗电量的技术效果。In summary, the apparatus provided in this embodiment detects whether the target application of the registration target service has the self-starting permission after the triggering operation of triggering the startup target service is acquired, and the detection result is that the target application does not have the self-starting permission. The target application is prohibited from adopting the binding service mode to start self-starting in the process of starting the target service; solving the problem in the related technology that the application can be self-started by the service (such as the spell check service), resulting in occupying system memory and increasing power consumption. Since the self-starting permission is set for the application, only the application with the self-starting permission is allowed to self-start through the service, and the unauthorised application is prevented from self-starting through the service, thereby achieving the technical effect of saving system memory and saving power consumption.
在基于图3所示实施例提供的一个可选实施例中,如图4所示,所述第一检测模块302,包括:第一发送子模块302a和第一获取子模块302b。In an optional embodiment provided by the embodiment shown in FIG. 3, as shown in FIG. 4, the first detecting module 302 includes: a first sending submodule 302a and a first obtaining submodule 302b.
第一发送子模块302a,被配置为调用权限检测方法,向所述权限检测方法发送权限检测请求;其中,所述权限检测请求中携带所述目标应用的标识,所述权限检测方法用于获取所述目标应用是否具备所述自启动权限。The first sending sub-module 302a is configured to invoke a permission detecting method, and send a permission detecting request to the right detecting method; wherein the right detecting request carries an identifier of the target application, and the right detecting method is used to acquire Whether the target application has the self-starting authority.
第一获取子模块302b,被配置为获取所述权限检测方法返回的权限检测结果;其中,所述权限检测结果为:所述目标应用具备所述自启动权限,或者,所述目标应用不具备所述自启动权限。The first obtaining sub-module 302b is configured to obtain the permission detection result returned by the permission detecting method, wherein the permission detecting result is: the target application has the self-starting authority, or the target application does not have the The self-starting authority.
在基于图3所示实施例提供的另一可选实施例中,如图4所示,所述装置还包括:第二检测模块304。In another optional embodiment provided based on the embodiment shown in FIG. 3, as shown in FIG. 4, the apparatus further includes: a second detecting module 304.
第二检测模块304,被配置为在获取到所述触发操作之后,检测所述目标应用的进程中所述目标服务所属的进程是否已启动。The second detecting module 304 is configured to detect, after the triggering operation is acquired, whether a process to which the target service belongs in the process of the target application has been started.
所述第一检测模块302,还被配置为当所述目标服务所属的进程未启动时,检测注册所述目标服务的目标应用是否具备所述自启动权限。 The first detecting module 302 is further configured to: when the process to which the target service belongs is not started, detect whether the target application that registers the target service has the self-starting right.
可选地,所述第二检测模块304,包括:第二发送子模块304a和第二获取子模块304b。Optionally, the second detecting module 304 includes: a second sending submodule 304a and a second obtaining submodule 304b.
第二发送子模块304a,被配置为调用进程检测方法,向所述进程检测方法发送进程检测请求;其中,所述进程检测请求中携带所述目标服务所属的进程的标识,所述进程检测方法用于获取所述目标服务所属的进程是否已启动。The second sending sub-module 304a is configured to invoke a process detection method, and send a process detection request to the process detection method, where the process detection request carries an identifier of a process to which the target service belongs, and the process detection method Used to obtain whether the process to which the target service belongs has been started.
第二获取子模块304b,被配置为获取所述进程检测方法返回的进程检测结果;其中,所述进程检测结果为:所述目标服务所属的进程已启动,或者,所述目标服务所属的进程未启动。The second obtaining sub-module 304b is configured to acquire the process detection result returned by the process detection method, where the process detection result is: the process to which the target service belongs has been started, or the process to which the target service belongs not initiated.
在基于图3所示实施例提供的另一可选实施例中,所述获取模块301,被配置为获取触发启动拼写检查服务的触发操作。其中,所述拼写检查服务是具有拼写检查功能的系统服务。In another optional embodiment provided based on the embodiment shown in FIG. 3, the obtaining module 301 is configured to acquire a triggering operation that triggers initiation of the spell checking service. Wherein, the spell check service is a system service with a spell check function.
在基于图3所示实施例提供的另一可选实施例中,所述装置还包括:接收模块和开关模块。In another optional embodiment provided based on the embodiment shown in FIG. 3, the apparatus further includes: a receiving module and a switch module.
接收模块,被配置为接收云端服务器发送的所述目标应用的所述自启动权限的推荐开关设置,所述推荐开关设置由所述云端服务器根据为所述目标应用开启所述自启动权限的用户数量和为所述目标应用关闭所述自启动权限的用户数量确定。a receiving module configured to receive the recommended switch setting of the self-starting permission of the target application sent by the cloud server, where the recommended switch is set by the cloud server according to the user who starts the self-starting permission for the target application The number and the number of users who have closed the self-starting authority for the target application are determined.
开关模块,被配置为根据所述推荐开关设置为所述目标应用开启或关闭所述自启动权限。And a switch module configured to enable or disable the self-starting authority according to the recommended switch setting for the target application.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that, when the device provided by the foregoing embodiment implements its function, only the division of each functional module described above is illustrated. In actual applications, the function distribution may be completed by different functional modules according to actual needs. The content structure of the device is divided into different functional modules to complete all or part of the functions described above.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment relating to the method, and will not be explained in detail herein.
本公开一示例性实施例还提供了一种控制应用自启动的装置,能够实现本公开提供的方法。该装置包括:处理器,以及用于存储处理器的可执行指令的存储器。其中,处理器被配置为:An exemplary embodiment of the present disclosure also provides an apparatus for controlling self-starting of an application, which can implement the method provided by the present disclosure. The apparatus includes a processor and a memory for storing executable instructions of the processor. Wherein the processor is configured to:
获取触发启动目标服务的触发操作; Get the trigger action that triggers the launch target service;
在获取到触发操作之后,检测注册目标服务的目标应用是否具备自启动权限;其中,自启动权限是指自动启动运行的权限;After obtaining the triggering operation, detecting whether the target application of the registered target service has the self-starting permission; wherein the self-starting permission refers to the permission to automatically start the running;
当目标应用不具备自启动权限时,禁止目标应用采用绑定服务方式在启动目标服务的过程中自启动。When the target application does not have the self-starting permission, the target application is prohibited from adopting the binding service mode to start automatically during the startup of the target service.
可选地,该处理器被配置为:Optionally, the processor is configured to:
调用权限检测方法,向权限检测方法发送权限检测请求;其中,权限检测请求中携带目标应用的标识,权限检测方法用于获取目标应用是否具备自启动权限;The permission detection method is sent, and the permission detection request is sent to the permission detection method; wherein the permission detection request carries the identifier of the target application, and the permission detection method is used to obtain whether the target application has the self-start permission;
获取权限检测方法返回的权限检测结果;其中,权限检测结果为:目标应用具备自启动权限,或者,目标应用不具备自启动权限。Obtain the permission detection result returned by the permission detection method; wherein the permission detection result is: the target application has the self-starting permission, or the target application does not have the self-starting permission.
可选地,该处理器还被配置为:Optionally, the processor is further configured to:
在获取到触发操作之后,检测目标应用的进程中目标服务所属的进程是否已启动;After obtaining the triggering operation, detecting whether the process to which the target service belongs in the process of the target application has started;
当目标服务所属的进程未启动时,从检测注册目标服务的目标应用是否具备自启动权限的步骤开始执行。When the process to which the target service belongs is not started, the execution starts from the step of detecting whether the target application of the registration target service has the self-start permission.
可选地,该处理器被配置为:Optionally, the processor is configured to:
调用进程检测方法,向进程检测方法发送进程检测请求;其中,进程检测请求中携带目标服务所属的进程的标识,进程检测方法用于获取目标服务所属的进程是否已启动;The process detection method is sent to send a process detection request to the process detection method, where the process detection request carries the identifier of the process to which the target service belongs, and the process detection method is used to obtain whether the process to which the target service belongs is started.
获取进程检测方法返回的进程检测结果;其中,进程检测结果为:目标服务所属的进程已启动,或者,目标服务所属的进程未启动。The process detection result returned by the process detection method is obtained. The process detection result is: the process to which the target service belongs is started, or the process to which the target service belongs is not started.
可选地,该处理器被配置为:Optionally, the processor is configured to:
获取触发启动拼写检查服务的触发操作;Get the trigger action that triggers the start of the spell check service;
其中,拼写检查服务是具有拼写检查功能的系统服务。Among them, the spell check service is a system service with spell check function.
可选地,该处理器还被配置为:Optionally, the processor is further configured to:
接收云端服务器发送的目标应用的自启动权限的推荐开关设置,推荐开关设置由云端服务器根据为目标应用开启自启动权限的用户数量和为目标应用关闭自启动权限的用户数量确定;Receiving the recommended switch setting of the self-starting permission of the target application sent by the cloud server, and the recommended switch setting is determined by the cloud server according to the number of users who open the self-starting permission for the target application and the number of users who turn off the self-starting permission for the target application;
根据推荐开关设置为目标应用开启或关闭自启动权限。Enable or disable self-start permissions based on the recommended switch settings for the target app.
图5是根据一示例性实施例示出的一种装置500的框图。例如,装置500 可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 5 is a block diagram of an apparatus 500, according to an exemplary embodiment. For example, device 500 It can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图5,装置500可以包括以下一个或多个组件:处理组件502,存储器505,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)接口512,传感器组件514,以及通信组件516。Referring to FIG. 5, apparatus 500 can include one or more of the following components: processing component 502, memory 505, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and Communication component 516.
处理组件502通常控制装置500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器520来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。 Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 502 can include one or more processors 520 to execute instructions to perform all or part of the steps of the above described methods. Moreover, processing component 502 can include one or more modules to facilitate interaction between component 502 and other components. For example, processing component 502 can include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
存储器505被配置为存储各种类型的数据以支持在装置500的操作。这些数据的示例包括用于在装置500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器505可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 505 is configured to store various types of data to support operation at device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phone book data, messages, pictures, videos, and the like. Memory 505 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
电源组件506为装置500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为装置500生成、管理和分配电力相关联的组件。 Power component 506 provides power to various components of device 500. Power component 506 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 500.
多媒体组件508包括在所述装置500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当装置500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 The multimedia component 508 includes a screen between the device 500 and the user that provides an output interface. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(MIC),当装置500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器505或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。The audio component 510 is configured to output and/or input an audio signal. For example, audio component 510 includes a microphone (MIC) that is configured to receive an external audio signal when device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 505 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting an audio signal.
I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 512 provides an interface between the processing component 502 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
传感器组件514包括一个或多个传感器,用于为装置500提供各个方面的状态评估。例如,传感器组件514可以检测到装置500的打开/关闭状态,组件的相对定位,例如所述组件为装置500的显示器和小键盘,传感器组件515还可以检测装置500或装置500一个组件的位置改变,用户与装置500接触的存在或不存在,装置500方位或加速/减速和装置500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件515还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 514 includes one or more sensors for providing device 500 with various aspects of status assessment. For example, sensor assembly 514 can detect an open/closed state of device 500, a relative positioning of components, such as the display and keypad of device 500, and sensor component 515 can also detect a change in position of one component of device 500 or device 500. The presence or absence of user contact with device 500, device 500 orientation or acceleration/deceleration, and temperature variation of device 500. Sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 515 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件516被配置为便于装置500和其他设备之间有线或无线方式的通信。装置500可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, communication component 516 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
在示例性实施例中,装置500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器505,上述指令可由装置500的处理器520执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机 存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a memory 505 comprising instructions executable by processor 520 of apparatus 500 to perform the above method. For example, the non-transitory computer readable storage medium may be ROM, random Access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置500的处理器执行时,使得装置500能够执行上述方法。A non-transitory computer readable storage medium, when instructions in the storage medium are executed by a processor of apparatus 500, to enable apparatus 500 to perform the above method.
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。It should be understood that "a plurality" as referred to herein means two or more. "and/or", describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately. The character "/" generally indicates that the contextual object is an "or" relationship.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be apparent to those skilled in the <RTIgt; The present application is intended to cover any variations, uses, or adaptations of the present disclosure, which are in accordance with the general principles of the disclosure and include common general knowledge or common technical means in the art that are not disclosed in the present disclosure. . The specification and examples are to be regarded as illustrative only,
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。 It is to be understood that the invention is not limited to the details of the details and The scope of the disclosure is to be limited only by the appended claims.

Claims (13)

  1. 一种控制应用自启动的方法,其特征在于,所述方法包括:A method for controlling self-starting of an application, the method comprising:
    获取触发启动目标服务的触发操作;Get the trigger action that triggers the launch target service;
    在获取到所述触发操作之后,检测注册所述目标服务的目标应用是否具备自启动权限;其中,所述自启动权限是指自动启动运行的权限;After obtaining the triggering operation, detecting whether the target application that is registered with the target service has a self-starting permission; wherein the self-starting permission refers to a permission to automatically start running;
    若所述目标应用不具备所述自启动权限,则禁止所述目标应用采用绑定服务方式在启动所述目标服务的过程中自启动。If the target application does not have the self-starting permission, the target application is prohibited from self-starting in the process of starting the target service by using a binding service mode.
  2. 根据权利要求1所述的方法,其特征在于,所述检测注册所述目标服务的目标应用是否具备自启动权限,包括:The method according to claim 1, wherein the detecting whether the target application registered with the target service has self-starting rights comprises:
    调用权限检测方法,向所述权限检测方法发送权限检测请求;其中,所述权限检测请求中携带所述目标应用的标识,所述权限检测方法用于获取所述目标应用是否具备所述自启动权限;Calling a permission detection method, and sending a permission detection request to the permission detection method; wherein the permission detection request carries an identifier of the target application, and the permission detection method is configured to acquire whether the target application has the self-starting Permission
    获取所述权限检测方法返回的权限检测结果;其中,所述权限检测结果为:所述目标应用具备所述自启动权限,或者,所述目标应用不具备所述自启动权限。Obtaining the permission detection result returned by the permission detection method; wherein the permission detection result is: the target application has the self-starting authority, or the target application does not have the self-starting permission.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    在获取到所述触发操作之后,检测所述目标应用的进程中所述目标服务所属的进程是否已启动;After obtaining the triggering operation, detecting whether a process to which the target service belongs in the process of the target application has been started;
    若所述目标服务所属的进程未启动,则从所述检测注册所述目标服务的目标应用是否具备自启动权限的步骤开始执行。If the process to which the target service belongs is not started, starting from the step of detecting whether the target application that registers the target service has the self-starting permission starts.
  4. 根据权利要求3所述的方法,其特征在于,所述检测所述目标应用的进程中所述目标服务所属的进程是否已启动,包括:The method according to claim 3, wherein the detecting the process to which the target service belongs in the process of detecting the target application is started, including:
    调用进程检测方法,向所述进程检测方法发送进程检测请求;其中,所述进程检测请求中携带所述目标服务所属的进程的标识,所述进程检测方法用于获取所述目标服务所属的进程是否已启动;Calling a process detection method, and sending a process detection request to the process detection method, where the process detection request carries an identifier of a process to which the target service belongs, and the process detection method is used to acquire a process to which the target service belongs Whether it has been activated;
    获取所述进程检测方法返回的进程检测结果;其中,所述进程检测结果为:所述目标服务所属的进程已启动,或者,所述目标服务所属的进程未启动。 Obtaining a process detection result returned by the process detection method, where the process detection result is: the process to which the target service belongs is started, or the process to which the target service belongs is not started.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述获取触发启动目标服务的触发操作,包括:The method according to any one of claims 1 to 4, wherein the acquiring a triggering operation for triggering a startup target service comprises:
    获取触发启动拼写检查服务的触发操作;Get the trigger action that triggers the start of the spell check service;
    其中,所述拼写检查服务是具有拼写检查功能的系统服务。Wherein, the spell check service is a system service with a spell check function.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, further comprising:
    接收云端服务器发送的所述目标应用的所述自启动权限的推荐开关设置,所述推荐开关设置由所述云端服务器根据为所述目标应用开启所述自启动权限的用户数量和为所述目标应用关闭所述自启动权限的用户数量确定;Receiving a recommendation switch setting of the self-starting permission of the target application sent by the cloud server, where the recommendation switch is set by the cloud server according to the number of users that open the self-starting permission for the target application and is the target Applying the number of users who close the self-starting permission to determine;
    根据所述推荐开关设置为所述目标应用开启或关闭所述自启动权限。The self-starting authority is turned on or off according to the recommended switch setting for the target application.
  7. 一种控制应用自启动的装置,其特征在于,所述装置包括:A device for controlling self-starting of an application, characterized in that the device comprises:
    获取模块,被配置为获取触发启动目标服务的触发操作;An acquisition module configured to acquire a trigger operation that triggers a startup target service;
    第一检测模块,被配置为在获取到所述触发操作之后,检测注册所述目标服务的目标应用是否具备自启动权限;其中,所述自启动权限是指自动启动运行的权限;The first detecting module is configured to: after detecting the triggering operation, detecting whether the target application that registers the target service has a self-starting right; wherein the self-starting right refers to the right to automatically start running;
    禁止模块,被配置为当所述目标应用不具备所述自启动权限时,禁止所述目标应用采用绑定服务方式在启动所述目标服务的过程中自启动。The forbidden module is configured to prevent the target application from self-starting in the process of starting the target service by using a binding service mode when the target application does not have the self-starting permission.
  8. 根据权利要求7所述的装置,其特征在于,所述第一检测模块,包括:The device according to claim 7, wherein the first detecting module comprises:
    第一发送子模块,被配置为调用权限检测方法,向所述权限检测方法发送权限检测请求;其中,所述权限检测请求中携带所述目标应用的标识,所述权限检测方法用于获取所述目标应用是否具备所述自启动权限;The first sending submodule is configured to invoke a permission detecting method, and send a permission detecting request to the right detecting method; wherein the right detecting request carries an identifier of the target application, and the right detecting method is used to acquire the Whether the target application has the self-starting authority;
    第一获取子模块,被配置为获取所述权限检测方法返回的权限检测结果;其中,所述权限检测结果为:所述目标应用具备所述自启动权限,或者,所述目标应用不具备所述自启动权限。The first obtaining sub-module is configured to obtain the permission detection result returned by the permission detecting method, where the permission detecting result is: the target application has the self-starting permission, or the target application does not have the Describe the self-starting permissions.
  9. 根据权利要求7或8所述的装置,其特征在于,所述装置还包括:The device according to claim 7 or 8, wherein the device further comprises:
    第二检测模块,被配置为在获取到所述触发操作之后,检测所述目标应用的进程中所述目标服务所属的进程是否已启动; a second detecting module, configured to: after detecting the triggering operation, detecting whether a process to which the target service belongs in a process of the target application is started;
    所述第一检测模块,还被配置为当所述目标服务所属的进程未启动时,检测注册所述目标服务的目标应用是否具备所述自启动权限。The first detecting module is further configured to: when the process to which the target service belongs is not started, detect whether the target application that registers the target service has the self-starting right.
  10. 根据权利要求9所述的装置,其特征在于,所述第二检测模块,包括:The device according to claim 9, wherein the second detecting module comprises:
    第二发送子模块,被配置为调用进程检测方法,向所述进程检测方法发送进程检测请求;其中,所述进程检测请求中携带所述目标服务所属的进程的标识,所述进程检测方法用于获取所述目标服务所属的进程是否已启动;The second sending submodule is configured to invoke a process detection method, and send a process detection request to the process detection method, where the process detection request carries an identifier of a process to which the target service belongs, and the process detection method uses Obtaining whether the process to which the target service belongs has been started;
    第二获取子模块,被配置为获取所述进程检测方法返回的进程检测结果;其中,所述进程检测结果为:所述目标服务所属的进程已启动,或者,所述目标服务所属的进程未启动。The second obtaining submodule is configured to obtain the process detection result returned by the process detection method, where the process detection result is: the process to which the target service belongs has been started, or the process to which the target service belongs is not start up.
  11. 根据权利要求7至10任一项所述的装置,其特征在于,A device according to any one of claims 7 to 10, characterized in that
    所述获取模块,被配置为获取触发启动拼写检查服务的触发操作;The obtaining module is configured to acquire a triggering operation that triggers initiation of a spell checking service;
    其中,所述拼写检查服务是具有拼写检查功能的系统服务。Wherein, the spell check service is a system service with a spell check function.
  12. 根据权利要求7至11任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 7 to 11, wherein the device further comprises:
    接收模块,被配置为接收云端服务器发送的所述目标应用的所述自启动权限的推荐开关设置,所述推荐开关设置由所述云端服务器根据为所述目标应用开启所述自启动权限的用户数量和为所述目标应用关闭所述自启动权限的用户数量确定;a receiving module configured to receive the recommended switch setting of the self-starting permission of the target application sent by the cloud server, where the recommended switch is set by the cloud server according to the user who starts the self-starting permission for the target application The number and the number of users who have closed the self-starting authority for the target application;
    开关模块,被配置为根据所述推荐开关设置为所述目标应用开启或关闭所述自启动权限。And a switch module configured to enable or disable the self-starting authority according to the recommended switch setting for the target application.
  13. 一种控制应用自启动的装置,其特征在于,所述装置包括:A device for controlling self-starting of an application, characterized in that the device comprises:
    处理器;processor;
    用于存储所述处理器的可执行指令的存储器;a memory for storing executable instructions of the processor;
    其中,所述处理器被配置为:Wherein the processor is configured to:
    获取触发启动目标服务的触发操作;Get the trigger action that triggers the launch target service;
    在获取到所述触发操作之后,检测注册所述目标服务的目标应用是否具备自启动权限;其中,所述自启动权限是指自动启动运行的权限; After obtaining the triggering operation, detecting whether the target application that is registered with the target service has a self-starting permission; wherein the self-starting permission refers to a permission to automatically start running;
    当所述目标应用不具备所述自启动权限时,禁止所述目标应用采用绑定服务方式在启动所述目标服务的过程中自启动。 When the target application does not have the self-starting permission, the target application is prohibited from being started in the process of starting the target service by using a binding service mode.
PCT/CN2016/102790 2016-10-21 2016-10-21 Method and device for controlling application to start automatically WO2018072193A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680001198.2A CN106537288B (en) 2016-10-21 2016-10-21 The method and device of self-starting is applied in control
PCT/CN2016/102790 WO2018072193A1 (en) 2016-10-21 2016-10-21 Method and device for controlling application to start automatically

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 (1)

Publication Number Publication Date
WO2018072193A1 true WO2018072193A1 (en) 2018-04-26

Family

ID=58335880

Family Applications (1)

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

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
CN106537288B (en) 2018-06-12

Similar Documents

Publication Publication Date Title
JP6101866B2 (en) Child mode processing method, apparatus, program, and recording medium
US9860844B2 (en) Method and apparatus of temperature control
US9998887B2 (en) Short message service reading method and device
US10021543B2 (en) Short message service reading method and device
WO2016173245A1 (en) Permission management method and device
US20170289181A1 (en) Payment method, apparatus and medium
US10491394B2 (en) Method and device for processing verification code
WO2016090822A1 (en) Method and device for upgrading firmware
US20170300260A1 (en) Method, device and computer-readable storage medium for data migration
WO2019056575A1 (en) Account login method, terminal and computer-readable non-volatile storage medium
WO2017193526A1 (en) Application interface display method and apparatus
WO2018072193A1 (en) Method and device for controlling application to start automatically
US20150339016A1 (en) Tab creation method, device, and terminal
EP3163834A1 (en) Method and device for equipment control
WO2017185568A1 (en) Method and apparatus for managing application programs
WO2018049609A1 (en) Permission control method and device
CN112784262A (en) Data access method, device, terminal and storage medium
EP3328022A1 (en) Managing wireless network connection
US10027629B2 (en) Short message service reading method and device
WO2016150104A1 (en) App theme loading method and device
WO2018049610A1 (en) Permission control method and device
WO2018049611A1 (en) Permission control method and device
WO2017166461A1 (en) Method and apparatus for managing application program call
CN106201738B (en) System broadcast calling method and device
CN112163192A (en) root authority acquisition method, root authority acquisition device, root authority acquisition medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16919206

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16919206

Country of ref document: EP

Kind code of ref document: A1