WO2019128563A1 - Procédé et dispositif de gel d'application, support de stockage et terminal - Google Patents

Procédé et dispositif de gel d'application, support de stockage et terminal Download PDF

Info

Publication number
WO2019128563A1
WO2019128563A1 PCT/CN2018/116736 CN2018116736W WO2019128563A1 WO 2019128563 A1 WO2019128563 A1 WO 2019128563A1 CN 2018116736 W CN2018116736 W CN 2018116736W WO 2019128563 A1 WO2019128563 A1 WO 2019128563A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
foreground
freeze
foreground application
freezing
Prior art date
Application number
PCT/CN2018/116736
Other languages
English (en)
Chinese (zh)
Inventor
陈岩
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019128563A1 publication Critical patent/WO2019128563A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • 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
    • 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/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to an application freezing method, apparatus, storage medium, and terminal.
  • the general freeze application mainly determines whether an application should be frozen according to the application running state, whether it is the foreground or the background application.
  • the embodiment of the present application provides an application freezing method, a device, a storage medium, and a terminal, which can improve the intelligence of the terminal by monitoring the operation information received by the foreground application to freeze the application.
  • An application freezing method including:
  • the current foreground application is monitored to receive operation information input by the user;
  • the operation information includes an operation mode and an operation time point;
  • mapping relationship between the operation mode and the freeze condition of each foreground application, and determining, according to the mapping relationship, whether the foreground application needs to be frozen at the current time
  • the foreground application When the foreground application needs to be frozen, the foreground application is frozen according to a preset policy.
  • An application freezing device comprising:
  • a monitoring module configured to: when the current station starts a new application, listen to the currently running foreground application to receive operation information input by the user; the operation information includes an operation mode and an operation time point;
  • a determining module configured to invoke a mapping relationship between an operation mode and a freeze condition of each foreground application, and determine, according to the mapping relationship, whether the foreground application needs to be frozen at the current time;
  • the freezing module is configured to freeze the foreground application according to a preset policy when the foreground application needs to be frozen.
  • a computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the steps of the application freezing method in various embodiments of the present application.
  • a terminal comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the step of freezing the application in various embodiments of the present application.
  • the application freezing method and device, the storage medium and the terminal provided by the embodiment of the present application, when the current station starts the application, the current foreground application is monitored to receive the operation information input by the user; and the mapping between the operation mode and the freezing condition of each foreground application is invoked. And determining, according to the mapping relationship, whether the current application needs to freeze the foreground application; when the foreground application needs to be frozen, the foreground application is frozen according to the preset policy, and the current user is used to obtain the current user by using the operation information.
  • the usage rate of the application when the user does not input the operation information for a long time, can freeze the foreground application in time to improve the intelligence of the terminal.
  • FIG. 1 is a schematic diagram showing the internal structure of a terminal in an embodiment
  • FIG. 2 is a partial schematic diagram of a system in a terminal in an embodiment
  • FIG. 3 is a flow chart of an application freezing method in an embodiment
  • FIG. 5 is a flowchart of determining whether a current application needs to freeze the foreground application according to the mapping relationship according to the mapping relationship;
  • FIG. 6 is a flowchart of determining, according to the category information of the foreground application, whether the foreground application needs to be frozen according to an embodiment
  • FIG. 7 is a flowchart of freezing a foreground application according to a preset policy in an embodiment
  • FIG. 8 is a flowchart of freezing the foreground application according to a preset policy in another embodiment
  • Figure 10 is a block diagram showing the structure of an application freezing device in an embodiment
  • Figure 11 is a block diagram showing a portion of the structure of a handset in an embodiment.
  • first, second and the like may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
  • first frozen condition may be referred to as a second frozen condition
  • second frozen condition may be referred to as a first frozen condition, without departing from the scope of the present invention.
  • Both the first frozen condition and the second frozen condition are frozen conditions, but they are not the same frozen condition.
  • FIG. 1 a schematic diagram of an internal structure of a terminal is provided.
  • the terminal includes a processor, memory, and display connected via a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire terminal.
  • the memory is used to store data, programs, and/or instruction codes, etc., and the memory stores at least one computer program, which can be executed by the processor to implement the application-free application freezing method provided in the embodiments of the present 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 storage memory (Random-Access-Memory, RAM).
  • the memory includes a non-volatile storage medium and an internal memory.
  • Non-volatile storage media stores operating systems, databases, and computer programs.
  • the database stores data related to an application freezing method provided by the above various embodiments, for example, information such as the name of each process or application may be stored.
  • the computer program can be executed by a processor for implementing an application freezing method provided by various embodiments of the present application.
  • the internal memory provides a cached operating environment for operating systems, databases, and computer programs in non-volatile storage media.
  • the display screen can be a touch screen, such as a capacitive screen or an electronic screen, for displaying interface information of an application corresponding to the foreground process, and can also be used for detecting a touch operation acting on the display screen, and generating corresponding instructions, such as performing front and back Application switching instructions, etc.
  • FIG. 1 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal to which the solution of the present application is applied.
  • the specific terminal may include a ratio. More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
  • the terminal further includes a network interface connected through a system bus, and the network interface may be an Ethernet card or a wireless network card, etc., for communicating with an external terminal, for example, for communicating with a server.
  • a partial architectural diagram of a terminal is provided.
  • the architecture system of the terminal includes a JAVA spatial layer 210, a local framework layer 220, and a kernel (Kernel) spatial layer 230.
  • the freeze and thaw application 210 can be included in the JAVA spatial layer.
  • the freeze and thaw application 210 can be used by the terminal to implement a freeze policy for each application, and freeze the related application of the background power consumption.
  • the resource priority and restriction management module 222 and the platform freeze management module 224 are included in the local framework layer 220.
  • the terminal can maintain different applications in different priorities and different resource organizations through the resource priority and limit management module 222, and adjust the resource group of the application according to the requirements of the upper layer to achieve optimized performance and save power. .
  • the terminal freezes the task that can be frozen in the background by the platform freeze management module 224, and allocates the freeze layer to the preset different levels according to the length of the entry freeze time.
  • the freeze layer may include three, respectively: CPU limit Sleep mode, CPU freeze sleep mode, process deep freeze mode.
  • the CPU restricts the sleep mode to limit the CPU resources occupied by the related processes, so that the related processes occupy less CPU resources, and the free CPU resources are tilted to other unfrozen processes, thereby limiting the occupation of CPU resources.
  • the kernel space layer 230 includes a UID management module 231, a Cgroup module 232, a Binder management module 233, a process memory collection module 234, and a timeout freeze exit module 235.
  • the UID management module 231 is configured to implement an application-based User Identifier (UID) to manage resources of a third-party application or freeze. Compared with the Process Identifier (PID) for process management and control, it is easier to uniformly manage the resources of a user's application through UID.
  • the Cgroup module 232 is used to provide a complete set of Central Processing Unit (CPU), CPUSET, memory, input/output (I/O), and Net related resource restriction mechanisms.
  • the Binder management module 233 is used to implement the priority control of the background binder communication.
  • the interface module of the local framework layer 220 includes a binder interface developed to the upper layer, and the upper layer framework or application sends a resource restriction or frozen instruction to the resource priority and restriction management module 222 and the platform freeze management module 224 through the provided binder interface.
  • the process memory recovery module 234 is configured to implement the process deep freeze mode, so that when a third-party application is in a frozen state for a long time, the file area of the process is mainly released, thereby saving the memory module and speeding up the application next time. The speed at startup.
  • the timeout freeze exit module 235 is configured to solve the abnormality generated by the freeze timeout scenario.
  • an application freezing method for freezing a foreground application of a terminal. This embodiment is described by applying the method to the terminal shown in FIG. 1 as an example.
  • the application freezing method includes steps 302-306. among them,
  • Step 302 When the current station starts the application, the foreground application currently running is monitored to receive operation information input by the user; the operation information includes an operation mode and an operation time point.
  • the operation of an application is usually reflected by the operation of multiple related processes.
  • the process involved in the foreground application runtime is the foreground process
  • the process involved in the background application runtime is the background process.
  • the application corresponding to the operation page of the application displayed by the current display interface of the terminal is the foreground application currently running by the terminal.
  • only the application corresponding to the input focus is the foreground application, or only the application corresponding to the window object at the top of the stack of the window stack of the operating system is the foreground application currently corresponding to the terminal.
  • To determine whether the target application is a foreground application obtain a window object corresponding to the target application, and determine whether the window object is located at the top of the stack of the window stack of the operating system, and if yes, the target application is a foreground application, and if not, the description is The app runs in the background and is a background app.
  • the foreground application When the foreground application is opened, the foreground application will listen to the operation information input by the user.
  • the operation information includes an operation mode and an operation time point input by the user.
  • the operation mode includes at least an input operation mode such as a button, a voice, a touch, a fingerprint, and a scan.
  • the current input operation time point is also obtained. For example, when the application opened by the current station is “Glory of the King”, it monitors all input information of the user, such as voice, touch, and the like, when the user uses the foreground application, and also records the current operation.
  • the input time point corresponding to the input mode such as voice input - 20:00: 00; touch input - 20:00: 01 and so on.
  • Step 304 Invoke each application to receive a mapping relationship between the operation mode input by the user and the freeze condition, and determine, according to the operation information, whether the foreground application needs to be frozen at the current time.
  • each foreground application running in the foreground corresponds to one or more freeze conditions
  • the corresponding freeze condition can be determined according to the operation mode of receiving the user input.
  • the operation mode corresponds to a freeze condition.
  • the freeze condition corresponding to the touch operation mode is the first freeze condition
  • the freeze condition corresponding to the voice operation mode is the second freeze condition
  • the freeze condition corresponding to the scan operation mode is The third freezing condition and so on. That is, each operation mode of each application can correspond to a freeze condition.
  • the freezing condition is a time condition, and a time freezing condition corresponding to each operation mode may be set, and the time freezing condition may be understood to be that when a certain operation information is not monitored within the preset time period, the time freezing condition is considered to be satisfied. .
  • the operation mode of each application is different, and the freezing conditions corresponding to the same operation mode of different applications may be the same or different.
  • the preset mapping relationship according to the operation information of the monitoring, it can be determined whether the current application needs to freeze the foreground application.
  • Step 306 When the foreground application needs to be frozen, the foreground application is frozen according to a preset policy.
  • the foreground application When the foreground application needs to be frozen, the foreground application is frozen according to the preset policy.
  • the corresponding freeze policy may be set according to the monitored operation information to implement the freeze operation on the foreground application.
  • different freeze levels may be set according to the acquired operation information, and the freeze of the foreground application may be implemented according to the freeze level.
  • the foreground application currently being monitored receives the operation information input by the user, and according to the operation information and the preset mapping relationship, it can be determined whether the foreground application needs to be frozen at the current time;
  • the foreground application is frozen according to the preset policy, and the operation information input by the user is received according to the foreground application to decide whether to freeze the foreground application, that is, the operation information can be used to obtain the usage rate of the current user to the foreground application.
  • the user does not input the operation information for a long time, the user can freeze the foreground application in time to improve the intelligence of the terminal.
  • mapping relationship before mapping the relationship between the received operation mode and the freeze condition of each application, the mapping relationship needs to be constructed.
  • step 402-step 406 is included. among them,
  • Step 402 Acquire a historical running time of each running of the application in the foreground and receive a historical operation record input by the user.
  • the terminal obtains the operation information input by the user when each application runs in the foreground, and counts the historical running time of each application running in the foreground and the historical operation record input by the user.
  • the historical running time is a continuous running time of the foreground application;
  • the historical operation record includes a historical operation mode, and a usage frequency corresponding to the operation mode.
  • the historical operation mode includes at least a operation mode such as a button, a voice, a touch, a fingerprint, and a scan, and the usage frequency corresponding to the operation mode is the frequency of use of each operation mode.
  • the terminal When the current running "God Glory” game application (APP), the terminal will record the start time point of turning on or switching from the background to the foreground running "Glory Glory", and ending or switching to the background end time point,
  • the duration between the start time and the end time is the historical run time, such as 40 minutes.
  • the input operation mode of the receiving user includes voice input and touch input. According to the input operation mode, the frequency of use of each operation mode can be obtained, wherein the frequency of use of the touch operation mode is 120 times/minute, and the voice operation is 2 times/minute.
  • the terminal When the current application (APP) of the player such as "OPPO Video Player" is running, the terminal records the startup time point of turning on or switching from the background to the foreground to run the "OPPO Video Player", and ending or switching to the end of the background.
  • the duration between the start time point and the end time point is the historical running time, such as 120 minutes.
  • the input operation mode of the receiving user includes a touch input, a sliding input, and the like. According to the input operation mode, the frequency of use of each operation mode can be obtained, wherein the frequency of the touch input operation mode is 2 times/60 minutes, and the sliding input operation mode is 6 times/60 minutes.
  • Step 404 Set a freeze condition of each foreground application according to the historical running time length and the usage frequency corresponding to the operation mode.
  • the freezing condition is a time condition.
  • the running time of each application running in the foreground is different, and the operation mode of receiving user input may also be different.
  • the corresponding freezing condition can be set for each application. For example, if the game application APP "King of the Glory" running in the foreground, the freezing condition can be divided according to the received operation mode, when the king glory is in the foreground application, if the touch operation is not monitored within the first preset duration And satisfying the first freezing condition; wherein the first preset duration is related to the frequency of use in the historical operation record, when the first preset duration is greater than a preset multiple of the usage frequency of the touch operation mode (120 times/minute) Then, it can be determined that the touch operation mode is not generated again within the first preset time period, and it can be determined that the user is not currently using the currently running foreground application.
  • the second preset duration is related to the frequency of use in the historical operation record.
  • the second preset duration is greater than the preset multiple of the voice operation mode (2 times/1 minute), it may be determined that the second During the preset duration, the voice operation mode will not be generated again, indicating that the user is not currently using the currently running foreground application.
  • first preset duration and the second preset duration may be set according to user requirements, and no further limitation is made.
  • Step 406 Construct a mapping relationship between the operation mode and the freeze condition of each foreground application.
  • each foreground application is set according to the historical running time and the usage frequency corresponding to the operation mode.
  • Each application has one or more operation modes, and each operation mode corresponds to a freeze condition, that is, one application can correspond to multiple freeze conditions.
  • a mapping relationship in which such an application may correspond to a plurality of freeze conditions is graphically represented for identification purposes.
  • the operation mode of the user input that each foreground application can monitor is diverse, and the freezing condition of the application can be set according to the input mode most commonly used by the user, and the freezing condition corresponding to other operation modes is ignored.
  • the priority of the freeze condition may be set according to the frequency of use of the operation mode, and the user's use frequency is higher, and the corresponding freeze condition is used as a priority condition for freezing the application. That is, the freeze of the foreground application may be judged according to the priority of the freeze condition corresponding to the operation mode.
  • the determining, according to the mapping relationship, whether the current time needs to freeze the foreground application includes steps 502-506. among them,
  • Step 502 Acquire the operation information that is closest to the current time, and record the time interval of the latest operation information from the current time.
  • the foreground application monitors the operation information input by the user, and the operation mode includes at least an input operation mode such as a button, a voice, a touch, a fingerprint, and a scan. At the same time, when the operation information input by the user is received, the current input operation time point is also obtained.
  • the latest operation information may be the operation information corresponding to the operation time point of the shortest time interval between the current time and the operation information input by the foreground application from the start of the current application.
  • the terminal will obtain the operation information (operation mode and operation time point) that was last monitored from the current time (20:30:00). If the latest operation information is used, the operation mode For the touch operation mode, the operation time point is 20:20:00, and the time interval from the current time can be obtained, and the time interval is 10 minutes.
  • Step 504 Determine, according to the mapping relationship, whether the time interval satisfies the freezing condition.
  • the set mapping relationship is invoked to obtain the freezing condition corresponding to all the operation modes of the application.
  • the freezing condition is a time condition, and according to the mapping relationship, it can be known whether the acquired time interval satisfies the freezing condition of freezing the foreground application.
  • Step 506 When the freezing condition is met, the terminal detects whether there is a face image in the visible area.
  • the terminal when the time interval satisfies the freezing condition, it can be determined that the user does not operate the foreground application, and the terminal can detect whether the current terminal's visible area is a face image, and the current terminal can be determined. Whether there is a user before.
  • the visible area can be understood as the area where the user can normally use the terminal, and can also be understood as the distance between the user and the terminal, which is the comfortable distance of the user using the terminal.
  • the face recognition technology can be used to detect whether a person exists before the terminal.
  • Face recognition is a biometric recognition technology based on human facial feature information for identification.
  • portrait recognition face recognition.
  • the face image is recognized, it indicates that the user is viewing the display area of the terminal, but the user does not operate the terminal; if there is no face image, it indicates that the current user has been away from the terminal, and the user needs to freeze the Front desk application. That is, step 508: when the face image does not exist, the foreground application needs to be frozen.
  • step 602-606. it is determined whether the foreground application needs to be frozen according to the category information of the foreground application, and further includes steps 602-606. among them,
  • Step 602 When the face image is present, the age feature of the current face image is obtained by the face recognition technology.
  • the age of the face image can be identified based on the method of constructing the face recognition and age synthesis joint model of deep learning. feature.
  • the preprocessing of the dimensionality reduction is performed, and through a trained automatic encoder, the feature set for the identity representation and the feature set represented by different age groups are obtained, and then The results of the feature set are outputted by the parallel convolutional neural network, and the image similarity is output. Then the weighted fusion is used to obtain the matching result, which can realize face recognition and age detection to obtain the age feature of the face image. Because it distinguishes the characteristics of age characteristics and face image identity, it is also robust to face recognition across ages.
  • Step 604 Acquire application information of the foreground application.
  • the application information includes an application network identifier and an application type.
  • the application network identifier includes a mobile cellular network identifier and a wireless network identifier.
  • the application type can be divided into puzzle, game, audio and video, instant communication, system tools, etc. according to the function division of each application; according to whether the application needs to use network division, it can be divided into networked and non-networked, among which Networking applications include communication applications, mailboxes, browsers, dialers, and SMS services.
  • Step 606 Determine, according to the application information, whether the foreground application needs to be frozen according to the corresponding relationship between the age feature and the exclusive application.
  • the user can be divided into multiple user groups, such as an elderly user group, a middle-aged user group, a youth user group, and a child user group.
  • the exclusive application can be separately formulated for the elderly user group and the child user group.
  • the corresponding exclusive application is an application that can be run under the WIFI connection state.
  • the application information of the foreground application it can be determined whether the foreground application is a dedicated application corresponding to the old user group (an application that can be run under the WIFI connection state), and if not, an application that needs to be operated by the mobile cellular network is considered to be
  • the foreground application needs to be frozen to prevent large amounts of data traffic due to misuse.
  • the corresponding exclusive application is a puzzle application.
  • the application information of the foreground application it can be determined whether the foreground application is a dedicated application corresponding to the child user group (educational application), and if not, but for games and audio-visual applications other than the puzzle application, The foreground application needs to be frozen, reducing the probability that student users are addicted to the game.
  • Step 702 Obtain a duration of the time interval when the time interval satisfies the freezing condition.
  • the latest operation information is the operation information corresponding to the operation time point of the shortest time interval between the current time and the operation information input by the foreground application from the start of the current application.
  • the duration of the time interval is obtained.
  • Step 704 Divide a freeze level according to the duration; the freeze level is used to indicate that the maximum allowed resource that can be used by the foreground application is configured.
  • the freeze level is divided according to the duration of the acquired time interval.
  • the freeze level is used to indicate the maximum allowed resources that can be used by the foreground application.
  • the resources that can be used represent the resources that the process can use at each moment of execution.
  • the maximum allowed resource represents the maximum resource that the process is allowed to use at various times. The longer the interval, the higher the freeze level, and the higher the freeze level, the less the maximum allowed resources for the foreground application.
  • the process is a basic operation of a program on a certain data set in a computer. It is the basic unit for resource allocation and scheduling, and is the basis of the operating system structure.
  • the process involved in the foreground application runtime is the foreground process, and the process involved in the background application runtime is the background process.
  • the interaction mechanism between processes is mainly divided into a synchronization mechanism and a communication mechanism.
  • the communication mechanism includes socket, binder, shared memory and so on.
  • the two programs on the network exchange data through a two-way communication connection.
  • One end of the connection is called a socket.
  • Binder is an interprocess communication mechanism that provides remote procedure call functionality.
  • the terminal may acquire the foreground process according to a preset frequency or according to the detected user operation instruction.
  • the process identifier of the foreground process may be obtained, where the process identifier is used to uniquely identify the corresponding process, and may be formed by a combination of one or more of a preset number of digits, letters, or other characters.
  • the process ID "0001" may be used to indicate the process A
  • the "1234" may be the process B or the like.
  • the manner of dividing the freeze level may be set according to the needs of the user, and may be set in combination with the historical running time of the foreground application and the application type of the foreground application.
  • the division rules of the freeze level of each application may be the same or different, and the number of division levels may be the same or different.
  • Step 706 Perform freeze on the foreground application according to the freeze level.
  • the freeze level corresponding to the current time interval is determined according to the duration of the time interval. If the memory required for the current process execution is 40Mb, if the freeze level is one level (lowest level), the resource is allocated to the foreground according to the level 1 freeze level, and the maximum allowable resource that the foreground application can use is 30Mb; The level is level 4 (the highest level), the resources are allocated to the foreground according to the level 1 freeze level, and the maximum allowable resource that the foreground application can use is 0Mb. Among them, the highest level of freezing level is completely frozen.
  • the foregoing resources may include a CPU, an I/O file resource, and the like. Taking resources as memory for example, the longer the interval, the higher the freeze level; the higher the freeze level, the less the maximum allowed resources that the foreground application can use.
  • the freeze level is set according to the duration of the time interval, and as the time length increases, the freeze level also increases, but the maximum allowable resource that can be used by the foreground application decreases, until the foreground application is applied. It is completely frozen. From partial freezing to complete freezing, it takes a certain time process to give the user a buffering time period. During this time period, the user can quickly and effectively unfreeze the foreground application and improve the user experience. At the same time, according to the freeze level, the maximum allowable resources that can be used by the foreground application can be restricted, and resources can be allocated reasonably to reduce power consumption.
  • the foreground application is frozen according to a preset policy, including steps 802-806.
  • Step 802 Acquire all the functions of the foreground application and the functions corresponding to the operation mode currently monitored by the foreground application.
  • the functions of the foreground application are various.
  • the function corresponding to the operation mode monitored by the foreground application is obtained.
  • One mode of operation may correspond to one or more functions.
  • voice operations may correspond to functions such as voice communication, voice control, voice search, etc.
  • Scan operations may correspond to functions such as scan recognition, scan payment, scan authentication, and the like.
  • the functions corresponding to the operation mode may include, but are not limited to, recording, photographing, connecting to the network, using Bluetooth, acquiring a geographical location, making a call, and sending a short message.
  • Step 804 Acquire an unused function according to a function corresponding to the monitored operation mode.
  • Unused functions refer to all functions of the foreground application, except for the functions corresponding to the monitored operation mode.
  • the “Glory of the King” includes many functions, such as the competitive function corresponding to the touch operation, the transaction function, the location acquisition function, the voice instant communication function corresponding to the voice operation, and the recording Features and more.
  • the functions corresponding to the acquired operation mode monitored by the foreground application are mainly the competitive function and the voice instant communication function, and the unused functions include the transaction function, the geographic location acquisition function, the recording and photographing function, and the like. Wait.
  • Step 806 Freeze the corresponding process of the unused function in the system.
  • Each application corresponds to a process group in the system framework.
  • the system allocates resources to its corresponding process group; and each functional module in the application also corresponds to the process in the process group, so each application will be applied.
  • the corresponding process of the function is identified to facilitate subsequent management of system resource allocation to the corresponding process.
  • the identifier is used to uniquely identify the corresponding process, and may be composed of a combination of one or more of a preset number of digits, letters, or other characters. For example, process ID "0001" can be used to represent process A, and "1234" can be used to indicate process B, etc.
  • the user can freeze the unused functions in the corresponding processes in the system, thereby achieving the purpose of saving resources and improving operational efficiency.
  • other functions of the foreground application can still be used, so the application does not need to freeze the entire application, but freezes some functions of the application, and ensures that other functions are used normally, thereby achieving the effect of reducing power consumption.
  • the application freeze method further includes steps 902- 906. among them,
  • Step 902 Acquire a thaw instruction for thawing the foreground application.
  • Step 904 Detect whether biometric information in the thaw instruction matches a preset biometric.
  • Step 906 Perform a thawing operation on the foreground application when the biometric information in the defrosting instruction matches the preset biometric.
  • the defrosting command includes biometric information, wherein the biometric information may be fingerprint information, iris information, voiceprint information, facial information, and the like.
  • the foreground application is thawed.
  • the corresponding defrosting strategy can also be set according to the freezing strategy to implement the defrosting operation of the foreground application.
  • an application freezing device comprising:
  • the monitoring module 1010 is configured to: when the current station starts the application, listen to the currently running foreground application to receive operation information input by the user; the operation information includes an operation mode and an operation time point;
  • the determining module 1020 is configured to invoke, by each application, a mapping relationship between an operation mode input by the user and a freeze condition, and determine, according to the operation information, whether the foreground application needs to be frozen at the current time;
  • the freezing module 1030 is configured to freeze the foreground application according to a preset policy when the foreground application needs to be frozen.
  • the application freezing device when the current application is started, the monitoring module 1010 can monitor the currently running foreground application to receive operation information input by the user; the determining module 1020 can call the mapping relationship between the operation mode and the freezing condition of each foreground application, according to the The mapping relationship determines whether the current application needs to freeze the foreground application; when the foreground application needs to be frozen, the freezing module 1030 freezes the foreground application according to the preset policy, and can obtain the current user's application to the foreground through the operation information.
  • the usage rate when the user does not input the operation information for a long time, can freeze the foreground application in time to improve the intelligence of the terminal.
  • each module in the application freezing device is for illustrative purposes only. In other embodiments, the application freezing device may be divided into different modules as needed to complete all or part of the functions of the application freezing device.
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the application freezing method provided by the various embodiments described above.
  • a terminal including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the application freezing method provided by the foregoing embodiments is implemented when the processor executes the computer program A step of.
  • the embodiment of the present application also provides a computer program product.
  • a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the application freeze method provided by the various embodiments described above.
  • the embodiment of the present application further provides a terminal.
  • a terminal As shown in FIG. 11 , for the convenience of description, only the parts related to the embodiments of the present application are shown. For details that are not disclosed, refer to the method part of the embodiment of the present application.
  • the terminal 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 terminal is a mobile phone as an example:
  • FIG. 11 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 1110 , a memory 1120 , an input unit 1130 , a display unit 1140 , a sensor 1150 , an audio circuit 1160 , a wireless fidelity (WiFi) module 1170 , and a processor 1180 .
  • RF radio frequency
  • the RF circuit 1110 can be used for receiving and transmitting information during the transmission and reception of information or during the call.
  • the downlink information of the base station can be received and processed by the processor 1180.
  • the uplink data can also be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 1110 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Pack
  • the memory 1120 can be used to store software programs and modules, and the processor 1180 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1120.
  • the memory 1120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.);
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone.
  • memory 1120 can include high speed random access memory, and can 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 1130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 1100.
  • the input unit 1130 may include an operation panel 1131 and other input devices 1132.
  • the operation panel 1131 which may also be referred to as a touch screen, may collect touch operations on or near the user (such as an operation of the user using a finger, a stylus, or the like on the operation panel 1131 or in the vicinity of the operation panel 1131). And drive the corresponding connection device according to a preset program.
  • the operation panel 1131 may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1180 is provided and can receive commands from the processor 1180 and execute them.
  • the operation panel 1131 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1130 may further include other input devices 1132.
  • other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
  • the display unit 1140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 1140 may include a display panel 1141.
  • the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the operation panel 1131 may cover the display panel 1141, and when the operation panel 1131 detects a touch operation thereon or nearby, it is transmitted to the processor 11110 to determine the type of the touch event, and then the processor 11110 according to the touch event The type provides a corresponding visual output on display panel 1141.
  • the operation panel 1131 and the display panel 1141 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the operation panel 1131 and the display panel 1141 may be integrated to implement the mobile phone. Input and output functions.
  • the handset 1100 can also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1141 and/or when the mobile phone moves to the ear. Or backlight.
  • the motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
  • the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
  • Audio circuitry 1160, speaker 1161, and microphone 1162 can provide an audio interface between the user and the handset.
  • the audio circuit 1160 can transmit the converted electrical data of the received audio data to the speaker 1161, and convert it into a sound signal output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the audio circuit 1160 After receiving, it is converted into audio data, and then processed by the audio data output processor 1180, transmitted to another mobile phone via the RF circuit 1110, or outputted to the memory 1120 for subsequent processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1170, which provides users with wireless broadband Internet access.
  • FIG. 11 shows the WiFi module 1170, it will be understood that it does not belong to the essential configuration of the handset 1100 and may be omitted as needed.
  • the processor 1180 is a control center for the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1120, and invoking data stored in the memory 1120, The various functions of the mobile phone and the processing of the data, so that the overall monitoring of the mobile phone.
  • processor 1180 can include one or more processing units.
  • processor 1180 can integrate an application processor and a modem, where the application processor primarily processes an operating system, user interface, applications, etc.; the modem primarily handles wireless communications. It will be appreciated that the above modem may also not be integrated into the processor 1180.
  • the processor 1180 can integrate an application processor and a baseband processor, and the baseband processor and other peripheral chips can form a modem.
  • the handset 1100 also includes a power source 1190 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 1180 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the handset 1100 can also include a camera, a Bluetooth module, and the like.
  • the processor included in the mobile phone implements the application freezing method described above when executing a computer program stored in the 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 an external cache.
  • RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM dual data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM Link (Synchlink) DRAM
  • SLDRAM Memory Bus
  • Rambus Direct RAM
  • RDRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

La présente invention concerne un procédé et un dispositif de gel d'application, un support de stockage et un terminal. Le procédé comprend les étapes suivantes : lorsqu'une application est démarrée au niveau d'une extrémité avant, détecter des informations d'opération concernant une entrée d'utilisateur reçue par l'application d'extrémité avant en cours de fonctionnement ; les informations de fonctionnement comprenant un mode de fonctionnement et un instant de fonctionnement ; appeler une relation de mappage entre une condition de gel et un mode de fonctionnement d'une entrée d'utilisateur reçue par chaque application, et déterminer, en fonction des informations de fonctionnement, s'il est nécessaire de geler l'application d'extrémité avant au moment actuel ; et s'il est nécessaire de geler l'application d'extrémité avant, geler l'application d'extrémité avant selon une politique prédéfinie.
PCT/CN2018/116736 2017-12-29 2018-11-21 Procédé et dispositif de gel d'application, support de stockage et terminal WO2019128563A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711489078.4A CN109992379B (zh) 2017-12-29 2017-12-29 应用冻结方法、装置、存储介质和终端
CN201711489078.4 2017-12-29

Publications (1)

Publication Number Publication Date
WO2019128563A1 true WO2019128563A1 (fr) 2019-07-04

Family

ID=67063053

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116736 WO2019128563A1 (fr) 2017-12-29 2018-11-21 Procédé et dispositif de gel d'application, support de stockage et terminal

Country Status (2)

Country Link
CN (1) CN109992379B (fr)
WO (1) WO2019128563A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558745A (zh) * 2019-09-24 2021-03-26 中兴通讯股份有限公司 终端应用程序冷冻控制的方法、装置、终端及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126295A (zh) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 应用程序的控制方法及控制装置、终端
CN106292998A (zh) * 2016-07-28 2017-01-04 宇龙计算机通信科技(深圳)有限公司 一种后台运行程序的管理方法以及终端
CN106485106A (zh) * 2016-09-09 2017-03-08 宇龙计算机通信科技(深圳)有限公司 应用程序冻结方法及系统
CN106843450A (zh) * 2017-01-23 2017-06-13 努比亚技术有限公司 一种终端应用的存储处理方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030217077A1 (en) * 2002-05-16 2003-11-20 Schwartz Jeffrey D. Methods and apparatus for storing updatable user data using a cluster of application servers
KR102089447B1 (ko) * 2013-06-04 2020-03-16 삼성전자 주식회사 전자 기기 및 그의 애플리케이션 제어 방법
CN103412708B (zh) * 2013-07-31 2016-12-28 华为技术有限公司 终端设备上的任务管理方法和终端设备
KR101649658B1 (ko) * 2014-10-10 2016-08-19 엘지전자 주식회사 설비를 관제하는 중앙 제어 장치, 이를 포함하는 설비 제어 시스템 및 설비 제어 방법
CN105528228A (zh) * 2015-12-07 2016-04-27 上海斐讯数据通信技术有限公司 一种自动关闭应用程序的装置和方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126295A (zh) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 应用程序的控制方法及控制装置、终端
CN106292998A (zh) * 2016-07-28 2017-01-04 宇龙计算机通信科技(深圳)有限公司 一种后台运行程序的管理方法以及终端
CN106485106A (zh) * 2016-09-09 2017-03-08 宇龙计算机通信科技(深圳)有限公司 应用程序冻结方法及系统
CN106843450A (zh) * 2017-01-23 2017-06-13 努比亚技术有限公司 一种终端应用的存储处理方法和装置

Also Published As

Publication number Publication date
CN109992379A (zh) 2019-07-09
CN109992379B (zh) 2021-04-23

Similar Documents

Publication Publication Date Title
US11244672B2 (en) Speech recognition method and apparatus, and storage medium
US11636861B2 (en) Electronic device and method of operation thereof
CN108701178B (zh) 认证方法及使用认证方法的电子设备
US10728442B2 (en) Initializing camera subsystem for face detection based on sensor inputs
WO2019128546A1 (fr) Procédé de traitement de programme d'application, dispositif électronique et support de stockage lisible par ordinateur
WO2018113409A1 (fr) Procédé et dispositif de chargement de ressource de démarrage
WO2019128540A1 (fr) Procédé de gestion de ressources, terminal mobile et support d'informations lisible par ordinateur
CN109144232B (zh) 进程处理方法和装置、电子设备、计算机可读存储介质
CN110018901B (zh) 内存回收方法、装置、计算机设备和计算机可读存储介质
WO2019052316A1 (fr) Procédé et appareil de traitement d'images, support d'informations lisible par ordinateur et terminal mobile
WO2019128598A1 (fr) Procédé de traitement d'application, dispositif électronique et support de stockage lisible par ordinateur
WO2019128537A1 (fr) Procédé de gel d'application, dispositif informatique, et support de stockage lisible par ordinateur
EP3499853B1 (fr) Procédé et dispositif d'authentification ppg
WO2019128549A1 (fr) Procédé et appareil permettant de geler une application, et terminal et support de stockage lisible par ordinateur
CN110032266B (zh) 信息处理方法、装置、计算机设备和计算机可读存储介质
CN112703714A (zh) 应用程序处理方法和装置、计算机设备、计算机可读存储介质
CN110032321B (zh) 应用程序处理方法和装置、电子设备、计算机可读存储介质
WO2019128588A1 (fr) Procédé et appareil de traitement de processus, dispositif électronique et support d'informations lisible par ordinateur
WO2019184631A1 (fr) Procédé et appareil de traitement d'informations, support d'informations lisible par ordinateur et terminal
WO2019128574A1 (fr) Procédé et dispositif de traitement d'informations, dispositif informatique et support d'informations lisible par ordinateur
WO2019128571A1 (fr) Procédé et dispositif de gestion de ressources, terminal mobile, ainsi que support d'informations lisible par ordinateur
CN110032429B (zh) 信息处理方法、装置、移动终端及计算机可读存储介质
CN107257408B (zh) 主屏页面显示方法、终端及计算机可读存储介质
WO2019128569A1 (fr) Procédé et appareil pour geler une application et support de stockage et terminal
CN110046033B (zh) 应用程序处理方法和装置、电子设备、计算机可读存储介质

Legal Events

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

Ref document number: 18894884

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18894884

Country of ref document: EP

Kind code of ref document: A1