CN106598644B - Memory optimization method and system for terminal equipment - Google Patents

Memory optimization method and system for terminal equipment Download PDF

Info

Publication number
CN106598644B
CN106598644B CN201610989563.7A CN201610989563A CN106598644B CN 106598644 B CN106598644 B CN 106598644B CN 201610989563 A CN201610989563 A CN 201610989563A CN 106598644 B CN106598644 B CN 106598644B
Authority
CN
China
Prior art keywords
application
memory
memory data
occupied
version number
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
CN201610989563.7A
Other languages
Chinese (zh)
Other versions
CN106598644A (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.)
TCL Technology Group Co Ltd
Original Assignee
TCL Technology Group Co 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 TCL Technology Group Co Ltd filed Critical TCL Technology Group Co Ltd
Priority to CN201610989563.7A priority Critical patent/CN106598644B/en
Publication of CN106598644A publication Critical patent/CN106598644A/en
Application granted granted Critical
Publication of CN106598644B publication Critical patent/CN106598644B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/323Visualisation of programs or trace data

Abstract

The invention discloses a memory optimization method and a system of terminal equipment, wherein the method comprises the following steps: when terminal equipment receives a request for installing an application, acquiring a packet name and a version number of the application, acquiring first memory data required to be occupied by the application from a preconfigured server according to the packet name and the version number of the application, and comparing the first memory data with a memory threshold value set for the application by a system; and when the first memory data is larger than the memory threshold value, prompting a user whether to continuously install the application, and carrying out corresponding operation according to an operation instruction of the user. According to the method, the memory data of the application to be installed is judged, when the application with overlarge memory occupied by the application to be installed is installed, a prompt is given to a user, the user can determine whether to continue to install the application, the phenomenon that the terminal equipment excessively consumes the application of the memory is avoided, and the effect of optimizing the memory is achieved.

Description

Memory optimization method and system for terminal equipment
Technical Field
The invention relates to the technical field of intelligent terminal equipment, in particular to a memory optimization method and system of terminal equipment.
Background
With the widespread use of intelligent system installation, the number of applications in application stores is also large, users can install more applications that they like to the terminal equipment, and the number of applications in the terminal equipment is increasing. However, when an application is installed in the existing terminal device, the application is directly installed according to the received installation instruction, and the memory occupied by the application is not predicted. Therefore, a large number of application programs occupy the memory of the terminal equipment, so that the memory consumption of the terminal equipment is overlarge, and the operation efficiency is influenced. Meanwhile, the waste of the electric quantity and the flow of the terminal equipment is caused, and the running speed of the system is slowed down.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for optimizing a memory of a terminal device, aiming at overcoming the defects in the prior art, so as to solve the problem that the memory occupied by an application is not estimated when the terminal device is installed and applied, so that the memory usage process is consumed during installation and application, which causes excessive memory efficiency and affects the operation efficiency.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a memory optimization method of a terminal device comprises the following steps:
when terminal equipment receives a request for installing an application, acquiring a package name and a version number of the application;
acquiring first memory data required to be occupied by the application from a preconfigured server according to the package name and the version number of the application, and comparing the first memory data with a memory threshold value set for the application by a system;
and when the first memory data is larger than a memory threshold value, prompting a user that the memory occupied by the application is overlarge, and determining whether to continue to install the application according to an operation instruction of the user.
The memory optimization method of the terminal device, wherein the obtaining of the first memory data to be occupied by the application from the preconfigured server according to the packet name and the version number of the application and the comparing of the first memory data with the memory threshold set by the system for the application comprise:
detecting whether a network is connected;
when the network is connected, acquiring first memory data required to be occupied by the application from a preconfigured server according to the packet name and the version number of the application, and comparing the first memory data with a memory threshold value set by a system for the application;
when the network is not connected, analyzing the attribute of the application to determine whether the application sets the operation memory limit, if the application sets the operation memory limit, prompting a user that the memory occupied by the application is too large, and determining whether to continue installing the application according to an operation instruction of the user.
The memory optimization method of the terminal device, wherein when the terminal device is connected to a network, acquiring first memory data to be occupied by the application from a preconfigured server according to the packet name and the version number of the application, and comparing the first memory data with a memory threshold set for the application by a system specifically includes:
when the terminal equipment is connected with a network, sending request information for acquiring first memory data required to be occupied by the application to a server side by the terminal equipment, and monitoring feedback information of the request information, wherein the request information at least carries a packet name and a version number of the application;
if the feedback information is monitored, comparing first memory data carried by the feedback information with a memory threshold value set by the system for the application;
if the feedback information is not monitored, analyzing the attribute of the application to determine whether the application sets the running memory limit, prompting a user that the memory occupied by the application is too large when the application sets the running memory limit, and determining whether to continue installing the application according to an operation instruction of the user.
The memory optimization method of the terminal device, wherein when the terminal device receives a request for installing an application, before acquiring a package name and a version number of the application, the method further comprises:
when the terminal equipment runs, uploading packet names, version numbers and occupied second memory data of all applications running at preset time intervals to a server;
and the server receives the packet name, the version number and occupied second memory data of the application uploaded by the terminal equipment, and updates the first memory data of the application prestored by the server by adopting the second memory data.
The memory optimization method for the terminal device, wherein the server receives a packet name, a version number and occupied second memory data of an application uploaded by the terminal device, and updates, by using the second memory data, first memory data of the application stored in advance by the server specifically includes:
the server receives the package name of the application uploaded by the terminal equipment and the occupied second memory data, and inquires the first memory data pre-stored with the application according to the package name and the version number;
if the first memory data is inquired, comparing the second memory data with the first memory data;
and when the second memory data is larger than the first memory data, updating the first memory data by adopting the second memory data.
The memory optimization method of the terminal device, wherein the server receives a packet name, a version number and occupied second memory data of an application uploaded by the terminal device, and updates, by using the second memory data, first memory data of the application stored in advance by the server, further comprises:
and if the first memory data is not inquired, correspondingly storing the packet name, the version number and the occupied second memory data of the application.
A memory optimization system of terminal equipment comprises the terminal equipment and a server used for pre-storing first memory data required to be occupied by application, wherein the terminal equipment comprises an acquisition module, a comparison module and an execution module;
the acquisition module is used for acquiring the package name and the version number of the application when the terminal equipment receives a request for installing the application;
the comparison module is used for acquiring first memory data required to be occupied by the application from a preconfigured server according to the packet name and the version number of the application, and comparing the first memory data with a memory threshold value set by the system for the application;
and the execution module is used for prompting a user that the memory occupied by the application is overlarge when the first memory data is larger than the memory threshold value, and determining whether to continue to install the application according to an operation instruction of the user.
The memory optimization system of the terminal device, wherein the comparing module specifically includes:
a detection unit for detecting whether a network is connected;
the first processing unit is used for acquiring first memory data required to be occupied by the application from a preconfigured server according to the packet name and the version number of the application when the network is connected, and comparing the first memory data with a memory threshold value set for the application by a system;
and the second processing unit is used for analyzing the attribute of the application to determine whether the application sets the running memory limit or not when the network is not connected, prompting a user that the memory occupied by the application is overlarge if the application sets the running memory limit, and determining whether to continue to install the application according to an operation instruction of the user.
The memory optimization method of the terminal device, wherein the first processing unit specifically includes:
a sending subunit, configured to send, by a terminal device, request information for acquiring first memory data that needs to be occupied by the application to a server when the terminal device is connected to a network, and monitor feedback information of the request information, where the request information at least carries a packet name and a version number of the application;
the comparison subunit is configured to compare, when the feedback information is monitored, first memory data carried by the feedback information with a memory threshold set by the system for the application;
the analysis subunit is used for analyzing the attribute of the application to determine whether the application sets the running memory limit or not when the feedback information is not monitored;
and the prompting subunit is used for prompting a user that the memory occupied by the application is too large when the application sets the running memory limit, and determining whether to continue to install the application according to an operation instruction of the user.
The memory optimization system of the terminal device, wherein the terminal device further includes:
the uploading module is used for uploading the packet names, the version numbers and the occupied second memory data of all the running applications to the server at preset time intervals when the terminal equipment runs;
the server side comprises:
and the updating module is used for receiving the package name, the version number and the occupied second memory data of the application uploaded by the terminal equipment and updating the first memory data of the application stored in advance by the server by adopting the second memory data.
Has the advantages that: compared with the prior art, the invention provides a memory optimization method and a system of terminal equipment, wherein the method comprises the following steps: when terminal equipment receives a request for installing an application, acquiring a packet name and a version number of the application, acquiring first memory data required to be occupied by the application from a preconfigured server according to the packet name and the version number of the application, and comparing the first memory data with a memory threshold value set for the application by a system; and when the first memory data is larger than the memory threshold value, prompting a user whether to continuously install the application, and carrying out corresponding operation according to an operation instruction of the user. According to the method, the memory data of the application to be installed is judged, when the application with overlarge memory occupied by the application to be installed is installed, a prompt is given to a user, the user can determine whether to continue to install the application, the phenomenon that the terminal equipment excessively consumes the application of the memory is avoided, and the effect of optimizing the memory is achieved.
Drawings
Fig. 1 is a flowchart of a preferred implementation of the memory optimization method for a terminal device according to the present invention.
Fig. 2 is a flowchart of updating memory data by a server in the memory optimization method for a terminal device provided in the present invention.
Fig. 3 is a flowchart of a first embodiment of a memory optimization method for a terminal device according to the present invention
Fig. 4 is a schematic structural diagram of a memory optimization system of a terminal device provided in the present invention.
Detailed Description
The present invention provides a method and a system for optimizing a memory of a terminal device, and in order to make the purpose, technical scheme, and effect of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the present invention, suffixes such as "module", "part", or "unit" used to indicate elements are used only for facilitating the description of the present invention, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The terminal device may be implemented in various forms. For example, the terminal devices described in the present invention may include mobile terminal devices such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and fixed terminal devices such as a digital TV, a desktop computer, and the like. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal device in addition to elements particularly used for moving purposes.
The invention will be further explained by the description of the embodiments with reference to the drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating a memory optimization method for a terminal device according to a preferred embodiment of the present invention. The method comprises the following steps:
s100, when the terminal equipment receives a request for installing the application, acquiring the package name and the version number of the application.
Specifically, the terminal device receiving the application installation request refers to the terminal device receiving a request generated by a user triggering an application installation instruction. For example, the user clicks a control key of the installation application in the application mall to generate a request for installing an application program corresponding to the control key to the terminal device. And when the installation request is received, acquiring the package name and the version number of the application for uniquely determining the application program.
Further, since the application memory data of the server needs to be used in the subsequent steps, the server needs to preset a database for storing the first memory data that needs to be dedicated for the application, and the memory data of the application program in the database is uploaded to the server during the operation of the terminal device. Therefore, the method also comprises an application program uploading process before the application program is installed, and the method specifically comprises the following steps:
when the terminal equipment runs, the terminal equipment uploads the packet names, the version numbers and the occupied second memory data of all the applications running at intervals of preset time to the server, so that the server updates a database for storing the application memory data.
Accordingly, as shown in fig. 2, the server includes a database management process, which specifically includes:
h10, receiving the package name, the version number and occupied second memory data of the application uploaded by the terminal equipment;
h20, searching corresponding first memory data in a preset database according to the package name and the version number, if the first memory data are searched, executing the step H30, and if the first memory data are not searched, executing the step H50;
h30, judging whether the second memory data is larger than the first memory data, if so, executing a step H40; if not, keeping the first memory data unchanged;
h40, updating the first memory data by adopting the second memory data;
h50, setting the second memory data as the first memory data to be occupied, and correspondingly storing the first memory data, the package name and the version number in a database.
For example, when the terminal device receives a request for installing an application, the method may further include a process of determining an installation property of the application, where the process may specifically be: when terminal equipment receives an installation application, detecting whether the application is a new installation program; and if the application program is a new installation program, acquiring the package name and the version number of the application program, and if the application program is not the new installation program, directly installing the application program. That is, only when the application program is installed for the first time, whether the memory occupied by the application program is too large is determined. If the existing application program is updated, the memory judgment process is not carried out and the memory judgment process is directly installed.
S200, acquiring first memory data required to be occupied by the application from a preconfigured server according to the package name and the version number of the application, and comparing the first memory data with a memory threshold value set for the application by a system.
Specifically, the terminal device obtains a package name and a version number of the application, and queries first memory data to be occupied by the application from a server according to the package name and the version number. The first memory data is memory data occupied by the application after the application is installed on the terminal equipment. Therefore, the memory space occupied by the application can be estimated, and the first memory data is compared with the memory threshold value set for the application by the system, so that whether the application occupies too large memory is judged.
Illustratively, the first memory data is obtained by the terminal device from the server through the network, so that the process of obtaining the first memory data may include the terminal device sending a request to the server, and obtaining the first memory data according to the feedback of the server. Correspondingly, the step S200 specifically includes:
s201, detecting whether a network is connected.
Specifically, the detecting whether to connect to the network refers to detecting whether the terminal device can establish a connection with other devices on the network side through the network. In practical applications, it is common that the terminal device sets a network restriction, such as downloading or other operations in a wireless state, so that the detection of whether to connect to the network may be to detect whether the terminal device connects to the wireless network, and when the terminal device connects to only a 4G, 3G or 2G network, the user may be provided that the terminal device is not connected to the wireless network and ask whether to continue to operate in the current network state. This can avoid the problem of wasted traffic caused by the user not knowing the traffic generated by the operation.
S202, when the network is connected, acquiring first memory data of the application from a preconfigured server according to the packet name and the version number of the application, and comparing the first memory data with a memory threshold value set by a system for the application.
Specifically, when the network is connected, the terminal device obtains the applied first memory data from the server. That is to say, the terminal device sends request information for acquiring the first memory data of the application to the server, and acquires the first memory data according to the feedback information of the server.
For example, when the network is connected, obtaining the first memory data of the application from the preconfigured server according to the packet name and the version number of the application, and comparing the first memory data with the memory threshold set by the system for the application may include:
s2021, when the network is connected, the terminal sends request information for acquiring the first memory data of the application to the server side, and monitors feedback information of the request information, wherein the request information at least carries a packet name and a version number of the application.
The terminal device may send request information for acquiring the first memory data of the application to the server, where the request information carries a search identifier, such as an application package name and a version number, for searching the first memory data corresponding to the application. After the request is sent, the terminal device monitors feedback information of the request information in real time, wherein the feedback information is information used by the server side for feeding back the first memory data of the application.
Further, after the terminal device sends the request, the server needs to feed back the request information, so that a corresponding search and feedback process of the server may specifically be:
the server receives the request information and analyzes the request information to obtain the packet name and the version number of the application carried by the server;
inquiring first memory data corresponding to the packet name and the version number in a preset database for storing the first memory data of the application according to the packet name and the version number;
if the first memory data is found, sending feedback information carrying the first memory data to terminal equipment;
and if the first memory data is not found, the request information is not responded.
S2022, if the feedback information is monitored, analyzing and acquiring the first memory data carried in the monitored feedback information.
Specifically, the monitoring of the feedback information refers to receiving the feedback information within a predetermined time, where the predetermined time is a time preset for determining whether to monitor the feedback information. That is to say, if the feedback information is monitored within a predetermined time, the first memory data carried in the feedback information is analyzed and acquired. If the feedback information is monitored within the preset time, it is indicated that the server side does not store the memory data of the application. At this time, the terminal device analyzes the application attribute information, and determines whether to prompt the user to install the application according to the attribute information, and the specific process of determining whether to provide the user according to the application attribute information may be:
if the feedback information is not monitored, analyzing the attribute information of the application;
judging whether the application sets the operation memory limit or not according to the attribute information obtained by analysis;
and if the application sets the operation memory limit, prompting the user whether to continuously install the application, and according to the operation instruction of the user.
S2023, comparing the first memory data with a memory threshold.
Specifically, the memory threshold is a threshold preset to determine whether the first memory data is too large. That is, the memory threshold is a basis for determining whether to prompt a user. In practical application, different memory spaces occupied by different classes of applications are different, so that different memory thresholds can be set according to different classes of applications when the memory thresholds are set. Specifically, the application type and the memory threshold corresponding to the type may be preset, and the application type and the memory threshold corresponding to the application type are stored correspondingly. Correspondingly, the comparing the first memory data with the memory threshold may specifically be: when first memory data is obtained, inquiring the application classification of the application; and searching a corresponding first memory threshold value according to the application classification, and comparing the first memory data with the first memory threshold value. Therefore, the accuracy of memory data judgment can be improved.
In a modified embodiment of this embodiment, the terminal device may not classify the application, but set a plurality of memory thresholds, for example, two memory thresholds are set, which are a first memory threshold and a second memory threshold, respectively, where the second memory threshold is greater than the first memory threshold; the comparing the first memory data with the memory threshold may specifically be:
comparing the first memory data to a first memory threshold;
when the first memory data is larger than the first memory threshold value, comparing the first memory data with a second memory threshold value;
if the first memory data is larger than the second memory data, prompting the user that the application is a malicious memory occupation application, and suggesting the user to stop installation;
and if the first memory data is not larger than the second memory data, prompting the user that the memory occupied by the application is overlarge.
S203, when the network is not connected, analyzing the attribute of the application to determine whether the application sets the operation memory limit, if the application sets the operation memory limit, prompting a user whether to continuously install the application, and performing corresponding operation according to an operation instruction of the user.
Specifically, when the terminal device is not connected to the network, whether the user is prompted is determined according to the application self attribute information. That is to say, only when the first memory data of the server cannot be obtained, the attribute information of the application is analyzed, and whether the user is prompted is determined according to the attribute information.
S300, when the first memory data is larger than a memory threshold value, prompting a user that the memory occupied by the application is too large, and determining whether to continue to install the application according to an operation instruction of the user.
Specifically, when the first memory data is larger than the memory threshold, it is indicated that the memory space occupied by the application is too large, and at this time, a user is prompted whether to continue to install the application, and when the user clicks to continue to install the application, the application is continuously installed; and when the user clicks to refuse to install the application, stopping installing the application.
To further explain the memory optimization method of the terminal device provided by the present invention, a specific embodiment is described.
Example one
The present embodiment provides a method for optimizing a memory of a terminal device, as shown in fig. 3, the method specifically includes:
s10, when receiving the application installation request, detecting whether to connect the network, if so, executing the step S20; if not, go to step S40;
s20, acquiring the package name and the version number of the application, acquiring first memory data which need to be occupied by the application from a server according to the package name and the version number, and executing the step S30 if the first memory data are acquired; if not, executing step 40;
s30, judging whether the first memory data is larger than a memory threshold value, if so, executing a step S50; if not, go to step S60;
s40, analyzing the attribute information of the application, judging whether memory limitation is set according to the attribute information, and if yes, executing a step S50; if not, go to step S60;
s50, prompting a user whether the application memory is too large and the application is continuously installed;
and S60, installing the application.
The present invention also provides a system for optimizing a memory of a terminal device, as shown in fig. 4, including: the terminal device 100 comprises a terminal device 100 and a server 200 for pre-storing first memory data corresponding to an application, wherein the terminal device 100 comprises an obtaining module 101, a comparing module 102 and an executing module 103;
the obtaining module 101 is configured to obtain a package name and a version number of an application when a terminal device receives a request for installing the application;
the comparison module 102 is configured to obtain first memory data that needs to be occupied by the application from a preconfigured server according to the package name and the version number of the application, and compare the first memory data with a memory threshold set for the application by the system;
the execution module 103 is configured to prompt a user that the memory occupied by the application is too large when the first memory data is greater than the memory threshold, and determine whether to continue to install the application according to an operation instruction of the user.
The memory optimization system of the terminal device, wherein the comparing module 102 specifically includes:
a detection unit for detecting whether a network is connected;
the first processing unit is used for acquiring first memory data required to be occupied by the application from a preconfigured server according to the packet name and the version number of the application when the network is connected, and comparing the first memory data with a memory threshold value set for the application by a system;
and the second processing unit is used for analyzing the attribute of the application to determine whether the application sets the running memory limit or not when the network is not connected, prompting a user that the memory occupied by the application is overlarge if the application sets the running memory limit, and determining whether to continue to install the application according to an operation instruction of the user.
The memory optimization method of the terminal device, wherein the first processing unit specifically includes:
a sending subunit, configured to send, by a terminal device, request information for acquiring first memory data that needs to be occupied by the application to a server when the terminal device is connected to a network, and monitor feedback information of the request information, where the request information at least carries a packet name and a version number of the application;
the comparison subunit is configured to compare, when the feedback information is monitored, first memory data carried by the feedback information with a memory threshold set by the system for the application;
the analysis subunit is used for analyzing the attribute of the application to determine whether the application sets the running memory limit or not when the feedback information is not monitored;
and the prompting subunit is used for prompting a user that the memory occupied by the application is too large when the application sets the running memory limit, and determining whether to continue to install the application according to an operation instruction of the user.
The memory optimization system of the terminal device, wherein the terminal device 100 further includes:
the uploading module is used for uploading the packet names, the version numbers and the occupied second memory data of all the running applications to the server at preset time intervals when the terminal equipment runs;
the server side comprises:
and the updating module is used for receiving the package name, the version number and the occupied second memory data of the application uploaded by the terminal equipment and updating the first memory data of the application stored in advance by the server by adopting the second memory data.
In the embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A memory optimization method of a terminal device is characterized by comprising the following steps:
when terminal equipment receives a request for installing an application, acquiring a package name and a version number of the application;
acquiring first memory data required to be occupied by the application from a preconfigured server according to the package name and the version number of the application, and comparing the first memory data with a memory threshold value set for the application by a system;
when the first memory data is larger than a memory threshold value, prompting a user that the memory occupied by the application is too large, and determining whether to continue to install the application according to an operation instruction of the user;
the acquiring first memory data required to be occupied by the application from a preconfigured server according to the package name and the version number of the application, and comparing the first memory data with a memory threshold value set by a system for the application comprises:
detecting whether a network is connected;
when the network is connected, acquiring first memory data required to be occupied by the application from a preconfigured server according to the packet name and the version number of the application, and comparing the first memory data with a memory threshold value set by a system for the application;
when the network is not connected, analyzing the attribute of the application to determine whether the application sets the operation memory limit, if the application sets the operation memory limit, prompting a user that the memory occupied by the application is too large, and determining whether to continue installing the application according to an operation instruction of the user.
2. The method according to claim 1, wherein when the terminal device is connected to a network, the step of obtaining first memory data that the application needs to occupy from a preconfigured server according to the packet name and the version number of the application, and comparing the first memory data with a memory threshold set by a system for the application specifically includes:
when the terminal equipment is connected with a network, sending request information for acquiring first memory data required to be occupied by the application to a server side by the terminal equipment, and monitoring feedback information of the request information, wherein the request information at least carries a packet name and a version number of the application;
if the feedback information is monitored, comparing first memory data carried by the feedback information with a memory threshold value set by the system for the application;
if the feedback information is not monitored, analyzing the attribute of the application to determine whether the application sets the running memory limit, prompting a user that the memory occupied by the application is too large when the application sets the running memory limit, and determining whether to continue installing the application according to an operation instruction of the user.
3. The method for optimizing the memory of the terminal device according to claim 1, wherein when the terminal device receives a request for installing an application, before acquiring a package name and a version number of the application, the method further comprises:
when the terminal equipment runs, uploading packet names, version numbers and occupied second memory data of all applications running at preset time intervals to a server;
and the server receives the packet name, the version number and occupied second memory data of the application uploaded by the terminal equipment, and updates the first memory data of the application prestored by the server by adopting the second memory data.
4. The method for optimizing the memory of the terminal device according to claim 3, wherein the step of receiving, by the server, the packet name, the version number, and the occupied second memory data of the application uploaded by the terminal device, and updating, by using the second memory data, the first memory data of the application stored in advance by the server specifically includes:
the server receives the package name of the application uploaded by the terminal equipment and the occupied second memory data, and inquires the first memory data pre-stored with the application according to the package name and the version number;
if the first memory data is inquired, comparing the second memory data with the first memory data;
and when the second memory data is larger than the first memory data, updating the first memory data by adopting the second memory data.
5. The method for optimizing the memory of the terminal device according to claim 4, wherein the step of receiving, by the server, the packet name, the version number, and the occupied second memory data of the application uploaded by the terminal device, and updating, by using the second memory data, the first memory data of the application stored in advance by the server further comprises:
and if the first memory data is not inquired, correspondingly storing the packet name, the version number and the occupied second memory data of the application.
6. The memory optimization system of the terminal equipment is characterized by comprising the terminal equipment and a server side used for pre-storing first memory data required to be occupied by an application, wherein the terminal equipment comprises an acquisition module, a comparison module and an execution module;
the acquisition module is used for acquiring the package name and the version number of the application when the terminal equipment receives a request for installing the application;
the comparison module is used for acquiring first memory data required to be occupied by the application from a preconfigured server according to the packet name and the version number of the application, and comparing the first memory data with a memory threshold value set by the system for the application;
the execution module is used for prompting a user that the memory occupied by the application is too large when the first memory data is larger than a memory threshold value, and determining whether to continue to install the application according to an operation instruction of the user;
the comparison module specifically comprises:
a detection unit for detecting whether a network is connected;
the first processing unit is used for acquiring first memory data required to be occupied by the application from a preconfigured server according to the packet name and the version number of the application when the network is connected, and comparing the first memory data with a memory threshold value set for the application by a system;
and the second processing unit is used for analyzing the attribute of the application to determine whether the application sets the running memory limit or not when the network is not connected, prompting a user that the memory occupied by the application is overlarge if the application sets the running memory limit, and determining whether to continue to install the application according to an operation instruction of the user.
7. The memory optimization system of the terminal device according to claim 6, wherein the first processing unit specifically includes:
a sending subunit, configured to send, by a terminal device, request information for acquiring first memory data that needs to be occupied by the application to a server when the terminal device is connected to a network, and monitor feedback information of the request information, where the request information at least carries a packet name and a version number of the application;
the comparison subunit is configured to compare, when the feedback information is monitored, first memory data carried by the feedback information with a memory threshold set by the system for the application;
the analysis subunit is used for analyzing the attribute of the application to determine whether the application sets the running memory limit or not when the feedback information is not monitored;
and the prompting subunit is used for prompting a user that the memory occupied by the application is too large when the application sets the running memory limit, and determining whether to continue to install the application according to an operation instruction of the user.
8. The memory optimization system of the terminal device according to claim 6, wherein the terminal device further comprises:
the uploading module is used for uploading the packet names, the version numbers and the occupied second memory data of all the running applications to the server at preset time intervals when the terminal equipment runs;
the server side comprises:
and the updating module is used for receiving the package name, the version number and the occupied second memory data of the application uploaded by the terminal equipment and updating the first memory data of the application stored in advance by the server by adopting the second memory data.
CN201610989563.7A 2016-11-10 2016-11-10 Memory optimization method and system for terminal equipment Active CN106598644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610989563.7A CN106598644B (en) 2016-11-10 2016-11-10 Memory optimization method and system for terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610989563.7A CN106598644B (en) 2016-11-10 2016-11-10 Memory optimization method and system for terminal equipment

Publications (2)

Publication Number Publication Date
CN106598644A CN106598644A (en) 2017-04-26
CN106598644B true CN106598644B (en) 2021-03-23

Family

ID=58590116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610989563.7A Active CN106598644B (en) 2016-11-10 2016-11-10 Memory optimization method and system for terminal equipment

Country Status (1)

Country Link
CN (1) CN106598644B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063299A (en) * 2010-12-21 2011-05-18 东莞宇龙通信科技有限公司 Method and device for assessing application running condition of mobile terminal, mobile terminal
US8161471B2 (en) * 2006-11-30 2012-04-17 Red Hat, Inc. Utility for optimizing required memory for distribution in embedded systems
CN105260117A (en) * 2015-09-30 2016-01-20 小米科技有限责任公司 Application control method and apparatus
CN105335192A (en) * 2015-10-19 2016-02-17 联想(北京)有限公司 Information processing method and electronic equipment
CN106095477A (en) * 2016-05-27 2016-11-09 努比亚技术有限公司 Application erecting device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8161471B2 (en) * 2006-11-30 2012-04-17 Red Hat, Inc. Utility for optimizing required memory for distribution in embedded systems
CN102063299A (en) * 2010-12-21 2011-05-18 东莞宇龙通信科技有限公司 Method and device for assessing application running condition of mobile terminal, mobile terminal
CN105260117A (en) * 2015-09-30 2016-01-20 小米科技有限责任公司 Application control method and apparatus
CN105335192A (en) * 2015-10-19 2016-02-17 联想(北京)有限公司 Information processing method and electronic equipment
CN106095477A (en) * 2016-05-27 2016-11-09 努比亚技术有限公司 Application erecting device and method

Also Published As

Publication number Publication date
CN106598644A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN109960507B (en) Compiling optimization method and device, storage medium, intelligent terminal and server
US9942839B2 (en) Reducing wireless reconnection time of a computing device
US20190220318A1 (en) Memory Reclamation Method and Apparatus
US20160048682A1 (en) Method and Apparatus for Clearing Malicious Power-Consuming Application, and User Terminal
WO2019119985A1 (en) Method for preloading application, storage medium, and terminal device
CN107943650B (en) Application program control method and device, storage medium and terminal
EP2901739B1 (en) Mixed off-site / on-site prediction computation for reducing wireless reconnection time of a computing device
CN106547615B (en) Management method and management module for background application
CA2933865A1 (en) A method of locating a mobile device and a cloud computer system employing same
US9596313B2 (en) Method, terminal, cache server and system for updating webpage data
CN104412250A (en) Systems and methods for managing message delivery based on message priority
WO2017020781A1 (en) Power saving processing method, device, mobile terminal and cloud server
CN103677864A (en) Method for upgrading software and terminal
CN105429775A (en) Method and device for reporting log
US9722860B2 (en) Communication apparatus and wireless communication control method
US20140365642A1 (en) Smart Management of Background Network Connections Based on Historical Data
CN111061483A (en) Compiling optimization method and device and electronic equipment
CN105307242A (en) Wi-Fi network application method and terminal
CN103593408A (en) Method and device for acquiring user subscription resources
CN106575414B (en) Contextual platform feature recommendation
CN107526637B (en) Application processing method and device, mobile terminal and storage medium
CN113329480A (en) Intention state management method, network element and system
CN106598644B (en) Memory optimization method and system for terminal equipment
CN103561291A (en) Video channel distribution management method, relevant device and communication system
CN114175748A (en) Communication frequency adjusting method and device, electronic equipment and storage medium

Legal Events

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

Address after: 516006 TCL science and technology building, No. 17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant after: TCL Technology Group Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District

Applicant before: TCL RESEARCH AMERICA Inc.

GR01 Patent grant
GR01 Patent grant