CN109669730B - Process keep-alive method, device, electronic equipment and medium - Google Patents

Process keep-alive method, device, electronic equipment and medium Download PDF

Info

Publication number
CN109669730B
CN109669730B CN201811603530.XA CN201811603530A CN109669730B CN 109669730 B CN109669730 B CN 109669730B CN 201811603530 A CN201811603530 A CN 201811603530A CN 109669730 B CN109669730 B CN 109669730B
Authority
CN
China
Prior art keywords
app
notification bar
reading permission
permission
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811603530.XA
Other languages
Chinese (zh)
Other versions
CN109669730A (en
Inventor
邓生金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201811603530.XA priority Critical patent/CN109669730B/en
Publication of CN109669730A publication Critical patent/CN109669730A/en
Application granted granted Critical
Publication of CN109669730B publication Critical patent/CN109669730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation

Abstract

The disclosure relates to a process keep-alive method, a device, electronic equipment and a medium, relates to the technical field of computer application, and aims to solve the problem that keep-alive schemes in related technologies are limited by system versions or system types and have poor keep-alive capability on processes. The scheme of the embodiment of the disclosure comprises the following steps: when the APP starts, whether the APP starts the reading permission of the notification bar is judged, and if the APP does not start the reading permission of the notification bar, a user is prompted to start the reading permission of the notification bar.

Description

Process keep-alive method, device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to a process keep-alive method, apparatus, electronic device, and medium.
Background
In the android system, limited by the amount of resources of a Central Processing Unit (CPU) or memory resources of the mobile phone, a cleaning Application (APP) in the mobile phone may kill a process which is in a background and does not work. But for some processes that are used to perform persistent tasks, it is necessary to keep these processes alive. Taking a process for pushing a message as an example, if the process is not in a live state, the process cannot push the message through the APP.
However, with upgrade of the android system version and restrictions of privacy policy, the keep-alive schemes in the related art are mostly not applicable to the android system of the high version, and some keep-alive schemes that can be applicable to the android system of the high version, but are not applicable to some types of android systems. Namely, the keep-alive schemes in the related art are limited by the system version or the system type, and the keep-alive capability of the processes is poor by applying the keep-alive schemes.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a process keep-alive method, apparatus, electronic device and medium.
According to a first aspect of the embodiments of the present disclosure, a process keep-alive method is provided, including:
when an application program APP is started, judging whether the APP starts a notification bar reading permission;
and if the APP does not start the reading permission of the notification bar, prompting a user to start the reading permission of the notification bar.
In a possible implementation manner, when the APP is started, the step of determining whether the APP starts the notification bar reading permission specifically includes:
when the APP is started, acquiring configuration information of the APP from a registry; judging whether the APP has a function of using a notification bar to read permission or not according to the configuration information;
and if the APP has the function of using the notification bar reading permission, calling a preset Application Programming Interface (API) to judge whether the APP starts the notification bar reading permission.
In a possible implementation manner, the step of prompting the user to start the notification bar reading permission specifically includes:
popping up a reminding message, wherein the reminding message is used for reminding a user to start a notification bar reading permission of the APP;
and if an instruction for starting the reading permission of the notification bar of the APP, which is input by a user, is received, jumping to a setting interface of the reading permission of the notification bar.
In a possible implementation manner, the step of popping up the reminding message specifically includes:
popping up a reminding dialog box, wherein the reminding dialog box comprises information for reminding a user of starting a notification bar reading permission of the APP; alternatively, the first and second electrodes may be,
and playing voice prompt, wherein the voice prompt is used for prompting a user to start the reading permission of the notification bar of the APP.
In a possible implementation manner, after the step of prompting the user to start the notification bar reading right, the method further includes:
judging whether the reading permission of the notification bar of the APP is opened or not;
if the reading permission of the notification bar of the APP is opened, judging whether the process corresponding to the APP is in a survival state or not at preset time intervals;
and if the APP is not in the survival state, restarting the process corresponding to the APP.
According to a second aspect of the embodiments of the present disclosure, there is provided a process keep-alive device, including:
the device comprises a judging module and a judging module, wherein the judging module is configured to judge whether an APP starts a notification bar reading permission or not when the APP starts;
and the prompting module is configured to prompt a user to start the reading permission of the notification bar when the APP does not start the reading permission of the notification bar.
In one possible implementation, when the APP starts,
the determining module is specifically configured to: when the APP is started, acquiring the configuration information of the APP from a registry, and judging whether the APP has a function of using a notification bar to read the authority or not according to the configuration information of the APP; and when the APP has the function of using the notification bar reading permission, calling a preset Application Programming Interface (API) to judge whether the APP starts the notification bar reading permission.
In a possible implementation manner, the prompt module is specifically configured to pop up a prompt message, where the prompt message is used to prompt a user to start a notification bar reading permission of the APP; and if an instruction for starting the notification bar reading permission of the APP, which is input by a user, is received, jumping to a notification bar reading permission setting interface.
In a possible implementation manner, the prompt module is specifically configured to:
popping up a reminding dialog box, wherein the reminding dialog box comprises information for reminding a user of starting a notification bar reading permission of the APP; alternatively, the first and second electrodes may be,
and playing voice prompt, wherein the voice prompt is used for prompting a user to start the reading permission of the notification bar of the APP.
In a possible implementation manner, the determining module is further configured to determine whether a notification bar reading permission of the APP is opened; when the reading permission of the notification bar of the APP is started, judging whether the process corresponding to the APP is in a survival state or not at preset time intervals; and restarting the process corresponding to the APP when the APP is not in the survival state.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor being caused by the machine executable instructions to: the process keep-alive method described in the first aspect is implemented.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the process keep-alive method described in the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the process keep-alive method described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by adopting the process keep-alive method provided by the embodiment of the application, when the APP is started, whether the APP starts the notification bar reading permission or not can be judged, if the APP does not start the notification bar reading permission, a user is prompted to start the notification bar reading permission, based on the characteristic that the android system can pull the process corresponding to the system service (for example, the APP preassembly in the system or the APP carried by the system itself) at intervals, after the notification bar reading permission of the APP in the embodiment of the application is started, the APP can be considered to have the service capability at the same level as the system service, so that the process corresponding to the APP can also be pulled at intervals, therefore, the keep-alive of the APP is realized, the method is simple to realize, and because the android systems of all versions support the notification bar reading function, the method is not limited by the versions of the android systems, and the keep-alive capability of the process can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a process keep-alive method in accordance with an example embodiment.
Fig. 2 is a block diagram illustrating a process keep-alive device in accordance with an example embodiment.
FIG. 3 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a process keep-alive method according to an exemplary embodiment, where the process keep-alive method is used in a terminal, as shown in fig. 1, and includes the following steps.
In step S101, when the APP starts, it is determined whether the APP starts the notification bar reading right.
When the APP starts, the terminal can obtain the configuration information of the APP from the registry, and then judges whether the APP has the function of using the notification bar to read the authority or not according to the configuration information of the APP. That is, if the configuration information of the APP indicates that the APP has registered the function of using the notification bar reading right, it may be determined that the APP has the function of using the notification bar reading right; if the configuration information of the APP indicates that the APP does not register the function of using the notification bar reading permission, the APP can be determined not to have the function of using the notification bar reading permission.
The registry stores configuration information of each APP installed in the terminal.
It can be understood that, on the premise that the APP has the function of using the notification bar reading permission, the notification bar reading permission of the APP can be opened or closed. At present, for some APPs needing message pushing, functions of using a notification bar to read permission are generally provided, such as short messages, WeChat, video software, and the like.
If the APP has the function of using the notification bar reading permission, a preset Application Programming Interface (API) can be called to judge whether the APP starts the notification bar reading permission.
In step S102, if the APP does not start the notification bar reading right, the user is prompted to start the notification bar reading right.
In a possible implementation manner, a reminding message can be popped up, the reminding message is used for reminding a user to start the reading permission of the notification bar of the APP, and if an instruction for starting the reading permission of the notification bar is received, the user jumps to a reading permission setting interface of the notification bar.
Alternatively, the reminder message may be in the form of a dialog box, or in the form of a voice. A reminding dialog box can be popped up, and the reminding dialog box comprises information for reminding a user of starting the notification permission of the APP; or a voice prompt can be played and used for prompting the user to start the reading permission of the notification bar of the APP.
Illustratively, the content of the reminder message may be "please turn on the notification bar for the correct delivery of the message to read the right", and the dialog box further includes two options, i.e., "yes" and "no", respectively. And if the fact that the user selects 'yes' is recognized, jumping to a notification bar reading permission setting interface, so that the user authorizes the opening of the notification bar reading permission of the APP in the notification bar reading permission setting interface.
It should be noted that the form of the reminding message is a dialog box or a voice form, which is only an example, and in the embodiment of the present application, the reminding message may also be displayed in other forms, for example, in a form of a picture, and the present application is not limited to this.
Optionally, in another possible implementation manner, a prompt message may also be displayed, where the prompt message shows a guidance step for starting the notification bar reading permission of the APP, and a user may open a notification bar reading permission setting interface according to the guidance step by himself/herself to authorize the start of the notification bar reading permission of the APP.
By adopting the process keep-alive method provided by the embodiment of the application, when the APP is started, whether the APP starts the notification bar reading permission or not can be judged, if the APP does not start the notification bar reading permission, a user is prompted to start the notification bar reading permission, based on the characteristic that the android system can pull the process corresponding to the system service (for example, the APP preassembly in the system or the APP carried by the system itself) at intervals, after the notification bar reading permission of the APP in the embodiment of the application is started, the APP can be considered to have the service capability at the same level as the system service, so that the process corresponding to the APP can also be pulled at intervals, therefore, the keep-alive of the APP is realized, the method is simple to realize, and because the android systems of all versions support the notification bar reading function, the method is not limited by the versions of the android systems, and the keep-alive capability of the process can be improved.
It can be understood that after prompting the user to open the notification bar reading permission, whether the notification bar reading permission of the APP is opened or not can be judged again, if the notification bar reading permission of the APP is opened, based on the characteristics of the android system, whether the process corresponding to the APP is in a survival state or not can be judged at every preset time, and if the APP is not in the survival state, the process corresponding to the APP is restarted. After the APP is restarted, whether the process corresponding to the APP is in a survival state or not is still judged at preset time intervals, and if the process corresponding to the APP is not in a survival state, the process corresponding to the APP is restarted. By restarting the APP at intervals, the keep-alive of the process corresponding to the APP can be realized.
Fig. 2 is a block diagram illustrating a process keep-alive device, according to an example embodiment. Referring to fig. 2, the apparatus includes a determination module 201 and a prompt module 202.
The judging module 201 is configured to judge whether the APP starts the notification bar reading permission when the APP starts;
the prompting module 202 is configured to prompt a user to start the notification bar reading permission when the APP does not start the notification bar reading permission.
Optionally, the determining module 201 is specifically configured to: when the APP is started, acquiring the configuration information of the APP from the registry, and judging whether the APP has the function of using the notification bar to read the authority or not according to the configuration information of the APP; and when the APP has the function of using the notification bar reading permission, calling a preset Application Programming Interface (API) to judge whether the APP starts the notification bar reading permission.
Optionally, the prompting module 202 is specifically configured to pop up a prompting message, where the prompting message is used to prompt a user to start a notification bar reading permission of the APP; and if an instruction for starting the reading permission of the notification bar of the APP, which is input by the user, is received, jumping to a setting interface of the reading permission of the notification bar.
Optionally, the prompting module 202 is specifically configured to: popping up a reminding dialog box, wherein the reminding dialog box comprises information for reminding a user of starting a notification bar reading permission of the APP; alternatively, the first and second electrodes may be,
and playing voice prompt, wherein the voice prompt is used for prompting the user to start the reading permission of the notification bar of the APP.
Optionally, the determining module 201 is further configured to determine whether a notification bar reading permission of the APP is opened; when the reading permission of the notification bar of the APP is started, judging whether the process corresponding to the APP is in a survival state or not at preset time intervals; and restarting the process corresponding to the APP when the APP is not in the survival state.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 3 is a block diagram illustrating an apparatus 300 for process keep-alive, according to an example embodiment. For example, the apparatus 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, the apparatus 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input/output (I/O) interface 312, a sensor component 314, and a communication component 316.
The processing component 302 generally controls overall operation of the device 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
The memory 304 is configured to store various types of data to support operations at the device 300. Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 304 may be implemented by any type or combination of volatile or non-volatile memory devices, 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, magnetic or optical disks.
The power supply component 306 provides power to the various components of the device 300. The power components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 300.
The multimedia component 308 includes a screen that provides an output interface between the device 300 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 300 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 310 is configured to output and/or input audio signals. For example, audio component 310 includes a Microphone (MIC) configured to receive external audio signals when apparatus 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the device 300. For example, sensor assembly 314 may detect an open/closed state of device 300, the relative positioning of components, such as a display and keypad of apparatus 300, the change in position of apparatus 300 or a component of apparatus 300, the presence or absence of user contact with apparatus 300, the orientation or acceleration/deceleration of apparatus 300, and the change in temperature of apparatus 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 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 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate wired or wireless communication between the apparatus 300 and other devices. The apparatus 300 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 300 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 Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 304 comprising instructions, executable by the processor 320 of the apparatus 300 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In another embodiment, a computer readable storage medium is provided, in which a computer program is stored, which when executed by a processor implements the steps of any of the above process keep-alive methods.
In yet another embodiment, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the process keep-alive methods of the above embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A process keep-alive method is characterized by comprising the following steps:
when an application program APP is started, judging whether the APP starts a notification bar reading permission;
if the APP does not start the reading permission of the notification bar, prompting a user to start the reading permission of the notification bar;
when the application program APP is started, the step of judging whether the APP starts the notification bar reading permission specifically comprises the following steps:
when the APP is started, acquiring configuration information of the APP from a registry;
judging whether the APP has a function of using a notification bar to read permission or not according to the configuration information of the APP;
if the APP has the function of using the notification bar reading permission, calling a preset Application Programming Interface (API) to judge whether the APP starts the notification bar reading permission.
2. The method according to claim 1, wherein the step of prompting the user to open the notification bar reading right specifically comprises:
popping up a reminding message, wherein the reminding message is used for reminding a user to start a notification bar reading permission of the APP;
and if an instruction for starting the notification bar reading permission of the APP, which is input by a user, is received, jumping to a notification bar reading permission setting interface.
3. The method according to claim 2, wherein the step of popping up the reminder message specifically comprises:
popping up a reminding dialog box, wherein the reminding dialog box comprises information for reminding a user of starting a notification bar reading permission of the APP; alternatively, the first and second electrodes may be,
and playing voice prompt, wherein the voice prompt is used for prompting a user to start the reading permission of the notification bar of the APP.
4. The method of any of claims 1-3, wherein after the step of prompting a user to turn on notification bar read permissions, the method further comprises:
judging whether the reading permission of the notification bar of the APP is opened or not;
if the reading permission of the notification bar of the APP is opened, judging whether the process corresponding to the APP is in a survival state or not at preset time intervals;
and if the APP is not in the survival state, restarting the process corresponding to the APP.
5. A process keep-alive apparatus, comprising:
the device comprises a judging module and a judging module, wherein the judging module is configured to judge whether an APP starts a notification bar reading permission or not when the APP starts;
the prompting module is configured to prompt a user to start the notification bar reading permission when the APP does not start the notification bar reading permission;
the determining module is specifically configured to: when the APP is started, acquiring the configuration information of the APP from a registry, and judging whether the APP has a function of using a notification bar to read the authority or not according to the configuration information of the APP; and when the APP has the function of using the notification bar reading permission, calling a preset Application Programming Interface (API) to judge whether the APP starts the notification bar reading permission.
6. The apparatus of claim 5,
the prompting module is specifically configured to pop up a prompting message, and the prompting message is used for prompting a user to start a notification bar reading permission of the APP; and if an instruction for starting the reading permission of the notification bar of the APP, which is input by a user, is received, jumping to a setting interface of the reading permission of the notification bar.
7. The apparatus of claim 6, wherein the prompting module is specifically configured to:
popping up a reminding dialog box, wherein the reminding dialog box comprises information for reminding a user of starting a notification bar reading permission of the APP; alternatively, the first and second electrodes may be,
and playing voice prompt, wherein the voice prompt is used for prompting a user to start the reading permission of the notification bar of the APP.
8. The apparatus according to any one of claims 5 to 7,
the judging module is further configured to judge whether the notification bar reading permission of the APP is opened; when the reading permission of the notification bar of the APP is started, judging whether the process corresponding to the APP is in a survival state or not at preset time intervals; and restarting the process corresponding to the APP when the APP is not in the survival state.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when an application program APP is started, judging whether the APP starts a notification bar reading permission;
if the APP does not start the reading permission of the notification bar, prompting a user to start the reading permission of the notification bar;
when the application program APP is started, the step of judging whether the APP starts the notification bar reading permission specifically comprises the following steps:
when the APP is started, acquiring configuration information of the APP from a registry;
judging whether the APP has a function of using a notification bar reading permission or not according to the configuration information of the APP;
and if the APP has the function of using the notification bar reading permission, calling a preset Application Programming Interface (API) to judge whether the APP starts the notification bar reading permission.
10. A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a process keep-alive method, the method comprising:
when an application program APP is started, judging whether the APP starts a notification bar reading permission;
if the APP does not start the reading permission of the notification bar, prompting a user to start the reading permission of the notification bar;
when the application program APP is started, the step of judging whether the APP starts the notification bar reading permission specifically comprises the following steps:
when the APP is started, acquiring configuration information of the APP from a registry;
judging whether the APP has a function of using a notification bar to read permission or not according to the configuration information of the APP;
and if the APP has the function of using the notification bar reading permission, calling a preset Application Programming Interface (API) to judge whether the APP starts the notification bar reading permission.
CN201811603530.XA 2018-12-26 2018-12-26 Process keep-alive method, device, electronic equipment and medium Active CN109669730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811603530.XA CN109669730B (en) 2018-12-26 2018-12-26 Process keep-alive method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811603530.XA CN109669730B (en) 2018-12-26 2018-12-26 Process keep-alive method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN109669730A CN109669730A (en) 2019-04-23
CN109669730B true CN109669730B (en) 2022-05-06

Family

ID=66147624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811603530.XA Active CN109669730B (en) 2018-12-26 2018-12-26 Process keep-alive method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN109669730B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674490B (en) * 2019-08-29 2022-03-15 维沃移动通信有限公司 Application permission display method and device and mobile terminal
CN110688319B (en) * 2019-09-30 2023-05-02 RealMe重庆移动通信有限公司 Application keep-alive capability test method and related device
CN112925582A (en) * 2021-02-22 2021-06-08 深圳依时货拉拉科技有限公司 Method for improving background survival rate of application program under android system and mobile terminal
CN113656105B (en) * 2021-08-19 2024-02-23 天津车之家数据信息技术有限公司 Keep-alive processing method for enterprise application, mobile terminal and storage medium
CN115484343A (en) * 2022-09-08 2022-12-16 上海术理智能科技有限公司 Method for preventing data transmission loss of android mobile phone and Bluetooth device based on WeChat applet

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260671A (en) * 2015-09-11 2016-01-20 北京金山安全软件有限公司 Control method and device for notification bar of mobile terminal and mobile equipment
CN105354492A (en) * 2015-10-16 2016-02-24 珠海格力电器股份有限公司 Mobile communication terminal, message notification control method and device thereof
CN106648863A (en) * 2016-12-08 2017-05-10 武汉斗鱼网络科技有限公司 Live keeping method and system of Android application installation package and application target process
CN106648861A (en) * 2016-12-05 2017-05-10 广州优视网络科技有限公司 Method and device for keeping background service process activated
CN106686056A (en) * 2016-11-25 2017-05-17 济南中维世纪科技有限公司 Android client communication device and method allowing Android client communication device to connect and communicate with server
CN106933660A (en) * 2017-02-17 2017-07-07 广州启生信息技术有限公司 The implementation method of application process keep-alive under a kind of Android platform
CN107463435A (en) * 2017-07-31 2017-12-12 广东欧珀移动通信有限公司 Application process priority management method, apparatus, storage medium and electronic equipment
CN107885569A (en) * 2017-11-16 2018-04-06 口碑(上海)信息技术有限公司 Based on the PUSH message method of reseptance and device for listening monotype
CN108459902A (en) * 2018-01-24 2018-08-28 北京三快在线科技有限公司 Method, apparatus and electronic equipment for order-processing business

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2677504A1 (en) * 2008-09-03 2010-03-03 Dundas Data Visualization, Inc. Systems and methods for providing security for software applications
CN101557584A (en) * 2009-05-14 2009-10-14 中兴通讯股份有限公司 Method for realizing application authority control of mobile terminal and device
CN105303087B (en) * 2015-11-26 2018-01-09 中国农业银行股份有限公司 A kind of user right information update method and device
CA2994190A1 (en) * 2015-12-28 2017-07-06 Dexcom, Inc. Wearable apparatus for continuous blood glucose monitoring
CN106096425A (en) * 2016-06-06 2016-11-09 北京金山安全软件有限公司 System permission starting method, device and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260671A (en) * 2015-09-11 2016-01-20 北京金山安全软件有限公司 Control method and device for notification bar of mobile terminal and mobile equipment
CN105354492A (en) * 2015-10-16 2016-02-24 珠海格力电器股份有限公司 Mobile communication terminal, message notification control method and device thereof
CN106686056A (en) * 2016-11-25 2017-05-17 济南中维世纪科技有限公司 Android client communication device and method allowing Android client communication device to connect and communicate with server
CN106648861A (en) * 2016-12-05 2017-05-10 广州优视网络科技有限公司 Method and device for keeping background service process activated
CN106648863A (en) * 2016-12-08 2017-05-10 武汉斗鱼网络科技有限公司 Live keeping method and system of Android application installation package and application target process
CN106933660A (en) * 2017-02-17 2017-07-07 广州启生信息技术有限公司 The implementation method of application process keep-alive under a kind of Android platform
CN107463435A (en) * 2017-07-31 2017-12-12 广东欧珀移动通信有限公司 Application process priority management method, apparatus, storage medium and electronic equipment
CN107885569A (en) * 2017-11-16 2018-04-06 口碑(上海)信息技术有限公司 Based on the PUSH message method of reseptance and device for listening monotype
CN108459902A (en) * 2018-01-24 2018-08-28 北京三快在线科技有限公司 Method, apparatus and electronic equipment for order-processing business

Also Published As

Publication number Publication date
CN109669730A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN109669730B (en) Process keep-alive method, device, electronic equipment and medium
EP3188066B1 (en) A method and an apparatus for managing an application
US9886264B2 (en) Method and device for upgrading firmware
EP2991275B1 (en) Making router management application compatible with router firmware
US9800666B2 (en) Method and client terminal for remote assistance
CN107357613B (en) Application updating method and device and computer readable storage medium
CN105808305B (en) Static resource loading method and device
CN106126025B (en) Interactive method and device for copying and pasting
EP3276974A1 (en) Video sharing method and apparatus, computer program and recording medium
CN110704054A (en) Method and device for accessing target application program through applet, electronic equipment and storage medium
WO2018018361A1 (en) Calendar event creating method and device
CN108446226B (en) Application exception processing method
CN106990984B (en) Method and device for updating system
CN107436782B (en) Application silent installation method and device
CN106201738B (en) System broadcast calling method and device
CN105786561B (en) Method and device for calling process
CN107193446B (en) Image processing method, device, terminal and storage medium
CN107103231B (en) Method and device for installing and managing application
CN107395724B (en) Network request method and device
CN107422954B (en) Lock screen prolonging method and device
CN109246322B (en) Information processing method and system
CN111142939B (en) Application program processing method and device
CN107241432B (en) Message receiving method and device, electronic equipment and computer storage medium
CN110928595B (en) Authority operation method and device
CN113805978A (en) Authority display method, device and storage medium

Legal Events

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