CN107861730B - Application processing method and mobile terminal - Google Patents

Application processing method and mobile terminal Download PDF

Info

Publication number
CN107861730B
CN107861730B CN201711025746.8A CN201711025746A CN107861730B CN 107861730 B CN107861730 B CN 107861730B CN 201711025746 A CN201711025746 A CN 201711025746A CN 107861730 B CN107861730 B CN 107861730B
Authority
CN
China
Prior art keywords
preset
mobile terminal
application program
file
installation
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
CN201711025746.8A
Other languages
Chinese (zh)
Other versions
CN107861730A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711025746.8A priority Critical patent/CN107861730B/en
Publication of CN107861730A publication Critical patent/CN107861730A/en
Application granted granted Critical
Publication of CN107861730B publication Critical patent/CN107861730B/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
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides an application program processing method and a mobile terminal. The method comprises the following steps: when an installation or update request of an application program is detected, acquiring preset parameters of the mobile terminal, wherein the preset parameters comprise a mainboard temperature; judging whether the preset parameters meet preset conditions or not; and if so, refusing to compile the installation file or the update file of the application program. According to the method and the device, when the installation or update request of the application program is detected, whether the preset parameters of the mobile terminal meet the preset conditions or not is judged, wherein the preset parameters comprise the temperature of the main board, and if the temperature of the main board meets the preset conditions, the compiling operation of the installation file or the update file of the application program is refused, so that the influence on user experience caused by the fact that the temperature and the power consumption of the mobile terminal are greatly increased is avoided.

Description

Application processing method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for processing an application program and a mobile terminal.
Background
With the continuous development of intelligent applications, more and more Applications (APPs) are installed on the mobile terminal, and in order to improve user experience, App manufacturers update APPs more and more frequently. When installing an App or updating an App, in order to improve the efficiency of installing or updating the App, a mobile terminal generally compiles an installation file or an update file into a compiled file with higher execution efficiency, and installs or updates a program using the compiled file.
At present, in the prior art, when a new App needs to be installed or an installed App needs to be updated, an installation file or an update file of the App is compiled first, and in the compiling process, a large amount of CPU resources are occupied, and the high CPU occupancy rate causes the problems of high power consumption and obvious heating of a mobile terminal. If a user installs a large number of apps at one time and/or performs batch updating of application programs, the CPU of the mobile terminal is continuously pulled up, and the occupancy rate is high, while the direct expression is that the mobile terminal is hot and the electric quantity is dropped obviously fast.
Therefore, in the prior art, when the App is installed or updated, the problems of heat generation and power consumption increase of the mobile terminal exist, and user experience is influenced.
Disclosure of Invention
The embodiment of the invention provides an application program processing method and a mobile terminal, and aims to solve the problem that in the prior art, when an App is installed or updated, the mobile terminal generates heat and the power consumption is increased to influence the user experience.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an application processing method, which is applied to a mobile terminal, and the method includes:
when an installation or update request of an application program is detected, acquiring preset parameters of the mobile terminal, wherein the preset parameters comprise a mainboard temperature;
judging whether the preset parameters meet preset conditions or not;
and if so, refusing to compile the installation file or the update file of the application program.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
the mobile terminal comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring preset parameters of the mobile terminal when an installation or update request of an application program is detected, and the preset parameters comprise mainboard temperature;
the judging module is used for judging whether the preset parameters meet preset conditions or not;
and the rejecting module is used for rejecting compiling the installation file or the update file of the application program if the judging module judges that the preset parameter meets the preset condition.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the processing method of the application program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the processing method of the application program.
In the embodiment of the invention, when the installation or update request of the application program is detected, whether the preset parameter of the mobile terminal meets the preset condition is judged firstly, wherein the preset parameter comprises the temperature of the mainboard, and if the temperature of the mainboard meets the preset condition, the compiling operation of the installation file or the update file of the application program is refused, so that the influence on the user experience caused by the large increase of the temperature and the power consumption of the mobile terminal is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of a processing method of an application program of the first embodiment of the present invention;
FIG. 2 is a flowchart of a processing method of an application program according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a processing method of an application program according to a third embodiment of the present invention;
fig. 4 is a flowchart of a processing method of an application program of a fourth embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal of a fifth embodiment of the present invention;
fig. 6 is a block diagram of a mobile terminal of a sixth embodiment of the present invention;
fig. 7 is a schematic hardware configuration diagram of a mobile terminal according to a seventh embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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.
First embodiment
Referring to fig. 1, a flowchart of a processing method of an application according to an embodiment of the present invention is shown, and is applied to a mobile terminal, where the method specifically includes the following steps:
step 101, when an installation or update request of an application program is detected, acquiring a preset parameter of the mobile terminal, wherein the preset parameter comprises a mainboard temperature;
therefore, as long as the embodiment of the present invention detects an installation request or an update request of at least one application, the preset parameters of the mobile terminal need to be acquired, where the preset parameters of the present invention may include not only the temperature of the motherboard, but also other parameters that affect the temperature rise and the power consumption increase of the mobile terminal.
The preset parameter may be one or more, which is not limited in the present invention.
In addition, the number of the application programs may be one or more.
Step 102, judging whether the preset parameters meet preset conditions or not;
the preset condition is a critical condition that the mobile terminal operates slowly as the temperature of the mobile terminal continues to rise and the power consumption continues to increase.
In addition, when the preset parameter is a parameter, the preset condition is a condition corresponding to the preset parameter; when the preset parameters are multiple parameters, the embodiment of the present invention pre-defines corresponding preset conditions for each parameter, and the preset conditions for different parameters are different.
When the preset parameters are multiple parameters, in step 102, it may be determined whether some or all of the multiple parameters satisfy respective preset conditions.
If yes, step 103, refusing to compile the installation file or the update file of the application program.
When the preset parameter is a parameter, if the parameter meets the corresponding preset condition, executing step 103;
when the preset parameters include a plurality of parameters, step 103 may be executed when any one of the plurality of parameters (e.g., N) or any M (M is less than or equal to N) parameters satisfies the corresponding preset condition.
When the preset parameter meets the preset condition, it indicates that when the mobile terminal is already in a critical state with higher temperature or higher power consumption, the embodiment of the present invention may refuse to compile the installation file or the update file of the application program that needs to be installed or updated, so as to avoid that the mobile terminal is slow to operate and user experience is affected due to continuous temperature rise and continuous power consumption increase of the mobile terminal.
In the embodiment of the invention, when the installation or update request of the application program is detected, whether the preset parameter of the mobile terminal meets the preset condition is judged firstly, wherein the preset parameter comprises the temperature of the mainboard, and if the temperature of the mainboard meets the preset condition, the compiling operation of the installation file or the update file of the application program is refused, so that the influence on the user experience caused by the large increase of the temperature and the power consumption of the mobile terminal is avoided.
Optionally, in an embodiment, if not, when the number of the application programs is one, step 104, compiling the application program installation file or the update file;
optionally, in another embodiment, if not, when the number of the application programs is two or more, step 105, compiling an installation file or an update file of a target application program in the application programs.
When the preset parameter is a parameter, if the judgment in step 102 shows that the preset parameter does not meet the corresponding preset condition, executing step 104 or step 105;
when the preset parameters include a plurality of parameters, step 104 may be executed if any N-1 or N-M (M is less than or equal to N) of the plurality of parameters (e.g., N) do not satisfy the corresponding preset conditions.
If the preset parameter does not satisfy the preset condition, it indicates that the mobile terminal is not in a critical state of high temperature or high power consumption, the embodiment of the present invention may compile an installation file or an update file of the above-mentioned application program that needs to be installed or updated, or an installation file or an update file of a target application program in two or more application programs, so as to complete installation or update of the target application program.
When the number of the applications to be installed or updated is multiple, and when screening which application is to be installed or updated, the first application may be determined as the target application according to the order of sending the request of the installation request or the update request from the beginning to the end, or according to the order of popularity of the applications from the high to the low, or according to the alphabetical ordering of the names of the applications, and the installation file or the update file of the first application may be compiled, so as to complete the installation or the update of the target application. The method for screening the target application program to be compiled from the plurality of application programs to be installed or updated may be any one of the above methods, or other screening methods not listed, and the present invention is not limited thereto.
Second embodiment
Referring to fig. 2, a flowchart of a processing method of an application according to another embodiment of the present invention is shown, which may specifically include the following steps:
step 201, when detecting an installation or update request of an application program, acquiring a mainboard temperature of the mobile terminal according to a preset time period;
specifically, the scheme of the embodiment of the present invention is specifically described by taking an example in which the mobile terminal is an Android (Android) system. An installation file or an update file of an application program, namely an Android installation Package (APK), can generate a DEX (Android bytecode format) file in the installation process; in order to improve the program installation or update efficiency, the Android system may compile the DEX file into an oat (a proprietary executable ELF format of Android) file with higher execution efficiency.
After a PMS service (PackageManagerservice, which is responsible for APK package management services including all APK-related services such as installation, inspection, deletion and update) of the Android system is started, whether a new App is installed or an installed App is updated in the Android system can be monitored in real time;
in particular, the PMS service may monitor certain directories (/ data/data/etc.) of the Android system. If there are 2 more DEX files in the directory, it indicates that there is an application installation or update, and in the conventional technology, the PMS immediately starts DEX2oat (DEX to oat file, and compiles DEX byte code into executable ELF file format) to compile the installed DEX file, thereby obtaining an oat file with higher execution efficiency. However, in the embodiment of the present invention, the PMS may first acquire the temperature of the main board of the mobile terminal.
The time point of acquiring the motherboard temperature may be acquired according to a preset period, for example, the first acquisition is performed when an installation or update request of at least one application is detected, and the subsequent acquisition operation is performed in a recycling manner after a time period T is set between the first acquisition and the subsequent acquisition, so as to perform the subsequent step 202, step 203, or step 204 in a recycling manner (step 205).
Step 202, judging whether the temperature of the mainboard is greater than a preset temperature threshold value;
the preset temperature threshold may be any value selected from 30 ° to 50 °, preferably 35 °, 40 °, and 45 °, and the specific value may be flexibly set by a user according to the needs of the user experience, which is not limited in the present invention.
For example, the preset temperature threshold is 40 °, and the detected temperature of the motherboard is 50 °.
If yes, step 203, refusing to compile the installation file or the update file of the application program.
When the motherboard temperature exceeds the preset temperature threshold, the method of the embodiment of the present invention will refuse to compile the 2 DEX files, and continue to obtain the motherboard temperature of the mobile terminal after the time interval of step 201 is executed for the preset period T, and step 202, until the motherboard temperature is less than or equal to the preset temperature threshold, that is:
if not, when the number of the application programs is one, step 204, compiling the installation files or the update files of the application programs;
if not, when the number of the application programs is two or more, step 205 compiles an installation file or an update file of a target application program in the application programs.
That is, when the temperature of the main board is detected in a loop, and the temperature of the main board at this time is found to be less than 40 °, the PMS service may start DEX2oat, so that, for example, a DEX file which first issues an installation or update request among the 2 DEX files is compiled into an oat file, and then the subsequent installation or update of an application program corresponding to the oat file is completed.
In addition, it should be noted that after compiling one DEX file, before compiling the next DEX file, the motherboard temperature still needs to be acquired according to the time period T, and the above step 202, step 203, or step 204 is executed in a loop (step 205), that is, each time it is detected that the preset parameter meets the preset condition, only one application program is installed or updated, and before installing or updating the next application program, the preset parameter re-acquisition and the judgment step between the preset condition still need to be performed.
In addition, it should be noted that, although the technical solution of the present invention is described in the embodiment by using the android system, this is not intended to limit the present invention, and the operating system of the mobile terminal to which the present invention is applied may further include an IOS, windows, and the like, and the processing logic of the method is not changed.
Therefore, when the installation or update request of the application program is detected, the temperature of the main board of the mobile terminal is circularly detected, and when the temperature of the main board is greater than the preset temperature threshold value, the compiling of the installation file or the update file of the application program to be installed or updated is refused, so that the problems of rapid temperature increase and rapid power failure of the mobile terminal in the compiling process are solved; and when the temperature of the main board is detected to be less than or equal to the preset temperature threshold, compiling the installation files or the update files of the application programs needing to be installed or updated, and compiling the installation files or the update files of only one application program at a time, thereby avoiding the problem that the temperature of the mobile terminal is increased sharply or the power failure amount is increased rapidly in the installation or update application process.
Third embodiment
When the preset parameters include the temperature of the motherboard and the remaining power, referring to fig. 3, a flowchart of a processing method of an application program according to another embodiment of the present invention is shown, and specifically, the method may include the following steps:
step 301, when an installation or update request of an application program is detected, acquiring a mainboard temperature and a residual electric quantity of the mobile terminal according to a preset time period;
step 302, judging whether the residual electric quantity is smaller than a preset electric quantity threshold value or not, and judging whether the mainboard temperature is larger than a preset temperature threshold value or not;
the unit of the preset electric quantity threshold may be a remaining electric quantity digital quantity (for example, the full power is 5 grids, and the preset electric quantity threshold may be 2 grids), or may be a remaining electric quantity percentage (for example, the full power is 100%, and the preset electric quantity threshold is 30%); similarly, the unit of the remaining power is consistent with the preset power threshold, and specifically, what kind of unit is used for comparison, the user can flexibly set according to the own needs, and the invention is not limited to this.
For the judgment of the motherboard temperature, the step 202 is referred to specifically, and details are not repeated here.
If yes, step 303, refusing to compile the installation file or the update file of the application program;
alternatively, in an embodiment, step 303 may be executed as long as any one of the remaining power parameter and the motherboard temperature parameter satisfies the respective condition.
Optionally, in another embodiment, step 303 may be executed only when both the remaining power parameter and the motherboard temperature parameter satisfy respective conditions.
That is, the "yes" condition may be any one of the above conditions, specifically, which kind of trigger condition is selected to execute step 303, and may be flexibly set according to the selection of the user, which is not limited by the present invention.
Similarly, those skilled in the art will understand that the following "no" condition is set in reverse with respect to the above "yes" condition, and will not be described in detail herein.
If not, when the number of the application programs is one, step 304, compiling the installation files or the update files of the application programs;
if not, when the number of the application programs is two or more, step 305, compiling an installation file or an update file of a target application program in the application programs.
Specifically referring to step 204 and step 205 of the second embodiment, the method is similar and will not be described again here.
Therefore, when an installation or update request of the application program is detected, the residual electric quantity and the mainboard temperature of the mobile terminal are detected in a circulating mode, and when the residual electric quantity is smaller than a preset electric quantity threshold value and/or the mainboard temperature is larger than a preset temperature threshold value, the compiling of the installation file or the update file of the application program needing to be installed or updated is refused, so that the problems that the temperature of the mobile terminal is increased sharply and the power failure rate is further influenced quickly in the compiling process under the condition that the residual electric quantity is small are solved; and when detecting that the residual electric quantity is greater than or equal to the preset temperature threshold, compiling the installation files or the update files of the application program to be installed or updated, and compiling only one file at a time, thereby avoiding the problem that the temperature of the mobile terminal is sharply increased or the power failure quantity is increased in the process of installing or updating the application.
Optionally, in the embodiment shown in fig. 3, after step 302, the method according to an embodiment of the present invention may further include:
judging whether the mobile terminal is in a charging state or not;
if the mobile terminal is in a charging state, the step 303 is executed no matter whether the remaining power and the temperature of the motherboard meet respective preset conditions;
if the mobile terminal is not in a charging state and the remaining power is greater than or equal to the preset power threshold, executing step 304 or step 305; alternatively, the first and second electrodes may be,
if the mobile terminal is not in a charging state and the temperature of the motherboard is less than or equal to the preset temperature threshold, executing step 304 or step 305; alternatively, the first and second electrodes may be,
if the mobile terminal is not in the charging state, the remaining power is greater than or equal to the preset power threshold, and the temperature of the motherboard is less than or equal to the preset temperature threshold, step 304 or step 305 is performed.
Therefore, whether the mobile terminal is in the charging state or not is further detected, and the mobile terminal generally has higher temperature in the charging state, so that the compiling of the installation file or the update file of the application program is refused as long as the mobile terminal is in the charging state in order to avoid further aggravation of the temperature rise of the installation or update program to the mobile terminal, no matter whether the temperature of the main board and the residual capacity meet respective preset conditions or not, and the problems of sharp temperature increase of the mobile terminal and quick power failure rate further influence in the compiling process under the condition that the temperature of the mobile terminal is higher are avoided; and when the mobile terminal is in a non-charging state, compiling the installation file or the update file of the application program only when the residual electric quantity is greater than the preset electric quantity threshold and/or the temperature of the main board is less than or equal to the preset temperature threshold, and compiling only one file at a time, thereby avoiding the problem that the temperature of the mobile terminal is sharply increased or the power failure quantity is accelerated in the installation or update application process.
Fourth embodiment
When the preset parameters include the motherboard temperature and the CPU load, referring to fig. 4, a flowchart of a processing method of an application program according to another embodiment of the present invention is shown, and specifically, the method may include the following steps:
step 401, when detecting an installation or update request of an application program, acquiring a mainboard temperature and a CPU load of the mobile terminal according to a preset time period;
step 402, judging whether the CPU load is greater than a preset load threshold value or not, and judging whether the mainboard temperature is greater than a preset temperature threshold value or not;
the CPU load may be a CPU utilization rate, or a number of processes processed by the CPU, and correspondingly, the preset load threshold may be a CPU utilization rate threshold, for example, 70%, or a process number threshold, for example, 200, 250, or the like.
The unit of the CPU load is consistent with the preset load threshold, and specifically, what kind of unit is used for comparison, and the user can flexibly set according to the need of the user, which is not limited by the present invention. In addition, the preset load threshold may also be reasonably set according to the temperature requirement and the power consumption requirement of the user on the mobile terminal, which is not limited in the present invention.
For the judgment of the motherboard temperature, the step 202 is referred to specifically, and details are not repeated here.
If yes, step 403, refusing to compile the installation file or the update file of the application program;
alternatively, in one embodiment, step 403 may be performed as long as any one of the CPU load parameter and the motherboard temperature parameter satisfies the respective condition.
Alternatively, in another embodiment, step 403 may be executed only when both the CPU load parameter and the motherboard temperature parameter satisfy respective conditions.
That is, the "yes" condition may be any one of the above conditions, specifically, which kind of trigger condition is selected to execute step 403, and may be flexibly set according to the selection of the user, which is not limited by the present invention.
Similarly, those skilled in the art will understand that the following "no" condition is set in reverse with respect to the above "yes" condition, and will not be described in detail herein.
If not, when the number of the application programs is one, step 404, compiling the installation files or the update files of the application programs;
if not, when the number of the application programs is two or more, step 405 compiles an installation file or an update file of a target application program in the application programs.
Specifically referring to step 204 and step 205 of the second embodiment, the method is similar and will not be described again here.
Therefore, when an installation or update request of an application program is detected, the CPU load and the mainboard temperature of the mobile terminal are detected in a circulating mode, and when the CPU load is larger than a preset load threshold value and/or the mainboard temperature is larger than a preset temperature threshold value, compiling of an installation file or an update file of the application program to be installed or updated is refused, so that the problems that the temperature of the mobile terminal is increased sharply in the compiling process, the power failure amount is further influenced quickly and the system is further jammed under the condition that the processing performance of the mobile terminal is poor are solved; and when the CPU load is detected to be less than or equal to the preset load threshold, compiling the installation files or the update files of the application program to be installed or updated, and compiling only one file at a time, thereby avoiding the problem that the temperature of the mobile terminal is sharply increased or the power failure amount is accelerated in the process of installing or updating the application.
In addition, it should be noted that the third embodiment and the fourth embodiment may also be combined, that is, the preset parameters include the remaining power, the motherboard temperature, and the CPU load, and when it is determined whether the preset parameters satisfy the preset conditions, it may be determined that the preset parameters satisfy the preset conditions by using any one or more of the 3 parameters to satisfy the respective preset conditions, so as to perform an operation of refusing to compile an installation file or an update file of the application program, and specifically, which kind of parameters is selected for combination and can be flexibly set by a user, which is not limited in the present invention.
Fifth embodiment
Referring to fig. 5, a block diagram of a mobile terminal of one embodiment of the present invention is shown. The mobile terminal of the embodiment of the invention can realize the details of the processing method of the application program in the first to fourth embodiments and achieve the same effect. The mobile terminal shown in fig. 5 includes:
an obtaining module 51, configured to obtain a preset parameter of the mobile terminal when an installation or update request of an application is detected, where the preset parameter includes a motherboard temperature;
a judging module 52, configured to judge whether the preset parameter meets a preset condition;
a rejecting module 53, configured to reject to compile the installation file or the update file of the application program if the determining module 52 determines that the preset parameter meets the preset condition.
In the embodiment of the invention, when the installation or update request of the application program is detected, whether the preset parameter of the mobile terminal meets the preset condition is judged firstly, wherein the preset parameter comprises the temperature of the mainboard, and if the temperature of the mainboard meets the preset condition, the compiling operation of the installation file or the update file of the application program is refused, so that the influence on the user experience caused by the large increase of the temperature and the power consumption of the mobile terminal is avoided.
Sixth embodiment
Referring to fig. 6, a block diagram of a mobile terminal of one embodiment of the present invention is shown. The mobile terminal of the embodiment of the invention can realize the details of the processing method of the application program in the first to fourth embodiments and achieve the same effect. The mobile terminal shown in fig. 6 includes:
an obtaining module 51, configured to obtain a preset parameter of the mobile terminal when an installation or update request of an application is detected;
a judging module 52, configured to judge whether the preset parameter meets a preset condition;
a rejecting module 53, configured to reject to compile the installation file or the update file of the application program if the determining module 52 determines that the preset parameter meets the preset condition.
Optionally, the determining module 52 includes:
the first determining submodule 521 is configured to determine whether the temperature of the motherboard is greater than a preset temperature threshold.
Optionally, the determining module 52 further includes:
the second determining submodule 522 is configured to determine whether the remaining power is smaller than a preset power threshold when the preset parameter includes the remaining power.
Optionally, the determining module 52 further includes:
the third judging submodule 523 is configured to, when the preset parameter includes a CPU load, judge whether the CPU load is greater than a preset load threshold.
Optionally, the mobile terminal further includes:
a first compiling module 54, configured to compile an installation file or an update file of the application program if the determining module 52 determines that the preset parameter does not satisfy the preset condition and the number of the application programs is one;
a second compiling module 55, configured to compile an installation file or an update file of a target application program in the application programs if the determining module 52 determines that the preset parameter does not satisfy the preset condition and the number of the application programs is two or more.
Optionally, the obtaining module 51 includes:
the obtaining sub-module 511 is configured to obtain a preset parameter of the mobile terminal according to a preset time period.
The mobile terminal provided by the embodiment of the invention can implement the method in the embodiments of fig. 1 to 4, and when the preset parameter meets the preset condition, the mobile terminal refuses the compiling operation of the installation file or the update file of the application program, thereby avoiding the influence on the user experience caused by the large increase of the temperature and the power consumption of the mobile terminal.
Figure 7 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to obtain a preset parameter of the mobile terminal when an installation or update request of an application is detected, where the preset parameter includes a motherboard temperature; judging whether the preset parameters meet preset conditions or not; and if so, refusing to compile the installation file or the update file of the application program.
In the embodiment of the invention, when the installation or update request of the application program is detected, whether the preset parameter of the mobile terminal meets the preset condition is judged firstly, wherein the preset parameter comprises the temperature of the mainboard, and if the temperature of the mainboard meets the preset condition, the compiling operation of the installation file or the update file of the application program is refused, so that the influence on the user experience caused by the large increase of the temperature and the power consumption of the mobile terminal is avoided.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the mobile terminal 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device 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 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 700 or may be used to transmit data between the mobile terminal 700 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the mobile terminal, 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 operating or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program, when executed by the processor 710, implements each process of the processing method embodiment of the application program, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the processing method embodiment of the application program, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A processing method of an application program is applied to a mobile terminal, and is characterized by comprising the following steps:
when an installation or update request of an application program is detected, acquiring preset parameters of the mobile terminal, wherein the preset parameters comprise a mainboard temperature;
judging whether the preset parameters meet preset conditions or not;
if so, refusing to compile the installation file or the update file of the application program;
after the step of judging whether the preset parameter meets the preset condition, the method further comprises the following steps:
judging whether the mobile terminal is in a charging state or not;
and if the mobile terminal is in the charging state, refusing to compile the installation file or the update file of the application program.
2. The method according to claim 1, wherein the determining whether the preset parameter satisfies a preset condition comprises:
and judging whether the temperature of the mainboard is greater than a preset temperature threshold value.
3. The method according to claim 2, wherein when the preset parameter includes a remaining power, the determining whether the preset parameter satisfies a preset condition further comprises:
and judging whether the residual electric quantity is smaller than a preset electric quantity threshold value.
4. The method according to claim 2 or 3, wherein when the preset parameter includes a CPU load, the determining whether the preset parameter satisfies a preset condition further comprises:
and judging whether the CPU load is greater than a preset load threshold value.
5. The method according to claim 1, wherein after determining whether the preset parameter satisfies a preset condition, the method further comprises:
if not, when the number of the application programs is one, compiling the installation files or the update files of the application programs;
if not, when the number of the application programs is two or more, compiling the installation file or the update file of one target application program in the application programs.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring preset parameters of the mobile terminal when an installation or update request of an application program is detected, and the preset parameters comprise mainboard temperature;
the judging module is used for judging whether the preset parameters meet preset conditions or not;
the rejecting module is used for rejecting compiling the installation file or the update file of the application program if the judging module judges that the preset parameter meets the preset condition;
the judging module is further configured to judge whether the mobile terminal is in a charging state after judging whether the preset parameter meets the preset condition;
the refusing module is further configured to refuse to compile the installation file or the update file of the application program if the judging module judges that the mobile terminal is in the charging state.
7. The mobile terminal of claim 6, wherein the determining module comprises:
and the first judgment submodule is used for judging whether the temperature of the main board is greater than a preset temperature threshold value.
8. The mobile terminal of claim 7, wherein the determining module further comprises:
and the second judging submodule is used for judging whether the residual electric quantity is smaller than a preset electric quantity threshold value or not when the preset parameter comprises the residual electric quantity.
9. The mobile terminal according to claim 7 or 8, wherein the determining module further comprises:
and the third judgment submodule is used for judging whether the CPU load is greater than a preset load threshold value or not when the preset parameters comprise the CPU load.
10. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
the first compiling module is used for compiling the installation file or the update file of the application program if the judging module judges that the preset parameter does not meet the preset condition and the number of the application programs is one;
and the second compiling module is used for compiling the installation file or the update file of a target application program in the application programs if the judging module judges that the preset parameters do not meet the preset conditions and the number of the application programs is two or more.
11. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the processing method of an application program according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the steps in the processing method of an application program according to any one of claims 1 to 5.
CN201711025746.8A 2017-10-27 2017-10-27 Application processing method and mobile terminal Active CN107861730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711025746.8A CN107861730B (en) 2017-10-27 2017-10-27 Application processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711025746.8A CN107861730B (en) 2017-10-27 2017-10-27 Application processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107861730A CN107861730A (en) 2018-03-30
CN107861730B true CN107861730B (en) 2020-10-30

Family

ID=61696931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711025746.8A Active CN107861730B (en) 2017-10-27 2017-10-27 Application processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107861730B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804110A (en) * 2018-06-15 2018-11-13 Oppo(重庆)智能科技有限公司 A kind of data processing method, data processing equipment and mobile terminal
CN109062593B (en) * 2018-07-20 2022-10-21 Oppo(重庆)智能科技有限公司 Application processing method and device, electronic equipment and computer readable storage medium
CN111258841A (en) * 2018-12-03 2020-06-09 中兴通讯股份有限公司 Application hot patch monitoring method and device
CN110442224A (en) * 2019-09-17 2019-11-12 联想(北京)有限公司 Power distribution method, electronic equipment and the readable storage medium storing program for executing of electronic equipment
CN113031955A (en) * 2019-12-24 2021-06-25 Oppo广东移动通信有限公司 Application program pre-compiling method and device and electronic equipment
CN113971034A (en) * 2020-07-23 2022-01-25 华为技术有限公司 Method for installing application and electronic equipment
CN114996078B (en) * 2021-12-07 2023-05-09 荣耀终端有限公司 Method and device for compiling control of dex file

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778058A (en) * 2015-03-28 2015-07-15 广东欧珀移动通信有限公司 Application program update method and application program update system
CN104951335A (en) * 2015-05-22 2015-09-30 小米科技有限责任公司 Processing method and device for application program installation packages
CN105354042A (en) * 2014-08-20 2016-02-24 中兴通讯股份有限公司 Application installation processing method and apparatus
CN105511592A (en) * 2016-02-16 2016-04-20 上海斐讯数据通信技术有限公司 Temperature value detection method based on intelligent terminal and intelligent terminal
CN105653303A (en) * 2014-11-10 2016-06-08 阿里巴巴集团控股有限公司 Application installation control method and device
CN106201821A (en) * 2016-06-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Terminal control method, terminal control mechanism and terminal
CN106502740A (en) * 2016-10-31 2017-03-15 北京小米移动软件有限公司 Application installation method and device
CN106502732A (en) * 2016-10-10 2017-03-15 广东欧珀移动通信有限公司 A kind of method for closing of application program, device and intelligent terminal
CN106775898A (en) * 2017-01-18 2017-05-31 维沃移动通信有限公司 The update method and mobile terminal of a kind of application program
CN106775828A (en) * 2016-11-25 2017-05-31 广东欧珀移动通信有限公司 Application program installation method and device, computer equipment
CN106775812A (en) * 2016-11-18 2017-05-31 广州粤亮信息科技有限公司 Mobile solution update method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7062765B1 (en) * 1999-05-25 2006-06-13 Realnetworks, Inc. System and method for updating information via a network
JP3928852B2 (en) * 2002-04-08 2007-06-13 ソニー・エリクソン・モバイルコミュニケーションズ株式会社 Mobile communication terminal
CN102947135B (en) * 2010-06-23 2015-07-01 丰田自动车株式会社 Program update device
US9529577B2 (en) * 2010-09-10 2016-12-27 International Business Machines Corporation Method of deploying a contextually dependent application
US9032385B2 (en) * 2011-12-28 2015-05-12 Lg Electronics Inc. Mobile terminal and control method thereof
JP2016148947A (en) * 2015-02-10 2016-08-18 キヤノン株式会社 Information processing apparatus, management device, control method of information processing apparatus, control method of management device, and program
CN105262805A (en) * 2015-09-25 2016-01-20 广东小天才科技有限公司 Method and system for automatic updating of learning data of mobile terminal
CN106990984B (en) * 2017-03-21 2020-04-14 北京小米移动软件有限公司 Method and device for updating system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354042A (en) * 2014-08-20 2016-02-24 中兴通讯股份有限公司 Application installation processing method and apparatus
CN105653303A (en) * 2014-11-10 2016-06-08 阿里巴巴集团控股有限公司 Application installation control method and device
CN104778058A (en) * 2015-03-28 2015-07-15 广东欧珀移动通信有限公司 Application program update method and application program update system
CN104951335A (en) * 2015-05-22 2015-09-30 小米科技有限责任公司 Processing method and device for application program installation packages
CN105511592A (en) * 2016-02-16 2016-04-20 上海斐讯数据通信技术有限公司 Temperature value detection method based on intelligent terminal and intelligent terminal
CN106201821A (en) * 2016-06-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Terminal control method, terminal control mechanism and terminal
CN106502732A (en) * 2016-10-10 2017-03-15 广东欧珀移动通信有限公司 A kind of method for closing of application program, device and intelligent terminal
CN106502740A (en) * 2016-10-31 2017-03-15 北京小米移动软件有限公司 Application installation method and device
CN106775812A (en) * 2016-11-18 2017-05-31 广州粤亮信息科技有限公司 Mobile solution update method and device
CN106775828A (en) * 2016-11-25 2017-05-31 广东欧珀移动通信有限公司 Application program installation method and device, computer equipment
CN106775898A (en) * 2017-01-18 2017-05-31 维沃移动通信有限公司 The update method and mobile terminal of a kind of application program

Also Published As

Publication number Publication date
CN107861730A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
CN107861730B (en) Application processing method and mobile terminal
US10007621B2 (en) Method for setting universal serial bus (USB) interface of electronic device, and electronic device
CN106775828B (en) Application program installation method and device and computer equipment
CN107967153B (en) Application program management method and mobile terminal
CN109885323B (en) Application program upgrading method, mobile terminal and readable storage medium
CN110308834B (en) Setting method of application icon display mode and terminal
CN109284144B (en) Fast application processing method and mobile terminal
CN109857297B (en) Information processing method and terminal equipment
CN110780940A (en) Application program loading method, electronic device and storage medium
CN108668328B (en) Network switching method and mobile terminal
CN108491148B (en) Application sharing method and terminal
CN109560591B (en) Charging method, device and terminal
CN107733016B (en) Mobile terminal charging control method and mobile terminal
CN109101327B (en) Switching of light application and mobile terminal
CN110995924B (en) Account management method and electronic equipment
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN111562959A (en) Icon management method and electronic equipment
CN109151741B (en) Multimedia message receiving method and terminal
CN107844318B (en) Upgrading method of operating system, mobile terminal and server
CN108388400B (en) Operation processing method and mobile terminal
US11150913B2 (en) Method, device, and terminal for accelerating startup of application
CN106649595B (en) Object pool-based webpage starting acceleration method and device and terminal
CN109947323B (en) Terminal display method and terminal
CN109446033B (en) Method and device for displaying downloading progress

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
GR01 Patent grant
GR01 Patent grant