Application wake-up method and device

A wake-up time and invoked technology, applied in the computer field, can solve problems such as malicious program entry, system crash, and lack of functions

Active Publication Date: 2019-08-23
BEIJING QIHOO TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

"Forced stop" makes the running of the application software forcibly closed. For the terminal, it is easy to cause the lack of some functions, especially the security function, which may lead to the entry of other malicious programs (such as viruses, Trojan horses), and even The mutual attack between them causes the system to crash

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Application wake-up method and device
  • Application wake-up method and device
  • Application wake-up method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0076] This embodiment is applied to systems above Android 5.0. This embodiment allows to control the execution of the wake-up behavior by setting many different options. In summary, it can be divided into two categories: periodic wake-up (correspondingly setting the JobScheduler as a periodic JobScheduler), conditional wake-up (correspondingly setting the JobScheduler as a one-time JobScheduler).

[0077] Periodic wake-up: need to set the time difference between every two wake-ups;

[0078] Conditional wake-up: that is, the wake-up will not be set until the condition is met. Under this category, it can be subdivided into various condition settings such as network (whether it is connected to the Internet, whether the network is charged), charging (whether the device is charging), idle (whether the device is idle), etc.

[0079] When the JobScheduler is used in the application, first implement the JobService through customization. Among them, register the language of the cus...

Embodiment 2

[0084] In order to clarify the wake-up strategy provided by the embodiment of the present invention, the embodiment of the present invention provides four wake-up strategies. For the specific execution language, please refer to Figure 4 :

[0085] 1. Wake up once every 10 minutes

[0086] 2. First push back for 10 minutes, then wake up once under charging conditions, and arrange the next task of this type at the same time as each wake-up.

[0087] 3. Postpone for 10 minutes, then wake up once when the device is idle, and schedule the next task of this type at the same time as each wake-up.

[0088] 3. Postpone for 10 minutes, and then wake up once when the device is connected to the non-billing network, and schedule the next task of this type at the same time as each wake-up.

[0089] It should be noted that 10 minutes is only an indicative value, and the specific value depends on the actual situation. Moreover, during the execution process, due to the power-saving charact...

Embodiment 3

[0095] Since JobService is a new API in Android 5.0, if it is actively called by a third party (malicious program with system permissions) on a machine that does not support JobService, such as 4.4 and below 4.4, the application will crash directly.

[0096] In view of the above threats, two situations have to be considered:

[0097] 1. On devices running Android 4.4 and below, avoid calling JobService;

[0098] 2. On devices that run Android 5.0 and above but are removed or changed by the Rom provider, avoid program crashes when the JobService is called.

[0099] Embodiments of the present invention provide the following solutions

[0100] For the problem mentioned in 1, you can use the property setting of Service - android:enable.

[0101] If this item is set to "true", the Service will be activated, but the system will not start the Service. To start the service, the startService() method must be explicitly called. Otherwise, if this item is set to "false", the Service i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention provides an application wake-up method and apparatus. A task process JobService of an application is arranged on a system of the application. The method comprises: in the system, configuring the task process with a corresponding communication agent class JobScheduler for performing a communication between the application and the system, wherein the JobScheduler at least comprises a wake-up time of the application and a wake-up operation for the application; when a system time runs to the wake-up time of the application, enabling the system to communicate with the JobScheduler, and activating the JobScheduler; and enabling the JobScheduler to initiate the wake-up operation to the task process, and awakening the application. With adoption of the method and apparatus provided by the present invention, a forcible shutdown of some applications caused by a forcible stop can be avoided.

Description

technical field [0001] The present invention relates to the technical field of computers, in particular to an application wake-up method and device. Background technique [0002] As the current mainstream mobile phone operating system, Android (Android) program installation package developers are a mixed bag, fighting openly and secretly. Whether the application program can gain more permissions has become the foundation of life and death. At the same time as the competition for Root permissions, the auxiliary functions of the device have become the target of many developers. In practice, accessibility features allow programs to assist users in device operations, input, and manipulation of window elements. [0003] When most programs are installed, they generally guide the application to enable auxiliary functions for themselves. One of the most important uses is to help users operate the device. A typical example is the automatic installation of software such as pea pods a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/4401
CPCG06F9/44505
Inventor 张炅轩宋照春刘坡
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products