CN106484538B - Memory control method and device of terminal equipment and terminal equipment - Google Patents

Memory control method and device of terminal equipment and terminal equipment Download PDF

Info

Publication number
CN106484538B
CN106484538B CN201610885211.7A CN201610885211A CN106484538B CN 106484538 B CN106484538 B CN 106484538B CN 201610885211 A CN201610885211 A CN 201610885211A CN 106484538 B CN106484538 B CN 106484538B
Authority
CN
China
Prior art keywords
application
user
self
memory
personal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610885211.7A
Other languages
Chinese (zh)
Other versions
CN106484538A (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.)
Guangdong Oppo Mobile Telecommunications 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 CN201610885211.7A priority Critical patent/CN106484538B/en
Publication of CN106484538A publication Critical patent/CN106484538A/en
Application granted granted Critical
Publication of CN106484538B publication Critical patent/CN106484538B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Abstract

The embodiment of the invention discloses a memory control method and device of terminal equipment and the terminal equipment, wherein the method comprises the following steps: acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment; if the memory occupancy rate of the personal application is greater than a first preset threshold value, judging whether the personal application meets a control condition, and if so, controlling and processing the process corresponding to the personal application. According to the scheme, the smooth operation of the system can be guaranteed after the user opens a plurality of applications, the operation time of the terminal equipment is prolonged, and system resources are saved.

Description

Memory control method and device of terminal equipment and terminal equipment
Technical Field
The embodiment of the invention relates to computer technology, in particular to a memory control method and device for terminal equipment and the terminal equipment.
Background
Android is an operating system of an open source code based on Linux, is mainly used in terminal equipment (such as smart phones and tablet computers), and is developed and completed by Google corporation and the open mobile phone alliance together. At present, the Android system has been developed into an operating system platform with the largest user group in the field of terminal equipment.
In the existing Android system, a user often needs to simultaneously open a plurality of same software applications in the same terminal device to facilitate operation execution. Such as: when a user uses social software, multiple same social software often needs to be started simultaneously to log in different accounts, and then operations on different accounts are completed. With the increase of the number of started applications, the memory resources of the system are rapidly consumed, so that the system cannot smoothly run, and the experience effect of a user is seriously influenced.
Disclosure of Invention
The invention provides a memory control method and device of terminal equipment and the terminal equipment, which are used for ensuring smooth operation of a system after a user starts a plurality of applications, prolonging the operation time of the terminal equipment and saving system resources.
In a first aspect, an embodiment of the present invention provides a memory control method for a terminal device, including:
acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment;
if the memory occupancy rate of the personal application is greater than a first preset threshold value, judging whether the personal application meets a control condition, and if so, controlling and processing the process corresponding to the personal application.
In a second aspect, an embodiment of the present invention further provides a memory control device for a terminal device, including:
the memory occupancy rate acquisition module is used for acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment;
and the process control module is used for judging whether the personal application meets a control condition or not if the memory occupancy rate of the personal application is greater than a first preset threshold value, and if so, controlling and processing a process corresponding to the personal application.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device integrates the apparatus described above.
The method comprises the steps of acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment; if the memory occupancy rate of the self-body application is greater than a first preset threshold value, whether the self-body application meets the control condition is judged, if yes, the process corresponding to the self-body application is controlled, the problem that the system cannot run smoothly and the experience effect of a user is seriously influenced due to the fact that the memory resources of the system are rapidly consumed along with the increase of the number of started applications is solved, the smooth running of the system can be guaranteed after the user starts a plurality of applications, meanwhile, the running time of the terminal device is prolonged, and the system resources are saved.
Drawings
Fig. 1 is a flowchart of a memory control method of a terminal device according to an embodiment of the present invention;
fig. 2 is a flowchart of another memory control method for a terminal device according to an embodiment of the present invention;
fig. 3 is a flowchart of another memory control method for a terminal device according to an embodiment of the present invention;
fig. 4 is a flowchart of another memory control method for a terminal device according to an embodiment of the present invention;
fig. 5 is a structural diagram of a memory control device of a terminal device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a memory control method for a terminal device according to an embodiment of the present invention, where this embodiment is applicable to a case of controlling a memory of the terminal device, and the method may be executed by a terminal device such as a smart phone or a tablet computer, and specifically includes the following steps:
step 101, acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment.
The terminal equipment is provided with various application software, such as QQ, WeChat, microblog and the like, and a user can execute corresponding functions through the software. In the scheme, the terminal equipment is provided with a main application and a body-divided application. In this scheme, the main application and the corresponding body-divided application serve as applications in a multi-open application set, and the implementation manners of the main application and the body-divided application may be various, which is not specifically limited in this embodiment. For example, applications of different versions can be installed respectively, one version is used as a main application, and other versions are used as separate applications, wherein installation of the same application of different versions can be realized by decompiling and modifying an installation package (APK) file of the application and then installing the modified APK file; for another example, the method can be realized by applying third-party multi-open helper software for simulating user space and dynamically loading technology; as another example, this may be accomplished by modifying the system mechanism.
Preferably, the multiple application sets in this embodiment are implemented based on a multi-user mechanism, where the multi-user mechanism may specifically include a multi-user mechanism supported by an operating system in the intelligent terminal, such as a multi-user mechanism of an Android (Android) system and a multi-user mechanism of a Windows (WP) operating system of a mobile Phone.
The multi-open application set is implemented based on a multi-user mechanism, and the following specific description is made:
specifically, the implementation of the multiple open application set based on the multi-user mechanism may include the following: the main application is installed under a main user, the body-separated application is installed under a slave user, and the main user comprises an access port for operating the body-separated application.
In one embodiment, the multi-user implementation mechanism of the present application includes the following logic:
1. multi-user management
a) The system defaults to have a master user, and the master user can create other new users (slave users) and delete and manage the new users;
b) common users (non-master users) and guest users, which may be collectively referred to as slave users;
c) the default master user id (identity Identification) is 0, and other newly added user ids are increased one by one from 10;
d) when the user is switched, a series of interface switching such as desktop reloading and the like can be realized;
e) the master user can limit the authorities of other users whether to be capable of making and receiving calls, short messages and the like.
For multi-user management, the slave users can be managed through the master user, the slave users comprise creation, deletion, authority setting and the like of the slave users, ID setting starts from the master user, the IDs of the new slave users are added in sequence and overlapped, and a series of interfaces such as desktops of the corresponding users are reloaded when the users are switched.
2. Multi-user installation, uninstallation applications
a) The default installed application can be installed to all created users, and application icons can be seen on desktops of other users;
b) the application installed in the master user is managed through the file, the application cannot be installed to other users, and the application icons cannot be seen on desktops of other users;
c) the system can specify userid (user identity) when installing and uninstalling the application, specify the application to be installed to a specified user, or uninstall the application at a specified user. Applications may also be installed for all users, or uninstalled.
d) When the user A unloads the application B, the application B still exists for other users, the application icon can be seen on the desktop, and the application B can be normally used on other users.
For multi-user installation and uninstallation of applications, the default installed applications are installed to all the created users (including a master user and a slave user), and application icons are generated on desktops of the users; the application installed through file management under the master user is only installed under the master user, and an application icon is generated on the desktop of the master user and is not installed under the slave user; the application installation/uninstallation can also be based on the user's specification of the user, and the user specifies the application installation/uninstallation in the master user and the slave user by specifying the user identity under a certain user, some users or all users; the same application is unloaded independently under each user, and the application of a certain user is unloaded without influencing the use of the application of other users.
3. User data management
a) User id directory related to system data: various system data stores corresponding to the users are stored, such as: desktop widget lists, setup databases, default application start policies, and the like.
b) User id directory related to application package data: and storing the application package catalog correspondingly installed by the user, and if the application operation generates data, storing the application data in the catalog.
c) System SD Card (Secure Digital Memory Card) catalog: it is not the same that each subscriber sees its sdcard directory, but only its sdcard directory.
For user data management, under a multi-user implementation mechanism, system data and application related data under each user are respectively stored under different data storage paths, for example, various system data under a certain user are stored under a specified first data storage path, and application related data such as an installed application package directory and application data generated by application operation are stored under a specified second data storage path; the data storage of each user is independent, and each user can only view own stored data, such as an own sdcard directory.
4. User rights management
a) After installation, the application applies various permissions (e.g.: read and store the catalogue authority, read and write the message authority, open the camera authority, etc.), will be divided into two parts, one part is insensitive to the authority, while employing and installing, the system allows the application to obtain the authority directly; some sensitive dangerous authorities, such as read-write short message authorities, prompt the user whether the application is allowed to obtain the authority or not when the application is used.
b) The system is independent and isolated for the authority of the same application at different users, the basic insensitive authority obtained by one application is directly obtained in each user after installation, and the partial sensitive dangerous authority is independent. For example: when the user 0 opens the WeChat, if the permission of reading and writing the short message is obtained, the system prompts whether the user allows the WeChat or not when the user 10 is switched to, and the user 0 does not need to be reminded because the WeChat obtains the permission. The same applies to other users.
For user authority management, when a certain user installs an application, an insensitive authority can directly obtain permission, and the sensitive authority needs to be obtained by permission of the user; under different users, the permission configurations of the same application are independent and isolated, and when the users switch, the sensitive permission of the application used for the first time needs to prompt the users whether to be entitled.
In this embodiment, the process of implementing the multi-open application set based on the multi-user mechanism can be described as follows:
assuming that a default user of the intelligent terminal is a master user, the user stores an installation package (APK) file such as abc.apk of application ABC in the intelligent terminal in a manner of downloading from an application store or copying from other sources under the master user, and after the system installs the abc.apk under the master user, a desktop of the master user generates an icon of master application ABC. When an avatar creation request for a master application ABC is detected under a master user, an avatar application is installed under a slave user (if no slave user exists, a slave user can be created, the creation process is completed without being perceived by the user, and no account and password are set by the user). After ABC is successfully installed, an appointed notification of 'successful installation' (identification is added in the notification) is sent to a master user, after a desktop under the master user receives the notification, an icon with the identification is generated to be distinguished from an icon of ABC of the master application, the icon can be used as an access port for operating the body application in the master user, after the icon is clicked, the system appoints ABC to be started under a slave user, a relevant process corresponding to ABC is also operated under the slave user, a human-computer interaction interface (abbreviated as an interface) of ABC is displayed under the master user, and the interface of ABC can also be used as an access port for operating the body application in the master user.
For the self-body application, the existence form of the access port in the master user may be various, and this embodiment is not particularly limited, for example, the access port may be a desktop icon including an application identifier, where the application identifier is used to distinguish the current self-body application from the master application and other self-body applications; the application identifier can be attached to the main application icon; an icon containing an application identifier which can also exist in a floating window form; but also items that exist in a notification center or the like.
The intelligent terminal user can realize the operation of the main application in the main user and can also operate the corresponding personal application through the access port in the main user. It can be understood that the same master application may correspond to a plurality of separate applications, and each separate application is installed in a different slave user, so that each separate application is respectively operated in different slave users, and does not interfere with each other in the operation process.
Compared with third-party multi-open helper software, the multi-open application is realized based on a multi-user mechanism, so that the actions of pushing advertisements and stealing user privacy data by the third-party software are avoided, and the safety is higher; compared with the scheme that the main application and the split application are operated under the same user, the method reduces the process interference between different split applications or main applications under the same user, and avoids the function loss phenomenon caused by a complex operation environment.
In the scheme, when a user needs to open multiple identical applications (i.e., a main application and one or more separate applications), the multiple identical applications may run in the system at the same time, and at this time, the load rate of the system memory may gradually increase. In this step, the memory occupancy rate of the self-owned application corresponding to the main application in the terminal device is obtained, and for example, in an Android system, the main application and the self-owned application can be distinguished through the UID, the process PID, or the userid of the application, so that the memory occupancy rate of the self-owned application corresponding to the main application is obtained. The memory occupancy rate represents the size of the memory occupied by the personal application, and the higher the memory occupancy rate is, the larger the consumed system resource is, and the smaller the memory occupancy rate is, otherwise, the consumed system resource is. The memory occupancy rate of the self-body application can be determined through a self-body process started under the self-body application. Specifically, one or more of the split processes may be started when one split application is used, each split process may occupy a certain memory space, and the memory occupancy rate of the split application may be obtained by the sum of the memory occupancy rates of the processes.
Step 102, if the memory occupancy rate of the personal application is greater than a first preset threshold, judging whether the personal application meets a control condition, and if so, controlling and processing a process corresponding to the personal application.
For example, the first preset threshold may be 5%, 10%, 15%, 20%, etc., which may be set by default of the system or may be set by a user through manual input. When the memory occupancy rate of the body-divided application is judged to be greater than the first preset threshold, the memory occupancy rate is high, the consumption of system resources is high, at the moment, whether the body-divided application meets the control condition or not is judged, and the process corresponding to the body-divided application is controlled and processed under the condition that the control condition is met. Wherein, the process mainly includes: ready state, execution state, blocking state, suspend state, and termination state, etc. The process control processing may be switching the states of the processes, for example, suspending the processes may release the memory resources occupied by the processes, and when the memory resources of the system are sufficient, the process operation of the system may be ensured.
As can be known to those skilled in the art, the main application is usually the main application opened by the user, and the memory resource of the terminal device is not seriously affected by the opening of the main application alone (the existing terminal device hardware can support the opening of multiple main applications), but the system resource is gradually consumed as the number of the applications increases, so the method mainly controls the memory occupied by the applications, but is also suitable for controlling the main application.
According to the technical scheme of the embodiment, the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment is obtained; if the memory occupancy rate of the self-body application is greater than a first preset threshold value, whether the self-body application meets the control condition is judged, if yes, the process corresponding to the self-body application is controlled, the problem that the system cannot run smoothly and the experience effect of a user is seriously influenced due to the fact that the memory resources of the system are rapidly consumed along with the increase of the number of started applications is solved, the smooth running of the system can be guaranteed after the user starts a plurality of applications, meanwhile, the running time of the terminal device is prolonged, and the system resources are saved.
Fig. 2 is a flowchart of another memory control method for a terminal device according to an embodiment of the present invention, where this embodiment provides a manner for performing control processing on a process corresponding to an application when a specific control condition is met, and specifically includes the following steps:
step 201, acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal device.
Step 202, if the memory occupancy rate of the self-body-splitting application is greater than a first preset threshold, judging whether the self-body-splitting application is in a background running state, and if so, suspending a process corresponding to the self-body-splitting application.
The running state of the application software after being started mainly comprises a foreground running state and a background running state. The foreground running state means that the application software is directly run by a window, can directly interact with a user, and usually has an interactive interface. The background running state refers to that the application software runs in the resource manager, an interactive interface does not exist usually, the application software cannot directly interact with a user, and system resources are still occupied. In this step, when it is determined that the self-service application is in the background running state, that is, when the self-service application is not used by the user and is not interacted with the user, the process corresponding to the self-service application is suspended, so that system resources occupied by the self-service application can be released, and meanwhile, the operation of the user is not affected.
According to the technical scheme, when the memory occupancy rate of the self-service application is judged to be too high and the self-service application is in background operation, the process corresponding to the self-service application is suspended, the problems that the system cannot run smoothly and the experience effect of a user is seriously influenced due to the fact that the memory resources of the system are consumed rapidly along with the increase of the number of started applications are solved, the smooth operation of the system can be guaranteed after the user starts a plurality of applications, the operation time of the terminal device is prolonged, and the system resources are saved.
Fig. 3 is a flowchart of another memory control method for a terminal device according to an embodiment of the present invention, where this embodiment provides a specific method for determining whether to perform control processing on a function being executed by an application according to an identity, and specifically includes the following steps:
step 301, acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal device.
Step 302, if the memory occupancy rate of the body-divided application is greater than a first preset threshold value, judging whether audio/video processing is being performed through the body-divided application, and if not, suspending an audio/video process corresponding to the body-divided application.
Wherein different personal applications have different functions. Usually, a plurality of processes are started by one self-body application according to the requirements of the self-body application, each process executes the corresponding function, in the step, whether the self-body application is carrying out audio and video processing is judged, and if the self-body application is not carrying out the audio and video processing, the audio and video process corresponding to the self-body application is only hung. Different from the second embodiment, when the system resource is in shortage, even if the self-owned application is in the foreground running state, when a certain function operation (such as the audio/video processing of the embodiment) is performed, the corresponding process can be suspended to release the resource, and the normal operation of the user is not affected.
According to the technical scheme, part of processes in the body application are selectively suspended through judgment of the body application execution function, the problem that the processes cannot be suspended to release the memory when the body application is in the foreground operation is solved, smooth operation of a system can be guaranteed after a user opens a plurality of applications, the operation time of the terminal device is prolonged, and system resources are saved.
On the basis of the above technical solution, step 302 may also be: if the memory occupancy rate of the self-body-splitting application is larger than a first preset threshold value, judging whether positioning processing is being carried out through the self-body-splitting application, and if not, suspending a positioning service process corresponding to the self-body-splitting application. The positioning service is a service which can be started after the application is started, but the user does not need the positioning service all the time, whether the split application is positioned or not is judged in the scheme, if not, the positioning service process is correspondingly suspended, memory resources are released on the premise that normal operation of the split application is guaranteed, and the flow operation of the system is guaranteed.
Fig. 4 is a flowchart of another memory control method for a terminal device according to an embodiment of the present invention, where this embodiment provides a method for directly terminating a process of an avatar application to release system resources on the basis of the foregoing embodiments, and specifically includes the following steps:
step 401, acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal device.
Step 402, if the memory occupancy rate of the body-divided application is greater than a first preset threshold value and the body-divided application is not operated in the foreground within a preset time, terminating the process of the body-divided application.
The preset time may be 15 minutes, 30 minutes, 60 minutes, or the like, that is, the fact that the self-body application is not run in the foreground for a certain time means that the user may not use the self-body application for a long period of time, and at this time, the process of the self-body application is directly terminated to release the system resources.
According to the technical scheme provided by the embodiment, the split-body application which is not operated in the foreground for a long time is directly terminated, so that the smooth operation of the system can be guaranteed after a user opens a plurality of applications, the operation time of the terminal equipment is prolonged, and the system resources are saved.
On the basis of the foregoing embodiments, step 402 may also be: and if the memory occupancy rate of the personal application is greater than a first preset threshold value and the power consumption rate of the personal application is greater than a preset power consumption rate, terminating the process of the personal application. The preset power consumption rate can be 10%, 20% or 30%, and in the scheme, the personal application with the excessively high power consumption rate is directly terminated to ensure the cruising ability of the terminal equipment.
On the basis of the foregoing embodiments, step 402 may also be: and if the memory occupancy rate of the personal application is greater than a first preset threshold value and the utilization rate of the personal application is less than a preset utilization rate, terminating the process of the personal application. The preset usage rate may be 1 time per week, and a lower usage rate means that the user does not use the avatar application frequently, and at this time, the avatar application with a lower usage rate is preferentially terminated to release system resources to ensure the flow operation of the system.
On the basis of the foregoing embodiments, before obtaining the memory occupancy rate of the split application in the terminal device, the method further includes: acquiring the memory load rate of the terminal equipment; the acquiring of the memory occupancy rate of the personal application corresponding to the main application in the terminal device comprises: and if the memory load rate of the terminal equipment is greater than a second preset threshold, acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment. In the scheme, when the memory of the terminal device is controlled, the memory load rate of the terminal device is determined at first, the memory load rate represents the current memory occupation condition of the terminal device, and the higher the memory load rate is, the less the memory available to the terminal device is, and the system can be jammed or even halted in operation. According to the scheme, the memory can be controlled in time according to the acquired memory load rate, so that the efficiency of controlling the memory is obviously improved, and the process of the split application does not need to be hung in real time or directly stopped.
On the basis of the foregoing embodiments, the method further includes a step of recovering the process corresponding to the self-body application, for example, when the memory load rate of the terminal device decreases or the user needs to use the self-body application again, the process corresponding to the self-body application is adaptively recovered so that the self-body application can respond to the operation of the user again in time.
Fig. 5 is a structural diagram of a memory control device of a terminal device according to an embodiment of the present invention, which specifically includes the following steps:
the memory occupancy rate acquisition module 1 is used for acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment;
and the process control module 2 is configured to, if the memory occupancy rate of the body-divided application is greater than a first preset threshold, determine whether the body-divided application meets a control condition, and if so, perform control processing on a process corresponding to the body-divided application.
According to the technical scheme of the embodiment, the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment is obtained; if the memory occupancy rate of the self-body application is greater than a first preset threshold value, whether the self-body application meets the control condition is judged, if yes, the process corresponding to the self-body application is controlled, the problem that the system cannot run smoothly and the experience effect of a user is seriously influenced due to the fact that the memory resources of the system are rapidly consumed along with the increase of the number of started applications is solved, the smooth running of the system can be guaranteed after the user starts a plurality of applications, meanwhile, the running time of the terminal device is prolonged, and the system resources are saved.
On the basis of the above technical solution, the process control module 2 is specifically configured to:
and judging whether the split application is in a background running state, if so, suspending a process corresponding to the split application.
On the basis of the above technical solution, the process control module 2 is specifically configured to:
and judging whether audio and video processing is being carried out through the self-body-separating application, if not, suspending the audio and video process corresponding to the self-body-separating application.
On the basis of the above technical solution, the process control module 2 is specifically configured to:
and judging whether the positioning processing is carried out through the self-body-separating application, if not, suspending a positioning service process corresponding to the self-body-separating application.
On the basis of the above technical solution, the process control module 2 is specifically configured to belong to at least one of:
if the split application does not run on the foreground within the preset time, terminating the process of the split application;
if the power consumption rate of the personal application is greater than the preset power consumption rate, terminating the process of the personal application;
and if the utilization rate of the body-divided application is less than the preset utilization rate, terminating the process of the body-divided application.
On the basis of the technical scheme, the method further comprises the following steps:
the memory load rate acquisition module 3 is used for acquiring the memory load rate of the terminal equipment;
the memory occupancy rate obtaining module 1 is specifically configured to:
and if the memory load rate of the terminal equipment is greater than a second preset threshold, acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment.
On the basis of the above technical solution, the process control module 2 is further configured to:
and recovering the operation of the split process according to the received operation instruction.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
In this embodiment, on the basis of the foregoing embodiments, a terminal device is provided, and the terminal device may include the memory control apparatus provided in any embodiment of the present invention. Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 6, the terminal device may include: memory 601, a Central Processing Unit (CPU) 602, peripheral interfaces 603, RF (Radio Frequency) circuitry 605, audio circuitry 606, speakers 611, a power management chip 608, an input/output (I/O) subsystem 609, a touch screen 612, other input/control devices 610, and an external port 604, which communicate via one or more communication buses or signal lines 607.
It should be understood that the illustrated terminal device 600 is only one example of a terminal device, and that the terminal device 600 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device for rights management of multi-open applications provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 601, the memory 601 being accessible by the CPU602, the peripheral interface 603, and the like, the memory 601 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 603, said peripheral interface 603 may connect input and output peripherals of the device to the CPU602 and the memory 601.
An I/O subsystem 609, the I/O subsystem 609 may connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610, to the peripheral interface 603. The I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610. Where one or more input controllers 6092 receive electrical signals from or transmit electrical signals to other input/control devices 610, the other input/control devices 610 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 6092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 612, which touch screen 612 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch screen 612 or transmits electrical signals to the touch screen 612. The touch screen 612 detects a contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 612, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 612 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 605 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 605 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 605 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. RF circuitry 605 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electric signal, and transmit the electric signal to the speaker 611.
The speaker 611 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 605 into sound and play the sound to the user.
And a power management chip 608 for supplying power and managing power to the hardware connected to the CPU602, the I/O subsystem, and the peripheral interface.
The CPU602 provided in the embodiment of the present invention can perform the following operations:
acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment;
if the memory occupancy rate of the personal application is greater than a first preset threshold value, judging whether the personal application meets a control condition, and if so, controlling and processing the process corresponding to the personal application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A memory control method of a terminal device is characterized by comprising the following steps:
when a main application and a body-divided application corresponding to the main application are simultaneously started in a terminal device, acquiring the memory occupancy rate of the body-divided application corresponding to the main application in the terminal device;
if the memory occupancy rate of the personal application is greater than a first preset threshold value, judging whether the personal application meets a control condition, and if so, controlling and processing a process corresponding to the personal application;
the main application is installed under a main user, the personal application is installed under a slave user, data storage under each user is independent, and each user can only check own stored data; the desktop of the master user is provided with the icon of the body-splitting application as an access port for the master application to operate the body-splitting application; the control processing of the process corresponding to the self-body application comprises switching processing of the self-body application between any two states of a ready state, an execution state, a blocking state, a suspending state and a termination state.
2. The method of claim 1, wherein determining whether the split application satisfies a control condition, and if so, performing control processing on a process corresponding to the split application comprises:
and judging whether the split application is in a background running state, if so, suspending a process corresponding to the split application.
3. The method of claim 1, wherein determining whether the split application satisfies a control condition, and if so, performing control processing on a process corresponding to the split application comprises:
and judging whether audio and video processing is being carried out through the self-body-separating application, if not, suspending the audio and video process corresponding to the self-body-separating application.
4. The method of claim 1, wherein determining whether the split application satisfies a control condition, and if so, performing control processing on a process corresponding to the split application comprises:
and judging whether the positioning processing is carried out through the self-body-separating application, if not, suspending a positioning service process corresponding to the self-body-separating application.
5. The method according to any one of claims 1 to 4, wherein the step of judging whether the avatar application satisfies a control condition, and if so, the step of performing control processing on the process corresponding to the avatar application comprises at least one of the following steps:
if the split application does not run on the foreground within the preset time, terminating the process of the split application;
if the power consumption rate of the personal application is greater than the preset power consumption rate, terminating the process of the personal application;
and if the utilization rate of the body-divided application is less than the preset utilization rate, terminating the process of the body-divided application.
6. The method of claim 5, before obtaining the memory occupancy rate of the self-service application corresponding to the main application in the terminal device, further comprising:
acquiring the memory load rate of the terminal equipment;
the acquiring of the memory occupancy rate of the personal application corresponding to the main application in the terminal device comprises:
and if the memory load rate of the terminal equipment is greater than a second preset threshold, acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment.
7. The method of claim 2, further comprising, after suspending the process corresponding to the split application:
and recovering the running of the process corresponding to the self-body-splitting application according to the received running instruction.
8. A memory control device of a terminal device, comprising:
the system comprises a memory occupancy rate acquisition module, a storage management module and a processing module, wherein the memory occupancy rate acquisition module is used for acquiring the memory occupancy rate of the body-divided application corresponding to the main application in the terminal equipment when the main application and the body-divided application corresponding to the main application are simultaneously started in the terminal equipment;
the process control module is used for judging whether the personal application meets a control condition or not if the memory occupancy rate of the personal application is greater than a first preset threshold value, and if so, controlling and processing a process corresponding to the personal application;
the main application is installed under a main user, the personal application is installed under a slave user, data storage under each user is independent, and each user can only check own stored data; the desktop of the master user is provided with the icon of the body-splitting application as an access port for the master application to operate the body-splitting application; the control processing of the process corresponding to the self-body application comprises switching processing of the self-body application between any two states of a ready state, an execution state, a blocking state, a suspending state and a termination state.
9. The apparatus of claim 8, wherein the process control module is specifically configured to:
and judging whether the split application is in a background running state, if so, suspending a process corresponding to the split application.
10. The apparatus of claim 8, wherein the process control module is specifically configured to:
and judging whether audio and video processing is being carried out through the self-body-separating application, if not, suspending the audio and video process corresponding to the self-body-separating application.
11. The apparatus of claim 8, wherein the process control module is specifically configured to:
and judging whether the positioning processing is carried out through the self-body-separating application, if not, suspending a positioning service process corresponding to the self-body-separating application.
12. An arrangement according to any of claims 8-11, characterized in that the process control module is specifically adapted to at least one of:
if the split application does not run on the foreground within the preset time, terminating the process of the split application;
if the power consumption rate of the personal application is greater than the preset power consumption rate, terminating the process of the personal application;
and if the utilization rate of the body-divided application is less than the preset utilization rate, terminating the process of the body-divided application.
13. The apparatus of claim 12, further comprising:
the memory load rate acquisition module is used for acquiring the memory load rate of the terminal equipment;
the memory occupancy rate acquisition module is specifically configured to:
and if the memory load rate of the terminal equipment is greater than a second preset threshold, acquiring the memory occupancy rate of the personal application corresponding to the main application in the terminal equipment.
14. The apparatus of claim 9, wherein the process control module is further configured to:
and recovering the running of the process corresponding to the self-body-splitting application according to the received running instruction.
15. A terminal device, characterized in that it integrates the apparatus according to any of claims 8-14.
CN201610885211.7A 2016-10-10 2016-10-10 Memory control method and device of terminal equipment and terminal equipment Active CN106484538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610885211.7A CN106484538B (en) 2016-10-10 2016-10-10 Memory control method and device of terminal equipment and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610885211.7A CN106484538B (en) 2016-10-10 2016-10-10 Memory control method and device of terminal equipment and terminal equipment

Publications (2)

Publication Number Publication Date
CN106484538A CN106484538A (en) 2017-03-08
CN106484538B true CN106484538B (en) 2020-01-14

Family

ID=58269523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610885211.7A Active CN106484538B (en) 2016-10-10 2016-10-10 Memory control method and device of terminal equipment and terminal equipment

Country Status (1)

Country Link
CN (1) CN106484538B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106940761A (en) * 2017-03-27 2017-07-11 联想(北京)有限公司 The control method and controller of a kind of application program
CN108228472B (en) * 2017-08-14 2021-08-13 珠海市魅族科技有限公司 Terminal device control method and device, terminal device and computer readable storage medium
CN109032686B (en) * 2018-06-07 2021-10-22 北京小米移动软件有限公司 Data processing method and device
CN111601007B (en) * 2020-04-09 2021-04-20 深圳震有科技股份有限公司 Control method for limiting call and electronic equipment
CN111857689A (en) * 2020-07-27 2020-10-30 深信服科技股份有限公司 Framework, function configuration method of framework, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968335A (en) * 2012-10-25 2013-03-13 东莞宇龙通信科技有限公司 Terminal and terminal memory management method
CN102984580A (en) * 2012-11-12 2013-03-20 北京奇虎科技有限公司 Internal storage cleaning method and system
CN102981906A (en) * 2012-11-16 2013-03-20 广东欧珀移动通信有限公司 Application program background process management method and device
CN104298549A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning application programs in mobile terminal and mobile terminal
CN105101366A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Mobile terminal control method and mobile terminal
CN105824631A (en) * 2016-03-16 2016-08-03 深圳市金立通信设备有限公司 Control method of application program and terminal
CN105975305A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Operating system event processing method and device as well as terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968335A (en) * 2012-10-25 2013-03-13 东莞宇龙通信科技有限公司 Terminal and terminal memory management method
CN102984580A (en) * 2012-11-12 2013-03-20 北京奇虎科技有限公司 Internal storage cleaning method and system
CN102981906A (en) * 2012-11-16 2013-03-20 广东欧珀移动通信有限公司 Application program background process management method and device
CN104298549A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning application programs in mobile terminal and mobile terminal
CN105101366A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Mobile terminal control method and mobile terminal
CN105824631A (en) * 2016-03-16 2016-08-03 深圳市金立通信设备有限公司 Control method of application program and terminal
CN105975305A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Operating system event processing method and device as well as terminal

Also Published As

Publication number Publication date
CN106484538A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN106484538B (en) Memory control method and device of terminal equipment and terminal equipment
CN106484547B (en) Multi-open application management method and device and terminal
CN106445612B (en) Method and device for opening application and mobile terminal
CN108388431B (en) Control method and device for hot update of application program, storage medium and mobile terminal
CN106471791B (en) Method and apparatus for a mobile device based cluster computing architecture
KR101672227B1 (en) Multimodal computing device
CN107026933B (en) Multi-open application message management method and device and intelligent terminal
CN110032413B (en) Desktop virtualization method, related equipment and computer storage medium
CN106445647B (en) Open the data manipulation method, device and mobile terminal of application more
CN106357921B (en) A kind of data sharing method of application, device and mobile terminal
CN106484478B (en) A kind of method, device and mobile terminal creating application of attending to anything else
CN106484518B (en) Display method and device of multi-open application and terminal
CN106776067B (en) Method and device for managing system resources in multi-container system
CN106502732B (en) Application closing method and device and intelligent terminal
CN109271211B (en) Method, device, equipment and medium for separating application program
CN106648736B (en) A kind of control method of application, device and mobile terminal
CN106445706B (en) Open the data transmission method, device and mobile terminal of application more
CN106484514B (en) Multi-open application operation management method and device and intelligent terminal
CN106357667B (en) Account management method and device for split application in multi-open application and intelligent terminal
US20240077998A1 (en) Application compatibility on a computing device
CN106648738B (en) Method, device and terminal for managing personal applications
CN106648459B (en) A kind of data managing method of application, device and mobile terminal
CN106648962B (en) A kind of management method, device and intelligent terminal for opening application more
CN106648298B (en) Application control method and device and mobile terminal
CN106445670B (en) A kind of data managing method, device and mobile terminal for opening application more

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant