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

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

Info

Publication number
CN109445917A
CN109445917A CN201811202734.2A CN201811202734A CN109445917A CN 109445917 A CN109445917 A CN 109445917A CN 201811202734 A CN201811202734 A CN 201811202734A CN 109445917 A CN109445917 A CN 109445917A
Authority
CN
China
Prior art keywords
freeze
application
synchronous
communications status
binder
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811202734.2A
Other languages
Chinese (zh)
Other versions
CN109445917B (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

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)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

This application involves a kind of application processing methods and device, electronic equipment, computer readable storage medium.This method comprises: obtaining when detecting using instruction is freezed wait freeze to apply;Whether judgement is described wait freeze using in synchronous binder communications status;When judgement is described when freezing using in the synchronous binder communications status, control is described wait freeze to freeze to instruct using being not responding to the application.It realizes in the operational process of electronic equipment, avoids and freeze the application in synchronous binder communications status, guarantee the normal operation of electronic equipment, improve the stability for freezing mechanism.

Description

Application processing method and device, electronic equipment, computer readable storage medium
Technical field
This application involves field of terminal technology, more particularly to a kind of application processing method, device, electronic equipment, calculating Machine readable storage medium storing program for executing.
Background technique
It is usually mounted with many different applications on an electronic device, in the operational process of electronic equipment, using being opened When user needs to carry out freeze operation to application after opening, usually directly freezed.It is this directly to be freezed Mode, which can be very good to realize, freezes application, however in practical applications, when directly will be using being freezed, electronics be set There are deadlock or other unpredictable consequences in the case where in the presence of being operating abnormally, such as the system that will lead to electronic equipment.
Summary of the invention
The embodiment of the present application provides a kind of application processing method, device, electronic equipment, computer readable storage medium, can After ensuring that correspondence is finished into freeze operation, the normal operation of electronic equipment is not influenced, improves the stability for freezing mechanism.
A kind of application processing method, which comprises
When detecting using instruction is freezed, obtain wait freeze to apply;
Whether judgement is described wait freeze using in synchronous binder communications status;
When judgement is described when freezing using in the synchronous binder communications status, control is described wait freeze using not The application is responded to freeze to instruct.
A kind of to apply processing unit, described device includes:
Module is obtained, for obtaining wait freeze to apply when detecting using instruction is freezed;
Judgment module, it is described wait freeze using whether in synchronous binder communications status for judging;
Respond module, for when judgement it is described when freezing using in synchronous binder communications status, control it is described to Freeze to freeze to instruct using not executing the application.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor, so that the processor executes following steps:
When detecting using instruction is freezed, obtain wait freeze to apply;
Whether judgement is described wait freeze using in synchronous binder communications status;
When judgement is described when freezing using in the synchronous binder communications status, control is described wait freeze using not The application is responded to freeze to instruct.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized when row:
When detecting using instruction is freezed, obtain wait freeze to apply;
Whether judgement is described wait freeze using in synchronous binder communications status;
When judgement is described when freezing using in the synchronous binder communications status, control is described wait freeze using not The application is responded to freeze to instruct.
Above-mentioned application processing method and device, electronic equipment, computer readable storage medium freeze to refer to detecting to apply When enabling, obtain first and identify freezed wait freeze to apply, then by judge wait freeze application status information It whether is synchronous binder communications status, to determine whether to control wait freeze to freeze to instruct using the received application of response, Finally when judging to determine the state wait freeze application for synchronous binder communications status, it will be not responding to received application Freeze to instruct.Realize in the operational process of electronic equipment, avoid by the application in synchronous binder communications status into Row freezes, and guarantees the normal operation of electronic equipment, improves the stability for freezing mechanism.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the applied environment figure of application processing method in one embodiment;
Fig. 2 is the flow diagram of application processing method in one embodiment;
Fig. 3 is the flow diagram that step judges the state wait freeze application in one embodiment;
Fig. 4 is that step determines the flow diagram wait freeze state of a process in applying in one embodiment;
Fig. 5 is the flow diagram of application processing method in another embodiment;
Fig. 6 is the structural block diagram that processing unit is applied in one embodiment;
Fig. 7 is the structural block diagram of electronic equipment in one embodiment;
Fig. 8 is the schematic diagram of internal structure of electronic equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Fig. 1 is the application environment schematic diagram of application processing method in one embodiment.As shown in Figure 1, the application environment packet Include electronic equipment 100.It detects in electronic equipment 100 and obtains using when freezing instruction wait freeze to apply, then judge wait freeze Using whether in synchronous binder communications status, and judging when freezing using in synchronous binder communications status, electricity Sub- equipment 100 will be controlled to be freezed to instruct wait freeze to apply to be not responding to apply;Synchronous binder is not at wait freeze to apply determining When communications status, electronic equipment 100 will be controlled wait freeze to freeze to instruct using response application, so that freezing wait freeze to apply to enter Knot state.Wherein, electronic equipment 100 can be, but not limited to be various smart phones, personal computer, laptop, plate Computer and portable wearable device.
Fig. 2 is the flow diagram of application processing method in one embodiment.Process handling method in the present embodiment, with It is described for running on the electronic equipment in Fig. 1, this method comprises the following steps:
Step 202, it when detecting using instruction is freezed, obtains wait freeze to apply.
It wherein, is the control instruction freezed for controlling electronic devices to corresponding application using instruction is freezed. Under normal conditions, freeze to refer to that control application is out of service.
Specifically, when electronic equipment detect using freeze instruction when, obtain freezed wait freeze to apply, with Determine the current desired application that control carry out process and freeze.It is unlimited using the triggering mode for freezing instruction, it can be and detect The instruction that the trigger action of user generates, the application that can also be that electronic equipment is triggered according to the operating status of itself are freezed to refer to It enables.When electronic equipment is detected using freezing instruction and being triggered, the feature of application for determining and currently being freezed is obtained Mark, wherein signature identification can be using corresponding application identification information.Application identification information is for unique identification application The information of identity.Application identification information may include one of number, character and letter or a variety of.
Step 204, judge wait freeze using whether in synchronous binder communications status.
Wherein, binder is mainly used to realize interprocess communication, and process (Process) is program in computer about certain Primary operation activity on data acquisition system is the basic unit that system carries out Resource Distribution and Schedule, is operating system configuration Basis.Synchronous binder communications status, which refers to, carries out information exchange using needs and other applications to complete the biography of data information It is asynchronous binder communications status that defeated state, which is not the state of synchronous binder communications status,.
Specifically, electronic equipment obtain and determined freezed wait freeze to apply after, can't be direct It will freeze wait freeze to apply, but need to judge the operating status of application, whether may be used with determining wait freeze to apply To be freezed, and specifically whether judgment basis can be by determining wait freeze using in synchronous binder communication shape State.Namely obtaining wait freeze in application, the running state information wait freeze application is obtained, to judge to be wait freeze to apply It is no to be in synchronous binder communications status.
In practical applications, when freezing using running in the electronic device, the usual more than one of the process for being included, into And electronic equipment treat freeze application status information judged when, be according to wait freeze application all processes process Whether state judges wait freeze using in synchronous binder communications status.
For wait freeze using the one of process for being included, wait freeze to correspond to using in operational process State be may be different according to the actual motion demand wait freeze application, wherein the operation wait freeze application is practical On be a kind of data information transmission, it is a kind of there are two types of the data transfer mode of this process includes and when carrying out data transmission It is the feedback information for not needing to receive other processes or application, but directly carries out the transmission of data information, another kind is to need The transmission of data information can be just completed according to other processes or the information of application feedback.When process in the process of running, The feedback information for needing to receive other application realizes the transmission of data information, then freezing by application belonging to this process When knot, the data transmission of this process will be interrupted, that is, data transmission will will disconnect;And for not needing to be answered according to other When carrying out with the information feedback of perhaps process but directly the transmission of data information or be used only for receiving data information, Application belonging to this process is freezed when this process completes the transmission of data information, shadow will not be transmitted to data It rings.In the present embodiment, synchronous binder communications status is to need other applications or process when carrying out data transmission The feedback responded just can further complete the transmission of follow-up data.
Step 206, it when judging to be in synchronous binder communications status wait freeze to apply, controls and is not responding to wait freeze to apply Using freezing to instruct.
Specifically, electronic equipment synchronizes binder communications status wait freeze to apply whether to be in by judging to determine, and Judge to determine when freezing using in synchronous binder communications status, controls and be not responding to received application wait freeze to apply Freeze to instruct.
In practical applications, electronic equipment is not to freeze instruction to all applications can all respond, for carrying out The application that will not influence electronic equipment operation after response freezes instruction and just will do it response, wherein response is will be wait freeze Using being freezed.In the present embodiment, electronic equipment passes through the state obtained wait freeze application, and then according to wait freeze to apply State determine whether to control wait freeze to freeze to instruct using the received application of response.
In addition, being determined when freezing using synchronous binder communications status is not in judgement, will control wait freeze to apply The received application of response is freezed to instruct, and freezes freezing for application to realize to treat.
Optionally, treat freeze using complete freeze after, further includes: when receive carry it is of short duration thaw instruction When information, control wait freeze using thawing to respond this information, and control when responding and completing wait freeze using again into Enter frozen state;Alternatively, controlling when the defrosting for receiving input instructs wait freeze using defrosting.
Wherein, of short duration instruction of thawing is to carry out of short duration defrosting for controlling frozen application, and after the completion of response again The secondary instruction into frozen state.When receiving the information for carrying of short duration instruction of thawing, the associative processor of electronic equipment Received information is identified, and determining in identification includes to instruct in received information using of short duration defrosting When, it controls corresponding application and thaws and respond received information.
Specifically, after completing to treat and freezing the freezing of application, in the information transmitted by the other application received It, will be wait freeze to apply by being instructed according to of short duration defrosting entrained in information when applying the information responded comprising in need this It thaws, so that freezing wait freeze the information received using response, and completing to be again introduced into after receiving response State.Freezes application for into the application after frozen state, only user could complete to treat by corresponding operation It thaws completely.
Application processing method in the present embodiment, detect using freeze instruction when, obtain first and identify need into Row freeze wait freeze to apply, then by judge wait freeze application status information whether be synchronous binder communications status, To determine whether to control wait freeze to freeze to instruct using the received application of response, finally determine in judgement wait freeze application When state is synchronous binder communications status, it is not responding to received application and freezes to instruct.Realize the fortune in electronic equipment During row, avoids and freezes the application in synchronous binder communications status, guarantee the normal operation of electronic equipment, Improve the stability for freezing mechanism.
As shown in figure 3, in one embodiment, a kind of application processing method provided can also include judging wait freeze to answer With whether in the process for synchronizing binder communications status, specifically include:
Step 302, synchronous binder communication list is obtained.
Wherein, synchronous binder communication list is for storing the application or process that are in synchronous binder communications status Characteristic information, characteristic information includes identification information, and identification information include using corresponding application identification information with And process identity information corresponding to process, process identity information can be text, be also possible to digital number, character and word Mother etc..All applications or process in synchronous binder communications status, can be stored in synchronous binder communication list.
Specifically, freezed when freezing using whether in synchronous binder communications status required for judgement, Corresponding judgment basis is needed, therefore, it is necessary to obtain the synchronization binder communication list for storing application memory state, so Judge whether allow to be frozen wait freeze to apply according to the data information stored in synchronous binder communication list afterwards.
Optionally, in one embodiment, synchronous binder communication list is obtained to specifically include:
Step a, calls corresponding interior nuclear equipment, and freezes interface based on kernel equipment calls are corresponding.
Step b obtains corresponding synchronous binder communication list based on interface is freezed.
Specifically, when obtaining synchronous binder communication list, due to being set using in electronics when carrying out due to freezing Standby systematic difference layer, and the inner nuclear layer that binder communication list is in electronic equipment is synchronized, therefore firstly the need of in entrance Then the acquisition to synchronous binder communication list is may be implemented in stratum nucleare.Since application layer and inner nuclear layer cannot be carried out directly Communication, therefore, when obtaining synchronous binder communication list, first by calling corresponding interior nuclear equipment, then according to gained To interior nuclear equipment called from corresponding binder equipment and freeze interface accordingly, and then obtain and correspond to from binder equipment Synchronization binder communication list.
Step 304, synchronous binder communication list is inquired, is determined in synchronous binder communication list with the presence or absence of wait freeze Using the process for being included.
When wherein, using running in the electronic device, actually executed in the electronic device to using relevant process Corresponding instruction, and the number of a corresponding process of application be usually have it is multiple.
It specifically, will be based on wait freeze to apply in synchronous binder communication column when obtaining synchronous binder communication list It is inquired in table, to determine in synchronous binder communication list with the presence or absence of wait freeze using included process.
Since an application is to cooperate the normal operation of completion by multiple and different processes in the process of running, without Whether same running state of a process would also vary from, judging when freezing using in synchronous binder communications status, It is according to wait freeze whether be in synchronous binder communications status using all processes for being included, only wait freeze application Can be not at synchronous binder communication shape wait freeze to apply just when all processes are not located in synchronous binder communications status State.
In the present embodiment, by being looked into synchronous binder communication list according to the signature identification wait freeze application It askes, determines in synchronous binder communication list whether to include signature identification wait freeze application, and then determine wait freeze to apply Whether in synchronous binder communications status, wherein signature identification can be the application identification information wait freeze application, can also be with Be with wait freeze the process identity information using associated process.
Step 306, binder communications status is synchronized wait freeze to apply whether to be in as a result, determining based on what inquiry obtained.
Specifically, it after being inquired, is determined according to obtained query result wait freeze using whether in synchronization Binder communications status, wherein if being not at synchronous binder communications status in all processes, do not locate wait freeze to apply In synchronous binder communications status, if there is a process in all processes is in synchronization binder communications status, illustrate to Freeze using in synchronous binder communications status.
When being under synchronous binder communications status wait freeze to apply, if enforceable will apply is freezed, it will Cause the system of electronic equipment unpredictable unnatural effects occur, influences the normal operation of electronic equipment.Only in application When all processes are not at synchronous binder communications status, i.e., the operation of application in the electronic device is independent, is not needed What others application or process were responded, it can will just apply and freeze.
As shown in figure 4, in one embodiment, providing a kind of application processing method, can also to be included in synchronous binder logical It is inquired, is determined in synchronous binder communication list with the presence or absence of wait freeze the mistake using included process in letter list Journey specifically includes:
Step 402, the application identification information wait freeze application is obtained, and is determined based on application identification information wait freeze to apply The process identity information of corresponding process.
Wherein, application identification information be wait freeze application identity, can be text, be also possible to digital number with And other can be used for carrying out the letter etc. of identity marks, but needs accurately to treat to freeze to apply and be identified.Process Identification information is the identity of process, equally can be text, and being also possible to digital number and other can be used for carrying out The letter etc. of identity marks.
Specifically, whether there is when freezing using included process in determining synchronous binder communication list, it is first It first obtains and identifies wait freeze to apply corresponding application identification information, then application identification information of the basis wait freeze application, Obtain with wait freeze apply associated process identity information.
It is determining when freezing using whether in synchronous binder communications status, is needing to treat and freeze using being included All state of a process information carry out detection judgement, and then can just treat the status information for freezing to apply and judge really It is fixed.In the present embodiment, obtain first wait freeze application application identification information, and then according to application identification information obtain with Wait freeze the process identity information using associated process, it should be noted that main when actually obtaining process identity information To be obtained be it is in operating status under process process identity information, according to wait freeze application identification information obtain in electricity The process identity information of the process run in sub- equipment.
Step 404, it is based on process identity information match query in the synchronous binder communication list, determines and synchronizes It whether include process identity information in binder communication list.
Specifically, obtain with wait freeze using after associated process identity information, will be in synchronous binder communication Match query is carried out in list, to determine wait freeze to whether there is using included process in synchronous binder communication list In, that is, whether determine in synchronous binder communication list includes wait freeze using included process.
The letter of process identification (PID) corresponding to the process for synchronizing binder communication is stored in synchronous binder communication list Breath, by will be matched wait freeze the process identity information using included process in synchronous binder communication list, with It determines wait freeze using with the presence or absence of the process in synchronous binder communication list.For synchronous binder communication list institute The information of storage can classify accordingly to it, for example the process for belonging to same application is classified as one kind, corresponding class Other information is exactly the identification information applied, and then different processes is corresponding with unique corresponding identification information, is being looked into this way When inquiry, query context is reduced according to the identification information of application first, to quickly finish match query.
As shown in figure 5, in one embodiment, being supplied to a kind of application processing method can also include:
Step 502, when detecting that the first process enters synchronous binder communications status, the first process corresponding the is obtained One process identity information, and the first process identity information is stored in synchronous binder communication list.
The process identity information of the process in synchronous binder communications status is stored in synchronous binder communication list, It can also be stored with the corresponding application identification information of this process simultaneously.
Specifically, when storing relevant information in synchronous binder communication list, by detecting in electronic equipment The state of a process information of middle operation performs corresponding processing.Enter synchronous binder communications status in first process that detects When, the first process identity information corresponding to the first process is obtained, and then the first process identification (PID) is stored in synchronous binder and is led to Believe in list.When storing the first process identity information into synchronous binder communication list, in addition to by the first process identification (PID) It, can also be by the application identification information and process identification (PID) of the first application belonging to the first process except information is obtained and stored Information is stored in synchronous binder communication list after being associated with logical, that is, can be according to described when being stored Classified accordingly using different, in addition, when the first process identity information is stored, can also will in first into The process that journey synchronizes binder communication is stored together.
Step 504, when detecting that the second running state of a process becomes asynchronous binder from synchronous binder communications status When communications status, the second process identity information corresponding to the second process is obtained, and by the second process identity information from synchronization It is deleted in binder communication list.
The process identity information for entering the process of synchronous binder communications status can be stored in synchronization by electronic equipment In binder communication list, equally also status information can be become asynchronous binder communications status from synchronous binder communications status The process identity information of process deleted from synchronous binder communication list, wherein asynchronous binder communications status is synchronous The opposition operating status of binder communications status.
Specifically, for the second process being already present in synchronous binder communication list, when detecting the first process Operating status when becoming asynchronous binder communications status from synchronous binder communications status, obtain corresponding to the second process the Two process identity informations delete the second process identity information from synchronous binder communication list.Namely for operation State is changed, and when being no longer synchronous binder communications status, by the process identity information of corresponding process from synchronization It is deleted in binder communication list, so that there is no the process identification (PID)s of this process to believe in synchronous binder communication list Breath.
It should be understood that although each step in the flow chart of Fig. 2-5 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-5 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
As shown in fig. 6, in one embodiment, provide a kind of using processing unit, which includes:
Module 610 is obtained, for obtaining wait freeze to apply when detecting using instruction is freezed;
Judgment module 620, for judging wait freeze using whether in synchronous binder communications status;
Respond module 630, for controlling wait freeze to answer when judging to be in synchronous binder communications status wait freeze to apply Freeze to instruct with not executing to apply.
In one embodiment, a kind of judgment module provided further include list obtain module, inquiry determining module and As a result determining module.Wherein, list obtains module for obtaining synchronous binder communication list;Inquiry determining module is for being based on Synchronous binder communication list determines in synchronous binder communication list with the presence or absence of wait freeze using included process;Knot Whether fruit determining module is used to obtain based on inquiry as a result, determining wait freeze using in synchronous binder communications status.
In one embodiment, it further includes that interface call unit and list obtain list that a kind of list provided, which obtains module, Member.Wherein, interface call unit is for calling corresponding interior nuclear equipment, and freezes interface based on kernel equipment calls are corresponding; List acquiring unit is used to obtain corresponding synchronous binder communication list based on interface is freezed.
In one embodiment, a kind of inquiry determining module provided further includes mark acquiring unit and match query list Member.Wherein, mark acquiring unit be used for obtain wait freeze application application identification information, and based on application identification information determination to Freeze the process identity information using corresponding process;Match query unit is used for based on process identity information in the synchronization Match query in binder communication list determines in synchronous binder communication list whether include process identity information.
In one embodiment, a kind of result determining module provided is also used to exist when in synchronous binder communication list When process identity information, determine wait freeze using in synchronous binder communications status;And when in synchronous binder communication list There is no when process identity information, determine to be not at synchronous binder communications status wait freeze to apply.
In one embodiment, a kind of application processing unit provided further includes memory module and removing module.Wherein, Memory module be used for when detecting that the first process enters synchronous binder communications status, obtain the first process corresponding first into Journey identification information, and the first process identity information is stored in synchronous binder communication list;Removing module is used for when detection When becoming asynchronous binder communications status from synchronous binder communications status to the second running state of a process, the second process is obtained The second corresponding process identity information, and the second process identity information is deleted from synchronous binder communication list.
In one embodiment, a kind of respond module provided, which is also used to work as, to be judged to be not at synchronization wait freeze to apply When binder communications status, control wait freeze to freeze to instruct using response application.
In one embodiment, a kind of application processing unit provided further includes defrosting module.Wherein, defrosting module is used for It when receiving the information for carrying of short duration instruction of thawing, controls wait freeze using defrosting with response message, and is completed in response When control wait freeze using being again introduced into frozen state;Alternatively, controlling when the defrosting for receiving input instructs wait freeze to apply It thaws.
The above-mentioned division using modules in processing unit is only used for for example, in other embodiments, can will answer It is divided into different modules, as required with processing unit to complete above-mentioned all or part of function using processing unit.
Specific about application processing unit limits the restriction that may refer to above for application processing method, herein not It repeats again.The above-mentioned modules using in processing unit can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, as shown in fig. 7, providing the schematic diagram of internal structure of a kind of electronic equipment.The electronics is set Standby includes processor, memory and the network interface connected by system bus.Wherein, which calculates and controls for providing Ability processed supports the operation of entire electronic equipment.Memory for storing data, program, and/or instruction code etc., memory Upper at least one computer program of storage, the computer program can be executed by processor, be provided with realizing in the embodiment of the present application The application processing method suitable for electronic equipment.Memory may include magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc. non-volatile memory mediums or random access memory (Random-Access-Memory, RAM) etc..Example Such as, in one embodiment, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with Operating system, database and computer program.It is stored in the database for realizing one provided by following each embodiment The relevant data of kind of application processing method, for example can be stored with that the title of each application, each application is frozen or is defrosted Duration and the information such as each application preset state switching duration.The computer program can performed by processor, with A kind of application processing method provided by the realization each embodiment of the application.Built-in storage is in non-volatile memory medium Operating system, database and computer program provide the running environment of cache.Network interface can be Ethernet card or nothing Gauze card etc. for being communicated with external electronic equipment, for example can be used for same server and be communicated.
It will be understood by those skilled in the art that structure shown in Fig. 7, only part relevant to application scheme is tied The block diagram of structure, does not constitute the restriction for the electronic equipment being applied thereon to application scheme, and specific electronic equipment can be with Including than more or fewer components as shown in the figure, perhaps combining certain components or with different component layouts.
There is provided in the embodiment of the present application can be the shape of computer program using realizing for the modules in processing unit Formula.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in terminal Or on the memory of server.When the computer program is executed by processor, method described in the embodiment of the present application is realized Step.
The embodiment of the present application also provides a kind of electronic equipment.As shown in figure 8, for ease of description, illustrating only and this Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The electronics is set It include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS for that can be Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device, using electronic equipment as mobile phone For:
Fig. 8 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.With reference to Fig. 8, Mobile phone includes: radio frequency (Radio Frequency, RF) circuit 810, memory 820, input unit 830, display unit 840, passes Sensor 850, voicefrequency circuit 860, Wireless Fidelity (wireless fidelity, WiFi) module 870, processor 880, Yi Ji electricity The components such as source 890.It, can be with it will be understood by those skilled in the art that handset structure shown in Fig. 8 does not constitute the restriction to mobile phone Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 810 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 880;The data of uplink can also be sent to base station.In general, RF circuit include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 810 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 820 can be used for storing software program and module, and processor 880 is stored in memory 820 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 820 can mainly include Program storage area and data storage area, wherein program storage area can application journey needed for storage program area, at least one function Sequence (such as application program, application program of image player function of sound-playing function etc.) etc.;Data storage area can store root Created data (such as audio data, address list etc.) etc. are used according to mobile phone.In addition, memory 820 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input unit 830 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 800 And the related key signals input of function control.Specifically, input unit 830 may include touch panel 831 and other inputs Equipment 832.Touch panel 831, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch panel 831 or near touch panel 831), And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 831 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 880, and can receive order that processor 880 is sent and be executed.In addition, Touch panel 831 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 831, input unit 830 can also include other input equipments 832.Specifically, other input equipments 832 may include but not It is limited to one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 840 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 840 may include display panel 841.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 841.In one embodiment, touch panel 831 can cover display panel 841, when touch panel 831 is examined After measuring touch operation on it or nearby, processor 880 is sent to determine the type of touch event, is followed by subsequent processing device 880 provide corresponding visual output according to the type of touch event on display panel 841.Although in fig. 8, touch panel 831 and display panel 841 are the input and input function for realizing mobile phone as two independent components, but in certain implementations In example, can be integrated by touch panel 831 and display panel 841 and that realizes mobile phone output and input function.
Mobile phone 800 may also include at least one sensor 850, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 841, and proximity sensor can close display panel when mobile phone is moved in one's ear 841 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..
Voicefrequency circuit 860, loudspeaker 861 and microphone 862 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 861, be converted to sound by loudspeaker 861 by road 860 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 862, is turned after being received by voicefrequency circuit 860 It is changed to audio data, then by after the processing of audio data output processor 880, another mobile phone can be sent to through RF circuit 810, or Person exports audio data to memory 820 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 870 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 8 is shown WiFi module 870, but it is understood that, and it is not belonging to must be configured into for mobile phone 800, it can according to need and omit.
Processor 880 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 820, and call and be stored in memory 820 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles Device 880 may include one or more processing units.In one embodiment, processor 880 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 880.
Mobile phone 800 further includes the power supply 890 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 880 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
In one embodiment, mobile phone 800 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 880 included by the electronic equipment executes the calculating of storage on a memory The step of application processing method is realized when machine program.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When, so that the step of processor executes application processing method.
A kind of computer program product comprising instruction, when run on a computer, so that computer executes application Processing method.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of application processing method characterized by comprising
When detecting using instruction is freezed, obtain wait freeze to apply;
Whether judgement is described wait freeze using in synchronous binder communications status;
When judgement is described when freezing using in the synchronous binder communications status, control is described wait freeze using being not responding to The application is freezed to instruct.
2. the method according to claim 1, wherein wait freeze using whether in synchronization described in the judgement Binder communications status, comprising:
Obtain synchronous binder communication list;
The synchronous binder communication list is inquired, is determined in the synchronous binder communication list with the presence or absence of described wait freeze Using the process for being included;
It is obtained based on inquiry as a result, determining described wait freeze using whether in synchronous binder communications status.
3. according to the method described in claim 2, it is characterized in that, the acquisition synchronizes binder communication list, comprising:
Call corresponding interior nuclear equipment, and freeze interface based on the kernel equipment calls are corresponding;
Freeze interface based on described, obtains corresponding synchronous binder communication list.
4. according to the method described in claim 3, it is characterized in that, the inquiry synchronous binder communication list, determines With the presence or absence of described wait freeze using included process in the synchronous binder communication list, comprising:
The application identification information wait freeze application is obtained, and determining described wait freeze to apply based on the application identification information The process identity information of corresponding process;
Based on the process identity information in the synchronous binder communication list match query, determine the synchronous binder It whether include the process identity information in communication list;
Wherein, described to be obtained based on inquiry as a result, determining described wait freeze using whether in synchronous binder communications status, packet It includes:
When described wait freeze using in same there are determining when the process identity information in the synchronous binder communication list Walk binder communications status;And
When the process identity information is not present in the synchronous binder communication list, determination is described not to be located wait freeze to apply In the synchronous binder communications status.
5. method according to any one of claim 2 to 4, which is characterized in that the method also includes:
When detecting that the first process enters synchronous binder communications status, the corresponding first process mark of first process is obtained Know information, and first process identity information is stored in the synchronous binder communication list;
When detecting that the second running state of a process becomes asynchronous binder communications status from synchronous binder communications status, obtain Take the second process identity information corresponding to second process, and by second process identity information from the synchronization It is deleted in binder communication list.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
When judgement is described when freezing using the synchronous binder communications status is not at, control is described wait freeze using response The application is freezed to instruct.
7. according to the method described in claim 6, it is characterized in that, described when judgement is described described using being not at wait freeze When synchronous binder communications status, control is described wait freeze after freezing instruction using the response application, and the method is also wrapped It includes:
When receiving the information for carrying of short duration instruction of thawing, control is described to thaw wait freeze to apply to respond the information, And frozen state is again introduced into wait freeze to apply described in controlling when responding and completing;Or
When the defrosting for receiving input instructs, control is described wait freeze using defrosting.
8. a kind of apply processing unit characterized by comprising
Module is obtained, for obtaining wait freeze to apply when detecting using instruction is freezed;
Judgment module, it is described wait freeze using whether in synchronous binder communications status for judging;
Respond module, for when judgement it is described when freezing using in synchronous binder communications status, control is described wait freeze Freeze to instruct using the application is not executed.
9. a kind of electronic equipment, including memory and processor, computer program, the computer are stored in the memory When program is executed by the processor, so that the processor is executed applies processing side as described in any one of claims 1 to 7 The step of method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of application processing method as described in any one of claims 1 to 7 is realized when being executed by processor.
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 true CN109445917A (en) 2019-03-08
CN109445917B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221928A (en) * 2019-06-11 2019-09-10 Oppo广东移动通信有限公司 Information recording method, device, terminal and storage medium
CN110532083A (en) * 2019-09-04 2019-12-03 深圳市思迪信息技术股份有限公司 Timed task dispatching method and device
WO2020224381A1 (en) * 2019-05-06 2020-11-12 中兴通讯股份有限公司 Application state control method apparatus, and terminal and computer-readable storage medium
WO2021037111A1 (en) * 2019-08-29 2021-03-04 中兴通讯股份有限公司 Application management method and apparatus, terminal, and readable storage medium
CN112988375A (en) * 2019-12-17 2021-06-18 华为技术有限公司 Process management method and device and electronic equipment
US12008396B2 (en) 2019-05-06 2024-06-11 Xi'an Zhongxing New Software Co., Ltd. Application state control method apparatus, and terminal and computer-readable storage medium

Citations (5)

* 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
CN106844029A (en) * 2017-01-19 2017-06-13 努比亚技术有限公司 The device and method that a kind of Android processes of Self management are freezed and thawed
CN107066320A (en) * 2017-01-19 2017-08-18 努比亚技术有限公司 The device and method that a kind of Android processes are freezed and thawed
US20170286706A1 (en) * 2014-12-18 2017-10-05 Electrolux Home Products, Inc. System, method, apparatus, and computer program product for activating a software functionality on an appliance
WO2018157364A1 (en) * 2017-03-02 2018-09-07 廖建强 Method for freezing application program, and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170286706A1 (en) * 2014-12-18 2017-10-05 Electrolux Home Products, Inc. System, method, apparatus, and computer program product for activating a software functionality on an appliance
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
CN106844029A (en) * 2017-01-19 2017-06-13 努比亚技术有限公司 The device and method that a kind of Android processes of Self management are freezed and thawed
CN107066320A (en) * 2017-01-19 2017-08-18 努比亚技术有限公司 The device and method that a kind of Android processes are freezed and thawed
WO2018157364A1 (en) * 2017-03-02 2018-09-07 廖建强 Method for freezing application program, and terminal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020224381A1 (en) * 2019-05-06 2020-11-12 中兴通讯股份有限公司 Application state control method apparatus, and terminal and computer-readable storage medium
US20220179680A1 (en) * 2019-05-06 2022-06-09 Zte Corporation Application state control method apparatus, and terminal and computer-readable storage medium
US12008396B2 (en) 2019-05-06 2024-06-11 Xi'an Zhongxing New Software Co., Ltd. Application state control method apparatus, and terminal and computer-readable storage medium
CN110221928A (en) * 2019-06-11 2019-09-10 Oppo广东移动通信有限公司 Information recording method, device, terminal and storage medium
WO2021037111A1 (en) * 2019-08-29 2021-03-04 中兴通讯股份有限公司 Application management method and apparatus, terminal, and readable storage medium
EP3974977A4 (en) * 2019-08-29 2023-05-31 ZTE Corporation Application management method and apparatus, terminal, and readable storage medium
CN110532083A (en) * 2019-09-04 2019-12-03 深圳市思迪信息技术股份有限公司 Timed task dispatching method and device
CN112988375A (en) * 2019-12-17 2021-06-18 华为技术有限公司 Process management method and device and electronic equipment
WO2021121161A1 (en) * 2019-12-17 2021-06-24 华为技术有限公司 Process management method and apparatus, electronic device
CN112988375B (en) * 2019-12-17 2024-04-09 华为技术有限公司 Process management method and device and electronic equipment

Also Published As

Publication number Publication date
CN109445917B (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN109445917A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN106412093B (en) A kind of method for uploading of data, apparatus and system
CN111316673B (en) Electronic fence updating method and communication device
CN108536783A (en) Data processing method and device, terminal, computer readable storage medium
CN107592615B (en) Positioning method and device
CN110008008A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN112148579B (en) User interface testing method and device
CN109992438A (en) Information processing method, device, computer equipment and computer readable storage medium
CN112703714A (en) Application program processing method and device, computer equipment and computer readable storage medium
CN110046032A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110018905A (en) Information processing method, device, computer equipment and computer readable storage medium
CN108668016B (en) Information processing method, device, mobile terminal and computer readable storage medium
WO2020061731A1 (en) Resource processing method, electronic device, and computer-readable storage medium
CN107708092B (en) Flow information update method and device, terminal, computer readable storage medium
CN110022405A (en) Radio frequency parameter method of adjustment, device and storage medium
CN110018886A (en) Application state switching method and apparatus, electronic equipment, readable storage medium storing program for executing
CN107102913B (en) Data back up method, device and computer equipment
CN108541050A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN107729857A (en) Face identification method, device, storage medium and electronic equipment
CN110430252B (en) Resource data processing method and device, equipment and readable storage medium
CN109992309A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109348425B (en) Positioning information updating method, device, equipment and storage medium
CN105094869B (en) Target program determines method and device
CN112997507A (en) Audio system control method, device, terminal and computer readable storage medium
CN109375995A (en) Using freezing method and device, storage medium, electronic equipment

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.