CN107766218A - system optimization method, device, storage medium and terminal device - Google Patents

system optimization method, device, storage medium and terminal device Download PDF

Info

Publication number
CN107766218A
CN107766218A CN201710948705.XA CN201710948705A CN107766218A CN 107766218 A CN107766218 A CN 107766218A CN 201710948705 A CN201710948705 A CN 201710948705A CN 107766218 A CN107766218 A CN 107766218A
Authority
CN
China
Prior art keywords
terminal device
finger daemon
critical thread
test information
thread
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710948705.XA
Other languages
Chinese (zh)
Other versions
CN107766218B (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 CN201710948705.XA priority Critical patent/CN107766218B/en
Publication of CN107766218A publication Critical patent/CN107766218A/en
Application granted granted Critical
Publication of CN107766218B publication Critical patent/CN107766218B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes

Abstract

A kind of system optimization method, device, storage medium and the terminal device provided in the embodiment of the present application, this method is by when terminal device is run, starting finger daemon;Test information is sent to the critical thread of system service process by the finger daemon;According to response of the critical thread to the test information, the state of the terminal device is determined.The embodiment of the present application can improve the operating efficiency of terminal device.

Description

System optimization method, device, storage medium and terminal device
Technical field
The invention relates to computer program running technology field, and in particular to a kind of system optimization method, device, Storage medium and terminal device.
Background technology
With the development of mobile intelligent terminal equipment, the application development on intelligent terminal is also rapidly.Android (Android) Operating system of the system as a main flow in intelligent terminal, there is numerous users.Because Android system is opened as one Source system, all applications for Android system also have more developer, the very more still quality of the Android application developed It is uneven, if so user is mounted with some of poor quality or incompatible systematic differences on intelligent terminal, it will right The stability of Android system causes larger threat, it is possible that the problem of system is stuck.
The system is stuck refer to system program can not normal operation, system can not receive the operational order of user's input Deng.When the load too high or system hardware resources of system are excessively taken, all it is possible that being when system is consumed excessively Unite stuck phenomenon.The situation stuck in face of system, user typically can be after certain time be waited, and selection triggers to restart manually is The instruction of system, it can so be brought inconvenience to the operation of user.
The content of the invention
The embodiment of the present application provides a kind of system optimization method, device, storage medium and terminal device, can improve terminal The operating efficiency of equipment.
In a first aspect, the embodiment of the present application provides a kind of system optimization method, including:
When terminal device is run, start finger daemon;
Test information is sent to the critical thread of system service process by the finger daemon;
According to response of the critical thread to the test information, the state of the terminal device is determined.
Second aspect, the embodiment of the present application provide a kind of system optimization apparatus, including:
Starting module, for when terminal device is run, starting finger daemon;
Test module, for sending test information to the critical thread of system service process by the finger daemon;
Execution module, for according to response of the critical thread to the test information, determining the terminal device State.
The third aspect, the embodiment of the present application provide a kind of computer-readable recording medium, are stored thereon with computer journey Sequence, a kind of system optimization method as described in the embodiment of the present application is realized when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of terminal device, including memory, processor and are stored in storage On device and it can be realized in the computer program of processor operation described in the computing device during computer program as the application is real Apply a kind of system optimization method described in example.
A kind of system optimization method provided in the embodiment of the present application, by when terminal device is run, startup guard into Journey;Test information is sent to the critical thread of system service process by the finger daemon;According to the critical thread to institute The response of test information is stated, determines the state of the terminal device, the embodiment of the present application can pass through finger daemon detecting system Whether the working condition of critical thread is normal, and the state of terminal device is determined according to the working condition of critical thread, avoids Under being in the presence of that system is stuck, user still needs to trigger the operation restarted manually after persistently waiting, and can adjust in due course The state of whole terminal device.By using above-mentioned technical proposal, the operating efficiency of terminal device can be improved.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet for system optimization method that the embodiment of the present application provides;
Fig. 2 is the schematic flow sheet for another system optimization method that the embodiment of the present application provides;
Fig. 3 is the schematic flow sheet for another system optimization method that the embodiment of the present application provides;
Fig. 4 is the schematic flow sheet for another system optimization method that the embodiment of the present application provides;
Fig. 5 is a kind of structured flowchart for system optimization apparatus that the embodiment of the present application provides;
Fig. 6 is a kind of structural representation for terminal device that the embodiment of the present application provides.
Embodiment
The technical scheme of the application is further illustrated below in conjunction with the accompanying drawings and by embodiment.It is appreciated that It is that specific embodiment described herein is used only for explaining the application, rather than the restriction to the application.Further need exist for illustrating , for the ease of description, the part related to the application rather than entire infrastructure are illustrate only in accompanying drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of order, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the order of each step can be rearranged.When its operation The processing can be terminated during completion, it is also possible to the additional step being not included in accompanying drawing.The processing can be with Corresponding to method, function, code, subroutine, subprogram etc..
User is when using intelligent terminal such as smart mobile phone, tablet personal computer or other-end, if having run many journeys Sequence, cause system load is too high to be easy to the phenomenon that system can not continue operation occur, be probably Partial key line when this Journey is in the state that can not be worked, so the screen page of intelligent terminal can rest on the picture of user's last operation, user makes Operated with screen touch or other physical buttons, intelligent terminal does not all react;And system can not continue the phenomenon of operation Duration is indefinite, and user may wait the long period, and system can not still recover normal, if so in appropriate when marquis Intelligent terminal, which restart, can avoid user from carrying out meaningless wait, very fast recovery system function.
Fig. 1 is a kind of schematic flow sheet for system optimization method that the embodiment of the present application provides, and this method can be by system Optimize device to perform, wherein the device can be realized by software and/or hardware, can typically be integrated in terminal device, also may be used It is provided with being integrated in other in the electronic equipment of operating system.As shown in figure 1, this method includes:
S110, when terminal device is run, start finger daemon.
Exemplarily, the terminal device can be smart mobile phone, tablet personal computer or other Android system operational outfits, keep Shield process (Daemon Process) is the special processing in running background, and it, will not be because of independently of the control of terminal device User operate or other operation changes and influence its progress of work.Finger daemon is always situated in running background, and execution system Specifying for task, it can be when terminal device is run, as System guides start, and run to system and close.Finger daemon It can also be and just start when needing, terminate automatically after completion task.
Alternatively, in the terminal device electrifying startup or when being waken up from holding state, finger daemon is started.
Wherein, when start-up command is detected or received, electric starting up on terminal device, it is with terminal device The startup of system can be booted up finger daemon, and finger daemon can electrically activate the operation phase until shutdown on the terminal device Execution task.Can also receive wake-up trigger instruction when, terminal device from holding state wake up switch to running status when, Triggering starts finger daemon, finger daemon is performed task when terminal is in the running status waken up.It can be answered according to specific With the entry condition of demand selection finger daemon, the embodiment of the present application is not limited thereto.
S120, sent by the finger daemon and test information to the critical thread of system service process.
The system service process (SystemServer) is used for the various services of activation system, user's using terminal equipment Various system sex services start in system service process, the application program installed on terminal device (APP, Application) if necessary to use various system services, it is also desirable to by obtaining various services with system service process communication The handle of object, could be operated accordingly.There are multiple system threads in system service process, there is provided the systematic core of institute Service, including sensor-service, battery management service, bluetooth service, Wi-Fi services and Video service etc..
Critical thread includes the thread that influence system interacts presentation, such as receives the information of user and is handled, with And the thread involved by the processing procedure of user's send feedback information.Exemplary, critical thread may include to receive outside refer to The thread for making and accordingly being performed, such as InputReader threads, InputDispatcher threads, WindowManager lines Journey is used to receive user or the external equipment instruction inputted and the thread accordingly performed with other.Critical thread may also include The thread of execution system core missions, such as ActivityManagerService threads.
Exemplarily, wherein InputReader threads are used to read incoming event, and message is read in circulation, i.e., The working condition of InputReader threads determines whether the input operation of user is recognized by the system.Exemplarily, wherein ActivityManagerService threads are services most crucial in Android system, are responsible for starting, switch, dispatch and using journey The work such as the management and scheduling of sequence process, it is extremely important in Android system, and function is presented in the interaction that can directly affect system. So by sending test information to receiving external command and the thread that is accordingly performed, and execution system core missions Thread, detect the working condition of these critical threads, it can be determined that whether system operation is normal.The critical thread can also be The thread of systemic presupposition.
Finger daemon sends test information to multiple critical threads of system service process, receives the key for testing information Thread can be responded.Finger daemon can be according to the transmission test information that imposes a condition of outside to critical thread, can also root Test information is sent to critical thread according to its inner setting.
Alternatively, by the finger daemon, test information is sent to system service process according to the setting time cycle Critical thread.Test information is sent by the setting time cycle, exemplarily, finger daemon sent test information every 3 seconds extremely Multiple critical threads, receive the test information critical thread may can't be responded at once, but according to its it is actual enter The situation selection of journey is carried out accordingly within a certain period of time, and test can be constantly sent every 3 seconds in this period, finger daemon Information.For example, finger daemon constantly sent test information to critical thread, critical thread every 3 seconds is receiving the 3rd survey Try to be responded when information.In this way, constantly sending test information by the setting time cycle to critical processes, it can give and close Key thread certain reaction time is responded, rather than send once test information after do not receive the response of critical thread Just judged, the accuracy rate that finger daemon judges the working condition of critical thread can be improved.
S130, according to response of the critical thread to the test information, determine the state of the terminal device.
Normal critical thread can be responded when receiving test information, and finger daemon can be according to multiple keys The situation of the response of thread, judge system whether normal operation, and then determine the state of the terminal device.For example, guard into Journey judges that system operation is normal, then keeps the current state of terminal device according to the situation of the response of multiple critical threads;And such as Fruit judges that system is stuck, then can restarted terminal device, so that terminal device is as early as possible according to the response condition of multiple threads Recover normal.
Alternatively, if the feedback information that the finger daemon receives the critical thread in preset time meets in advance If condition, then the terminal device is restarted.
The critical thread meeting send feedback information of test information is received to finger daemon, feedback information can be set in advance Fixed customizing messages or temporal information etc..Whether the feedback information according to critical thread is received meets preparatory condition, to judge System whether normal operation, if it is determined that system is stuck, then the terminal device is restarted, so that terminal device recovers just as early as possible Often.Preparatory condition can be that the quantity of feedback information and/or the time of response are imposed a condition, to judge whether system is normal, Preparatory condition can test the setting time cycle of information according to load, the finger daemon transmission of system, receive test information The quantity of critical thread set.The feedback information of the critical thread received meets preparatory condition, then it represents that system Can not normal operation or operation conditions it is bad, system is stuck, then can select to restart terminal device, to recover normal as early as possible.
Alternatively, if in preset time, the finger daemon receives the number of the feedback information of different critical threads Amount is less than setting quantity, then restarts the terminal device.
Wherein, finger daemon sends test information to multiple critical threads, should during each critical thread normal operation Send feedback information receives the quantity of the feedback information of different critical threads to enter to finger daemon, according to the finger daemon Row judges.For example, finger daemon sends test information to 10 different critical threads, and it have sent the different of feedback information Critical thread for 7, if setting quantity be 6, the terminal device need not be restarted.And if having sent feedback information The quantity of different critical threads be 5, setting quantity then needs to restart the terminal device when being 6.Because system is transported There are multiple critical threads running when row, and to cannot respond to represent system stuck when a critical thread, may The critical thread can't impact to user's using terminal equipment, but restart terminal device, then can be to the use of user Cause inconvenience.So the quantity for the different critical threads for passing through response judge whether system is stuck, Ke Yi The operation for restarting terminal device is performed when appropriate, without causing the operation restarted by mistake.Setting quantity can be according to system Load, the quantity of critical thread, default or the user's setting that receive test information be determined, the application is implemented Example is not limited thereto.
Fig. 2 is the schematic flow sheet for another system optimization method that the embodiment of the present application provides, in above-described embodiment institute On the basis of the technical scheme of offer, alternatively, to sending test information to system service process by the finger daemon The operation of critical thread is optimized, and this method includes:
S110, when terminal device is run, start finger daemon.
Wherein, embodiment may be referred to associated description above, will not be repeated here.
S121, in the terminal device bright screen, perform and described pass through the finger daemon and send test information to system The operation of the critical thread of service processes.
S122, when the terminal device ceases and shielded, limitation is described to be passed through the finger daemon and sends test information to system The operation of the critical thread of service processes.
Wherein, the working condition of the screen of terminal device can react the use state of user.For example, at terminal device When bright screen, then it represents that user sends test information to key in using terminal equipment, now execution by finger daemon The operation of thread.Can in the time of user's using terminal equipment, finger daemon whether monitoring system stuck always from the background, And terminal device is restarted in due course.If terminal device is in breath screen, then it represents that user may not use Terminal device, now it is monitored without whether stuck to system, can limits and test information is sent to pass by finger daemon The operation of key thread, to reduce the power consumption of terminal device.Even if user may use the application program in running background, if being System generation is stuck, and user can also carry out triggering the operation of bright screen first, to confirm the working condition of terminal device, and crosses user and leads to After crossing triggering bright screen, then S121 operation can be performed.
S130, according to response of the critical thread to the test information, determine the state of the terminal device.Specifically Embodiment may be referred to associated description above, will not be repeated here.
Fig. 3 is the schematic flow sheet for another system optimization method that the embodiment of the present application provides, in above-described embodiment institute On the basis of the technical scheme of offer, to when the terminal device ceases and shielded, described sent by the finger daemon of limitation is surveyed The operation of examination information to the critical thread of system service process is optimized, and this method includes:
S110, when terminal device is run, start finger daemon.
S121, in the terminal device bright screen, perform and described pass through the finger daemon and send test information to system The operation of the critical thread of service processes.
Embodiment may be referred to associated description above, will not be repeated here.
S123, when the terminal device ceases and shielded, if detect terminal device movement, perform by described Finger daemon sends operation of the test information to the critical thread of system service process.
S124, when the terminal device ceases and shielded, if detecting that the terminal device does not move, stop by described Finger daemon sends operation of the test information to the critical thread of system service process.
When terminal device ceases and shielded, if user is prepared for using terminal equipment, user may can pick up terminal first Equipment, after be unlocked operation again.So when terminal device is in breath screen state, if detecting that terminal device moves It is dynamic, then it represents that user is very big may i.e. will using terminal equipment.So by detect terminal device move when, Ke Yikai Begin to perform and operation of the test information to the critical thread of system service process is sent by the finger daemon.In this way, can be pre- The use state of user is surveyed, carries out the detection operation of finger daemon in advance, if terminal device is being switched to bright screen shape from breath screen The problem of stuck occurs during state, finger daemon can comparatively fast determine the need for restarting terminal device, improve system optimization Efficiency.
And if detect that terminal device does not move, and the screen of terminal device is also the state of breath screen, then it represents that user There is no using terminal equipment, now then stop the detection operation of finger daemon, it is possible to reduce the power consumption of terminal device.Pass through terminal The breath screen of the screen of equipment and the state of bright screen, and terminal device movement whether is detected to select to perform in the case where ceasing screen state Or the detection operation of finger daemon is not performed, the detection operation of finger daemon can be carried out in due course, improve system The efficiency of optimization, and reduce unnecessary power consumption.
Alternatively, when detecting terminal device upset, moving in parallel and at least one of move up and down, execution passes through The finger daemon sends the operation of critical thread of the test information to system service process.When detect terminal device overturn to During default flip angle, perform and test information is sent to the behaviour of the critical thread of system service process by the finger daemon Make, for example, terminal device upset is being detected, and its flip angle is to have rotated up between 45 ° to 90 °, then it represents that uses Family may be by using terminal equipment.Certain distance can also be moved in parallel and/or moved up and down detecting terminal device When, it may be by using terminal equipment to represent user, then performs and send test information to system service by the finger daemon The operation of the critical thread of process.The scope of the movement of terminal device can be set according to actual use, can also be according to user Demand be configured, the embodiment of the present application is not limited thereto.
S130, according to response of the critical thread to the test information, determine the state of the terminal device.Specifically Embodiment may be referred to associated description above, will not be repeated here.
Fig. 4 is the schematic flow sheet for another system optimization method that the embodiment of the present application provides, in above-described embodiment institute On the basis of the technical scheme of offer, alternatively, to when the terminal device ceases and shielded, passing through the finger daemon described in limitation The operation for sending test information to the critical thread of system service process is optimized, and this method includes:
S110, when terminal device is run, start finger daemon.
Wherein, embodiment may be referred to associated description above, will not be repeated here.
S121, in the terminal device bright screen, perform and described pass through the finger daemon and send test information to system The operation of the critical thread of service processes.
S125, when the terminal device ceases and shielded, if detecting that terminal device moves, perform by it is described guard into Journey sends operation of the test information to the critical thread of system service process, and continues to detect whether the terminal device switches to Bright screen.
If S126, set in switching time, terminal device does not switch to bright screen, then is guarded described in stopping by described Process sends operation of the test information to the critical thread of system service process.
If the screen of terminal device is in breath screen state, and detects that terminal device moves, perform and kept by described Shield process sends operation of the test information to the critical thread of system service process, can carry out the detection behaviour of finger daemon in advance Make, stuck problem occurs when user's using terminal equipment is switched to bright screen state, can comparatively fast determine the need for restarting end End equipment.By being in breath screen state in the screen of terminal device, but terminal device is continuously detected in movement, can lead to again Cross persistently detection terminal equipment screen whether switch to bright screen further determine that user whether triggering terminal equipment bright screen, and Begin to use terminal device, further determine whether that needs continuously carry out and test information is sent to system by the finger daemon The operation of the critical thread of service processes.Because if user holds terminal device when walking or other movements, terminal device Breath screen state will be constantly in, while can also detect terminal device always in movement, and user is not in using terminal Equipment, so whether switching to bright screen by the lasting detection terminal device, and if do not cut within setting switching time When being changed to bright screen, stop described being sent by the finger daemon and test information to the behaviour of the critical thread of system service process Make.Finger daemon when user does not have using terminal equipment can be so avoided persistently to send test information, it is possible to reduce The power consumption of terminal device, the efficiency of system optimization can be improved.
S130, according to response of the critical thread to the test information, determine the state of the terminal device.Specifically Embodiment may be referred to associated description above, will not be repeated here.
Fig. 5 is a kind of structured flowchart for system optimization apparatus that the embodiment of the present application provides, and the device can be with execution system Optimization method.As shown in figure 5, the device includes:
Starting module 210, for when terminal device is run, starting finger daemon;
Test module 220, for sending test information to the critical thread of system service process by the finger daemon;
Execution module 230, for according to response of the critical thread to the test information, determining the terminal device State.
Alternatively, the starting module is specifically used for:
In the terminal device electrifying startup or when being waken up from holding state, start finger daemon.
Alternatively, the execution module is specifically used for:
If the feedback information that the finger daemon receives the critical thread in preset time meets preparatory condition, Then restart the terminal device.
Alternatively, the execution module is specifically used for:
If in preset time, the finger daemon receive the feedback information of different critical threads quantity be less than set Fixed number amount, then restart the terminal device.
Alternatively, the test module is specifically used for:
By the finger daemon, test information is sent to the key lines of system service process according to the setting time cycle Journey.
Alternatively, the test module specifically includes:
Bright screen test cell, surveyed in the terminal device bright screen, performing described sent by the finger daemon Try operation of the information to the critical thread of system service process;
Breath screen test cell, for when the terminal device ceases and shielded, described sent by the finger daemon of limitation to be surveyed Try operation of the information to the critical thread of system service process.
Alternatively, the breath screen test cell is specifically used for:
When the terminal device ceases and shielded, if detect the terminal device movement, perform and guarded by described Process sends operation of the test information to the critical thread of system service process;If detecting that the terminal device does not move, Then stop sending operation of the test information to the critical thread of system service process by the finger daemon.
Alternatively, the breath screen test cell is specifically used for:
When the terminal device ceases and shielded, if detecting that terminal device moves, execution is sent out by the finger daemon Send operation of the test information to the critical thread of system service process, and continue to detect the terminal device whether switch to it is bright Screen;
If within setting switching time, terminal device does not switch to bright screen, then passes through the finger daemon described in stopping Send operation of the test information to the critical thread of system service process.
Alternatively, the critical thread includes the thread for receiving external command and accordingly being performed, and/or receives internal The thread for instructing and accordingly being performed.
A kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, its computer can perform The system optimization operation being not limited to the described above is instructed, can also carry out the system optimization side that the application any embodiment is provided Associative operation in method.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums (such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other The memory of type or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide programmed instruction and be used to perform to the first computer." storage is situated between term Matter " can include may reside within diverse location two of (such as in different computer systems by network connection) or More storage mediums.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as implement For computer program).
The embodiment of the present application provides a kind of terminal device, and the embodiment of the present application offer can be integrated in the terminal device is System optimization device.Fig. 6 is a kind of structural representation for terminal device that the embodiment of the present application provides.As shown in fig. 6, the terminal is set It is standby to include:Housing (not shown), touch-screen (not shown), touch key-press (not shown), memory 301st, central processing unit (Central Processing Unit, CPU) 302 (also known as processor, hereinafter referred to as CPU), circuit board (not shown) and power circuit (not shown).The circuit board is placed in the interior volume that the housing surrounds;Institute State CPU302 and the memory 301 is arranged on the circuit board;The power circuit, for for each of the terminal device Individual circuit or device power supply;The memory 301, for storing executable program code;The CPU302 passes through described in reading The executable program code stored in memory 301 runs computer program corresponding with the executable program code, with Realize following steps:
When terminal device is run, start finger daemon;
Test information is sent to the critical thread of system service process by the finger daemon;
According to response of the critical thread to the test information, the state of the terminal device is determined.
The terminal device also includes:Peripheral Interface 303, RF (Radio Frequency, radio frequency) circuit 305, audio-frequency electric Road 306, loudspeaker 311, power management chip 308, input/output (I/O) subsystem 309, touch-screen 312, other input/controls Control equipment 310 and outside port 304, these parts are communicated by one or more communication bus or signal wire 307.
It should be understood that graphic terminal 300 is only an example of terminal device, and terminal device 300 Can have than more or less parts shown in figure, can combine two or more parts, or can be with Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special Hardware, software including integrated circuit are realized in the combination of hardware and software.
The terminal device for execution system optimization method provided below with regard to the present embodiment is described in detail, the end End equipment is by taking mobile phone as an example.
Memory 301, the memory 301 can be accessed by CPU302, Peripheral Interface 303 etc., and the memory 301 can Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories, Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU302 and deposited by Peripheral Interface 303, the Peripheral Interface 303 Reservoir 301.
I/O subsystems 309, the I/O subsystems 309 can be by the input/output peripherals in equipment, such as touch-screen 312 With other input/control devicess 310, Peripheral Interface 303 is connected to.I/O subsystems 309 can include the He of display controller 3091 For controlling one or more input controllers 3092 of other input/control devicess 310.Wherein, one or more input controls Device 3092 processed receives electric signal from other input/control devicess 310 or sends electric signal to other input/control devicess 310, Other input/control devicess 310 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click on roller.What deserves to be explained is input controller 3092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Touch-screen 312, the touch-screen 312 are the input interface and output interface between subscriber terminal equipment and user, Visual output display can be included into figure, text, icon, video etc. to user, visual output.
Display controller 3091 in I/O subsystems 309 receives electric signal from touch-screen 312 or sent out to touch-screen 312 Electric signals.Touch-screen 312 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 3091 The interaction of user interface object on touch-screen 312, that is, realize man-machine interaction, the user interface being shown on touch-screen 312 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 305, it is mainly used in establishing the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 305 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 305 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 305 can include being used to perform The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identify mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 306, it is mainly used in receiving voice data from Peripheral Interface 303, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 311.
Loudspeaker 311, for the voice signal for receiving mobile phone from wireless network by RF circuits 305, it is reduced to sound And play the sound to user.
Power management chip 308, the hardware for being connected by CPU302, I/O subsystem and Peripheral Interface are powered And power management.
The terminal device that the embodiment of the present application provides, the operating efficiency of terminal device can be improved.
System optimization apparatus, storage medium and the terminal device provided in above-described embodiment, which can perform the application, arbitrarily to be implemented The system optimization method that example is provided, possess and perform the corresponding functional module of this method and beneficial effect.Not in above-described embodiment In detailed description ins and outs, reference can be made to the system optimization method that the application any embodiment is provided.
Pay attention to, above are only preferred embodiment and the institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out by above example to the application It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also Other more equivalent embodiments can be included, and scope of the present application is determined by scope of the appended claims.

Claims (12)

  1. A kind of 1. system optimization method, it is characterised in that including:
    When terminal device is run, start finger daemon;
    Test information is sent to the critical thread of system service process by the finger daemon;
    According to response of the critical thread to the test information, the state of the terminal device is determined.
  2. 2. the method as described in claim 1, it is characterised in that described when terminal device is run, starting finger daemon includes:
    In the terminal device electrifying startup or when being waken up from holding state, start finger daemon.
  3. 3. the method as described in claim 1, it is characterised in that the sound according to the critical thread to the test information Should, determining the state of the terminal device includes:
    If the feedback information that the finger daemon receives the critical thread in preset time meets preparatory condition, weigh Open the terminal device.
  4. 4. method as claimed in claim 3, it is characterised in that if the finger daemon receives in preset time The feedback information of the critical thread meets preparatory condition, then restarting the terminal device includes:
    If in preset time, the quantity that the finger daemon receives the feedback information of different critical threads is less than setting number Amount, then restart the terminal device.
  5. 5. the method as described in any one of Claims 1-4, it is characterised in that test information is sent by the finger daemon Critical thread to system service process includes:
    By the finger daemon, test information is sent to the critical thread of system service process according to the setting time cycle.
  6. 6. the method as described in any one of Claims 1-4, it is characterised in that described sent by the finger daemon is tested The critical thread of information to system service process includes:
    In the terminal device bright screen, perform described sent by the finger daemon and test information to system service process The operation of critical thread;
    When the terminal device ceases and shielded, limitation is described to send test information to system service process by the finger daemon The operation of critical thread.
  7. 7. the method as described in any one of claim 6, it is characterised in that when the terminal device ceases and shielded, limit described logical The operation that the finger daemon sends critical thread of the test information to system service process is crossed, including:
    When the terminal device ceases and shielded, if detect the terminal device movement, execution passes through the finger daemon Send operation of the test information to the critical thread of system service process;If detecting that the terminal device does not move, stop Operation of the test information to the critical thread of system service process is only sent by the finger daemon.
  8. 8. the method as described in any one of claim 6, it is characterised in that when the terminal device ceases and shielded, limit described logical The operation that the finger daemon sends critical thread of the test information to system service process is crossed, including:
    When the terminal device ceases and shielded, if detecting that terminal device moves, perform to send by the finger daemon and survey Operation of the information to the critical thread of system service process is tried, and continues to detect whether the terminal device switches to bright screen;
    If within setting switching time, terminal device does not switch to bright screen, then is sent described in stopping by the finger daemon Test operation of the information to the critical thread of system service process.
  9. 9. the method as described in any one of Claims 1-4, it is characterised in that the critical thread includes receiving external command And the thread accordingly performed, and/or receive built-in command and the thread accordingly performed.
  10. A kind of 10. system optimization apparatus, it is characterised in that
    Starting module, for when terminal device is run, starting finger daemon;
    Test module, for sending test information to the critical thread of system service process by the finger daemon;
    Execution module, for according to response of the critical thread to the test information, determining the state of the terminal device.
  11. 11. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor System optimization method as claimed in any one of claims 1-9 wherein is realized during execution.
  12. 12. a kind of terminal device, it is characterised in that including memory, processor and storage are on a memory and can be in processor The computer program of operation, it is characterised in that realize that claim 1-9 such as appoints described in the computing device during computer program System optimization method described in one.
CN201710948705.XA 2017-10-12 2017-10-12 System optimization method and device, storage medium and terminal equipment Active CN107766218B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710948705.XA CN107766218B (en) 2017-10-12 2017-10-12 System optimization method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710948705.XA CN107766218B (en) 2017-10-12 2017-10-12 System optimization method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN107766218A true CN107766218A (en) 2018-03-06
CN107766218B CN107766218B (en) 2021-08-31

Family

ID=61267308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710948705.XA Active CN107766218B (en) 2017-10-12 2017-10-12 System optimization method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN107766218B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543333A (en) * 2018-05-29 2019-12-06 视联动力信息技术股份有限公司 Dormancy processing method and device for processor, mobile terminal and storage medium
CN110912785A (en) * 2019-12-26 2020-03-24 联陆智能交通科技(上海)有限公司 RSU health detection method and system
CN113612837A (en) * 2021-07-30 2021-11-05 杭州朗和科技有限公司 Data processing method, device, medium and computing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030123084A1 (en) * 1998-08-24 2003-07-03 Brossman Craig Duray Virtual printer with asynchronous job and device status
CN101561774A (en) * 2009-03-31 2009-10-21 深圳创维数字技术股份有限公司 Monitoring method and monitoring system of self-defined protocol service program
CN106021024A (en) * 2016-05-20 2016-10-12 广东欧珀移动通信有限公司 Method for reminding response stopping of user terminal, and user terminal
CN106445712A (en) * 2016-08-31 2017-02-22 上海澳润信息科技有限公司 Implementation method for software watchdog based on message monitoring
CN106874126A (en) * 2017-01-24 2017-06-20 厦门天锐科技股份有限公司 Host process method for detecting abnormality in a kind of software development

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030123084A1 (en) * 1998-08-24 2003-07-03 Brossman Craig Duray Virtual printer with asynchronous job and device status
CN101561774A (en) * 2009-03-31 2009-10-21 深圳创维数字技术股份有限公司 Monitoring method and monitoring system of self-defined protocol service program
CN106021024A (en) * 2016-05-20 2016-10-12 广东欧珀移动通信有限公司 Method for reminding response stopping of user terminal, and user terminal
CN106445712A (en) * 2016-08-31 2017-02-22 上海澳润信息科技有限公司 Implementation method for software watchdog based on message monitoring
CN106874126A (en) * 2017-01-24 2017-06-20 厦门天锐科技股份有限公司 Host process method for detecting abnormality in a kind of software development

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543333A (en) * 2018-05-29 2019-12-06 视联动力信息技术股份有限公司 Dormancy processing method and device for processor, mobile terminal and storage medium
CN110912785A (en) * 2019-12-26 2020-03-24 联陆智能交通科技(上海)有限公司 RSU health detection method and system
CN113612837A (en) * 2021-07-30 2021-11-05 杭州朗和科技有限公司 Data processing method, device, medium and computing equipment
CN113612837B (en) * 2021-07-30 2023-08-08 杭州朗和科技有限公司 Data processing method, device, medium and computing equipment

Also Published As

Publication number Publication date
CN107766218B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
EP3567477B1 (en) Method for preloading application, storage medium, and terminal
CN108363593B (en) Application program preloading method and device, storage medium and terminal
CN107395889B (en) Method and device for reducing power consumption of mobile terminal, storage medium and mobile terminal
EP3575961B1 (en) Method and apparatus for updating application prediction model, storage medium, and terminal
US20190370603A1 (en) Method and apparatus for establishing an application prediction model, storage medium and terminal
EP3567478A1 (en) Method for preloading application, storage medium, and terminal
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN107483721B (en) Control method, device, storage medium and mobile terminal based on blank screen gesture
EP3435209B1 (en) Method for recognizing a screen-off gesture, and storage medium and terminal thereof
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN107450837B (en) Respond method, apparatus, storage medium and the mobile terminal of blank screen gesture
CN109033247B (en) Application program management method and device, storage medium and terminal
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
WO2019214476A1 (en) Screen direction setting method and device, storage medium and terminal
CN108762831A (en) Application program preloads method, apparatus, storage medium and terminal
CN108804153A (en) Preloading method, apparatus, storage medium and the terminal of application program
CN107766218A (en) system optimization method, device, storage medium and terminal device
CN107766177A (en) Start optimization method, device, storage medium and terminal device
CN108845838B (en) Application program preloading method and device, storage medium and terminal
CN108804138A (en) application operating optimization method, device, storage medium and terminal device
CN113253964A (en) Data management method, device, equipment and storage medium
CN108804156A (en) Application program preloads method, apparatus, storage medium and terminal
CN112069843A (en) Radio frequency signal processing method and device and electronic equipment
CN107395888B (en) Processing method, device, storage medium and the mobile terminal of blank screen gesture
CN112764812B (en) Electronic device and control method thereof

Legal Events

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

Address after: 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.

GR01 Patent grant
GR01 Patent grant