CN107783803B - System optimization method and device of intelligent terminal, storage medium and intelligent terminal - Google Patents

System optimization method and device of intelligent terminal, storage medium and intelligent terminal Download PDF

Info

Publication number
CN107783803B
CN107783803B CN201711164200.0A CN201711164200A CN107783803B CN 107783803 B CN107783803 B CN 107783803B CN 201711164200 A CN201711164200 A CN 201711164200A CN 107783803 B CN107783803 B CN 107783803B
Authority
CN
China
Prior art keywords
optimization
instruction
preset
scene
application
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
CN201711164200.0A
Other languages
Chinese (zh)
Other versions
CN107783803A (en
Inventor
莫斯挺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711164200.0A priority Critical patent/CN107783803B/en
Publication of CN107783803A publication Critical patent/CN107783803A/en
Application granted granted Critical
Publication of CN107783803B publication Critical patent/CN107783803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The embodiment of the application discloses a system optimization method and device of an intelligent terminal, a storage medium and the intelligent terminal. The method comprises the steps of monitoring an instant messaging application program running on an intelligent terminal; determining an application scene according to the operation triggered and executed by the instant messaging application program; and when the application scene is matched with a preset optimization scene, executing system optimization operation. By adopting the technical scheme, the system acceleration aiming at some preset scenes of the preset application program is realized, the running efficiency of the system under the preset scenes is improved, and the problems of low response speed, blockage or unsmooth program execution and the like of the system aiming at some tiny scenes are solved.

Description

System optimization method and device of intelligent terminal, storage medium and intelligent terminal
Technical Field
The embodiment of the application relates to an intelligent terminal technology, in particular to a system optimization method and device of an intelligent terminal, a storage medium and the intelligent terminal.
Background
With the development of an operating system carried on an intelligent terminal, the intelligent terminal is increasingly widely used as an important tool in life and work of people.
Various third-party application programs, such as social application, game application, video application, security application and the like, can be installed and run in the intelligent terminal. However, with the increase of the number of applications installed on the smart terminal, various problems may occur that affect the operating efficiency of the system, and thus, when using the smart terminal, a user may feel that the system responds slowly to some operations of the applications, the execution of the programs is not smooth, and sometimes a problem of jamming may occur.
Disclosure of Invention
The embodiment of the application provides a system optimization method and device for an intelligent terminal, a storage medium and the intelligent terminal, which can effectively improve the operation efficiency of a system under a set scene.
In a first aspect, an embodiment of the present application provides a system optimization method for an intelligent terminal, including:
monitoring an instant messaging application program running on an intelligent terminal;
determining an application scene according to the operation triggered and executed by the instant messaging application program;
and when the application scene is matched with a preset optimization scene, executing system optimization operation.
In a second aspect, an embodiment of the present application further provides a system optimization device for an intelligent terminal, where the device includes:
the program monitoring module is used for monitoring the instant messaging application program running on the intelligent terminal;
the scene determining module is used for determining an application scene according to the operation triggered and executed by the instant messaging application program;
and the system optimization module is used for executing system optimization operation when the application scene is matched with a preset optimization scene.
In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for optimizing a system of an intelligent terminal according to the first aspect is implemented.
In a fourth aspect, an embodiment of the present application further provides an intelligent terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the system optimization method for an intelligent terminal according to the first aspect.
The embodiment of the application provides a system optimization scheme of an intelligent terminal, which comprises the steps of monitoring an instant messaging application program running on the intelligent terminal, and determining an application scene according to the operation triggered and executed by the instant messaging application program; and when the application scene is matched with a preset optimization scene, executing system optimization operation. By adopting the technical scheme, whether the instant messaging application program is in the preset scene or not is accurately identified, and the preset scene triggers the execution system to perform optimization operation, so that system acceleration aiming at certain preset scenes is realized, the running efficiency of the system under the preset scenes is improved, and the problems that the system is slow in response speed, is blocked or is unsmooth in program execution aiming at certain tiny scenes and the like are solved.
Drawings
Fig. 1 is a flowchart of a system optimization method for an intelligent terminal according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another system optimization method for an intelligent terminal according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating an operation of opening an album through a session interface according to an embodiment of the present application;
FIG. 4 is a schematic view of an interface of a photo album with a mask layer according to an embodiment of the present application;
fig. 5 is a block diagram of a system optimization device of an intelligent terminal according to an embodiment of the present disclosure;
fig. 6 is a block diagram of an intelligent terminal according to an embodiment of the present disclosure;
fig. 7 is a block diagram of a smart phone according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
At present, with the development of mobile internet and intelligent terminal industries, application programs installed on intelligent terminals are increasingly abundant. However, with the increase of the third-party application installed on the smart terminal, a plurality of applications compete for system processing resources, which results in more and more obvious phenomena such as slow system response, unsmooth card or unsmooth application execution. In order to solve the above problems, in the related art, a system optimization scheme is proposed for some main scenarios, for example, the related art proposes to perform acceleration processing for an application start scenario, or perform system acceleration processing for an IO copy scenario, or perform acceleration processing for a run-out scenario, or perform acceleration processing for an application installation scenario, and the like. The inventor finds that the scene targeted by the system optimization in the related art in the process of implementing the application generally relates to the service scene of the terminal system, does not consider some subtle scenes in the actual use process of the application program, and may have the problem that the system optimization effect is not obvious or no system optimization exists in some scenes. In order to solve the technical problem, the application provides a system optimization scheme of the intelligent terminal, and the operation efficiency of the system under the set scene can be effectively improved.
Fig. 1 is a flowchart of a system optimization method for an intelligent terminal according to an embodiment of the present disclosure, where the method may be performed by a system optimization device for an intelligent terminal, where the device may be implemented by software and/or hardware, and may generally be integrated in an intelligent terminal. As shown in fig. 1, the method includes:
and step 110, monitoring the instant messaging application program running on the intelligent terminal.
The intelligent terminal can be a smart phone, a notebook computer, a PAD (tablet computer), a vehicle-mounted terminal, an intelligent wearable device and the like. The operating system of the smart terminal may include, but is not limited to: android (Android, a mobile operating system), and so on. Various applications can be installed and run in the intelligent terminal, including but not limited to: an instant messaging application, an SNS (Social Networking Services) application, a game application, or a security application, among others.
The method includes the steps of obtaining a currently running application program on the intelligent terminal, including but not limited to obtaining a package name or a process name of the currently running application program through a task manager. And matching the currently running application program with a preset instant messaging application program according to the package name or the process name, so as to judge whether the preset instant messaging application program exists in the currently running application program. When the preset instant messaging application program exists in the currently running application program, monitoring the instant messaging application program. Monitoring the instant messaging application may be, for example, monitoring the execution of the instant messaging application. For example, a first instruction for calling and setting a system interface by the instant messaging application may be obtained, where the first instruction is used to instruct the instant messaging application to perform a set operation. And when the first instruction is acquired, determining that the instant messaging application program is triggered to execute the operation corresponding to the first instruction. Taking the instant messaging application as the wechat as an example, the setting operation program includes, but is not limited to, the wechat opens an album or a picture library through a session interface, the wechat displays group members, the wechat loads high-definition pictures, the wechat exits from a contact, and the like.
And step 120, determining an application scene according to the operation triggered and executed by the instant messaging application program.
The operation may be any function of the instant messaging application, including but not limited to an operation of opening an album through a session interface, an operation of displaying group members, an operation of loading high definition pictures, or an operation of exiting a contact interface. The application scenes include, but are not limited to, opening an album scene by a session interface, displaying a group member scene, loading a high definition picture scene, or exiting a contact scene.
Illustratively, with reference to the above example, when the first instruction is obtained, it is determined that the instant messaging application is triggered to execute an operation corresponding to the first instruction. And determining the application scene of the instant messaging application program according to the operation corresponding to the first instruction. For example, if the operation corresponding to the first instruction is an operation of opening an album through the session interface, the application scene is an operation of opening an album through the session interface. And if the operation corresponding to the first instruction is the operation of displaying the group members, the application scene is a scene of displaying the group members. And if the high-definition picture operation is loaded during the operation corresponding to the first instruction, the application scene is a high-definition picture loading scene. And if the operation corresponding to the first instruction exits the operation of the contact person interface, the application scene is an exit contact person scene, and the like.
And step 130, when the application scene is matched with a preset optimization scene, executing system optimization operation.
The system optimization operation includes measures for improving the execution efficiency of the operating system, including but not limited to at least one of increasing the number of CPU cores, CPU frequency modulation, memory optimization, and process cleaning. Specifically, the number of the CPU cores may be increased, the frequency of the CPU may be increased, the running processes may be reduced, the operating mode may be changed, unnecessary interrupts may be deleted, the file locations may be optimized, and unnecessary load items and auto-boot items may be reduced.
For example, the determining whether the application scene is matched with the preset optimization scene includes obtaining a white list corresponding to the preset optimization scene, querying the white list according to the application scene, and determining whether the application scene is matched with the preset optimization scene. When the application scene is matched with a preset optimization scene, the system optimization operation is executed in parallel with the execution of the first instruction, so that the timeliness of the response of the first instruction can be ensured, but the first instruction needs to queue up for the response of the system possibly because the processing efficiency of the system is not high; meanwhile, due to the fact that the system optimization operation is carried out, the system processing efficiency is gradually improved, the waiting time corresponding to the first instruction can be shortened, and therefore the response time of the first instruction is shortened.
Optionally, if the application scenario is matched with the preset optimization scenario, the operation corresponding to the first instruction is not executed for the moment, but a preset interrupt program is called to execute the system optimization operation, so as to adjust at least one of the functions of the core number, the CPU frequency modulation, the memory optimization, and the process cleaning of the CPU, and after the system optimization operation is finished, the operation corresponding to the first instruction is executed, so that the system optimization is accelerated, a more optimized processing resource can be provided for the operation corresponding to the first instruction to be executed, and the execution time of the operation corresponding to the first instruction is shortened. The method comprises the steps of detecting and setting code execution of an instant messaging application program, determining a trigger point of system optimization, executing system optimization operation, and realizing system optimization acceleration from an application side instead of a system service side.
Wherein the ending of the system optimization operation comprises the system optimization operation being completed or the system optimization operation being forcibly terminated. The indication that the system optimization operation is complete may be the detection of a second instruction to exit the predetermined interrupt routine within a predetermined first time interval. The forced termination of the system optimization operation may be due to the second instruction not being detected within a preset first time interval, or may be due to the second instruction not being detected within the preset first time interval, and the detection is continued, and the second instruction is not detected within a preset second time interval.
For example, after executing the preset interrupt program, determining whether a second instruction for exiting the preset interrupt program is detected within a preset first time interval; if yes, determining that the system optimization is completed; otherwise, the process corresponding to the preset interrupt program is forcibly ended, namely the system optimization operation is forcibly ended, so that the situation that the first instruction of the instant messaging application program cannot be responded for a long time due to the fact that the system optimization operation enters a dead loop is avoided. Optionally, when a second instruction for exiting the preset interrupt program is not detected within a preset first time interval, determining whether the second instruction is detected within a preset second time interval; if so, the system optimization operation can still be considered to be completed; and otherwise, executing a third instruction, wherein the third instruction is used for instructing the intelligent terminal to execute the operation of finishing the process corresponding to the preset interrupt program.
After the system optimization operation is finished, responding to the first instruction, and executing the operation corresponding to the first instruction, so that certain fine preset scenes of the instant messaging application program are accelerated, the efficiency of the system for executing the setting operation is improved, the execution time is shortened, and the problems of long response time, blockage or unsmooth execution and the like are avoided.
It can be understood that the embodiment of the application is not only applicable to the instant messaging application, but also applicable to other applications with large data processing capacity, for example, when the game application is in a scene of loading a high-definition map, realizing a multi-person task, realizing a battle task, and the like, the process system needs to be accelerated.
According to the technical scheme of the embodiment, an application scene is determined according to the operation triggered and executed by the instant messaging application program by monitoring the instant messaging application program running on the intelligent terminal; and when the application scene is matched with a preset optimization scene, executing system optimization operation. By adopting the technical scheme, whether the instant messaging application program is in the preset scene or not is accurately identified, and the preset scene triggers the execution system to perform optimization operation, so that system acceleration aiming at certain preset scenes is realized, the running efficiency of the system under the preset scenes is improved, and the problems that the system is slow in response speed, is blocked or is unsmooth in program execution aiming at certain tiny scenes and the like are solved.
Fig. 2 is a flowchart of another system optimization method for an intelligent terminal according to an embodiment of the present disclosure. The method comprises the following steps:
step 201, acquiring an application program currently running on the intelligent terminal.
And acquiring the process name of the application program currently running on the intelligent terminal through the task manager.
Step 202, determining whether the application is a preset instant messaging application, if so, performing step 203, otherwise, performing step 213.
The method comprises the steps of obtaining a preset white list for storing the process name of the instant messaging application program, inquiring the white list according to the currently running process name, and judging whether the application program is the preset instant messaging application program. If the preset instant messaging application program exists in the currently running application program, step 203 is executed, otherwise, step 213 is executed.
Step 203, obtaining a first instruction for calling and setting a system interface of the instant messaging application program.
Taking WeChat as an example, the first instruction may be an instruction for the WeChat application to open an album. The URI (Uniform Resource Identifier) of the album can be obtained through reverse parsing, and the WeChat application program realizes opening the album in the session interface by calling the system interface startActivityForResult (). Therefore, upon detecting that the startActivityForResult () method is running, a statement containing the album URI is taken as the first instruction. For another example, the wechat application detects an operation instruction for displaying group members input by the user, and executes an operation for switching from the session interface to the display group member interface. The startActivityForResult () method is detected, and a statement for calling group member data through a group member resource name is used as a first instruction. For another example, the wechat application detects an operation instruction input by the user to display the contact interface or quit the contact interface, and executes an operation of switching to the contact interface or quitting the contact interface. And detecting a startActivityForResult () method, and taking a statement for displaying a contact interface or quitting the contact interface through a contact resource name as a first instruction. Taking a game as an example, if the game application detects an operation instruction for loading a map, a sentence corresponding to the operation instruction is used as a first instruction.
And 204, when the first instruction is obtained, determining that the instant messaging application program is triggered to execute the operation corresponding to the first instruction.
For example, if a user is conversing with a contact a through an instant messaging application a, and the user wants to share photos with the contact a during the conversation, the application a detects an operation of clicking an album option input by the user, and the operation triggers the application a to execute a first instruction for calling a system interface to open an album, so that the application a is determined to be triggered to execute the operation for opening the album.
Fig. 3 is a schematic diagram illustrating an operation of opening an album by a session interface, as shown in fig. 3, for the running application a, when a click operation of a user on the setting control 320 in the session interface 310 is detected, a function selection interface 330 is displayed at the bottom of the session interface 310. Within the set time displayed on the function selection interface 330, a click operation for the album function input by the user is detected. If the application a detects a user operation for the album function, a startactiveforresult () method is executed. Taking the android system as an example, the operation of the instant messaging application a to start an album component (or activity) in the session interface is realized by calling the system interface startactivexforresult (). It should be noted that the system interface is located in the file frame \ base \ core \ java \ android \ app \ activity. The application A can call the album application through the system interface, so that the code execution of the application A can be monitored, if the application A is detected to execute the startActivityForResult () method, the album activity to be opened by the application A is determined, and at the moment, the application A is determined to be triggered to execute the album opening operation. The code for realizing the startActivityForResult () method is as follows:
public void startActivityForResult(@RequiresPermission Intent intent,int requestCode,@Nullable Bundle options){
if(intent!=null&&intent.getComponent()!=null&&
int. getComponent (). flatToString (). equals ("here URI for album activity")
}
For another example, if a user joins an instant messaging group and wants to modify his group nickname, he needs to enter the group member. The instant messaging application can detect an operation instruction input by a user to enter the group member, and the operation instruction triggers the application program to execute a first instruction for calling the setting system interface to enter the group member, so that the application program is determined to be triggered to execute the operation for displaying the group member. The setting system interface may still be startActiveForResult (), the implementation code is similar to the above-mentioned application A starting album activity, the URI of the album activity may be replaced by the resource name corresponding to the group member data, and details of the implementation code are omitted here.
For another example, the instant messaging application a detects an operation instruction that the user wants to send a high-definition picture to another contact, and the operation instruction triggers the application a to execute a first instruction for calling a setting system interface to load the high-definition picture, where the first instruction includes a URI of the high-definition picture, thereby determining that the application a is triggered to execute the operation of sending the high-definition picture. The setting system interface may still be startactityforresult (), the implementation code is similar to the above-mentioned application a starting album activity, and the URI of the album activity may be replaced by the URI of the high definition picture, which is not described herein again.
For another example, the instant messaging application a detects an operation instruction that the user wants to quit the contact interface, and the operation instruction triggers the application a to execute a first instruction for quitting the contact interface, where the first instruction includes a command for quitting the contact interface, and a command for clearing a cache corresponding to the contact interface, so as to determine that the application a is triggered to execute the operation for quitting the contact interface.
And step 205, determining an application scene according to the operation.
And step 206, executing a preset interrupt program when the application scene is matched with a preset optimization scene.
And acquiring a white list corresponding to a preset optimization scene, inquiring the white list according to the application scene, and determining whether the application scene is matched with the preset optimization scene. That is, whether the application scenario matches the preset optimization scenario may be determined according to the result of querying the white list. If so, suspending the operation corresponding to the first instruction, switching to executing a preset interrupt program, and realizing at least one function of adjusting the core number of the CPU, adjusting the frequency of the CPU, optimizing the memory and clearing the process when the preset interrupt program is executed.
Step 207, determining whether a second command is detected within a preset first time interval, if so, performing step 209, otherwise, performing step 208.
The second instruction is used for indicating to exit the preset interrupt program. When the execution of the interrupt program is detected, a timer is started, the timer is started after the set time is counted, the time counting is finished, and the length from the start of the time counting to the end of the time counting is used as a first time interval. During the first time interval, if the second instruction is detected, step 209 is executed, otherwise step 208 is executed.
And step 208, ending the process corresponding to the preset interrupt program.
If the second instruction is not detected in the first time interval, forcibly ending the process corresponding to the preset interrupt program, terminating the system optimization operation, and avoiding the situation that the first instruction of the instant messaging application program is not responded for a long time.
And step 209, executing the operation corresponding to the first instruction.
And after detecting the second instruction of the preset interrupt program or forcibly finishing the process corresponding to the preset interrupt program, executing the operation corresponding to the first instruction so as to respond to the first instruction of the instant messaging application program.
And step 210, displaying system optimization prompt information.
The system optimization prompt message includes time consumed for executing the operation corresponding to the first instruction, and at least one of a CPU frequency, a memory usage rate, or a process number at the operation execution time. Taking the example of opening the photo album by WeChat, a mask layer is created at the set position of the photo album interface, a prompt window is displayed through the mask layer, and system optimization prompt information is displayed in the prompt window. The mask layer may also be referred to as a mask layer, which may refer to a layer covering the masked window for displaying the hint window. An overlay creation tool such as a LightBox may be employed to create a mask layer in the intelligent terminal. Illustratively, a mask layer is created through a layer creation tool, the mask layer is fixedly arranged at the top end of the album interface, and a higher display priority is given to the mask layer, so that the prompt window corresponding to the mask layer can be displayed at the top layer of the display interface. Fig. 4 shows a schematic view of a photo album interface with a mask layer, as can be seen from fig. 4, on top of the photo album interface, the mask layer being used to display a prompt window 410. After the display window 420 corresponding to the album interface obtains the focus, the photos can be displayed in a scrolling manner by dragging, but the photos corresponding to the mask layer area will be blocked. Optionally, the transparency of the mask layer may be set to prevent the photo corresponding to the mask layer region from being completely blocked. Optionally, the prompt window may also be displayed in a floating window form, and system optimization prompt information is displayed in the prompt window. For the scene of opening the photo album by the conversation interface, the floating window can float in the photo album interface or float on the set area of the photo album interface. For scenes entering the group members from the conversation interface, the floating window may be suspended over a set area of the group member interface or float in the group member interface. For a scene that loads a high definition picture for sending to contact B, a mask layer may be provided at the top of the session interface, the mask layer being used to display a prompt window. For the scene of exiting the contact, when the interface of exiting the contact returns to the main interface, a mask layer is arranged at the top end of the main interface, and the mask layer is used for displaying the prompt window, and the prompt window can also be displayed in a floating window mode, and the like.
And step 211, obtaining the display duration of the system optimization prompt message.
And starting timing when the system optimization prompt information is displayed in the prompt window to obtain the display time of the system optimization information.
And step 212, hiding the system optimization prompt information when the display duration exceeds a preset time threshold.
The preset time threshold may be a default value of the system, or may be set according to actual needs. For example, the preset time period may be 1s, 2s, or 3s, and so on. When the display duration of the system optimization information exceeds a set time threshold, the mask layer is closed to stop displaying the prompt window, and at the moment, the display window of the album interface is not shielded by the mask layer, so that the operation of a user on the album interface is not influenced, and the use experience of the user can be effectively improved.
And step 213, judging that the application program does not meet the system optimization condition.
When the application program currently running on the intelligent terminal is not the preset instant messaging application program, determining that the application program does not meet the system optimization condition, namely, not configuring the system optimization function for the application scene of the application program.
According to the technical scheme of the embodiment, when the instant messaging application program is triggered to execute the setting operation, the system optimization operation is preferentially executed, and the setting operation is executed after the system optimization is finished; and after the setting operation is executed, the system optimization prompt information is displayed, so that the user perception and intuition of the system optimization effect are improved, the man-machine interaction performance of the intelligent terminal is improved, and the processing efficiency of the intelligent terminal in a preset scene is improved.
Fig. 5 is a block diagram of a system optimization device of an intelligent terminal according to an embodiment of the present disclosure. The device can be realized by software and/or hardware, can be integrated in the intelligent terminal, and is used for executing the system optimization method of the intelligent terminal provided by the embodiment of the application. As shown in fig. 5, the apparatus includes:
a program monitoring module 510, configured to monitor an instant messaging application running on the intelligent terminal;
a scene determining module 520, configured to determine an application scene according to an operation triggered to be executed by the instant messaging application;
and the system optimization module 530 is configured to execute a system optimization operation when the application scenario matches a preset optimization scenario.
The technical scheme of the embodiment provides a system optimization device of an intelligent terminal, which realizes system acceleration aiming at certain preset scenes by accurately identifying whether an instant messaging application program is in the preset scenes and triggering execution system optimization operation by the preset scenes, improves the operating efficiency of the system under the preset scenes, and solves the problems of low response speed, blockage or unsmooth program execution and the like of the system aiming at certain tiny scenes.
Optionally, the program monitoring module 510 is specifically configured to:
acquiring a first instruction for calling and setting a system interface by an instant messaging application program;
when the first instruction is obtained, determining that the instant messaging application program is triggered to execute the operation corresponding to the first instruction, wherein the operation comprises an operation of opening an album through a session interface, an operation of displaying group members, an operation of loading high-definition pictures or an operation of exiting a contact interface.
Optionally, the system optimization module 530 is specifically configured to:
judging whether the application scene is matched with a preset optimization scene or not, wherein the application scene comprises a photo album scene opened by a session interface, a group member scene displayed, a high-definition picture scene loaded or a contact person quitting scene;
and if so, executing a preset interrupt program, wherein at least one function of adjusting the core number of the CPU, adjusting the frequency of the CPU, optimizing the memory and clearing the process is realized when the preset interrupt program is executed.
Optionally, the method further includes:
the first judgment module is used for judging whether a second instruction is detected in a preset first time interval or not, wherein the second instruction is used for indicating that the preset interrupt program exits;
if so, executing the operation corresponding to the first instruction;
otherwise, ending the process corresponding to the preset interrupt program, and executing the operation corresponding to the first instruction.
Optionally, the method further includes:
the second judging module is used for judging whether the second instruction is detected in a preset second time interval or not if the second instruction is not detected in the preset first time interval before the process corresponding to the preset interrupt program is ended;
if so, executing the operation corresponding to the first instruction;
and otherwise, executing a third instruction, wherein the third instruction is used for instructing the intelligent terminal to execute the operation of ending the process corresponding to the preset interrupt program.
Optionally, the method further includes:
the information display module is used for displaying system optimization prompt information, wherein the system optimization prompt information comprises time consumed by executing operation and at least one of CPU frequency, memory utilization rate or process number at the operation execution time.
Optionally, the method further includes:
the timing module is used for acquiring the display duration of the system optimization prompt information after the system optimization prompt information is displayed;
and the information hiding module is used for hiding the system optimization prompt information when the display duration exceeds a preset time threshold.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for system optimization of a smart terminal, the method including:
monitoring an instant messaging application program running on an intelligent terminal;
determining an application scene according to the operation triggered and executed by the instant messaging application program;
and when the application scene is matched with a preset optimization scene, executing system optimization operation.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present application is not limited to the above-described control operation for system optimization of the smart terminal, and may also perform related operations in the system optimization method of the smart terminal provided in any embodiments of the present application.
The embodiment of the application provides an intelligent terminal, wherein an operating system is arranged in the intelligent terminal, and the system optimization device provided by the embodiment of the application can be integrated in the intelligent terminal. The intelligent terminal can be a smart phone, a notebook computer, a PAD (tablet computer), a handheld game console, a vehicle-mounted terminal, intelligent wearable equipment (including a smart watch, a smart bracelet or smart glasses), and the like. Fig. 6 is a block diagram of an intelligent terminal according to an embodiment of the present disclosure. As shown in fig. 6, the smart terminal may include a memory 610 and a processor 620. The memory 610 for storing a computer program; the processor 620 reads and executes the computer programs stored in the memory 610. The processor 620, when executing the computer program, performs the steps of: monitoring an instant messaging application program running on an intelligent terminal; determining an application scene according to the operation triggered and executed by the instant messaging application program; and when the application scene is matched with a preset optimization scene, executing system optimization operation.
The memory and the processor listed in the above examples are all part of components of the intelligent terminal, and the intelligent terminal may further include other components. Taking a smart phone as an example, a possible structure of the smart terminal is described. Fig. 7 is a block diagram of a smart phone according to an embodiment of the present application. As shown in fig. 7, the smart phone may include: memory 701, a Central Processing Unit (CPU) 702 (also known as a processor, hereinafter CPU), a peripheral interface 703, a Radio Frequency (RF) circuit 705, an audio circuit 706, a speaker 711, a power management chip 708, an input/output (I/O) subsystem 709, other input/control devices 710, and an external port 704, which communicate via one or more communication buses or signal lines 707.
It should be understood that the illustrated smartphone 700 is merely one example of a smart terminal, and that the smartphone 700 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes the smart phone integrated with the system optimization apparatus according to this embodiment in detail.
A memory 701, the memory 701 being accessible by the CPU702, the peripheral interface 703, and the like, the memory 701 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices. The memory 701 stores a computer program, and may also store a white list of a preset instant messaging application program, a white list of a preset optimized scene, and the like.
A peripheral interface 703, said peripheral interface 703 may connect input and output peripherals of the device to the CPU702 and the memory 701.
An I/O subsystem 709, which I/O subsystem 709 may connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710, to the peripheral interface 703. The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Where one or more input controllers 7092 receive electrical signals from or transmit electrical signals to other input/control devices 710, the other input/control devices 710 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 712, the touch screen 712 being an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or transmits electrical signals to the touch screen 712. The touch screen 712 detects a contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 712 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 705 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 705 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electric signal, and transmit the electric signal to the speaker 711.
The speaker 711 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 705 into sound and play the sound to the user.
And a power management chip 708 for supplying power and managing power to the hardware connected to the CPU702, the I/O subsystem, and the peripheral interface.
The intelligent terminal provided by the embodiment of the application can accelerate the system aiming at certain preset scenes, improves the running efficiency of the system under the preset scenes, and solves the system problems of low response speed, blockage or unsmooth program execution and the like aiming at certain tiny scenes.
The system optimization device, the storage medium and the intelligent terminal of the intelligent terminal provided in the above embodiments can execute the system optimization method of the intelligent terminal provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a system optimization method for an intelligent terminal provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (9)

1. A system optimization method of an intelligent terminal is characterized by comprising the following steps:
acquiring a first instruction for calling and setting a system interface by an instant messaging application program;
when the first instruction is obtained, determining that the instant messaging application program is triggered to execute the operation corresponding to the first instruction;
determining an application scene according to the operation triggered and executed by the instant messaging application program;
acquiring a white list corresponding to a preset optimization scene, inquiring the white list according to the application scene, and determining whether the application scene is matched with the preset optimization scene;
and when the application scene is matched with the preset optimization scene, calling a preset interrupt program to execute system optimization operation, and then executing operation corresponding to the first instruction, wherein the system optimization operation comprises measures for improving the execution efficiency of an operating system.
2. The method of claim 1, wherein when the application scenario matches a preset optimization scenario, performing a system optimization operation, comprising:
judging whether the application scene is matched with a preset optimization scene or not, wherein the application scene comprises a photo album scene opened by a session interface, a group member scene displayed, a high-definition picture scene loaded or a contact person quitting scene;
and if so, executing a preset interrupt program, wherein at least one function of adjusting the core number of the CPU, adjusting the frequency of the CPU, optimizing the memory and clearing the process is realized when the preset interrupt program is executed.
3. The method of claim 2, further comprising:
judging whether a second instruction is detected within a preset first time interval or not, wherein the second instruction is used for indicating to exit the preset interrupt program;
if so, executing the operation corresponding to the first instruction;
otherwise, ending the process corresponding to the preset interrupt program, and executing the operation corresponding to the first instruction.
4. The method according to claim 3, before ending the process corresponding to the predetermined interrupt program, further comprising:
when the second instruction is not detected in a preset first time interval, judging whether the second instruction is detected in a preset second time interval;
if so, executing the operation corresponding to the first instruction;
and otherwise, executing a third instruction, wherein the third instruction is used for instructing the intelligent terminal to execute the operation of ending the process corresponding to the preset interrupt program.
5. The method of any of claims 1 to 4, further comprising:
and displaying system optimization prompt information, wherein the system optimization prompt information comprises time consumed by executing operation and at least one of CPU frequency, memory utilization rate or process number at the operation execution time.
6. The method of claim 5, further comprising, after displaying the system optimization prompt,:
acquiring the display duration of the system optimization prompt information;
and hiding the system optimization prompt information when the display duration exceeds a preset time threshold.
7. The utility model provides a system optimization device of intelligent terminal which characterized in that includes:
the program monitoring module is used for acquiring a first instruction for calling and setting a system interface by an instant messaging application program, and determining that the instant messaging application program is triggered to execute an operation corresponding to the first instruction when the first instruction is acquired;
the scene determining module is used for determining an application scene according to the operation triggered and executed by the instant messaging application program;
and the system optimization module is used for calling a preset interrupt program to execute system optimization operation and then executing operation corresponding to the first instruction when acquiring a white list corresponding to a preset optimization scene, inquiring the white list according to the application scene and determining that the application scene is matched with the preset optimization scene, wherein the system optimization operation comprises measures for improving the execution efficiency of an operating system.
8. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a system optimization method for a smart terminal according to any one of claims 1 to 6.
9. An intelligent terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the system optimization method of the intelligent terminal according to any one of claims 1 to 6 when executing the computer program.
CN201711164200.0A 2017-11-21 2017-11-21 System optimization method and device of intelligent terminal, storage medium and intelligent terminal Active CN107783803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711164200.0A CN107783803B (en) 2017-11-21 2017-11-21 System optimization method and device of intelligent terminal, storage medium and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711164200.0A CN107783803B (en) 2017-11-21 2017-11-21 System optimization method and device of intelligent terminal, storage medium and intelligent terminal

Publications (2)

Publication Number Publication Date
CN107783803A CN107783803A (en) 2018-03-09
CN107783803B true CN107783803B (en) 2021-04-06

Family

ID=61430369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711164200.0A Active CN107783803B (en) 2017-11-21 2017-11-21 System optimization method and device of intelligent terminal, storage medium and intelligent terminal

Country Status (1)

Country Link
CN (1) CN107783803B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362355A (en) * 2018-04-02 2019-10-22 青岛海信移动通信技术股份有限公司 A kind of application interface display methods and device
CN109062715B (en) * 2018-07-05 2022-02-08 Oppo(重庆)智能科技有限公司 Method and device for determining memory clock frequency and terminal
CN109783028A (en) * 2019-01-16 2019-05-21 Oppo广东移动通信有限公司 Optimization method, device, storage medium and the intelligent terminal of I/O scheduling
CN110018780A (en) * 2019-04-09 2019-07-16 Oppo广东移动通信有限公司 Promote method, apparatus, terminal and the storage medium of process performance
CN110187818B (en) * 2019-04-09 2020-12-29 Oppo广东移动通信有限公司 Method and device for improving performance of assembly, terminal and storage medium
CN110413417A (en) * 2019-08-02 2019-11-05 广州小鹏汽车科技有限公司 The running optimizatin methods, devices and systems of onboard system process
CN111330896A (en) * 2020-04-08 2020-06-26 江苏江海润液设备有限公司 Multifunctional washing device and control method thereof

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430151A (en) * 2012-07-06 2013-12-04 华为终端有限公司 Method and apparatus for configuring resource
CN103631586A (en) * 2013-11-15 2014-03-12 北京奇虎科技有限公司 Method and system for carrying out contextualization interactive processing
CN104991775A (en) * 2015-07-03 2015-10-21 北京奇虎科技有限公司 Game acceleration method and apparatus
CN105045367A (en) * 2015-01-16 2015-11-11 中国矿业大学 Android system equipment power consumption optimization method based on game load prediction
CN105120053A (en) * 2015-06-24 2015-12-02 惠州Tcl移动通信有限公司 Intelligent terminal and information identification method
CN105183560A (en) * 2015-09-01 2015-12-23 北京金山安全软件有限公司 Picture adjustment method, apparatus and system
CN106095592A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of prospect application scenarios synchronous method and device, system
CN106227323A (en) * 2016-07-18 2016-12-14 乐视控股(北京)有限公司 A kind of display packing and device
CN106549880A (en) * 2016-11-25 2017-03-29 珠海市魅族科技有限公司 A kind of resource allocation methods and terminal unit of terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430151A (en) * 2012-07-06 2013-12-04 华为终端有限公司 Method and apparatus for configuring resource
CN103631586A (en) * 2013-11-15 2014-03-12 北京奇虎科技有限公司 Method and system for carrying out contextualization interactive processing
CN105045367A (en) * 2015-01-16 2015-11-11 中国矿业大学 Android system equipment power consumption optimization method based on game load prediction
CN105120053A (en) * 2015-06-24 2015-12-02 惠州Tcl移动通信有限公司 Intelligent terminal and information identification method
CN104991775A (en) * 2015-07-03 2015-10-21 北京奇虎科技有限公司 Game acceleration method and apparatus
CN105183560A (en) * 2015-09-01 2015-12-23 北京金山安全软件有限公司 Picture adjustment method, apparatus and system
CN106095592A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of prospect application scenarios synchronous method and device, system
CN106227323A (en) * 2016-07-18 2016-12-14 乐视控股(北京)有限公司 A kind of display packing and device
CN106549880A (en) * 2016-11-25 2017-03-29 珠海市魅族科技有限公司 A kind of resource allocation methods and terminal unit of terminal

Also Published As

Publication number Publication date
CN107783803A (en) 2018-03-09

Similar Documents

Publication Publication Date Title
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN108363593B (en) Application program preloading method and device, storage medium and terminal
CN107748686B (en) Application program starting optimization method and device, storage medium and intelligent terminal
CN108512695B (en) Method and device for monitoring application blockage
CN108595228B (en) Application program prediction model establishing method and device, storage medium and mobile terminal
CN108521607B (en) Method and device for processing advertisements in video, storage medium and intelligent terminal
CN107483721B (en) Control method, device, storage medium and mobile terminal based on blank screen gesture
CN107797841B (en) Window control method and device, terminal equipment and storage medium
EP3232325B1 (en) Method and device for starting application interface
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
CN107844342B (en) Control method and device for keeping application program alive, storage medium and mobile terminal
EP3486770A1 (en) Processing method, device and storage medium for implementing automatic startup
CN108776599B (en) Management method and device for preloaded application, storage medium and intelligent terminal
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
CN106937258B (en) A kind of control method of broadcast, device and mobile terminal
CN111290926A (en) Terminal prompting method and device, storage medium and terminal
WO2019233354A1 (en) Application preloading method and device, storage medium and terminal
WO2019214477A1 (en) Application program pre-loading method and device, storage medium and terminal
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
CN108762831B (en) Application program preloading method and device, storage medium and terminal
CN107943268B (en) Scheduling job control method, device, terminal equipment and storage medium
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
CN107831886B (en) Control method and device for associated starting application, storage medium and intelligent terminal
CN108829229B (en) Screen control method and device, storage medium and intelligent terminal

Legal Events

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

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

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

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant