CN111897600A - Method, device, mobile terminal and system for reducing application memory occupation - Google Patents

Method, device, mobile terminal and system for reducing application memory occupation Download PDF

Info

Publication number
CN111897600A
CN111897600A CN202010762662.8A CN202010762662A CN111897600A CN 111897600 A CN111897600 A CN 111897600A CN 202010762662 A CN202010762662 A CN 202010762662A CN 111897600 A CN111897600 A CN 111897600A
Authority
CN
China
Prior art keywords
application
component
list
interception
intercepted
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.)
Pending
Application number
CN202010762662.8A
Other languages
Chinese (zh)
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202010762662.8A priority Critical patent/CN111897600A/en
Publication of CN111897600A publication Critical patent/CN111897600A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the technical field of communication, and discloses a method, a device, a mobile terminal and a system for reducing application memory occupation. The method is applied to the mobile terminal and comprises the following steps: starting configuration, configuring components of the application to be intercepted according to the installed application list, generating an interception list and storing the interception list to a configuration file; when the application is started, judging whether the component corresponding to the application needs to be intercepted or not; and interrupting the starting process of the component aiming at the component needing to be intercepted, realizing the selective interception of the starting of part of the components of the application, reducing the occupation of the application memory and improving the running speed of the mobile terminal.

Description

Method, device, mobile terminal and system for reducing application memory occupation
Technical Field
The invention relates to the technical field of communication, in particular to a method, a device, a mobile terminal and a system for reducing application memory occupation.
Background
At present, a large number of application programs are installed in a mobile terminal, and functions of each application are more and more abundant to meet various requirements of users, but a memory occupied by the application during operation is also larger and larger. One application occupies hundreds of megabits or even hundreds of megabits of memory, for high-end flagship products with better performance, the large occupation of the application memory is a heavy burden for the operation of a terminal, and on some low-end products with common performance, one or two applications are often operated, and the memory is seriously occupied so as to influence the normal use of the terminal.
In the android system, functions of an application are mainly organized according to Activity, Service, broadcast receiver, and content provider of four major components of the android system, and each component of the application has a different function. Although the functions of a certain application are very rich, users often only pay attention to part of the core functions of the application in the actual use process, and other additional functions may not be interested in or even do not want to run. Therefore, how to selectively prevent the operation of a part of functions of an application, that is, a part of components of an application, so as to reduce the memory usage of the application is urgently needed to be solved.
Disclosure of Invention
The invention provides a method, a device, a mobile terminal and a system for reducing the application memory occupation, which realize the selective interception of the starting of part of components of an application, thereby reducing the application memory occupation and improving the running speed of the mobile terminal.
The invention provides a method for reducing the occupation of an application memory, which is applied to a mobile terminal and comprises the following steps:
starting configuration, configuring components of the application to be intercepted according to the installed application list, generating an interception list and storing the interception list to a configuration file;
when the application is started, judging whether the component corresponding to the application needs to be intercepted or not;
and interrupting the starting process of the component aiming at the component needing to be intercepted.
Preferably, the step of starting configuration, configuring components of the application to be intercepted according to the installed application list, generating an interception list, and saving the interception list to the configuration file includes:
starting configuration, and acquiring component information of each application from a network server according to an installed application list;
generating an interception list from a component and an application package name corresponding to the component according to the component which needs to be intercepted by a certain application selected by a user, and storing the interception list to a configuration file; wherein the content of the first and second substances,
the component information includes a functional description and an interception recommendation for the component.
Preferably, the method further comprises:
and when the installed application list is updated, starting configuration, and acquiring updated component information of each application from the network server.
Preferably, the interception list comprises a first sub-interception list and a second sub-interception list; wherein the content of the first and second substances,
the first sub-interception list comprises a packet name list corresponding to an application needing to be intercepted in the mobile terminal;
the second sub-interception list comprises a list of components needing to be intercepted in the application.
Preferably, the step of judging whether the component corresponding to the application needs to be intercepted when the application is started includes:
when the application is started, calling the internal service;
and the internal service judges whether the components corresponding to the application need to be intercepted or not according to the configuration file.
Preferably, the step of determining whether the component corresponding to the application needs to be intercepted includes:
judging whether the package name of the application corresponding to the component is in the first sub-interception list;
and when the application package name corresponding to the component is in the first sub-interception list, judging whether the component is in the second sub-interception list.
The invention also provides a device for reducing the occupation of the application memory, which is applied to a mobile terminal and comprises the following components:
the configuration module is used for starting configuration, configuring components of the application to be intercepted according to the installed application list, generating an interception list and storing the interception list to a configuration file;
the judging module is used for judging whether components corresponding to the applications need to be intercepted or not when the applications are started;
and the interception module is used for interrupting the starting process of the component aiming at the component needing to be intercepted.
Preferably, the configuration module further comprises:
the acquisition module is used for starting configuration and acquiring component information of each application from the network server according to the installed application list;
the storage module is used for generating an interception list from the components and the corresponding application package names according to the components needing to be intercepted by a certain application selected by a user and storing the components and the corresponding application package names into a configuration file; wherein the content of the first and second substances,
the component information includes a functional description and an interception recommendation for the component.
The invention also provides a mobile terminal which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the method for reducing the occupation of the application memory.
The invention also provides a system for reducing the application memory occupation, which comprises the network server and the mobile terminal.
According to the method, the device, the mobile terminal and the system for reducing the application memory occupation, the configuration is started, the components of the application to be intercepted are configured according to the installed application list, the interception list is generated and is stored in the configuration file; when the application is started, judging whether the component corresponding to the application needs to be intercepted or not; and interrupting the starting process of the component aiming at the component needing to be intercepted, realizing the selective interception of the starting of part of the components of the application, reducing the occupation of the application memory and improving the running speed of the mobile terminal.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 2 is another schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for reducing the application memory usage according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating an interception determination of an application component according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for reducing application memory usage according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a system for reducing application memory occupation according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. In the drawings, elements having similar structures are denoted by the same reference numerals. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The embodiment of the invention is used for solving the problem that the running speed of the mobile terminal is reduced due to the fact that the existing application program occupies too much memory during running.
The embodiment of the invention provides a mobile terminal which can be a smart phone or a tablet computer and the like. As shown in fig. 1, the mobile terminal 100 includes a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102.
The processor 101 is a control center of the mobile terminal 100, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 101 in the mobile terminal 100 loads instructions corresponding to one or more processes of an application program into the memory 102 according to the following steps, and the processor 101 runs the application program stored in the memory 102, thereby implementing various functions, such as a method for reducing an application memory usage:
starting configuration, configuring components of the application to be intercepted according to the installed application list, generating an interception list and storing the interception list to a configuration file;
when the application is started, judging whether the component corresponding to the application needs to be intercepted or not;
and interrupting the starting process of the component aiming at the component needing to be intercepted.
The mobile terminal 100 may implement any of the steps in the method for reducing the application memory usage.
Fig. 2 is a block diagram illustrating a specific structure of the mobile terminal 100 according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 100 may include Radio Frequency (RF) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170 (e.g., Wireless Fidelity (WiFi), a Wireless Fidelity (wi-fi)), a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.1 n), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access for Wireless communications, Wi-Max), and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 120 may be used to store software programs and modules, such as the corresponding program instructions in the method for reducing the application memory usage, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, that is, to obtain the frequency of the information transmission signal transmitted by the mobile terminal 100. Generating interference signals, and the like. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the mobile terminal 100 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the mobile terminal 100, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in the figures touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 100, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 100.
The mobile terminal 100, which can assist the user in receiving requests, transmitting information, etc., through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 170 is shown in the drawings, it is understood that it does not belong to the essential constitution of the mobile terminal 100 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile terminal. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 100 may also include a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions in some embodiments. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 100 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, a flashlight, and the like, which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal 100 is a touch screen display, and the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
starting configuration, configuring components of the application to be intercepted according to the installed application list, generating an interception list and storing the interception list to a configuration file;
when the application is started, judging whether the component corresponding to the application needs to be intercepted or not;
and interrupting the starting process of the component aiming at the component needing to be intercepted.
In the android system, the functions of the application are mainly as follows: activity, Service, broadcast receiver, and content provider. In order to better use the mobile terminal 100 to obtain better user experience, an embodiment of the present invention further provides a method for reducing application memory usage, which is applied to the mobile terminal 100, wherein the mobile terminal 100 is provided with an android system, a flowchart of the method for reducing application memory usage is shown in fig. 3, and the specific steps are as follows:
step S101, starting configuration, configuring components of the application to be intercepted according to the installed application list, generating an interception list and storing the interception list in a configuration file:
specifically, in this embodiment, a configuration App (Application program) may be added to the mobile terminal 100 in advance, and the configuration App may be added to a setting Application of the mobile terminal 100. The mobile terminal 100 starts configuration, that is, after receiving a configuration instruction from a user, the mobile terminal 100 acquires component information of each application installed in the mobile terminal 100 from a network server according to an installed application list, where the component information includes function descriptions and interception suggestions of a plurality of components included in each application; and then generating an interception list from the components and the corresponding application package names according to the components needing to be intercepted by a certain application selected by a user, and storing the interception list to a configuration file. The configuration instruction of the user can be used for the user to click the setting application to enter a configuration interface of the configuration App.
After the mobile terminal 100 acquires the component information of each installed application from the network server, it can know each component corresponding to each application core function and additional function. Further, after checking the function description of each component of the application and intercepting the suggestion, the user can select a certain part of the component of a certain application which is not desired to be reserved according to needs, and flexibly select a certain part of the component of a certain application to be intercepted. For example, if the user does not want to run the component corresponding to the log service or the component corresponding to the push service, the selective interception can be performed. The mobile terminal 100 generates an interception list with the components and the corresponding application package names according to the part of the components needing to be intercepted by a certain application selected by a user, and stores the interception list into the configuration file, so that the part of the components selectively intercepting the application are started, the memory occupation of the corresponding application is reduced, the running speed is increased on the premise that the use of the mobile terminal 100 is not influenced, and more applications can be run at the same time.
Preferably, when the list of applications installed in the mobile terminal 100 is updated, after receiving a configuration instruction from the user, the mobile terminal 100 may further obtain updated component information of each application from the network server, so that the interception list stored in the configured configuration file matches with the applications installed in the mobile terminal 100, and the validity of component interception during the starting process of the applications is ensured.
Further, the interception list may include a first sub-interception list and a second sub-interception list; the first sub-interception list includes a list of packet names corresponding to applications needing to be intercepted in the mobile terminal 100; the second sub-interception list comprises a list of components needing to be intercepted in the application.
The first sub interception list can be understood as a set of corresponding applications containing intercepted components, and the second sub interception list can be understood as a set of components needing to be intercepted in a certain application. The division of different sets of applications and components is realized through the first sub-interception list and the second sub-interception list, and the execution efficiency and accuracy of interception are improved.
Step S102, when the application is started, judging whether the corresponding component of the application needs to be intercepted:
the step S102 may specifically include: when the application is started, calling the internal service; and the internal service judges whether the components corresponding to the application need to be intercepted or not according to the configuration file. The internal service may be understood as a background service provided when an android system installed in the mobile terminal 100 runs.
Specifically, when an application is started, an internal service is called, and after the internal service reads the configuration file, whether a component corresponding to the started application needs to be intercepted or not is judged according to the configuration file. Fig. 4 is a flowchart illustrating an interception determination of an application component according to an embodiment of the present invention, referring to fig. 4, after the application is started and the internal service is called in step S1021, step S1022 is executed to read the configuration file, and determine whether to perform interception. The interception lists generated in step S101 include the first sub-interception list and the second sub-interception list in different ranges, so that when the determination is performed after step S1022, the determination needs to be performed sequentially according to the ranges of the different sub-interception lists, so that the determination process is clearer and simpler. After step S1022, step S1023 is executed to determine whether the package name of the application corresponding to the component is in the first sub-intercept list, that is, whether the package name of the application corresponding to the component is in the first sub-intercept list. When the judgment result is "no", it indicates that the application corresponding to the component is not in the first interception list, interception is not needed, step S1024 is executed to not start interception, and the starting process of the component is continued, that is, the function use of the application corresponding to the component will not be affected; if the determination result is "yes", it indicates that the application corresponding to the component is in the first interception list, and it needs to further determine whether the component needs to be intercepted, and execute step S1025 whether the component is in a second sub-interception list, that is, determine whether the component is in the second sub-interception list. When the judgment result is "no", it indicates that the component is not in the second sub-interception list, interception is not needed, step S1024 is executed to not start interception, and the starting process of the component is continued, that is, the function use of the application corresponding to the component will not be affected; if the determination result is "yes", it indicates that the component is in the second child interception list, and step S1026 is performed to start interception, so as to perform the subsequent interception step.
Step S103, interrupting the starting process of the component aiming at the component needing to be intercepted:
the mobile terminal 100 interrupts the starting process of the component determined in step S102 to be intercepted. Since each component of the application has different functions, when a certain component of a certain application is intercepted, the function of the corresponding component cannot be run, so that part of the components of the certain application are selectively run, that is, some or some part of the functions of the application are selectively run, and the function which is not desired to be run is prevented, thereby reducing the occupation of the application memory and improving the running speed of the mobile terminal 100.
Further, in order to implement the method according to the embodiment of the present invention, the android system installed in the mobile terminal 100 is also different. When the starting mode of the application component is an Activity mode, the method for starting the Activity in the Android system is in a start Activity of an AMS (Activity Manager Service), so that a manufacturer of the mobile terminal 100 needs to modify an Android system code and call a processing interface of a newly added system Service in the start Activity; when the starting mode of the applied component is the Service mode, the method for starting the Service in the Android system is in a start Service Locked (start Service Lock) and a bind Service Locked (bind Service Lock) of the AMS, so that a manufacturer of the mobile terminal 100 needs to modify Android system codes and call a processing interface of a newly added system Service in the start Service Locked and the bind Service Locked; when the starting mode of the applied component is a Broadcast Receiver mode, the method for starting the Broadcast Receiver in the Android system is in a delayer Registered Receiver Locked (delivered To a registration receiving lock) and a process Next Broadcast Locked (process Next Broadcast lock) of the AMS, so that a manufacturer of the mobile terminal 100 needs To modify Android system codes, and a processing interface of a newly added system service is called in the delayer Registered Receiver Locked and the process Next Broadcast Locked; when the starting mode of the applied component is the Content Provider mode, the method for starting the Content Provider in the Android system is in get Content Provider Impl (obtaining Content Provider interface implementation) of the AMS, so that a manufacturer of the mobile terminal 100 needs to modify Android system codes and call a processing interface of a newly added system service in the get Content Provider Impl.
In order to better implement the method for reducing the application memory usage, the embodiment of the present invention will be further described from the perspective of a device for reducing the application memory usage, where the device for reducing the application memory usage may be specifically implemented as an independent entity, and may also be integrated in the mobile terminal 100 provided in the embodiment of the present invention, and the mobile terminal 100 may include a mobile phone, a tablet computer, and the like.
As shown in fig. 5, fig. 5 is a block diagram of a structure of a device for reducing application memory usage according to an embodiment of the present invention, and is applied to a mobile terminal 100, where the device for reducing application memory usage may include:
a configuration module 201, configured to start configuration, configure components of an application to be intercepted according to an installed application list, generate an interception list, and store the interception list in a configuration file;
the judging module 202 is used for judging whether components corresponding to the applications need to be intercepted or not when the applications are started;
the interception module 203 is used for interrupting the starting process of the component to be intercepted.
Specifically, the configuration module 201 may include an acquisition module 2011 and a saving module 2012. The obtaining module 2011 is configured to start configuration, and obtain component information of each application from the web server according to the installed application list; the saving module 2012 is configured to generate an interception list from the component and the corresponding application package name according to the component that needs to be intercepted by the application selected by the user, and save the interception list to the configuration file; wherein the component information comprises a functional description and an interception recommendation of the component. Further, the obtaining module 2011 may be further configured to, when the installed application list is updated, start configuration, and obtain updated component information and interception recommendation of each application from the web server.
The determining module 202 may include a calling module 2021 and a sub-determining module 2022. The calling module 2021 is configured to call an internal service when an application is started, and read the configuration file; the sub-determining module 2022 is configured to determine whether the component corresponding to the application needs to be intercepted by the internal service according to the configuration file. Further, the sub-determination module 2022 may further include a first sub-determination module 20221 and a second sub-determination module 20222. The first sub-determining module 20221 is configured to determine whether a package name of an application corresponding to the component is in the first sub-interception list; the second sub-determining module 20222 is configured to determine whether the component is in the second sub-interception list when the application package name corresponding to the component is in the first sub-interception list.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily, and implemented as the same or a plurality of entities, where the specific implementation of the above modules may refer to the foregoing method embodiment, and specific beneficial effects that can be achieved may also refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
The embodiment of the invention also provides a system for reducing the occupation of the application memory. As shown in fig. 6, fig. 6 is a schematic structural diagram of a system for reducing application memory occupation according to an embodiment of the present invention. The system 400 includes the mobile terminal 100 and the network server 300. The mobile terminal 100 may collect behavior data of each component of the installed application in a data desensitized manner and upload to the web server 300, and the web server 300 analyzes the behavior data from each component of the mobile terminal 100 as a basis for the interception recommendation. Moreover, the network server 300 also stores function descriptions of various components of common applications, and marks the functions of various components of various applications to distinguish between core functions and additional functions, so that the mobile terminal 100 can obtain the function descriptions and interception suggestions of various application programs installed in the mobile terminal 100 from the network server 300 after receiving a configuration instruction from a user, after the user freely selects some components of some applications that do not need to be started, the mobile terminal 100 generates an interception list of some components and corresponding application package names and stores the interception list into a configuration file, and intercepts the components that do not need to be started according to the configuration file when the applications are started, thereby reducing the memory occupation of the applications and improving the operating speed of the mobile terminal 100.
The method, the device, the mobile terminal and the system for reducing the application memory occupation provided by the embodiment of the invention are introduced in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the technical scheme and the core idea of the invention; those of ordinary skill in the art will understand 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 (10)

1. A method for reducing the occupation of an application memory is applied to a mobile terminal, and is characterized by comprising the following steps:
starting configuration, configuring components of the application to be intercepted according to the installed application list, generating an interception list and storing the interception list to a configuration file;
when the application is started, judging whether the component corresponding to the application needs to be intercepted or not;
and interrupting the starting process of the component aiming at the component needing to be intercepted.
2. The method according to claim 1, wherein the step of starting configuration, configuring components of the application to be intercepted according to the installed application list, generating an interception list, and saving the interception list to the configuration file comprises:
starting configuration, and acquiring component information of each application from a network server according to an installed application list;
generating an interception list from a component and an application package name corresponding to the component according to the component which needs to be intercepted by a certain application selected by a user, and storing the interception list to a configuration file; wherein the content of the first and second substances,
the component information includes a functional description and an interception recommendation for the component.
3. The method of claim 2, further comprising:
and when the installed application list is updated, starting configuration, and acquiring updated component information of each application from the network server.
4. The method according to claim 1, wherein the interception list comprises a first sub-interception list and a second sub-interception list; wherein the content of the first and second substances,
the first sub-interception list comprises a packet name list corresponding to an application needing to be intercepted in the mobile terminal;
the second sub-interception list comprises a list of components needing to be intercepted in the application.
5. The method according to claim 1, wherein the step of determining whether the component corresponding to the application needs to be intercepted when the application is started comprises:
when the application is started, calling the internal service;
and the internal service judges whether the components corresponding to the application need to be intercepted or not according to the configuration file.
6. The method of claim 4, wherein the step of determining whether the component corresponding to the application needs to be intercepted comprises:
judging whether the package name of the application corresponding to the component is in the first sub-interception list;
and when the application package name corresponding to the component is in the first sub-interception list, judging whether the component is in the second sub-interception list.
7. A device for reducing the occupation of an application memory is applied to a mobile terminal, and is characterized by comprising:
the configuration module is used for starting configuration, configuring components of the application to be intercepted according to the installed application list, generating an interception list and storing the interception list to a configuration file;
the judging module is used for judging whether components corresponding to the applications need to be intercepted or not when the applications are started;
and the interception module is used for interrupting the starting process of the component aiming at the component needing to be intercepted.
8. The apparatus for reducing application memory usage according to claim 7, wherein the configuration module further comprises:
the acquisition module is used for starting configuration and acquiring component information of each application from the network server according to the installed application list;
the storage module is used for generating an interception list from the components and the corresponding application package names according to the components needing to be intercepted by a certain application selected by a user and storing the components and the corresponding application package names into a configuration file; wherein the content of the first and second substances,
the component information includes a functional description and an interception recommendation for the component.
9. A mobile terminal comprising a processor and a memory, wherein the processor is electrically connected to the memory, and the memory is used for storing instructions and data, and the processor is used for executing the steps of the method for reducing application memory usage according to any one of claims 1 to 6.
10. A system for reducing memory usage of an application, comprising a network server and the mobile terminal of claim 9.
CN202010762662.8A 2020-07-31 2020-07-31 Method, device, mobile terminal and system for reducing application memory occupation Pending CN111897600A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010762662.8A CN111897600A (en) 2020-07-31 2020-07-31 Method, device, mobile terminal and system for reducing application memory occupation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010762662.8A CN111897600A (en) 2020-07-31 2020-07-31 Method, device, mobile terminal and system for reducing application memory occupation

Publications (1)

Publication Number Publication Date
CN111897600A true CN111897600A (en) 2020-11-06

Family

ID=73183632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010762662.8A Pending CN111897600A (en) 2020-07-31 2020-07-31 Method, device, mobile terminal and system for reducing application memory occupation

Country Status (1)

Country Link
CN (1) CN111897600A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032673A1 (en) * 2000-09-14 2002-03-14 Yen Hsiang Tsun Method and system for interaction between a browser engine and an application
WO2008004210A1 (en) * 2006-07-03 2008-01-10 Eci Telecom Ltd. Technique for performing a system shutdown
CN102369523A (en) * 2009-03-24 2012-03-07 微软公司 Monitoring of distributed applications
CN102541598A (en) * 2011-12-26 2012-07-04 深圳联友科技有限公司 Method and system for dynamically loading component
CN104462978A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for application program authority management
CN104462980A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Authority management method, device and system of application programs and mobile terminal
CN105550007A (en) * 2016-02-01 2016-05-04 广东欧珀移动通信有限公司 Control method and device for mobile terminal and mobile terminal
CN105549986A (en) * 2015-11-27 2016-05-04 努比亚技术有限公司 System service shortcut setting device and method
CN106155720A (en) * 2015-04-08 2016-11-23 阿里巴巴集团控股有限公司 A kind of method and system starting function of application
CN108089935A (en) * 2017-11-29 2018-05-29 维沃移动通信有限公司 The management method and mobile terminal of a kind of application program
CN109189497A (en) * 2018-08-06 2019-01-11 北京奇虎科技有限公司 A kind of method, apparatus and computer equipment for clean room software
CN110765394A (en) * 2019-09-20 2020-02-07 中国平安人寿保险股份有限公司 So file loading method and device, storage medium and terminal equipment
CN110865848A (en) * 2018-08-21 2020-03-06 深圳市优必选科技有限公司 Component interception method and terminal equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032673A1 (en) * 2000-09-14 2002-03-14 Yen Hsiang Tsun Method and system for interaction between a browser engine and an application
WO2008004210A1 (en) * 2006-07-03 2008-01-10 Eci Telecom Ltd. Technique for performing a system shutdown
CN102369523A (en) * 2009-03-24 2012-03-07 微软公司 Monitoring of distributed applications
CN102541598A (en) * 2011-12-26 2012-07-04 深圳联友科技有限公司 Method and system for dynamically loading component
CN104462978A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for application program authority management
CN104462980A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Authority management method, device and system of application programs and mobile terminal
CN106155720A (en) * 2015-04-08 2016-11-23 阿里巴巴集团控股有限公司 A kind of method and system starting function of application
CN105549986A (en) * 2015-11-27 2016-05-04 努比亚技术有限公司 System service shortcut setting device and method
CN105550007A (en) * 2016-02-01 2016-05-04 广东欧珀移动通信有限公司 Control method and device for mobile terminal and mobile terminal
CN108089935A (en) * 2017-11-29 2018-05-29 维沃移动通信有限公司 The management method and mobile terminal of a kind of application program
CN109189497A (en) * 2018-08-06 2019-01-11 北京奇虎科技有限公司 A kind of method, apparatus and computer equipment for clean room software
CN110865848A (en) * 2018-08-21 2020-03-06 深圳市优必选科技有限公司 Component interception method and terminal equipment
CN110765394A (en) * 2019-09-20 2020-02-07 中国平安人寿保险股份有限公司 So file loading method and device, storage medium and terminal equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一手搞机: "微信才是内存杀手!别乱清理了,关闭这些功能,手机立马流畅", pages 1 - 9, Retrieved from the Internet <URL:https://baijiahao.baidu.com/s?id=1629974046999923837&wfr=spider&for=pc> *

Similar Documents

Publication Publication Date Title
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN110830127B (en) Radio frequency parameter processing method and device, mobile terminal and storage medium
CN111432387B (en) Many-to-many switching module, multi-machine wireless communication system and communication method thereof
CN106374988B (en) Method, device and terminal for configuring inter-downlink-band carrier aggregation
CN107463395B (en) Component calling method and device
CN112235082A (en) Communication information transmission method, device, equipment and storage medium
CN106817370B (en) Method and device for transmitting network data
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium
CN111615101B (en) IMS registration method, device, storage medium and electronic terminal
CN111897600A (en) Method, device, mobile terminal and system for reducing application memory occupation
US20160302204A1 (en) Method for changing secondary carrier, terminal, network device, and system
CN112235874B (en) Method, system, storage medium and mobile terminal for reducing front-end wireless transmission time
CN111031038A (en) Network processing method and device, storage medium and terminal equipment
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium
CN105278967B (en) System updating method, device and system of mobile terminal
CN112799857B (en) Application access method, device, terminal and storage medium
CN111654848B (en) NFC card detection method and device, storage medium and mobile terminal
CN112087763B (en) Wireless fidelity WiFi connection method and device and electronic equipment
CN112243269B (en) Method and device for downloading data and mobile terminal
CN116684467B (en) Data acquisition method, electronic device and storage medium
CN111459528B (en) Frequency band upgrading method, system, storage medium and mobile terminal
CN114095585B (en) Data transmission method, device, storage medium and electronic equipment
CN111405649B (en) Information transmission method and device and mobile terminal
CN111638897B (en) System updating method, device, terminal 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