CN109445917B - Application processing method and device, electronic equipment and computer readable storage medium - Google Patents

Application processing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN109445917B
CN109445917B CN201811202734.2A CN201811202734A CN109445917B CN 109445917 B CN109445917 B CN 109445917B CN 201811202734 A CN201811202734 A CN 201811202734A CN 109445917 B CN109445917 B CN 109445917B
Authority
CN
China
Prior art keywords
application
frozen
binder communication
identification information
synchronization
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
CN201811202734.2A
Other languages
Chinese (zh)
Other versions
CN109445917A (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.)
Zeku Technology Shanghai Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811202734.2A priority Critical patent/CN109445917B/en
Publication of CN109445917A publication Critical patent/CN109445917A/en
Application granted granted Critical
Publication of CN109445917B publication Critical patent/CN109445917B/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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • G06F9/524Deadlock detection or avoidance
    • 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/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/543Local

Landscapes

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

Abstract

The application relates to an application processing method and device, an electronic device and a computer readable storage medium. The method comprises the following steps: when an application freezing instruction is detected, acquiring an application to be frozen; judging whether the application to be frozen is in a synchronous binder communication state or not; and when the application to be frozen is judged to be in the synchronous binder communication state, controlling the application to be frozen not to respond to the application freezing instruction. The method and the device have the advantages that the application in the synchronous binder communication state is prevented from being frozen in the operation process of the electronic equipment, the normal operation of the electronic equipment is ensured, and the stability of a freezing mechanism is improved.

Description

Application processing method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to an application processing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
Many different applications are usually installed on the electronic device, and in the running process of the electronic device, when a user needs to perform a freezing operation on the application after the application is started, the application is usually directly frozen. In practical applications, when the application is directly frozen, the electronic device may have an abnormal operation condition, for example, a deadlock or other unpredictable results may occur in a system of the electronic device.
Disclosure of Invention
The embodiment of the application processing method and device, the electronic equipment and the computer readable storage medium can ensure that after the application is frozen, the normal operation of the electronic equipment is not affected, and the stability of a freezing mechanism is improved.
A method of application processing, the method comprising:
when an application freezing instruction is detected, acquiring an application to be frozen;
judging whether the application to be frozen is in a synchronous binder communication state or not;
and when the application to be frozen is judged to be in the synchronous binder communication state, controlling the application to be frozen not to respond to the application freezing instruction.
An application processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring the application to be frozen when the application freezing instruction is detected;
the judging module is used for judging whether the application to be frozen is in a synchronous binder communication state or not;
and the response module is used for controlling the application to be frozen not to execute the application freezing instruction when the application to be frozen is judged to be in the synchronous binder communication state.
An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
when an application freezing instruction is detected, acquiring an application to be frozen;
judging whether the application to be frozen is in a synchronous binder communication state or not;
and when the application to be frozen is judged to be in the synchronous binder communication state, controlling the application to be frozen not to respond to the application freezing instruction.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when an application freezing instruction is detected, acquiring an application to be frozen;
judging whether the application to be frozen is in a synchronous binder communication state or not;
and when the application to be frozen is judged to be in the synchronous binder communication state, controlling the application to be frozen not to respond to the application freezing instruction.
According to the application processing method and device, the electronic device and the computer-readable storage medium, when an application freezing instruction is detected, the application to be frozen which needs to be frozen is firstly obtained and identified, then whether the application to be frozen responds to the received application freezing instruction is determined by judging whether the state information of the application to be frozen is in a synchronous binder communication state, and finally the received application freezing instruction is not responded when the state of the application to be frozen is judged to be in the synchronous binder communication state. The method and the device have the advantages that the application in the synchronous binder communication state is prevented from being frozen in the operation process of the electronic equipment, the normal operation of the electronic equipment is ensured, and the stability of a freezing mechanism is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an application environment in which a processing method is applied in one embodiment;
FIG. 2 is a flow diagram illustrating an exemplary implementation of a processing method;
FIG. 3 is a flow diagram that illustrates steps performed in one embodiment to determine the status of an application to be frozen;
FIG. 4 is a flow diagram that illustrates steps in one embodiment for determining a state of a process in an application to be frozen;
FIG. 5 is a schematic flow chart of an application processing method in another embodiment;
FIG. 6 is a block diagram showing an example of the structure of an application processing apparatus;
FIG. 7 is a block diagram showing the structure of an electronic apparatus according to an embodiment;
fig. 8 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
FIG. 1 is a diagram illustrating an application environment in which a processing method is applied in one embodiment. As shown in fig. 1, the application environment includes an electronic device 100. When the electronic device 100 detects an application freezing instruction, acquiring an application to be frozen, then judging whether the application to be frozen is in a synchronous binder communication state, and when the application to be frozen is judged to be in the synchronous binder communication state, controlling the application to be frozen not to respond to the application freezing instruction by the electronic device 100; when it is determined that the application to be frozen is not in the synchronization binder communication state, the electronic device 100 controls the application to be frozen to respond to the application freezing instruction, so that the application to be frozen enters the frozen state. The electronic device 100 may be, but is not limited to, various smart phones, personal computers, notebook computers, tablet computers, and portable wearable devices.
FIG. 2 is a flow diagram illustrating an application processing method in one embodiment. The process processing method in this embodiment is described by taking the electronic device in fig. 1 as an example, and includes the following steps:
step 202, when an application freezing instruction is detected, acquiring an application to be frozen.
The application freezing instruction is a control instruction used for controlling the electronic equipment to freeze the corresponding application. Generally, freeze refers to controlling an application to stop running.
Specifically, when the electronic device detects an application freezing instruction, an application to be frozen, which needs to be frozen, is acquired, so as to determine the application, which needs to be controlled to perform process freezing currently. The triggering mode of the application freeze instruction is not limited, and the application freeze instruction may be an instruction generated by detecting a triggering operation of a user, or an application freeze instruction triggered by the electronic device according to the running state of the electronic device. When the electronic device detects that an application freezing instruction is triggered, acquiring a feature identifier for determining an application which needs to be frozen currently, wherein the feature identifier may be application identifier information corresponding to the application. The application identification information is information for uniquely identifying an application identity. The application identification information may include one or more of numbers, characters, and letters.
And step 204, judging whether the application to be frozen is in a synchronous binder communication state.
The binder is mainly used to implement inter-Process communication, and a Process (Process) is a running activity of a program in a computer on a data set, is a basic unit for resource allocation and scheduling of a system, and is the basis of an operating system structure. The synchronous binder communication state refers to a state in which an application needs to perform information interaction with other applications to complete transmission of data information, and a state other than the synchronous binder communication state is an asynchronous binder communication state.
Specifically, after acquiring and determining the application to be frozen, which needs to be frozen, the electronic device does not directly freeze the application to be frozen, but needs to determine the running state of the application to determine whether the application to be frozen can be frozen, and specifically, the determination may be based on determining whether the application to be frozen is in a synchronous binder communication state. That is, when the application to be frozen is acquired, the running state information of the application to be frozen is acquired to judge whether the application to be frozen is in the synchronization binder communication state.
In practical application, when the application to be frozen runs in the electronic device, there is usually more than one process, and when the electronic device determines the state information of the application to be frozen, it determines whether the application to be frozen is in the synchronous binder communication state according to the process states of all the processes of the application to be frozen.
For one process included in the application to be frozen, in the running process of the application to be frozen, the corresponding state of the application to be frozen may be different according to the actual running requirement of the application to be frozen, wherein the running of the application to be frozen is actually transmission of data information, and when data transmission is performed, the data transmission mode of the process includes two modes, one mode is that the data information transmission is directly performed without receiving feedback information of other processes or applications, and the other mode is that the data information transmission can be completed according to information feedback of other processes or applications. When the process is in the running process, feedback information of another application needs to be received to realize data information transmission, and when the application to which the process belongs is frozen, the data transmission of the process is interrupted, namely the data transmission is disconnected; when the process does not need to directly transmit data information according to information feedback of other applications or processes or is only used for receiving the data information, the application to which the process belongs is frozen when the process completes the transmission of the data information, and the data transmission is not influenced. In this embodiment, the synchronization binder communication state is that when data transmission is performed, feedback of response by other applications or processes is needed to further complete transmission of subsequent data.
And step 206, controlling the application to be frozen not to respond to the application freezing instruction when the application to be frozen is judged to be in the synchronous binder communication state.
Specifically, the electronic device determines whether the application to be frozen is in the synchronous binder communication state by judging, and controls the application to be frozen not to respond to the received application freezing instruction when the application to be frozen is determined to be in the synchronous binder communication state by judging.
In practical application, the electronic device does not respond to all application freezing instructions, and responds to the application freezing instructions which do not affect the operation of the electronic device after responding, wherein the response is to freeze the application to be frozen. In this embodiment, the electronic device determines whether to control the application to be frozen to respond to the received application freezing instruction according to the state of the application to be frozen by acquiring the state of the application to be frozen.
In addition, when the application to be frozen is judged and determined not to be in the synchronous binder communication state, the application to be frozen is controlled to respond to the received application freezing instruction so as to freeze the application to be frozen.
Optionally, after the application to be frozen finishes freezing, the method further includes: when receiving information carrying a short-time unfreezing instruction, controlling the application to be frozen to unfreeze so as to respond to the information, and controlling the application to be frozen to enter a frozen state again when the response is finished; or when an input unfreezing instruction is received, the application to be frozen is controlled to be unfrozen.
The short-time unfreezing instruction is used for controlling the frozen application to unfreeze for a short time and enter the frozen state again after the response is completed. And when the received information is identified to contain the application short-time thawing instruction, controlling the corresponding application to thaw and responding to the received information.
Specifically, after the application to be frozen is frozen, when the received information sent by the other applications includes information that needs the application to respond, the application to be frozen is thawed according to a short thawing instruction carried in the information, so that the application to be frozen responds to the received information, and enters the frozen state again after the response is received. For the application after entering the frozen state, the complete unfreezing of the application to be frozen can be completed only by the user through corresponding operation.
In the application processing method in this embodiment, when an application freezing instruction is detected, an application to be frozen that needs to be frozen is first acquired and identified, then whether the application to be frozen is controlled to respond to the received application freezing instruction is determined by determining whether state information of the application to be frozen is a synchronous binder communication state, and finally, when it is determined that the state of the application to be frozen is the synchronous binder communication state, the received application freezing instruction is not responded. The method and the device have the advantages that the application in the synchronous binder communication state is prevented from being frozen in the operation process of the electronic equipment, the normal operation of the electronic equipment is ensured, and the stability of a freezing mechanism is improved.
As shown in fig. 3, in an embodiment, the application processing method provided by the present invention may further include a process of determining whether the application to be frozen is in a synchronization binder communication state, specifically including:
step 302, a synchronization binder communication list is obtained.
The synchronization binder communication list is used for storing characteristic information of an application or a process in a synchronization binder communication state, the characteristic information comprises identification information, the identification information comprises application identification information corresponding to the application and process identification information corresponding to the process, and the process identification information can be characters, and can also be number numbers, characters, letters and the like. All applications or processes in the synchronization binder communication state are stored in the synchronization binder communication list.
Specifically, when determining whether the application to be frozen, which needs to be frozen, is in the synchronization binder communication state, a corresponding determination basis is needed, and therefore, a synchronization binder communication list for storing the application storage state needs to be acquired, and then, whether the application to be frozen is allowed to be frozen is determined according to data information stored in the synchronization binder communication list.
Optionally, in an embodiment, the obtaining the synchronization binder communication list specifically includes:
step a, calling corresponding kernel equipment, and calling a corresponding freezing interface based on the kernel equipment.
And b, acquiring a corresponding synchronous binder communication list based on the freezing interface.
Specifically, when the synchronization binder communication list is acquired, since the application is in the application layer of the system of the electronic device and the synchronization binder communication list is in the kernel layer of the electronic device when the freezing is performed, the electronic device first needs to enter the kernel layer and then can acquire the synchronization binder communication list. Because the application layer and the kernel layer can not directly communicate, when the synchronization binder communication list is obtained, the corresponding kernel device is called first, then the corresponding freezing interface is called from the corresponding binder device according to the obtained kernel device, and then the corresponding synchronization binder communication list is obtained from the binder device.
Step 304, querying the synchronization binder communication list, and determining whether a process included in the application to be frozen exists in the synchronization binder communication list.
When an application runs in an electronic device, actually, a process related to the application executes a corresponding instruction in the electronic device, and the number of processes corresponding to one application is usually multiple.
Specifically, when the synchronization binder communication list is obtained, the synchronization binder communication list is queried based on the application to be frozen, so as to determine whether a process included in the application to be frozen exists in the synchronization binder communication list.
Because one application completes normal operation by mutual cooperation of a plurality of different processes in the operation process, the operation states of the different processes are different, when judging whether the application to be frozen is in the synchronous binder communication state, the application to be frozen is not in the synchronous binder communication state only when all the processes of the application to be frozen are not in the synchronous binder communication state according to whether all the processes included in the application to be frozen are in the synchronous binder communication state.
In this embodiment, the synchronization binder communication list is queried according to the feature identifier of the application to be frozen, so as to determine whether the synchronization binder communication list includes the feature identifier of the application to be frozen, and further determine whether the application to be frozen is in the synchronization binder communication state, where the feature identifier may be application identification information of the application to be frozen or process identification information of a process associated with the application to be frozen.
Step 306, determining whether the application to be frozen is in a synchronous binder communication state or not based on the result obtained by the query.
Specifically, after the query is performed, whether the application to be frozen is in the synchronization binder communication state is determined according to the obtained query result, wherein if all the processes are not in the synchronization binder communication state, the application to be frozen is not in the synchronization binder communication state, and if one process exists in all the processes, the application to be frozen is in the synchronization binder communication state.
When the application to be frozen is in the synchronous binder communication state, if the application is forcedly frozen, unpredictable abnormal results can occur to the system of the electronic equipment, and the normal operation of the electronic equipment is affected. The application can be frozen only when all processes of the application are not in the synchronous binder communication state, namely the application runs independently in the electronic equipment and does not need other applications or processes to respond.
As shown in fig. 4, in an embodiment, the providing an application processing method may further include a process of querying in the synchronization binder communication list and determining whether a process included in the application to be frozen exists in the synchronization binder communication list, which specifically includes:
step 402, obtaining application identification information of the application to be frozen, and determining process identification information of a process corresponding to the application to be frozen based on the application identification information.
The application identification information is an identity of the application to be frozen, and may be a character, a number, a letter which can be used for identity marking, and the like, but the application to be frozen needs to be accurately identified. The process identification information is an identification of the process, and may also be a character, a number, and other letters that can be used for identification.
Specifically, when determining whether a process included in the application to be frozen exists in the synchronization binder communication list, first obtaining and identifying application identification information corresponding to the application to be frozen, and then obtaining process identification information associated with the application to be frozen according to the application identification information of the application to be frozen.
When determining whether the application to be frozen is in the synchronous binder communication state, the state information of all processes included in the application to be frozen needs to be detected and judged, and then the state information of the application to be frozen can be judged and determined. In this embodiment, first, application identification information of an application to be frozen is obtained, and then process identification information of a process associated with the application to be frozen is obtained according to the application identification information, it should be noted that when the process identification information is actually obtained, the process identification information of the process in the running state is mainly obtained, and the process identification information of the process running in the electronic device is obtained according to the identification information of the application to be frozen.
Step 404, based on the process identification information, querying and matching in the synchronization binder communication list, and determining whether the synchronization binder communication list contains the process identification information.
Specifically, after the process identification information associated with the application to be frozen is obtained, query matching is performed in the synchronization binder communication list to determine whether the process included in the application to be frozen exists in the synchronization binder communication list, that is, whether the process included in the application to be frozen is included in the synchronization binder communication list is determined.
The synchronization binder communication list stores process identification information corresponding to processes for performing synchronization binder communication, and the process identification information of the processes contained in the application to be frozen is matched with the synchronization binder communication list to determine whether the application to be frozen has the processes in the synchronization binder communication list. The information stored in the synchronous binder communication list can be classified correspondingly, for example, processes belonging to the same application are classified into one class, the corresponding class information is the identification information of the application, and then different processes correspond to unique corresponding identification information, so that when the query is performed, the query range is firstly narrowed according to the identification information of the application, and the query matching is rapidly completed.
As shown in fig. 5, in one embodiment, providing an application processing method may further include:
step 502, when it is detected that the first process enters the synchronization binder communication state, acquiring first process identification information corresponding to the first process, and storing the first process identification information in a synchronization binder communication list.
The synchronization binder communication list stores process identification information of a process in a synchronization binder communication state, and also stores application identification information corresponding to the process.
Specifically, when the relevant information is stored in the synchronization binder communication list, the corresponding processing is performed by detecting the state information of the process running in the electronic device. When the first process is detected to enter a synchronous binder communication state, first process identification information corresponding to the first process is obtained, and then the first process identification is stored in a synchronous binder communication list. When the first process identification information is stored in the synchronization binder communication list, in addition to acquiring and storing the first process identification information, the application identification information of the first application to which the first process belongs and the process identification information can be associated and then stored in the synchronization binder communication list, that is, corresponding classification can be performed according to different applications during storage, and in addition, when the first process identification information is stored, the processes performing synchronization binder communication in the first process can be stored together.
Step 504, when detecting that the running state of the second process is changed from the synchronous binder communication state to the asynchronous binder communication state, acquiring second process identification information corresponding to the second process, and deleting the second process identification information from the synchronous binder communication list.
The electronic equipment stores the process identification information of the process entering the synchronous binder communication state in the synchronous binder communication list, and also deletes the process identification information of the process changing the state information from the synchronous binder communication state to the asynchronous binder communication state from the synchronous binder communication list, wherein the asynchronous binder communication state is an opposite operation state of the synchronous binder communication state.
Specifically, for a second process already existing in the synchronization binder communication list, when it is detected that the running state of the first process is changed from the synchronization binder communication state to the asynchronous binder communication state, second process identification information corresponding to the second process is acquired, so that the second process identification information is deleted from the synchronization binder communication list. That is, when the running state is changed and the synchronization binder communication state is no longer in the synchronous binder communication state, the process identification information of the corresponding process is deleted from the synchronous binder communication list, so that the process identification information of the process does not exist in the synchronous binder communication list.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
As shown in fig. 6, in one embodiment, there is provided an application processing apparatus including:
an obtaining module 610, configured to obtain an application to be frozen when an application freezing instruction is detected;
the judging module 620 is configured to judge whether the application to be frozen is in a synchronization binder communication state;
and the response module 630 is configured to, when it is determined that the application to be frozen is in the synchronization binder communication state, control the application to be frozen not to execute the application freezing instruction.
In one embodiment, a determination module is provided that further comprises a list acquisition module, a query determination module, and a result determination module. The list acquisition module is used for acquiring a synchronous binder communication list; the query determining module is used for determining whether a process contained in the application to be frozen exists in the synchronous binder communication list or not based on the synchronous binder communication list; and the result determining module is used for determining whether the application to be frozen is in a synchronous binder communication state or not based on the query result.
In one embodiment, a list obtaining module is provided, which further includes an interface calling unit and a list obtaining unit. The interface calling unit is used for calling corresponding kernel equipment and calling a corresponding freezing interface based on the kernel equipment; the list acquisition unit is used for acquiring a corresponding synchronous binder communication list based on the freezing interface.
In one embodiment, a query determination module is provided that further comprises an identification obtaining unit and a query matching unit. The system comprises an identification acquisition unit, a storage unit and a processing unit, wherein the identification acquisition unit is used for acquiring application identification information of an application to be frozen and determining process identification information of a process corresponding to the application to be frozen based on the application identification information; and the query matching unit is used for querying and matching in the synchronization binder communication list based on the process identification information and determining whether the synchronization binder communication list contains the process identification information.
In one embodiment, a result determination module is further provided for determining that the application to be frozen is in the synchronization binder communication state when the process identification information exists in the synchronization binder communication list; and when the process identification information does not exist in the synchronous binder communication list, determining that the application to be frozen is not in the synchronous binder communication state.
In one embodiment, the application processing device further comprises a storage module and a deletion module. The storage module is used for acquiring first process identification information corresponding to the first process when the first process is detected to enter a synchronous binder communication state, and storing the first process identification information in a synchronous binder communication list; and the deleting module is used for acquiring the second process identification information corresponding to the second process and deleting the second process identification information from the synchronous binder communication list when detecting that the running state of the second process is changed from the synchronous binder communication state to the asynchronous binder communication state.
In one embodiment, a response module is further provided for controlling the application to be frozen to respond to the application freezing instruction when it is determined that the application to be frozen is not in the synchronization binder communication state.
In one embodiment, a device for application processing is provided that further comprises a thawing module. The unfreezing module is used for controlling the unfreezing of the application to be frozen to respond to the information when the information carrying the short unfreezing instruction is received, and controlling the application to be frozen to enter the frozen state again when the response is finished; or when an input unfreezing instruction is received, the application to be frozen is controlled to be unfrozen.
The division of the modules in the application processing apparatus is only for illustration, and in other embodiments, the application processing apparatus may be divided into different modules as needed to complete all or part of the functions of the application processing apparatus.
For the specific limitations of the application processing device, reference may be made to the limitations of the application processing method above, and details are not repeated here. The modules in the application processing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 7, a schematic diagram of an internal structure of an electronic device is provided. The electronic device includes a processor, a memory, and a network interface connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory is used for storing data, programs, and/or instruction codes, and the like, and at least one computer program is stored on the memory, and the computer program can be executed by the processor to realize the application processing method suitable for the electronic device provided in the embodiment of the application. The Memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random-Access-Memory (RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a database, and a computer program. The database stores data related to implementing an application processing method provided in the following embodiments, such as the name of each application, the time length of each application being frozen or thawed, and the preset state switching time length of each application. The computer program can be executed by a processor to implement an application processing method provided by various embodiments of the present application. The internal memory provides a cached operating environment for the operating system, databases, and computer programs in the non-volatile storage medium. The network interface may be an ethernet card or a wireless network card, etc. for communicating with an external electronic device, such as a server.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the electronic devices to which the subject application may be applied, and that a particular electronic device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The implementation of each module in the application processing apparatus provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored on the memory of the terminal or the server. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides the electronic equipment. As shown in fig. 8, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the electronic device as the mobile phone as an example:
fig. 8 is a block diagram of a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 8, the handset includes: radio Frequency (RF) circuitry 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuitry 860, wireless fidelity (WiFi) module 870, processor 880, and power supply 890. Those skilled in the art will appreciate that the handset configuration shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink information of a base station and then process the downlink information to the processor 880; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 800. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, which may also be referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 or near the touch panel 831 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 831 can include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 840 may include a display panel 841. In one embodiment, the Display panel 841 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, touch panel 831 can overlay display panel 841, and when touch panel 831 detects a touch operation thereon or nearby, communicate to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 based on the type of touch event. Although in fig. 8, the touch panel 831 and the display panel 841 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 800 may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or the backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
The audio circuitry 860, speaker 861 and microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is received by the audio circuit 860 and converted into audio data, and then the audio data is output to the processor 880 for processing, and then the audio data may be transmitted to another mobile phone through the RF circuit 810, or the audio data may be output to the memory 820 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 870, and provides wireless broadband Internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it is not an essential component of cell phone 800 and may be omitted as desired.
The processor 880 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone. In one embodiment, processor 880 may include one or more processing units. In one embodiment, the processor 880 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The cell phone 800 also includes a power supply 890 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 880 via a power management system that may be used to manage charging, discharging, and power consumption.
In one embodiment, the cell phone 800 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, the electronic device includes a processor 880 which implements the steps of the application processing method when executing the computer program stored on the memory.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the application processing method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform an application processing method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. An application processing method, comprising:
when an application freezing instruction is detected, acquiring an application to be frozen;
judging whether the application to be frozen is in a synchronous binder communication state or not;
when the application to be frozen is judged to be in the synchronous binder communication state, controlling the application to be frozen not to respond to the application freezing instruction;
when the application to be frozen is judged not to be in the synchronous binder communication state, controlling the application to be frozen to respond to the application freezing instruction;
the judging whether the application to be frozen is in a synchronous binder communication state comprises the following steps:
acquiring a synchronous binder communication list;
inquiring the synchronous binder communication list, and determining whether a process contained in the application to be frozen exists in the synchronous binder communication list or not;
and determining whether the application to be frozen is in a synchronous binder communication state or not based on the query result.
2. The method of claim 1, wherein obtaining the synchronization binder communication list comprises:
calling corresponding kernel equipment, and calling a corresponding freezing interface based on the kernel equipment;
and acquiring a corresponding synchronous binder communication list based on the freezing interface.
3. The method according to claim 2, wherein said querying the synchronization binder communication list to determine whether a process included in the application to be frozen exists in the synchronization binder communication list comprises:
acquiring application identification information of the application to be frozen, and determining process identification information of a process corresponding to the application to be frozen based on the application identification information;
inquiring and matching in the synchronization binder communication list based on the process identification information, and determining whether the synchronization binder communication list contains the process identification information;
wherein, the determining whether the application to be frozen is in a synchronization binder communication state based on the query result includes:
when the process identification information exists in the synchronous binder communication list, determining that the application to be frozen is in a synchronous binder communication state; and
and when the process identification information does not exist in the synchronization binder communication list, determining that the application to be frozen is not in the synchronization binder communication state.
4. The method according to any one of claims 1 to 3, further comprising:
when detecting that a first process enters a synchronous binder communication state, acquiring first process identification information corresponding to the first process, and storing the first process identification information in a synchronous binder communication list;
and when the running state of the second process is detected to be changed from the synchronous binder communication state to the asynchronous binder communication state, acquiring second process identification information corresponding to the second process, and deleting the second process identification information from the synchronous binder communication list.
5. The method according to claim 1, wherein after said controlling the application to be frozen to respond to the application freezing instruction when it is determined that the application to be frozen is not in the synchronization binder communication state, the method further comprises:
when receiving information carrying a short-time unfreezing instruction, controlling the application to be frozen to unfreeze so as to respond to the information, and controlling the application to be frozen to enter a frozen state again when the response is finished; or
And when an input unfreezing instruction is received, controlling the application to be frozen to unfreeze.
6. An application processing apparatus, comprising:
the acquisition module is used for acquiring the application to be frozen when the application freezing instruction is detected;
the judging module is used for judging whether the application to be frozen is in a synchronous binder communication state or not;
the response module is used for controlling the application to be frozen not to execute the application freezing instruction when the application to be frozen is judged to be in a synchronous binder communication state; when the application to be frozen is judged not to be in the synchronous binder communication state, controlling the application to be frozen to respond to the application freezing instruction;
the judging module comprises:
the list acquisition module is used for acquiring a synchronous binder communication list;
the query determining module is used for querying the synchronization binder communication list and determining whether a process contained in the application to be frozen exists in the synchronization binder communication list or not;
and the result determining module is used for determining whether the application to be frozen is in a synchronous binder communication state or not based on the query result.
7. The apparatus of claim 6, wherein the list obtaining module comprises:
the interface calling unit is used for calling corresponding kernel equipment and calling a corresponding freezing interface based on the kernel equipment;
and the list acquisition unit is used for acquiring a corresponding synchronous binder communication list based on the freezing interface.
8. The apparatus of claim 7, wherein the query determination module comprises:
the identification acquisition unit is used for acquiring the application identification information of the application to be frozen and determining the process identification information of the process corresponding to the application to be frozen based on the application identification information;
the query matching unit is used for querying and matching in the synchronization binder communication list based on the process identification information and determining whether the synchronization binder communication list contains the process identification information;
the result determining module is further configured to determine that the application to be frozen is in a synchronization binder communication state when the process identification information exists in the synchronization binder communication list; and
and when the process identification information does not exist in the synchronization binder communication list, determining that the application to be frozen is not in the synchronization binder communication state.
9. The apparatus of any one of claims 6 to 8, further comprising:
the storage module is used for acquiring first process identification information corresponding to a first process when the first process is detected to enter a synchronization binder communication state, and storing the first process identification information in a synchronization binder communication list;
and the deleting module is used for acquiring the second process identification information corresponding to the second process and deleting the second process identification information from the synchronous binder communication list when the operating state of the second process is detected to be changed from the synchronous binder communication state to the asynchronous binder communication state.
10. The apparatus of claim 6, further comprising:
the unfreezing module is used for controlling the application to be frozen to unfreeze to respond to the information when the information carrying the short unfreezing instruction is received, and controlling the application to be frozen to enter a frozen state again when the response is finished; or when an input unfreezing instruction is received, controlling the application to be frozen to unfreeze.
11. An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the application processing method as claimed in any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the application processing method according to any one of claims 1 to 5.
CN201811202734.2A 2018-10-16 2018-10-16 Application processing method and device, electronic equipment and computer readable storage medium Active CN109445917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811202734.2A CN109445917B (en) 2018-10-16 2018-10-16 Application processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811202734.2A CN109445917B (en) 2018-10-16 2018-10-16 Application processing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109445917A CN109445917A (en) 2019-03-08
CN109445917B true CN109445917B (en) 2020-12-01

Family

ID=65546453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811202734.2A Active CN109445917B (en) 2018-10-16 2018-10-16 Application processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109445917B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897586A (en) * 2019-05-06 2020-11-06 中兴通讯股份有限公司 Application state control method, device, terminal and computer readable storage medium
CN110221928B (en) * 2019-06-11 2021-06-04 Oppo广东移动通信有限公司 Information recording method, information recording apparatus, terminal, and storage medium
CN112445586A (en) * 2019-08-29 2021-03-05 中兴通讯股份有限公司 Application management method, device, terminal and readable storage medium
CN110532083A (en) * 2019-09-04 2019-12-03 深圳市思迪信息技术股份有限公司 Timed task dispatching method and device
CN112988375B (en) * 2019-12-17 2024-04-09 华为技术有限公司 Process management method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
WO2018157364A1 (en) * 2017-03-02 2018-09-07 廖建强 Method for freezing application program, and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160180103A1 (en) * 2014-12-18 2016-06-23 Electrolux Home Products, Inc. System, method, apparatus, and computer program product for activating a software functionality on an appliance
CN107066320B (en) * 2017-01-19 2021-06-15 努比亚技术有限公司 Android process freezing and unfreezing device and method
CN106844029B (en) * 2017-01-19 2020-06-30 努比亚技术有限公司 Self-management Android process freezing and unfreezing device and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
WO2018157364A1 (en) * 2017-03-02 2018-09-07 廖建强 Method for freezing application program, and terminal

Also Published As

Publication number Publication date
CN109445917A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN109445917B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN112703714B (en) Application processing method and device, computer equipment and computer readable storage medium
CN107025399B (en) Unlocking control method and related product
CN109144232B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN108733337B (en) Screen display method and device, electronic equipment and computer readable storage medium
CN107172267B (en) Fingerprint identification control method and related product
CN108549698B (en) File processing method and device, mobile terminal and computer readable storage medium
CN107423601B (en) Fingerprint identification control method, fingerprint identification control device, fingerprint identification control terminal, fingerprint identification control storage medium and computer product
CN109992364B (en) Application freezing method and device, computer equipment and computer readable storage medium
CN107193472B (en) Unlocking control method and related product
CN108509788B (en) Information sharing method and device, computer readable storage medium and terminal
CN109992425B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN110018886B (en) Application state switching method and device, electronic equipment and readable storage medium
CN106020945B (en) Shortcut item adding method and device
CN108256466B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN110753914A (en) Information processing method, storage medium and mobile terminal
CN112997507B (en) Audio system control method, device, terminal and computer readable storage medium
CN108513005B (en) Contact person information processing method and device, electronic equipment and storage medium
CN109375995B (en) Application freezing method and device, storage medium and electronic equipment
CN108804434B (en) Message query method, server and terminal equipment
CN109992360B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN109992395B (en) Application freezing method and device, terminal and computer readable storage medium
CN109992362B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN110602766A (en) Personal hotspot identification method and method for determining association relationship between terminals
CN107197086B (en) Unlocking control method and related product

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210611

Address after: Room 01, 8th floor, No.1 Lane 61, shengxia Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 200120

Patentee after: Zheku Technology (Shanghai) Co., Ltd

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: OPPO Guangdong Mobile Communications Co.,Ltd.