CN107402835A - Abnormality eliminating method, device and the storage medium and mobile terminal of application program - Google Patents

Abnormality eliminating method, device and the storage medium and mobile terminal of application program Download PDF

Info

Publication number
CN107402835A
CN107402835A CN201710612237.9A CN201710612237A CN107402835A CN 107402835 A CN107402835 A CN 107402835A CN 201710612237 A CN201710612237 A CN 201710612237A CN 107402835 A CN107402835 A CN 107402835A
Authority
CN
China
Prior art keywords
abnormal
log
file
application
application program
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
CN201710612237.9A
Other languages
Chinese (zh)
Other versions
CN107402835B (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 CN201710612237.9A priority Critical patent/CN107402835B/en
Publication of CN107402835A publication Critical patent/CN107402835A/en
Application granted granted Critical
Publication of CN107402835B publication Critical patent/CN107402835B/en
Expired - Fee Related 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/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0775Content or structure details of the error report, e.g. specific table structure, specific error fields
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • 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/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/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a kind of abnormality eliminating method of application program, device and storage medium and mobile terminal.Methods described includes:Continue to export the log information for the application program run to the spatial cache of mobile terminal during application program is run, generate log buffer file;When detecting that abnormal log generation event is triggered, it is determined that abnormal destination application occurs;Based on the log buffer file, the abnormal log file of the destination application is locally generated.Technical scheme provided in an embodiment of the present invention, can be on the premise of daily record switch not be opened, the abnormal log file of abnormal application program is locally got in time in mobile terminal, and can be with the abnormal log file of abnormal application program for getting low probability and being not easy to reappear of efficiently and accurately.

Description

Abnormality eliminating method, device and the storage medium and mobile terminal of application program
Technical field
The present embodiments relate to technical field of data administration, more particularly to a kind of abnormality eliminating method of application program, Device and storage medium and mobile terminal.
Background technology
Miscellaneous application program is mounted with the mobile terminals such as mobile phone, mobile terminal is realized by running application program Corresponding function, some abnormal conditions can occur unavoidably during application program is run, how to obtain the different of application program Normal log information, so that as the processing foundation to application exception, turn into application program for mobile terminal management one is important Problem.In correlation technique using application program log information carry out application exception processing scheme existing defects, it is necessary to Improve.
The content of the invention
The embodiment of the present invention provides a kind of abnormality eliminating method of application program, device and storage medium and mobile terminal, The journal file of abnormal application program can locally be got in time in mobile terminal.
In a first aspect, the embodiments of the invention provide a kind of abnormality eliminating method of application program, including:
Continue to export the log information for the application program run to mobile terminal during application program is run Spatial cache, generate log buffer file;
When detecting that abnormal log generation event is triggered, it is determined that abnormal destination application occurs;
Based on the log buffer file, the abnormal log file of the destination application is locally generated.
In second aspect, the embodiments of the invention provide a kind of exception handling device of application program, including:
Log buffer file generating module, for continuing the application program that will be run during application program is run Log information export to the spatial cache of mobile terminal, generate log buffer file;
Destination application determining module, for detect abnormal log generation event be triggered when, it is determined that occur it is different Normal destination application;
Abnormal log file generating module, for based on the log buffer file, being locally generated the intended application The abnormal log file of program.
The third aspect, the embodiments of the invention provide a kind of computer-readable recording medium, is stored thereon with computer journey Sequence, the abnormality eliminating method of the application program provided such as first aspect is realized when the program is executed by processor.
In fourth aspect, the embodiments of the invention provide a kind of mobile terminal, including memory, processor and it is stored in Realized on reservoir and the computer program that can run on a processor, during the computing device as what first aspect was provided answers With the abnormality eliminating method of program.
The embodiment of the present invention is believed by the daily record for the application program for continuing to be run during application program is run Breath is exported to the spatial cache of mobile terminal, generates log buffer file, when detecting that abnormal log generation event is triggered, It is determined that abnormal destination application occurs, based on the log buffer file, the destination application is locally generated Abnormal log file, it can locally get the journal file of abnormal application program in time in mobile terminal.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the abnormality eliminating method of the application program provided in the prior art;
Fig. 2 is a kind of flow chart of the abnormality eliminating method of application program provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the abnormality eliminating method of another application program provided in an embodiment of the present invention;
Fig. 4 is the interactive interface schematic diagram of journal file generation provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the abnormality eliminating method of another application program provided in an embodiment of the present invention;
Fig. 6 is the flow chart of the abnormality eliminating method of another application program provided in an embodiment of the present invention;
Fig. 7 is the flow chart of the abnormality eliminating method of another application program provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of the exception handling device of application program provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings to the specific reality of the present invention Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, Rather than limitation of the invention.It also should be noted that for the ease of describing, illustrate only in accompanying drawing related to the present invention Part rather than full content.It should be mentioned that some exemplary realities before exemplary embodiment is discussed in greater detail Apply processing or method that example is described as describing as flow chart.Although operations (or step) are described as order by flow chart Processing, but many of which operation can be implemented concurrently, concomitantly or simultaneously.In addition, the order of operations It can be rearranged.The processing can be terminated when its operations are completed, it is also possible to being not included in accompanying drawing Additional step.The processing can correspond to method, function, code, subroutine, subprogram etc..
Fig. 1 gives a kind of flow chart of the abnormality eliminating method of the application program provided in the prior art, such as Fig. 1 institutes Show, the abnormality eliminating method of the application program provided in the prior art comprises the following steps:
Step 10, start.
Step 11, detect that user acts on the operational order for being used to open daily record log switches of touch-screen.It is for example, logical Cross touch-screen input set information and enter engineering mode interface, and carry out that log information subsequently is output into spatial cache Cache In operation.
Step 12, system kernel provide the user logger log access interfaces.
Step 13, the logger C/C++ log interfaces for calling kernel to provide.
Step 14, the logger java log interfaces for calling kernel to provide.Android system is defined in application framework layer Log interfaces, exemplary, the following frameworks/base/core/java/android/util/ in path of the Log interfaces Log.java。
Step 15, by Log log interfaces the log information of each application program (application) is output in spatial cache.
Step 16, detect the daily record unloading operational order that user is acted in touch-screen daily record switch control.For example, inspection Measure the daily record unloading order that user inputs in touch-screen engineering mode interface.
Step 17, by the log information of all applications from spatial cache.
Step 18, terminate.
The method provided as described in the prior art, movement can be obtained by opening daily record switch in the terminal The log information of terminal, such as set information is inputted by dialing keyboard and enters engineering mode, inputted under engineering mode corresponding Order to obtain the log information of mobile terminal, it is clear that this log acquisition mode is not convenient directly perceived enough, and this mode one As be application program occur it is abnormal after wait abnormal reproduction to obtain abnormal log information, and generally user makes With being not open daily record to switch during running of mobile terminal application program, the application program for being not easy to reappear for low probability Abnormal problem can not get its effective log information.
In addition, following processing mode in the prior art also be present:Monitoring is all accessed to all application programs of operation, monitored The exception occurred in the process of running to application program, during then log information corresponding to acquisition is uploaded onto the server, engineer The daily record interactive interface shown by server obtains log information and carries out anomaly analysis.This processing mode is needed to operation Each application program accesses monitoring, and cost is higher, and abnormal application program can not occur being locally directly obtained Log information.
Fig. 2 gives a kind of flow chart of the abnormality eliminating method of application program provided in an embodiment of the present invention, this implementation The method of example can be performed by the exception handling device of application program, and the device can be real by way of hardware and/or software Existing, described device can be arranged on the inside of the mobile terminal as a mobile terminal part.
As shown in Fig. 2 the abnormality eliminating method for the application program that the present embodiment provides comprises the following steps:
Step 101, during application program is run continue by the log information for the application program run export to The spatial cache of mobile terminal, generate log buffer file.
Wherein, the application program of the operation includes foreground application and background application, the application package Mobile terminal system pre-installed applications program, such as " information ", " phone ", " setting " or " the tinkle of bells " etc. are included, in addition to after user The continuous third party application voluntarily installed, such as " wechat ", " Alipay ", " day cat " or " iqiyi.com " etc..
The daily record switch of mobile terminal may be at closed mode before this step, i.e., without entering engineering mode.
The quantity of the application program of the operation is one or more, can generate log buffer one by one according to run time File, wherein, it there may be the log information of multiple application programs in a log buffer file, application program may be Its corresponding log information in multiple log buffer files be present.
Step 102, when detecting that abnormal log generation event is triggered, it is determined that abnormal destination application occurs.
Wherein, it can be to detect that user acts on the abnormal day of mobile terminal that the abnormal log generation event, which is triggered, Will generation instruction, or detect that the progress information of some or multiple destination applications meets setting abnormality decision conditions.
Wherein, the exception can be that application program sudden strain of a muscle is moved back, application response speed is slow, application icon is overlapping or sets Put option can not set or set it is wrong etc..
Step 103, based on the log buffer file, be locally generated the abnormal log text of the destination application Part.
All log informations corresponding to destination application are filtered out from the log buffer file in mobile terminal sheet Ground generates the abnormal log file of the destination application, in order to which user obtains abnormal log file from local.For example, user It can be checked after locally abnormal log file is got, and network can be passed through, such as forum, mhkc or microblogging etc. are inquired about The exception of the destination application physical presence shown in abnormal log file and abnormal Producing reason and solution method.
The method that the present embodiment provides, pass through the lasting application program that will be run during application program is run Log information is exported to the spatial cache of mobile terminal, generates log buffer file, is detecting abnormal log generation event quilt During triggering, it is determined that abnormal destination application occurs, based on the log buffer file, the intended application is locally generated The abnormal log file of program, exception locally can be got in time in mobile terminal on the premise of daily record switch is not opened The abnormal log file of application program, and can be with the different of the abnormal application program for getting low probability and being not easy to reappear of efficiently and accurately Normal journal file.
On the basis of above-described embodiment, it can also be wrapped after the abnormal log file of the destination application is generated Include following steps:The abnormal log file is transferred under the file management catalogue of mobile terminal.
The abnormal log file can be transferred in the file management of mobile terminal to target under Backup files should With under the catalogue of program.
On the basis of above-described embodiment, it can also be wrapped after the abnormal log file of the destination application is generated Include following steps:If the spatial cache is full, removes and the daily record that time satisfaction imposes a condition is generated in the spatial cache Cache file, otherwise, the log buffer file in the spatial cache is not removed.
After generating and preserving the abnormal log file of the destination application, do not removed less than if if spatial cache Spatial cache, the log information of other applications is avoided to be disposed of in the lump.If spatial cache is full, it is empty to dispose caching Between a part of log information in early log buffer file or log buffer file of middle generation time.
On the basis of above-described embodiment, it can also comprise the following steps:, will according to the spool time of abnormal log file Abnormal log file under the file management catalogue carries out deletion action.It can be achieved according to being automatically deleted before and after spool time The journal file of phase, for example, only preserve three parts of abnormal log files of current unloading recently etc..
Determine that abnormal destination application, which occurs, to be included on the basis of above-described embodiment, in the step 102: It is determined that abnormal destination application occurs, the application identities of the destination application are obtained;The step 103 can wrap Include:Interface is obtained by default log information daily record letter corresponding to the application identities is filtered out from the log buffer file Breath, generate the abnormal log file of the destination application.Wherein, the default log information obtains interface to write in advance Be used for from log buffer file obtain specified application abnormal log file application programming interface (Application Programming Interface, API).The application identities can be using bag name, for example, desktop The entitled com.oppo.launcher of bag of application, the entitled com.android.settings of bag of application is set.In spatial cache In there may be multiple log buffer files, the log information of multiple application programs is there may be in a log buffer file, All log informations corresponding to from the log buffer file in spatial cache can screening the application identities according to application identities, Generate the abnormal log file of destination application.
Fig. 3 gives the flow chart of the abnormality eliminating method of another application program provided in an embodiment of the present invention.Such as Fig. 3 Shown, the method that the present embodiment provides comprises the following steps:
Step 201, during application program is run continue by the log information for the application program run export to The spatial cache of mobile terminal, generate log buffer file.
Step 202, detect user act on mobile terminal abnormal log generate instruction when, according to the abnormal day Will generation instruction determines that abnormal destination application occurs.
If user has found that some or several application programs generate exception during operation, can be moved by clicking on Either button backs up to the abnormal log of some or several application programs for Backup options in dynamic terminal, and The click commands of the Backup options or button are determined by user abnormal destination application occurs.For example, user It was found that there occurs sudden strain of a muscle to move back for the wechat currently run, then user can open the day for performing method provided in an embodiment of the present invention Will backup application, mobile terminal shows backup interactive interface after the application program is opened, and use is detected in mobile terminal Family acts on when pressing instruction of the Backup options of the interactive interface, it is determined that some or several application programs are user The destination application of the generation exception of selection.
Exemplary, Fig. 4 gives the interactive interface schematic diagram of journal file generation provided in an embodiment of the present invention.Such as figure Shown in 4, find that wechat occurs after sudden strain of a muscle moves back exception, clicking on the Log backup application icon on desktop in user, then it is mobile eventually End shows recovery as shown in Figure 4 and backup interactive interface M, and after clicking on " newly-built backup " option A, newly-built backup is treated in displaying Each the application list (not shown), after user selects wechat application program, then carry out follow-up wechat abnormal log The generation operation of file.
Step 203, based on the log buffer file, be locally generated the abnormal log text of the destination application Part.
As shown in figure 4, after detecting that user acts on " newly-built backup " option A click commands and determines wechat, Based on the log buffer file, the abnormal log file of wechat is locally generated.
Wherein, the option B of " the mobile phone removal of home " shown in Fig. 4 be by mobile terminal Application Backup migration or Copy to the backup operation carried out when in another equipment.Mobile terminal detect user act on " newly-built backup " option and During the click commands of " mobile phone removal of home " option, different responses could be made that.If detecting, user acts on " mobile phone removal of home " option Click commands when, then do not perform generation destination application abnormal log file operation, with avoid backstage screening daily record Power consumption and unnecessary puzzlement is caused to user caused by information generation abnormal log file operation.If detecting, user acts on In the click commands of " newly-built backup " option, then the operation of the abnormal log file of generation destination application is performed.
Above-mentioned steps 202 can also include the application identities for obtaining destination application, and the step 203 can include:It is logical Cross default log information acquisition interface and log information corresponding to the application identities is filtered out from the log buffer file, it is raw Into the abnormal log file of the destination application.The application identities can be using bag name.
Step 204, the abnormal log file is transferred under the file management catalogue of mobile terminal.
Method provided in an embodiment of the present invention, the generation of abnormal log file is participated in by user, operation is found in user The backup operation of abnormal log is carried out when application program occurs abnormal, mobile terminal is detecting that user acts on mobile terminal During abnormal log generation instruction, it is determined that abnormal destination application occurs, based on the log buffer file in spatial cache, The local abnormal log file for generating the destination application, acquisition that can be when application program occurs abnormal accurately and timely To the abnormal log file of abnormal application program.
Fig. 5 gives the flow chart of the abnormality eliminating method of another application program provided in an embodiment of the present invention.Such as Fig. 5 Shown, the abnormality eliminating method for the application program that the present embodiment provides comprises the following steps:
Step 301, during application program is run continue by the log information for the application program run export to The spatial cache of mobile terminal, generate log buffer file.
Step 302, when detecting that current progress information meets to set abnormal Rule of judgment, determine current process letter Application program corresponding to breath is the abnormal destination application of generation.
Wherein, the progress information includes process name and Process identifier (Process corresponding with the process name Identifier, PID).Can be judged according to progress information process with the presence or absence of restart and record the process in setting time Restart number;When it is described restart number and be more than given threshold when, determine that current process meets to set abnormal Rule of judgment.
Can according to corresponding to the progress information of records in mobile terminal judges the process name of current progress information PID and last time Whether PID corresponding to the process name read is identical, if not, it is determined that the process is restarted.
The internal memory that the progress information can also include process increases information.Accordingly, in current process in preset time When the increasing value of interior committed memory is more than setting growth threshold value, determine that current process meets to set abnormal Rule of judgment.Wherein, institute The internal memory growth information for stating process can be from server or local acquisition.Typically, application program operationally, its committed memory Value be it is fixed, therefore, within a period of time, application program run when committed memory increasing value be in a stability range It is interior.When the increasing value for detecting application program committed memory in preset time is more than setting and increases threshold value, it may be determined that should answer With program operation exception.
Step 303, based on the log buffer file, be locally generated the abnormal log text of the destination application Part.
Above-mentioned steps 302 can also include the application identities for obtaining destination application, and the step 303 can include:It is logical Cross default log information acquisition interface and log information corresponding to the application identities is filtered out from the log buffer file, it is raw Into the abnormal log file of the destination application.The application identities can be using bag name.Wherein, the application bag name Can be identical with the process name of corresponding application programs.
Step 304, the abnormal log file is transferred under the file management catalogue of mobile terminal.
The method that the present embodiment provides, it is empty based on caching by mobile terminal when detecting that application program occurs abnormal Between in log buffer file, be locally generated the abnormal log file that abnormal destination application occurs, can apply Program is timely automated when occurring abnormal locally to get the abnormal log file of abnormal application program.
For ease of understanding, below by taking android system as an example, the exception based on android system framework to application program The process of processing is briefly described.
As shown in fig. 6, the abnormality eliminating method for the application program that the present embodiment provides comprises the following steps:
Step 20, start.
Step 21, detection user act on the operational order for backup target application log of touch-screen, currently Daily record switch is closed.For example, user, which acts on, recovers tactile with " newly-built backup " option under backup application Touch instruction.
Step 22, system kernel provide the user logger log access interfaces.
Step 23, the logger C/C++ log interfaces for calling kernel to provide.
Step 24, the logger java log interfaces for calling kernel to provide.Android system is defined in application framework layer Log interfaces, exemplary, the following frameworks/base/core/java/android/util/ in path of the Log interfaces Log.java。
Step 25, by Log log interfaces the log information of each application program (application) is output in spatial cache.
Step 26, the daily record letter for filtering out from comprising all spatial caches using log information destination application Breath, and be transferred under file management Backup files.
The method that the present embodiment provides, by when user has found that specified application occurs abnormal, opening the present embodiment The recovery of offer and backup application, you can the local backup of the abnormal log information of the specified program is realized, without entering Enter engineering mode and input journal generation and the unloading order again under engineering mode, the acquisition methods of application exception daily record It is easy directly perceived, and can be when application program occurs abnormal promptly and accurately the abnormal log file for getting the application program, Without carrying out abnormal reproduction.
Step 27, terminate.
Fig. 7 gives the flow chart of the abnormality eliminating method of another application program provided in an embodiment of the present invention.Such as Fig. 7 Shown, the abnormality eliminating method for the application program that the present embodiment provides comprises the following steps:
Step 401, during application program is run continue by the log information for the application program run export to The spatial cache of mobile terminal, generate log buffer file.
Step 402, detect user act on mobile terminal abnormal log generate instruction when, according to the abnormal day Will generation instruction determines that abnormal destination application occurs.
Step 403, the application identities for obtaining the destination application.
Step 404, interface is obtained by default log information the application mark is filtered out from the log buffer file Log information corresponding to knowledge, generate the abnormal log file of the destination application.
Step 405, the abnormal log file is transferred under the file management catalogue of mobile terminal.
Step 406, judge whether the spatial cache is full, if so, then performing step 407, otherwise performs step 408.
Step 407, remove the log buffer file that generation time satisfaction imposes a condition in the spatial cache.
Step 408, log buffer file in the spatial cache is not removed.
The method that the present embodiment provides, it can locally get the abnormal log of abnormal application program in time in mobile terminal File, and can be with the abnormal log file of abnormal application program for getting low probability and being not easy to reappear of efficiently and accurately.
Fig. 8 is a kind of structural representation of the exception handling device of application program provided in an embodiment of the present invention, the device It can be realized, be integrated in the terminal by software and/or hardware.As shown in figure 8, the device includes log buffer file generated mould Block 51, destination application determining module 52 and abnormal log file generating module 53.
The log buffer file generating module 51, for continuing to answer what is run during application program is run Exported with the log information of program to the spatial cache of mobile terminal, generate log buffer file;
The destination application determining module 52, for detect abnormal log generation event be triggered when, it is determined that Abnormal destination application occurs;
The abnormal log file generating module 53, for based on the log buffer file, being locally generated the mesh Mark the abnormal log file of application program.
The device that the present embodiment provides, pass through the lasting application program that will be run during application program is run Log information is exported to the spatial cache of mobile terminal, generates log buffer file, is detecting abnormal log generation event quilt During triggering, it is determined that abnormal destination application occurs, based on the log buffer file, the intended application is locally generated The abnormal log file of program, it can locally get the abnormal log file of abnormal application program in time in mobile terminal, and Can be with the abnormal log file of abnormal application program for getting low probability and being not easy to reappear of efficiently and accurately.
On the basis of above-described embodiment, the destination application determining module is specifically used for:
When detecting that user acts on the abnormal log generation instruction of mobile terminal, referred to according to abnormal log generation Order determines that abnormal destination application occurs;Or
When detecting that current progress information meets to set abnormal Rule of judgment, determine corresponding to the current progress information Application program is the abnormal destination application of generation.
On the basis of above-described embodiment, the destination application determining module determines that abnormal intended application journey occurs Sequence includes:
It is determined that abnormal destination application occurs, the application identities of the destination application are obtained;
The abnormal log file generating module is specifically used for:
Interface is obtained by default log information to filter out corresponding to the application identities from the log buffer file Log information, generate the abnormal log file of the destination application.
On the basis of above-described embodiment, described device also includes:
Abnormal log file unloading module, for after the abnormal log file of the destination application is generated, inciting somebody to action The abnormal log file is transferred under the file management catalogue of mobile terminal.
On the basis of above-described embodiment, described device also includes:
Abnormal log file removing module, for the spool time according to abnormal log file, by the file management mesh Abnormal log file under record carries out deletion action.
On the basis of above-described embodiment, described device also includes:
Log buffer file removes module, for after the abnormal log file of the destination application is generated, if The spatial cache is full, then removes and the log buffer file that time satisfaction imposes a condition is generated in the spatial cache, otherwise, The log buffer file in the spatial cache is not removed.
On the basis of above-described embodiment, the application program includes native applications program and/or third party application.
The embodiment of the present invention also provides a kind of storage medium for including computer executable instructions, and the computer can perform When being performed by computer processor for performing a kind of abnormality eliminating method of application program, this method includes for instruction:Transporting Continue to export the log information for the application program run to the spatial cache of mobile terminal during row application program, it is raw Into log buffer file;When detecting that abnormal log generation event is triggered, it is determined that abnormal destination application occurs;Base In the log buffer file, the abnormal log file of the destination application is locally generated.
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).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer The abnormality processing operation for the application program that executable instruction is not limited to the described above, can also carry out any embodiment institute of the present invention Associative operation in the abnormality eliminating method of the application program of offer.
The embodiments of the invention provide a kind of mobile terminal, the mobile terminal can include any embodiment of the present invention and provide Application program exception handling device.Fig. 9 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention, is such as schemed Shown in 9, the mobile terminal can include:Memory 601, central processing unit (Central Processing Unit, CPU) 602 (also known as processor, hereinafter referred to as CPU), the memory 601, for storing executable program code;The processor 602 is logical Cross and read the executable program code that is stored in the memory 601 to run journey corresponding with the executable program code Sequence, for performing:Continue to export the log information for the application program run to shifting during application program is run The spatial cache of dynamic terminal, generates log buffer file;When detecting that abnormal log generation event is triggered, it is determined that occurring different Normal destination application;Based on the log buffer file, the abnormal log for being locally generated the destination application is literary Part.
The mobile terminal also includes:Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio-frequency electric Road 606, loudspeaker 611, power management chip 608, input/output (I/O) subsystem 609, touch-screen 612, other input/controls Control equipment 610 and outside port 604, these parts are communicated by one or more communication bus or signal wire 607.
It should be understood that diagram mobile terminal 600 is only an example of mobile terminal, and mobile terminal 600 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 mobile terminal for being used to handle application exception that the present embodiment provides is described in detail below, the shifting Dynamic terminal is by taking mobile phone as an example.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 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 CPU502 and deposited by Peripheral Interface 603, the Peripheral Interface 603 Reservoir 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripherals in equipment, such as touch-screen 612 With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystems 609 can include the He of display controller 6091 For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610, Other input/control devicess 610 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 6092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Touch-screen 612, the touch-screen 612 are the input interface and output interface between user terminal and user, can It can include figure, text, icon, video etc. to user, visual output depending on output display.
Display controller 6091 in I/O subsystems 609 receives electric signal from touch-screen 612 or sent out to touch-screen 612 Electric signals.Touch-screen 612 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 6091 The interaction of user interface object on touch-screen 612, that is, realize man-machine interaction, the user interface being shown on touch-screen 612 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 605, 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 605 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 605 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 605 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 606, it is mainly used in receiving voice data from Peripheral Interface 603, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611, for the voice signal for receiving mobile phone from wireless network by RF circuits 605, it is reduced to sound And play the sound to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface 603 are supplied Electricity and power management.
Above-mentioned mobile terminal can perform the method that any embodiment of the present invention is provided, and possess the corresponding function of execution method Module, mobile terminal provided in an embodiment of the present invention during application program is run by continuing the application journey that will be run The log information of sequence is exported to the spatial cache of mobile terminal, generates log buffer file, is detecting abnormal log generation thing When part is triggered, it is determined that abnormal destination application occurs, based on the log buffer file, the target is locally generated The abnormal log file of application program, it can locally be got in time in mobile terminal on the premise of daily record switch is not opened The abnormal log file of abnormal application program, and can be with the abnormal application program for getting low probability and being not easy to reappear of efficiently and accurately Abnormal log file.
The technical principle that above are only presently preferred embodiments of the present invention and used.The invention is not restricted to spy described here Determine embodiment, the various significant changes that can carry out for a person skilled in the art, readjust and substitute all without departing from Protection scope of the present invention.Therefore, although being described in further detail by above example to the present invention, this hair It is bright to be not limited only to above example, without departing from the inventive concept, other more equivalence enforcements can also be included Example, and the scope of the present invention is determined by the scope of claim.

Claims (10)

  1. A kind of 1. abnormality eliminating method of application program, it is characterised in that including:
    Continue the log information for the application program run exporting delaying to mobile terminal during application program is run Space is deposited, generates log buffer file;
    When detecting that abnormal log generation event is triggered, it is determined that abnormal destination application occurs;
    Based on the log buffer file, the abnormal log file of the destination application is locally generated.
  2. 2. according to the method for claim 1, it is characterised in that described to detect that abnormal log backup event is triggered When, it is determined that abnormal destination application, which occurs, to be included:
    It is true according to abnormal log generation instruction when detecting that user acts on the abnormal log generation instruction of mobile terminal It is fixed that abnormal destination application occurs;Or
    When detecting that current progress information meets to set abnormal Rule of judgment, determine to apply corresponding to the current progress information Program is the abnormal destination application of generation.
  3. 3. according to the method for claim 1, it is characterised in that described to determine that abnormal destination application, which occurs, to be included:
    It is determined that abnormal destination application occurs, the application identities of the destination application are obtained;
    Described to be based on the log buffer file, being locally generated the abnormal log file of the destination application includes:
    Interface is obtained by default log information and filters out daily record corresponding to the application identities from the log buffer file Information, generate the abnormal log file of the destination application.
  4. 4. according to the method described in claim any one of 1-3, it is characterised in that generating the exception of the destination application Also include after journal file:
    The abnormal log file is transferred under the file management catalogue of mobile terminal.
  5. 5. according to the method for claim 4, it is characterised in that also include:
    According to the spool time of abnormal log file, the abnormal log file under the file management catalogue is subjected to deletion behaviour Make.
  6. 6. according to the method described in claim any one of 1-3, it is characterised in that generating the exception of the destination application Also include after journal file:
    If the spatial cache is full, removes and the log buffer text that time satisfaction imposes a condition is generated in the spatial cache Part, otherwise, the log buffer file in the spatial cache is not removed.
  7. 7. according to the method described in claim any one of 1-3, it is characterised in that the application program includes native applications program And/or third party application.
  8. A kind of 8. exception handling device of application program, it is characterised in that including:
    Log buffer file generating module, for the day for the application program for continuing to be run during application program is run Will information is exported to the spatial cache of mobile terminal, generates log buffer file;
    Destination application determining module, for when detecting that abnormal log generation event is triggered, it is determined that occurring abnormal Destination application;
    Abnormal log file generating module, for based on the log buffer file, being locally generated the destination application Abnormal log file.
  9. 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The abnormality eliminating method of the application program as described in any in claim 1-7 is realized during row.
  10. 10. a kind of mobile terminal, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that realized described in the computing device during computer program as described in any in claim 1-7 The abnormality eliminating method of application program.
CN201710612237.9A 2017-07-25 2017-07-25 Application program exception handling method and device, storage medium and mobile terminal Expired - Fee Related CN107402835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710612237.9A CN107402835B (en) 2017-07-25 2017-07-25 Application program exception handling method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710612237.9A CN107402835B (en) 2017-07-25 2017-07-25 Application program exception handling method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN107402835A true CN107402835A (en) 2017-11-28
CN107402835B CN107402835B (en) 2021-04-06

Family

ID=60402281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710612237.9A Expired - Fee Related CN107402835B (en) 2017-07-25 2017-07-25 Application program exception handling method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN107402835B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908802A (en) * 2017-12-26 2018-04-13 广东欧珀移动通信有限公司 log processing method, device, terminal device and storage medium
CN108090173A (en) * 2017-12-14 2018-05-29 广东欧珀移动通信有限公司 Delet method, device, terminal and the storage medium of record screen file
CN108196969A (en) * 2017-12-28 2018-06-22 努比亚技术有限公司 Restart monitoring and localization method, mobile terminal and computer readable storage medium
CN108363659A (en) * 2018-02-23 2018-08-03 青岛海信移动通信技术股份有限公司 A kind of method and device of processing electronic equipment exception
CN109782982A (en) * 2018-12-29 2019-05-21 北京奇安信科技有限公司 A kind of processing method and terminal reading log
CN110321271A (en) * 2019-06-03 2019-10-11 平安科技(深圳)有限公司 Method, apparatus, equipment and the storage medium of exception information are obtained based on Monkey
CN110764977A (en) * 2019-09-27 2020-02-07 赛诺贝斯(北京)营销技术股份有限公司 Alarm method and device for realizing system safety
CN111381943A (en) * 2018-12-29 2020-07-07 深圳Tcl数字技术有限公司 Application program flash-back processing method, intelligent terminal and storage medium
CN112306826A (en) * 2020-02-24 2021-02-02 北京字节跳动网络技术有限公司 Method and apparatus for processing information for terminal
CN112783731A (en) * 2021-01-29 2021-05-11 北京百度网讯科技有限公司 Abnormal equipment detection method, device, equipment and storage medium
CN113407415A (en) * 2021-06-28 2021-09-17 四川虹美智能科技有限公司 Log management method and device of intelligent terminal
CN113608990A (en) * 2021-10-08 2021-11-05 上海豪承信息技术有限公司 Terminal performance detection method, device, storage medium and program product
CN113835961A (en) * 2021-09-23 2021-12-24 中国联合网络通信集团有限公司 Alarm information monitoring method, device, server and storage medium
CN113867999A (en) * 2021-08-30 2021-12-31 荣耀终端有限公司 Application exception handling method, terminal and computer readable storage medium
CN114185502A (en) * 2021-12-15 2022-03-15 平安科技(深圳)有限公司 Log printing method, device, equipment and medium based on production line environment
CN115220648A (en) * 2022-01-26 2022-10-21 广州汽车集团股份有限公司 Data writing flow statistical method and device and electronic equipment
CN116701134A (en) * 2022-10-14 2023-09-05 荣耀终端有限公司 Data processing method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6078930A (en) * 1997-02-28 2000-06-20 Oracle Corporation Multi-node fault-tolerant timestamp generation
US6230246B1 (en) * 1998-01-30 2001-05-08 Compaq Computer Corporation Non-intrusive crash consistent copying in distributed storage systems without client cooperation
CN104253704A (en) * 2013-06-28 2014-12-31 腾讯科技(深圳)有限公司 Terminal log reporting method, device and system
CN104572413A (en) * 2013-10-29 2015-04-29 上海斐讯数据通信技术有限公司 Method for storing system logs by electronic equipment and electronic equipment
CN105204969A (en) * 2014-06-30 2015-12-30 腾讯科技(深圳)有限公司 Abnormal log processing method and abnormal log processing device
CN106201756A (en) * 2016-07-12 2016-12-07 努比亚技术有限公司 Log acquisition device, mobile terminal and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6078930A (en) * 1997-02-28 2000-06-20 Oracle Corporation Multi-node fault-tolerant timestamp generation
US6230246B1 (en) * 1998-01-30 2001-05-08 Compaq Computer Corporation Non-intrusive crash consistent copying in distributed storage systems without client cooperation
CN104253704A (en) * 2013-06-28 2014-12-31 腾讯科技(深圳)有限公司 Terminal log reporting method, device and system
CN104572413A (en) * 2013-10-29 2015-04-29 上海斐讯数据通信技术有限公司 Method for storing system logs by electronic equipment and electronic equipment
CN105204969A (en) * 2014-06-30 2015-12-30 腾讯科技(深圳)有限公司 Abnormal log processing method and abnormal log processing device
CN106201756A (en) * 2016-07-12 2016-12-07 努比亚技术有限公司 Log acquisition device, mobile terminal and method

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108090173A (en) * 2017-12-14 2018-05-29 广东欧珀移动通信有限公司 Delet method, device, terminal and the storage medium of record screen file
CN107908802A (en) * 2017-12-26 2018-04-13 广东欧珀移动通信有限公司 log processing method, device, terminal device and storage medium
CN108196969A (en) * 2017-12-28 2018-06-22 努比亚技术有限公司 Restart monitoring and localization method, mobile terminal and computer readable storage medium
CN108363659B (en) * 2018-02-23 2021-06-29 青岛海信移动通信技术股份有限公司 Method and device for processing abnormity of electronic equipment
CN108363659A (en) * 2018-02-23 2018-08-03 青岛海信移动通信技术股份有限公司 A kind of method and device of processing electronic equipment exception
CN109782982A (en) * 2018-12-29 2019-05-21 北京奇安信科技有限公司 A kind of processing method and terminal reading log
CN111381943B (en) * 2018-12-29 2024-03-12 深圳Tcl数字技术有限公司 Application program flash-back processing method, intelligent terminal and storage medium
CN111381943A (en) * 2018-12-29 2020-07-07 深圳Tcl数字技术有限公司 Application program flash-back processing method, intelligent terminal and storage medium
CN110321271A (en) * 2019-06-03 2019-10-11 平安科技(深圳)有限公司 Method, apparatus, equipment and the storage medium of exception information are obtained based on Monkey
CN110764977A (en) * 2019-09-27 2020-02-07 赛诺贝斯(北京)营销技术股份有限公司 Alarm method and device for realizing system safety
CN110764977B (en) * 2019-09-27 2023-11-10 赛诺贝斯(北京)营销技术股份有限公司 Alarm method and device for realizing system safety
CN112306826A (en) * 2020-02-24 2021-02-02 北京字节跳动网络技术有限公司 Method and apparatus for processing information for terminal
CN112783731A (en) * 2021-01-29 2021-05-11 北京百度网讯科技有限公司 Abnormal equipment detection method, device, equipment and storage medium
CN112783731B (en) * 2021-01-29 2023-09-05 北京百度网讯科技有限公司 Abnormal device detection method, device and storage medium
CN113407415A (en) * 2021-06-28 2021-09-17 四川虹美智能科技有限公司 Log management method and device of intelligent terminal
CN113867999A (en) * 2021-08-30 2021-12-31 荣耀终端有限公司 Application exception handling method, terminal and computer readable storage medium
CN113867999B (en) * 2021-08-30 2022-09-30 荣耀终端有限公司 Application exception handling method, terminal and computer readable storage medium
CN113835961A (en) * 2021-09-23 2021-12-24 中国联合网络通信集团有限公司 Alarm information monitoring method, device, server and storage medium
CN113835961B (en) * 2021-09-23 2023-05-16 中国联合网络通信集团有限公司 Alarm information monitoring method, device, server and storage medium
CN113608990A (en) * 2021-10-08 2021-11-05 上海豪承信息技术有限公司 Terminal performance detection method, device, storage medium and program product
CN113608990B (en) * 2021-10-08 2022-02-01 上海豪承信息技术有限公司 Terminal performance detection method, device and storage medium
CN114185502A (en) * 2021-12-15 2022-03-15 平安科技(深圳)有限公司 Log printing method, device, equipment and medium based on production line environment
CN114185502B (en) * 2021-12-15 2024-05-14 平安科技(深圳)有限公司 Log printing method, device, equipment and medium based on production line environment
CN115220648A (en) * 2022-01-26 2022-10-21 广州汽车集团股份有限公司 Data writing flow statistical method and device and electronic equipment
CN116701134A (en) * 2022-10-14 2023-09-05 荣耀终端有限公司 Data processing method and electronic equipment
CN116701134B (en) * 2022-10-14 2024-05-17 荣耀终端有限公司 Data processing method and electronic equipment

Also Published As

Publication number Publication date
CN107402835B (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN107402835A (en) Abnormality eliminating method, device and the storage medium and mobile terminal of application program
EP3502880B1 (en) Method for preloading application, storage medium, and terminal device
EP3575961B1 (en) Method and apparatus for updating application prediction model, storage medium, and terminal
WO2019223578A1 (en) Application program preloading method and apparatus, and storage medium and terminal
CN108153647A (en) log processing method, device, terminal device and storage medium
WO2019223511A1 (en) Application program preloading method and apparatus, storage medium, and terminal
CN105955766A (en) Method and device for application preloading
CN108509176A (en) A kind of method, apparatus of playing audio-fequency data, storage medium and intelligent terminal
CN107329559A (en) A kind of application control method, device, terminal and storage medium
CN108804299A (en) Application exception processing method and processing device
CN107678823A (en) Control method, device and the storage medium and mobile terminal of mobile terminal application
CN108038231A (en) log processing method, device, terminal device and storage medium
CN108762831A (en) Application program preloads method, apparatus, storage medium and terminal
CN107896243A (en) Accelerated method, device, storage medium and the mobile terminal of network data loading
CN107844342A (en) Management-control method, device and the storage medium and mobile terminal of application program keep-alive
CN109408465B (en) File attribution information recording method, device, storage medium and terminal
CN107480001A (en) System recovery method and device
CN107766177A (en) Start optimization method, device, storage medium and terminal device
CN106844655A (en) Information processing method, device and computer equipment
CN105528171A (en) Method and system for quickly starting application of intelligent terminal, and intelligent terminal
CN107908953A (en) Notifications service control method, device, terminal device and storage medium
CN108170585A (en) log processing method, device, terminal device and storage medium
CN109582187A (en) Document sending method, device, computer equipment and storage medium
CN112235629B (en) Barrage shielding method and device, computer equipment and storage medium
CN106951333A (en) A kind of broadcast controlling method, device and mobile 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210406

CF01 Termination of patent right due to non-payment of annual fee