Movatterモバイル変換


[0]ホーム

URL:


CN106484538A - A memory control method and device for terminal equipment and terminal equipment - Google Patents

A memory control method and device for terminal equipment and terminal equipment
Download PDF

Info

Publication number
CN106484538A
CN106484538ACN201610885211.7ACN201610885211ACN106484538ACN 106484538 ACN106484538 ACN 106484538ACN 201610885211 ACN201610885211 ACN 201610885211ACN 106484538 ACN106484538 ACN 106484538A
Authority
CN
China
Prior art keywords
application
clone
terminal device
anything
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610885211.7A
Other languages
Chinese (zh)
Other versions
CN106484538B (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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610885211.7ApriorityCriticalpatent/CN106484538B/en
Publication of CN106484538ApublicationCriticalpatent/CN106484538A/en
Application grantedgrantedCritical
Publication of CN106484538BpublicationCriticalpatent/CN106484538B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

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

A kind of internal memory control method of terminal device, device and terminal device
Technical field
The present embodiments relate to computer technology, more particularly to a kind of internal memory control method of terminal device, device andTerminal device.
Background technology
Android is a kind of operating system of the open source code based on Linux, is mainly used for terminal device (such as:IntelligenceMobile phone, panel computer) in, completed by Google company and open mobile phone alliance joint development.At present, the own warp of android systemDevelop into the maximum operating system platform of field of terminal equipment customer group.
In existing android system, user is generally required while opening multiple identicals in same station terminal equipmentSoftware application is come the execution that conveniently operates.Such as:When user is using social class software, generally require while opening multiple identicalsSocial software carries out the login of different accounts, and then completes the operation to different accounts.With increasing for the number of applications that opens,The memory source of system will be consumed, and thus cause system smooth can not run, have a strong impact on the experience effect of user.
Content of the invention
The present invention provides a kind of internal memory control method of terminal device, device and terminal device, is being opened with realizing userIt is capable of the smooth operation of safeguards system after multiple applications, while the run time of terminal device is also extended, saves system moneySource.
In a first aspect, a kind of internal memory control method of terminal device is embodiments provided, including:
Obtain the main memory usage for applying corresponding application of attending to anything else in terminal device;
If the memory usage of the application of attending to anything else is more than the first predetermined threshold value, whether application of attending to anything else described in judgement meetsControl condition, if meeting, is controlled processing to the corresponding process of application of attending to anything else.
Second aspect, the embodiment of the present invention additionally provide a kind of Memory control device of terminal device, including:
Memory usage acquisition module, for obtaining the main EMS memory occupation for applying corresponding application of attending to anything else in terminal deviceRate;
PROCESS CONTROL MODULE, if being more than the first predetermined threshold value for the memory usage of the application of attending to anything else, judges instituteStating whether application of attending to anything else meets control condition, if meeting, the corresponding process of application of attending to anything else being controlled processing.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal device, and the terminal device is integrated with foregoing descriptionDevice.
The present invention is by obtaining the main memory usage for applying corresponding application of attending to anything else in terminal device;If described attend to anything else shouldMemory usage is more than the first predetermined threshold value, then whether application of attending to anything else described in judgement meets control condition, if meeting, rightThe corresponding process of application of attending to anything else is controlled processing, and solves increasing with the number of applications that opens, the internal memory of systemResource will be consumed, and thus cause system smooth can not run, had a strong impact on the problem of the experience effect of user, realizeUser is capable of the smooth operation of safeguards system after multiple applications are opened, while also extend the run time of terminal device,Save system resource.
Description of the drawings
Fig. 1 is the flow chart of the internal memory control method of terminal device provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention;
Fig. 5 is the structure chart of the Memory control device of terminal device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of terminal device provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouchedThe specific embodiment that states is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to justPart related to the present invention rather than entire infrastructure is illustrate only in description, accompanying drawing.
Fig. 1 is the flow chart of the internal memory control method of terminal device provided in an embodiment of the present invention, and the present embodiment is applicableIn the situation is controlled by terminal device internal memory, the method can be executed by terminal device such as smart mobile phone, panel computer,Specifically include following steps:
The main memory usage for applying corresponding application of attending to anything else in step 101, acquisition terminal device.
Multiple application software are installed in terminal device, such as QQ, wechat, microblogging etc., user can be executed by these softwaresCorresponding function.In this programme, installing terminal equipment has main application and application of attending to anything else.In this programme, main application is corresponding with whichApplication attend to anything else as the application that opens in set of applications, its implementation can have many kinds, and the present embodiment is not specifically limited more.For example, the application of different editions can be respectively mounted, using a kind of version as main application, using other versions as application of attending to anything else, itsIn, installation kit (APK) file of application can be changed by decompiling, then amended APK file is installed to realize difference is installedThe same money application of version;And for example, open assistant's software the third party that application simulation user's space and Dynamic loading technique can be passed through moreTo realize;For another example, can be realized by changing system mechanism.
Preferably, open set of applications in the present embodiment to realize based on multi-user's mechanism, wherein multi-user's mechanism is concrete moreMay include multi-user's mechanism that the operating system in intelligent terminal is supported, such as multi-user's mechanism of Android (Android) systemAnd multi-user's mechanism of mobile phone window (Windows Phone, WP) operating system etc..
Wherein, open set of applications to realize based on multi-user's mechanism more, now illustrated as follows:
Specifically, open set of applications to realize may include following content based on multi-user's mechanism more:Main application is installed on masterUnder user, application of attending to anything else is installed on under user, comprising the access port for being used for operating application of attending to anything else in primary user.
In one embodiment, multi-user's realization mechanism of the application includes following logic:
1. multi-user management
A) system default has a primary user, and primary user can create other multiple new user (from users), it is possible toDelete and manage them;
B) domestic consumer (non-master user) and Guest User, can be collectively referred to as from user;
C) acquiescence primary user id (identity, Identification) is 0, and other Add User id from the beginning of 10, byIndividual increase;
When d) switching user, a series of changing interface such as desktop can be reloaded;
E) primary user can limit whether other users can take the authority such as phone and transmitting-receiving note.
For multi-user management, can by primary user to being managed from user, including the establishment from user, deletion andPriority assignation etc., ID are arranged from the beginning of primary user, are increased newly from when switching between ID laminated structure, each user, and it is right to reloadAnswer a series of interfaces such as desktop of user.
2. multi-user's peace loading, unloading application
A) application of default installation, can be installed to all users that oneself creates, all visible application on other user's desktopsIcon;
B) application that is installed by file management in primary user, will not be installed to other users, on other user's desktopsInvisible application icon;
C) system may specify userid (User Identity) when loading, unloading application is pacified, it is intended that application is installed to certainSpecified user, or the application is unloaded in certain specified user.All users can also all be installed with application, or unloading application.
D) application B has been unloaded in user A, for other users, apply B still to exist, all visible application on desktopIcon, on other users, application B normally can be used.
Loading, unloading application is pacified for multi-user, the application of default installation can be installed to all users for having created (including masterUser and from user), and on each user's desktop generate application icon;And installed by file management under primary user shouldWith, be mounted only under primary user, primary user's desktop generate application icon, be not installed under user;Installation/the unloading of applicationAlso user can be specified based on user, user is specified in primary user and from user by specifying User IdentityThe installation of application/be discharged under certain user, certain user or all users is carried out;Being discharged under each user for same application is onlyStanding is carried out, and the application under a certain user is unloaded, does not affect the use of the application under other users.
3. user data management
A) related to system data user's id catalogue:The corresponding various system data storages of user are housed, for example:TableFace widget (component) list, arranges database, and default application starts strategy etc..
B) related to application packet data user's id catalogue:House user and the application bag catalogue that installs is corresponded to, if shouldData are generated with operation, then application data also deposits in this catalogue.
C) system SD card (Secure Digital Memory Card, safe digital card) catalogue:Each user sees certainlyOneself sdcard catalogue is all different, can only see the sdcard catalogue of oneself.
For user data management, under multi-user's realization mechanism, under each user, system data and application-dependent data are dividedDo not deposit under different data storage paths, e.g., under certain user, various system datas deposit in the first data storage that specifiesUnder path, and application data these application-dependent data that the application bag catalogue installed and application operating are produced are deposited in and are specifiedUnder second data storage path;Under each user, data storage is separate, and each user can only check the data storage of itself, such as certainlyThe sdcard catalogue of body.
4. user authority management
A) application after installation, applies the various authorities of application (for example:Read storage catalogue authority, read-write note powerLimit, opens camera authority etc.), can be divided into two parts, a part of insensitive authority, when application is installed, system is directly allowedApplication obtains authority;A part for example reads and writes note authority than more sensitive danger authority, can be when application is used, and system is carriedShow whether user allows application to obtain authority.
B) in different users, the authority to same application is independent and isolated, the base that an application is obtained to systemThis insensitive authority, after mounting, directly obtains in each user, and part than more sensitive danger authority isIndependent.For example:When user 0 opens wechat, if obtaining read-write note authority, when being switched to user 10, beat for the first timeWhen opening wechat, system still can prompt the user whether to allow, and will not remind because wechat obtains authority in user 0.WithReason, same in other users.
For user authority management, when under a certain user, application is installed, insensitive authority can directly obtain permission, sensitive powerLimit need to be obtained through user's license;Under different users, the authority configuration to same application is independent and isolated mutually, in userDuring switching, for the sensitive permission of the application for using for the first time, it is both needed to point out whether user assigns power.
In the present embodiment, open the process that set of applications realized based on multi-user's mechanism can be described as follows more:
Assume intelligent terminal default user be primary user, user under primary user pass through from application shop download or fromInstallation kit (package, APK) the file such as ABC.apk for applying ABC is stored in intelligent terminal by the modes such as other source copiesIn, after system installs ABC.apk under primary user, primary user's desktop can generate the icon of a main application ABC.When in primary userUnder detect for main application ABC attend to anything else request to create when, (if there is currently no from user, one can created from userIndividual from user, the establishment process cannot be completed in the case of discovering in user, without user setup account and password) underABC.apk is installed application of attending to anything else is obtained, in order to be distinguish between to main application and application of attending to anything else, can add for the new application of attending to anything else that installsPlus a mark (being assumed to be *), application of attending to anything else can be designated as ABC*.After ABC* installs success, may specify " installing successfully "Notice (in the notice also add mark *) be sent to the desktop reception under primary user, primary user to the notice after, generation oneThe individual icon with mark *, is made a distinction with the icon with main application ABC, and the icon can be used as to application of attending to anything else in primary userThe access port for being operated, after the icon is clicked, specified ABC* is being started under user by system, phase corresponding with ABC*Pass process is also in the operation under user, and the human-computer interaction interface (abbreviation interface) of ABC* is shown under primary user, nowThe interface of ABC* also can be used as access port application of attending to anything else operated in primary user.
For application of attending to anything else, the existence form of its access port in primary user can be diversified, this realityApply example to be not specifically limited, for example, it may be the desktop icons comprising application identities, the application identities should in order to currently to be attended to anything elseWith with main application and other application divisions of attending to anything else come;Can also be the application identities being additional on main application icon;May be used alsoTo be the icon comprising application identities existed with floating window form;Can also be the project for being present in the positions such as notice center.
Intelligent terminal user can achieve the operation to main application in primary user, while can also be by accessing in primary userMouth is operated to application of attending to anything else accordingly.It is understood that same main application can correspond to multiple applications of attending to anything else, each pointBody application be all installed in one different from user, the application that makes respectively to attend to anything else is separately operable in different from user, in fortuneIt does not interfere with each other during row.
Application being opened realize based on multi-user's mechanism to be advantageous in that more, for opening assistant's software compared to third party more,Avoid third party software advertisement and the generation of the behaviors such as privacy of user data is stolen, security is higher;Compare and answer with mainFor the scheme for all running under same user with application of attending to anything else, reduce difference under same user and attend to anything else application or main applicationBetween process interference, and the generation for avoiding afunction phenomenon that complicated running environment brought.
In this programme, when user needs to open multiple identical (i.e. main application and one or more applications of attending to anything else), multipleIdentical application can be while run, now the rate of load condensate of Installed System Memory can gradually rise in systems.In this step, terminal is obtainedIn equipment, the main memory usage for applying corresponding application of attending to anything else, exemplary, in android system, can be by applicationUID, process PID or userid come to main application and application of attending to anything else make a distinction, and then get main application corresponding attend to anything else shouldMemory usage.Wherein, memory usage characterizes the size of the shared internal memory of application of attending to anything else, and memory usage gets over Gao ZeThe system resource of consumption is bigger, otherwise less.The memory usage of the application of attending to anything else can be by dividing for opening under application of attending to anything elseBody process determines.Specifically, one attend to anything else apply using when can open one or more processes of attending to anything else, each process meeting of attending to anything elseCertain memory headroom is taken, the memory usage of the application of attending to anything else can be obtained by the memory usage sum of each process.
If the memory usage of step 102 application of attending to anything else is more than the first predetermined threshold value, application of attending to anything else described in judgementWhether meeting control condition, if meeting, the corresponding process of application of attending to anything else being controlled processing.
Exemplary, first predetermined threshold value can be 5%, 10%, 15% or 20% etc., can be arranged by system default,Also setting can be manually entered by user.When the memory usage of application of attending to anything else is determined more than first predetermined threshold value, that is, anticipateThe internal memory that taste its occupancy is higher, and the consumption to system resource is larger, now judges whether the application of attending to anything else meets control condition,The corresponding process of application of attending to anything else is controlled processing in the case of control condition is met.Wherein, process mainly includes:Ready state, execution state, blocked state, suspended state and final state etc..Wherein, can be right to the control process of processAbove-mentioned state of a process is switched over, exemplary, process is hung up and can discharge its corresponding memory source for taking, work as systemWhen memory source is sufficient, it is ensured that the process flow operation of system.
Skilled person will appreciate that, as main application is usually the main application that user opens, and only answered by mainOpen and can't badly influence the memory source of terminal device (existing terminal device hardware can support multiple main applicationsUnlatching), but as increasing for application of attending to anything else gradually can be consumed to system resource, therefore this programme is mainly for application of attending to anything elseThe internal memory of occupancy is controlled, but the control being equally applicable to main application.
The technical scheme of the present embodiment, obtains the main memory usage for applying corresponding application of attending to anything else in terminal device;IfThe memory usage of the application of attending to anything else is more than the first predetermined threshold value, then whether application of attending to anything else described in judgement meets control condition,If meeting, the corresponding process of application of attending to anything else being controlled processing, increasing with the number of applications that opens is solved,The memory source of system will be consumed, and thus cause system smooth can not run, have a strong impact on the experience effect of userProblem, it is achieved that user is capable of the smooth operation of safeguards system after multiple applications are opened, while also extending terminal deviceRun time, save system resource.
Fig. 2 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention, the present embodimentGive a kind of mode that process is controlled in the case of specific control condition is met to the corresponding process of application of attending to anything else, toolBody comprises the steps:
The main memory usage for applying corresponding application of attending to anything else in step 201, acquisition terminal device.
If the memory usage of step 202 application of attending to anything else is more than the first predetermined threshold value, application of attending to anything else described in judgementWhether background operation state is in, if so, then the corresponding process of application of attending to anything else is hung up.
Wherein, running status of the application software after unlatching mainly includes front stage operation state and background operation state.ItsIn, front stage operation state refers to that application software is directly run by window, can directly be interacted with user, generally there are friendshipMutual interface.Background operation state refers to that application software is run in explorer, there is usually no interactive interface, it is impossible to directly andUser interacts, but still can occupying system resources.In this step, when determination attends to anything else application in background operation state, i.e.,It is not used by a user when interacting with user, the corresponding process of application of attending to anything else is hung up, it is possible thereby to discharge application of attending to anything elseShared system resource, while impact can't be produced on the operation of user.
The technical scheme of the present embodiment, too high and when which is in running background when application memory occupancy of attending to anything else is determined,The corresponding process of application of attending to anything else is hung up, solves increasing with the number of applications that opens, the memory source of system will be byRapid consumption, thus causes system smooth can not run, has had a strong impact on the problem of the experience effect of user, it is achieved that Yong HuIt is capable of the smooth operation of safeguards system after opening multiple applications, while the run time of terminal device is also extended, saves and beSystem resource.
Fig. 3 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention, the present embodimentOn the basis of the various embodiments described above, give a kind of specific foundation function for being carrying out of application of attending to anything else and determine whether to whichThe method for being controlled processing, specifically includes following steps:
The main memory usage for applying corresponding application of attending to anything else in step 301, acquisition terminal device.
If the memory usage of step 302 application of attending to anything else is more than the first predetermined threshold value, judge whether to pass throughThe application of attending to anything else carries out audio frequency and video process, if it is not, then hanging up the corresponding audio frequency and video process of application of attending to anything else.
Wherein, different applications of attending to anything else possesses different functions.Usual one application of attending to anything else can be according to the need of itself functionThe multiple processes of unlatching are sought, each process executes corresponding function, in this step, audio frequency and video process whether is being carried out to which to be carried outJudge, process does not carry out audio frequency and video process if this is attended to anything else, only the corresponding audio frequency and video process of application of attending to anything else is hung up.With realityApply unlike example two, when system resource is nervous, even if this is attended to anything else applying in front stage operation state, but for carrying out a certain work(When can operate (audio frequency and video as the present embodiment are processed), corresponding process can be hung up to discharge resource, while can't affectNormal operating to user.
The technical scheme of the present embodiment, is attended to anything else in application by selective hang-up of the judgement for applying perform function to attending to anything elsePartial Process, solve the problems, such as to attend to anything else application in front stage operation when cannot hang up process with releasing memory, it is achieved that userIt is capable of the smooth operation of safeguards system after multiple applications are opened, while the run time of terminal device is also extended, savesSystem resource.
On the basis of technique scheme, step 302 can also be:If the memory usage of the application of attending to anything else is more thanFirst predetermined threshold value, then judge whether to carry out localization process by the application of attending to anything else, if it is not, then by the application of attending to anything elseCorresponding positioning service process is hung up.Wherein, positioning service is that great majority apply the service that can all start after unlatching, butUser can't have always a demand for positioning service, judge to whether application of attending to anything else is carrying out localization process in this programme, ifDo not carry out, then hang up positioning service process accordingly, guarantee in sight is attended to anything else on the premise of application normally runs and releases internal memory moneySource, it is ensured that the process flow operation of system.
Fig. 4 is the flow chart of the internal memory control method of another kind terminal device provided in an embodiment of the present invention, the present embodimentOn the basis of the various embodiments described above, give a kind of direct terminate the method that the process of application carrys out free system resources of attending to anything else,Specifically include following steps:
The main memory usage for applying corresponding application of attending to anything else in step 401, acquisition terminal device.
If the memory usage of step 402 application of attending to anything else more than the first predetermined threshold value and described attend to anything else apply pre-If not in front stage operation mistake, the then process of application of attending to anything else described in termination in the time.
Wherein, the Preset Time can be 15 minutes, 30 minutes or 60 minutes etc., that is, attending to anything else to apply did not existed in certain timeFront stage operation mean user may within the long period of time all will not the use application of attending to anything else, now directly terminate this pointThe process of body application carrys out free system resources.
The technical scheme that the present embodiment is provided, by directly terminating long-time not in the application of attending to anything else of front stage operation, realizesUser is capable of the smooth operation of safeguards system after multiple applications are opened, while also extend the run time of terminal device,Save system resource.
On the basis of the various embodiments described above, step 402 can also be:If the memory usage of the application of attending to anything else is more thanThe consumption rate of the first predetermined threshold value and the application of attending to anything else is more than default consumption rate, the then process of application of attending to anything else described in termination.ItsIn, the default consumption rate can be 10%, 20% or 30%, in this programme, application of attending to anything else too high for consumption rate directly be terminatedTo ensure the endurance of terminal device.
On the basis of the various embodiments described above, step 402 can also be:If the memory usage of the application of attending to anything else is more thanThe utilization rate of the first predetermined threshold value and the application of attending to anything else is less than default utilization rate, the then process of application of attending to anything else described in termination.ItsIn, the default utilization rate can be that utilization rate is lower to be meaned user and be not frequently used the application of attending to anything else 1 times a week, now,The relatively low application of attending to anything else of preferential termination utilization rate ensures the process flow operation of system with free system resources.
On the basis of the various embodiments described above, attend to anything else in terminal device is obtained before the memory usage of application, also wrapInclude:Obtain the Memory Load rate of terminal device;Obtain the main memory usage bag for applying corresponding application of attending to anything else in terminal deviceInclude:If the Memory Load rate of the terminal device is more than the second predetermined threshold value, corresponding point of main application in terminal device is obtainedThe memory usage of body application.In this programme, when the internal memory to terminal device is controlled, it is first determined terminal device interiorRate of load condensate is deposited, the Memory Load rate characterizes the current EMS memory occupation situation of terminal device, and Memory Load rate is higher to mean endThe available internal memory of end equipment is fewer, and the operation of system will appear from interim card and even crash.This programme is according to the Memory Load for gettingThe big I of rate carries out Memory control in time so that the efficiency to Memory control is significantly improved, without the need in real time to application of attending to anything elseThe process of application that process is hung up or direct termination is attended to anything else.
On the basis of the various embodiments described above, also include recovery attend to anything else application corresponding process the step of, exemplary, whenThe Memory Load rate of terminal device reduces or user needs to reuse this and attends to anything else application constantly, and the recovery of adaptability is attended to anything else shouldOperation that can be again timely to user is applied to respond with corresponding process in order to attend to anything else.
Fig. 5 is the structure chart of the Memory control device of terminal device provided in an embodiment of the present invention, specifically includes as follows:
Memory usage acquisition module 1, for obtaining the main EMS memory occupation for applying corresponding application of attending to anything else in terminal deviceRate;
PROCESS CONTROL MODULE 2, if being more than the first predetermined threshold value for the memory usage of the application of attending to anything else, judges instituteStating whether application of attending to anything else meets control condition, if meeting, the corresponding process of application of attending to anything else being controlled processing.
The technical scheme of the present embodiment, by obtaining the main EMS memory occupation for applying corresponding application of attending to anything else in terminal deviceRate;If the memory usage of the application of attending to anything else is more than the first predetermined threshold value, whether application of attending to anything else described in judgement meets controlCondition, if meeting, being controlled processing to the corresponding process of application of attending to anything else, solving with the number of applications that opensIncrease, the memory source of system will be consumed, thus cause system smooth can not run, had a strong impact on the experience of userThe problem of effect, it is achieved that user is capable of the smooth operation of safeguards system after multiple applications are opened, while also extending terminalThe run time of equipment, saves system resource.
On the basis of technique scheme, the PROCESS CONTROL MODULE 2 specifically for:
Whether application of attending to anything else described in judging is in background operation state, if so, then by the corresponding process of application of attending to anything elseHang up.
On the basis of technique scheme, the PROCESS CONTROL MODULE 2 specifically for:
Judge whether to carry out audio frequency and video process by the application of attending to anything else, if it is not, then corresponding to the application of attending to anything elseAudio frequency and video process hang up.
On the basis of technique scheme, the PROCESS CONTROL MODULE 2 specifically for:
Judge whether to carry out localization process by the application of attending to anything else, if it is not, then will be corresponding for the application of attending to anything elsePositioning service process is hung up.
On the basis of technique scheme, the PROCESS CONTROL MODULE 2 is at least one specifically for subordinate:
If described attend to anything else apply in the Preset Time not in front stage operation mistake, terminate described in attend to anything else the process of application;
If the consumption rate of the application of attending to anything else is more than consumption rate is preset, the process of application of attending to anything else described in termination;
If the utilization rate of the application of attending to anything else is less than utilization rate is preset, the process of application of attending to anything else described in termination.
On the basis of technique scheme, also include:
Memory Load rate acquisition module 3, for obtaining the Memory Load rate of terminal device;
The memory usage acquisition module 1 specifically for:
If the Memory Load rate of the terminal device is more than the second predetermined threshold value, obtains main application in terminal device and correspond toApplication of attending to anything else memory usage.
On the basis of technique scheme, the PROCESS CONTROL MODULE 2 is additionally operable to:
According to the operating instruction for receiving, recover described in attend to anything else the operation of process.
The said goods can perform the method provided by any embodiment of the present invention, possess the corresponding functional module of execution methodAnd beneficial effect.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and the terminal device can include thisThe Memory control device that invention any embodiment is provided.Fig. 6 is that a kind of structure of terminal device provided in an embodiment of the present invention is shownIt is intended to, as shown in fig. 6, the terminal device can include:Memory 601, central processing unit (Central ProcessingUnit, CPU) 602, Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, voicefrequency circuit 606, loudspeaker611st, power management chip 608, input/output (I/O) subsystem 609, touch-screen 612, other input/control devicess 610 withAnd outside port 604, these parts are communicated by one or more communication bus or holding wire 607.
It should be understood that graphic terminal 600 is only an example of terminal device, and terminal device 600Can have than the more or less part shown by figure, two or more parts can be combined, or permissibleConfigure with different parts.Various parts shown by figure can include one or more signal transacting and/or specialIntegrated circuit is realized in the combination of interior hardware, software or hardware and software.
Below with regard to the present embodiment offer for the terminal device of the rights management for opening application is described in detail more, shouldTerminal device is by taking smart mobile phone as an example.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 canWith include high-speed random access memory, can also include nonvolatile memory, for example one or more disk memory,Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU602 and deposit by Peripheral Interface 603, the Peripheral Interface 603Reservoir 601.
I/O subsystem 609, the I/O subsystem 609 can be by the input/output peripherals on equipment, such as touch-screen 612With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystem 609 can include 6091 He of display controllerFor controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controlsDevice processed 6092 receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610,Other input/control devicess 610 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviourVertical pole, click roller.What deserves to be explained is, input controller 6092 can with following any one be connected:Keyboard, infrared port,The instruction equipment of USB interface and such as mouse.
Touch-screen 612, the touch-screen 612 is the input interface between user terminal and user and output interface, canDepending on output display to user, visual output can include figure, text, icon, video etc..
Display controller 6091 in I/O subsystem 609 receives electric signal or to touch-screen 612 from touch-screen 612Electric signals.Touch-screen 612 detects the contact on touch-screen, and the contact for detecting is converted to and display by display controller 6091The interaction of the user interface object on touch-screen 612, that is, realize man-machine interaction, shows the user interface on touch-screen 612Object can be the icon of running game, be networked to icon of corresponding network etc..What deserves to be explained is, equipment can also include lightMouse, light mouse are the touch sensitive surface for not showing visual output, or the extension of the touch sensitive surface formed by touch-screen.
RF circuit 605, is mainly used in setting up the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless networkThe data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 605 receives and sends RF letterNumber, RF signal is also referred to as electromagnetic signal, and RF circuit 605 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunicationsNumber, and communicated with communication network and other equipment by the electromagnetic signal.RF circuit 605 can be included for executingThe known circuit of these functions, its include but is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, oneIndividual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, ID mouldBlock (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606, is mainly used in receiving voice data from Peripheral Interface 603, the voice data is converted to telecommunicationsNumber, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611, for the voice signal for receiving mobile phone by RF circuit 605 from wireless network, is reduced to soundAnd the sound is played to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface are poweredAnd power management.
The executable following operation of CPU602 provided in an embodiment of the present invention:
Obtain the main memory usage for applying corresponding application of attending to anything else in terminal device;
If the memory usage of the application of attending to anything else is more than the first predetermined threshold value, whether application of attending to anything else described in judgement meetsControl condition, if meeting, is controlled processing to the corresponding process of application of attending to anything else.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art thatThe invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above exampleIt is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, alsoOther Equivalent embodiments more can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (15)

Translated fromChinese
1.一种终端设备的内存控制方法,其特征在于,包括:1. A memory control method of a terminal device, characterized in that, comprising:获取终端设备中主应用对应的分身应用的内存占用率;Obtain the memory usage rate of the clone application corresponding to the main application in the terminal device;若所述分身应用的内存占用率大于第一预设阈值,则判断所述分身应用是否满足控制条件,若满足,则对所述分身应用对应的进程进行控制处理。If the memory usage rate of the clone application is greater than a first preset threshold, it is judged whether the clone application satisfies the control condition, and if so, the process corresponding to the clone application is controlled.2.根据权利要求1所述的方法,其特征在于,判断所述分身应用是否满足控制条件,若满足,则对所述分身应用对应的进程进行控制处理包括:2. The method according to claim 1, wherein judging whether the avatar application satisfies the control condition, and if so, controlling the process corresponding to the avatar application includes:判断所述分身应用是否处于后台运行状态,若是,则将所述分身应用对应的进程挂起。Judging whether the clone application is running in the background, and if so, suspending the process corresponding to the clone application.3.根据权利要求1所述的方法,其特征在于,判断所述分身应用是否满足控制条件,若满足,则对所述分身应用对应的进程进行控制处理包括:3. The method according to claim 1, wherein judging whether the avatar application satisfies the control condition, and if so, controlling the process corresponding to the avatar application includes:判断是否正在通过所述分身应用进行音视频处理,若否,则将所述分身应用对应的音视频进程挂起。Judging whether audio and video processing is being performed by the clone application, if not, suspending the audio and video process corresponding to the clone application.4.根据权利要求1所述的方法,其特征在于,判断所述分身应用是否满足控制条件,若满足,则对所述分身应用对应的进程进行控制处理包括:4. The method according to claim 1, wherein judging whether the avatar application satisfies the control condition, and if so, controlling the process corresponding to the avatar application includes:判断是否正在通过所述分身应用进行定位处理,若否,则将所述分身应用对应的定位服务进程挂起。Judging whether the location processing is being performed by the clone application, if not, suspending the positioning service process corresponding to the clone application.5.根据权利要求1-4中任一项所述的方法,其特征在于,判断所述分身应用是否满足控制条件,若满足,则对所述分身应用对应的进程进行控制处理包括下述至少一种:5. The method according to any one of claims 1-4, wherein judging whether the avatar application satisfies the control condition, and if so, controlling the process corresponding to the avatar application includes at least the following: A sort of:若所述分身应用在预设时间内未在前台运行过,则终止所述分身应用的进程;If the clone application has not been run in the foreground within a preset time, then terminate the process of the clone application;若所述分身应用的耗电率大于预设耗电率,则终止所述分身应用的进程;If the power consumption rate of the clone application is greater than a preset power consumption rate, then terminate the process of the clone application;若所述分身应用的使用率小于预设使用率,则终止所述分身应用的进程。If the usage rate of the clone application is less than a preset usage rate, the process of the clone application is terminated.6.根据权利要求5所述的方法,其特征在于,在获取终端设备中主应用对应的分身应用的内存占用率之前,还包括:6. The method according to claim 5, further comprising:获取终端设备的内存负荷率;Obtain the memory load rate of the terminal device;获取终端设备中主应用对应的分身应用的内存占用率包括:Obtaining the memory usage rate of the clone application corresponding to the main application in the terminal device includes:若所述终端设备的内存负荷率大于第二预设阈值,则获取终端设备中主应用对应的分身应用的内存占用率。If the memory load rate of the terminal device is greater than the second preset threshold, the memory usage rate of the secondary application corresponding to the main application in the terminal device is acquired.7.根据权利要求2所述的方法,其特征在于,在将所述分身应用对应的进程挂起后,还包括:7. The method according to claim 2, further comprising: after suspending the process corresponding to the clone application:根据接收到的运行指令,恢复所述分身应用对应的进程的运行。According to the received running instruction, the running of the process corresponding to the clone application is resumed.8.一种终端设备的内存控制装置,其特征在于,包括:8. A memory control device for a terminal device, comprising:内存占用率获取模块,用于获取终端设备中主应用对应的分身应用的内存占用率;The memory usage acquisition module is used to acquire the memory usage of the clone application corresponding to the main application in the terminal device;进程控制模块,用于若所述分身应用的内存占用率大于第一预设阈值,则判断所述分身应用是否满足控制条件,若满足,则对所述分身应用对应的进程进行控制处理。A process control module, configured to judge whether the clone application satisfies the control condition if the memory usage rate of the clone application is greater than a first preset threshold, and if so, control the process corresponding to the clone application.9.根据权利要求8所述的装置,其特征在于,所述进程控制模块具体用于:9. The device according to claim 8, wherein the process control module is specifically used for:判断所述分身应用是否处于后台运行状态,若是,则将所述分身应用对应的进程挂起。Judging whether the clone application is running in the background, and if so, suspending the process corresponding to the clone application.10.根据权利要求8所述的装置,其特征在于,所述进程控制模块具体用于:10. The device according to claim 8, wherein the process control module is specifically used for:判断是否正在通过所述分身应用进行音视频处理,若否,则将所述分身应用对应的音视频进程挂起。Judging whether audio and video processing is being performed by the clone application, if not, suspending the audio and video process corresponding to the clone application.11.根据权利要求8所述的装置,其特征在于,所述进程控制模块具体用于:11. The device according to claim 8, wherein the process control module is specifically used for:判断是否正在通过所述分身应用进行定位处理,若否,则将所述分身应用对应的定位服务进程挂起。Judging whether the location processing is being performed by the clone application, if not, suspending the positioning service process corresponding to the clone application.12.根据权利要求8-11中任一项所述的装置,其特征在于,所述进程控制模块具体用于下属至少一种:12. The device according to any one of claims 8-11, wherein the process control module is specifically used for at least one of the following:若所述分身应用在预设时间内未在前台运行过,则终止所述分身应用的进程;If the clone application has not been run in the foreground within a preset time, then terminate the process of the clone application;若所述分身应用的耗电率大于预设耗电率,则终止所述分身应用的进程;If the power consumption rate of the clone application is greater than a preset power consumption rate, then terminate the process of the clone application;若所述分身应用的使用率小于预设使用率,则终止所述分身应用的进程。If the usage rate of the clone application is less than a preset usage rate, the process of the clone application is terminated.13.根据权利要求12所述的装置,其特征在于,还包括:13. The device of claim 12, further comprising:内存负荷率获取模块,用于获取终端设备的内存负荷率;The memory load rate acquisition module is used to obtain the memory load rate of the terminal device;所述内存占用率获取模块具体用于:The memory usage acquisition module is specifically used for:若所述终端设备的内存负荷率大于第二预设阈值,则获取终端设备中主应用对应的分身应用的内存占用率。If the memory load rate of the terminal device is greater than the second preset threshold, the memory usage rate of the secondary application corresponding to the main application in the terminal device is acquired.14.根据权利要求9所述的装置,其特征在于,所述进程控制模块还用于:14. The device according to claim 9, wherein the process control module is also used for:根据接收到的运行指令,恢复所述分身应用对应的进程的运行。According to the received running instruction, the running of the process corresponding to the clone application is resumed.15.一种终端设备,其特征在于,所述终端设备集成了如权利要求8-14中任意一项所述的装置。15. A terminal device, characterized in that the terminal device integrates the apparatus according to any one of claims 8-14.
CN201610885211.7A2016-10-102016-10-10Memory control method and device of terminal equipment and terminal equipmentExpired - Fee RelatedCN106484538B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610885211.7ACN106484538B (en)2016-10-102016-10-10Memory control method and device of terminal equipment and terminal equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610885211.7ACN106484538B (en)2016-10-102016-10-10Memory control method and device of terminal equipment and terminal equipment

Publications (2)

Publication NumberPublication Date
CN106484538Atrue CN106484538A (en)2017-03-08
CN106484538B CN106484538B (en)2020-01-14

Family

ID=58269523

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610885211.7AExpired - Fee RelatedCN106484538B (en)2016-10-102016-10-10Memory control method and device of terminal equipment and terminal equipment

Country Status (1)

CountryLink
CN (1)CN106484538B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106940761A (en)*2017-03-272017-07-11联想(北京)有限公司The control method and controller of a kind of application program
CN108228472A (en)*2017-08-142018-06-29珠海市魅族科技有限公司Terminal equipment control method and device, terminal device and computer readable storage medium
CN109032686A (en)*2018-06-072018-12-18北京小米移动软件有限公司Data processing method and device
CN111198759A (en)*2018-11-162020-05-26深圳市优必选科技有限公司 A memory optimization method, system, terminal device and readable storage medium
CN111601007A (en)*2020-04-092020-08-28深圳震有科技股份有限公司Control method for limiting call and electronic equipment
CN111857689A (en)*2020-07-272020-10-30深信服科技股份有限公司 A framework, a function configuration method of the framework, a terminal and a storage medium

Citations (7)

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

Patent Citations (7)

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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SMALL_ROLE: "android 5.0 创建多用户 双开多开应用(2),small_role,CSDN博客,https://blog.csdn.net/small_role/article/details/51745307", 《ANDROID 5.0 创建多用户 双开多开应用(2)》*

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106940761A (en)*2017-03-272017-07-11联想(北京)有限公司The control method and controller of a kind of application program
CN108228472A (en)*2017-08-142018-06-29珠海市魅族科技有限公司Terminal equipment control method and device, terminal device and computer readable storage medium
CN109032686A (en)*2018-06-072018-12-18北京小米移动软件有限公司Data processing method and device
CN109032686B (en)*2018-06-072021-10-22北京小米移动软件有限公司 Data processing method and device
CN111198759A (en)*2018-11-162020-05-26深圳市优必选科技有限公司 A memory optimization method, system, terminal device and readable storage medium
CN111198759B (en)*2018-11-162024-04-19深圳市优必选科技有限公司Memory optimization method, system, terminal equipment and readable storage medium
CN111601007A (en)*2020-04-092020-08-28深圳震有科技股份有限公司Control method for limiting call and electronic equipment
CN111857689A (en)*2020-07-272020-10-30深信服科技股份有限公司 A framework, a function configuration method of the framework, a terminal and a storage medium

Also Published As

Publication numberPublication date
CN106484538B (en)2020-01-14

Similar Documents

PublicationPublication DateTitle
CN106484538A (en) A memory control method and device for terminal equipment and terminal equipment
CN106357921B (en)Application data sharing method and device and mobile terminal
CN106484478B (en)Method and device for creating body-divided application and mobile terminal
CN106445647B (en)Multi-open application data operation method and device and mobile terminal
CN106657589A (en) Method, device and mobile terminal for message reminder in multi-open application
CN106650324A (en) Application rights management method, device and mobile terminal
CN106445612B (en)Method and device for opening application and mobile terminal
CN106484479A (en) A management method, device and intelligent terminal for multiple applications
CN109271211A (en)Method, apparatus of attending to anything else, equipment and the medium of application program
CN106485136A (en) Application permission configuration method, device and mobile terminal
CN106648736B (en)Application control method and device and mobile terminal
CN106648737B (en)Application control method and device and mobile terminal
CN106502732B (en)Application closing method and device and intelligent terminal
CN106445706A (en) Multi-application data transmission method, device and mobile terminal
CN106445671A (en)Application program management method and device and terminal
CN106650403B (en)Multi-open application permission management method and device and intelligent terminal
CN106445670B (en)Multi-open application data management method and device and mobile terminal
CN106485111B (en)Method, device and terminal for hiding self-service application
CN106648459B (en)Application data management method and device and mobile terminal
CN106650402B (en)Permission configuration method and device of application program and mobile terminal
CN106383672B (en)Data deleting method and device for multi-open application and mobile terminal
CN106648908A (en) Application process control method, device and mobile terminal
CN106484482A (en)A kind of application management method of attending to anything else opened in application, device and intelligent terminal more
CN106488020A (en) A multi-open application operation management method, device and intelligent terminal
CN106502730A (en) A method, device, and terminal for association management of multiple open applications

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change of applicant information

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

Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20200114


[8]ページ先頭

©2009-2025 Movatter.jp