CN106095621B - The restoration methods and system that Launcher is operating abnormally in a kind of Android system - Google Patents
The restoration methods and system that Launcher is operating abnormally in a kind of Android system Download PDFInfo
- Publication number
- CN106095621B CN106095621B CN201610411399.1A CN201610411399A CN106095621B CN 106095621 B CN106095621 B CN 106095621B CN 201610411399 A CN201610411399 A CN 201610411399A CN 106095621 B CN106095621 B CN 106095621B
- Authority
- CN
- China
- Prior art keywords
- launcher
- activity
- operating abnormally
- spare
- event
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1417—Boot up procedures
Abstract
The invention discloses restoration methods and system that Launcher in a kind of Android system is operating abnormally, the main Activity and spare Activity of built-in Launcher attribute in the APK of Launcher, wherein, the priority of spare Activity is higher than main Activity, and the state of spare Activity is disabling, when starting Launcher process, listens to Launcher and be operating abnormally event;When listening to Launcher operation exception event, the state of spare Activity is changed to can be used, and restart Launcher process.The present invention causes main Activity not show normally when Launcher process operation exception, then starts spare Activity, is presented to the user basic function use.The abnormal problem that research staff can be made to have the sufficient time to solve Launcher in this way, it is also not responding to user simultaneously and uses equipment, then the main Activity entrance before being restored to after being solved the problems, such as by network upgrade greatly reduces and returns factory and lead and rate of visiting after sale.
Description
Technical field
The present invention relates to restoration methods and system that Launcher in a kind of Android system is operating abnormally.
Background technique
Android(Android) system is an open source mobile device operation system based on Linux, it is mainly used in
Mobile phone, tablet computer, smart television etc..2010 year end data show that only the formal android system for releasing 2 years accounts in market
Have to have surmounted in rate and dominate the Nokia's Symbian system for exceeding 10 years, becomes global first categorles mobile phone operating system.Extremely
In January, 2014, Google corporate external announce, under belonging to android system global market share be up to
60%。
Launcher(is also referred to as desktop) it is applied greatly as the first of android system, display Android desktop system is carry,
Handle the important duty of human-computer interaction.Launcher will be started first after android system starting, terminal is provided for user and set
Standby abundant content portals and other kinds apply entrance.Therefore, the function of Launcher is also increasingly in each equipment now
It is abundant, such as show all kinds of video display posters, weather, time, application and other assemblies, and content can constantly from server more
Newly.But there is abnormal probability and are also increasing in being increasing with function, Launcher.And once occur irrecoverable
Exception, Launcher, which will enter, constantly restarts, can not display interface content, cause the equipment to lose human-computer interaction only
One entrance can only pass through the availability of the launcher ability restorer of mode after sale more new system.
It mainly include removing using local cache although the Launcher currently existed applies automatic recovery policy
Data or it is spare before data, the method restored when occurring abnormal with data before.But since Launcher is applied
There are many kinds of the exceptions of appearance, there is the reason of some exceptions are not only using local data, also with other running environment of system
Accumulation it is relevant.At this moment, current method can not just solve the problems, such as.
Thus the prior art could be improved and improve.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the deficiencies of the prior art, provide in a kind of Android system
The restoration methods and system that Launcher is operating abnormally solve Launcher and apply automatic recovery policy, when exception and system
Other running environment accumulation it is related when can not solve the problems, such as it is abnormal.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is as follows:
The restoration methods that Launcher is operating abnormally in a kind of Android system, the APK of Launcher in the Android system
In built-in Launcher attribute main Activity and spare Activity, wherein the priority of spare Activity be higher than master
Activity, and the original state of spare Activity is disabling, which comprises
Start Launcher process, listens to Launcher and be operating abnormally event;
When listening to Launcher operation exception event, setting Launcher is operating abnormally the abnormality mark position of event,
And be changed to can be used by the state of spare Activity, restart Launcher process.
The restoration methods that Launcher is operating abnormally in the Android system, wherein described to listen to Launcher fortune
When row anomalous event, setting Launcher is operating abnormally the abnormality mark position of event, and the state of spare Activity is changed
Be it is available, restart Launcher process after further include:
Detect whether that there are abnormality mark positions;
In the presence of abnormality mark position, the current version number of the Launcher is obtained;
Judge whether current version number changes, if current version number does not change, when spare Activity is
Start spare Activity when available mode;
In the absence of abnormality mark position, then start main Activity, and listens to Launcher and be operating abnormally event.
The restoration methods that Launcher is operating abnormally in the Android system, wherein described whether to judge current version number
It changes, if current version number does not change, starts spare Activity further include:
If current version number changes, the abnormality mark position of clearing systems anomalous event, and will be described spare
The state of Activity is changed to disable, and restarts Launcher process.
The restoration methods that Launcher is operating abnormally in the Android system, wherein described whether to judge current version number
It changes, if current version number does not change, after starting spare Activity further include:
Start timer, whether disposes upgrade package at interval of predetermined time detection service device;When detecting server disposition
When upgrade package, upgrade package is downloaded and installed, is then shut off timer, restarts Launcher process.
The restoration methods that Launcher is operating abnormally in the Android system, wherein the starting Launcher process is detectd
It listens Launcher to be operating abnormally event to specifically include:
Start Launcher process, whether disposes upgrade package in detection service device;
If disposing upgrade package, upgrade package is downloaded and installed, restarts Launcher process;
If not disposing upgrade package, listens to Launcher and be operating abnormally event.
The recovery system that Launcher is operating abnormally in a kind of Android system, the APK of Launcher in the Android system
In built-in Launcher attribute main Activity and spare Activity, wherein the priority of spare Activity be higher than master
Activity, and the original state of spare Activity is disabling;Comprising:
Module is listened to, for starting Launcher process, Launcher is listened to and is operating abnormally event;
Execution module, for when listening to Launcher operation exception event, setting Launcher to be operating abnormally event
Abnormality mark position, and the state of spare Activity is changed to can be used, restarts Launcher process.
The recovery system that Launcher is operating abnormally in the Android system, further include:
First detection module, for detecting whether there are abnormality mark positions;
First execution module, for obtaining the current version number of the Launcher in the presence of abnormality mark position;Judgement
Whether current version number changes, if current version number does not change, opens when spare Activity is available mode
Move spare Activity;
Second execution module, in the absence of abnormality mark position, then starting main Activity, and listen to Launcher
Operation exception event.
The recovery system that Launcher is operating abnormally in the Android system, further include:
Whether the second detection module disposes upgrade package at interval of predetermined time detection service device for starting timer;When
When detecting server disposition upgrade package, download and install upgrade package, be then shut off timer, restarting Launcher into
Journey.
The recovery system that Launcher is operating abnormally in the Android system, wherein first execution module is also used to:
When current version number changes, the abnormality mark position of clearing systems anomalous event, and will be described spare
The state of Activity is changed to disable, and restarts Launcher process.
The recovery system that Launcher is operating abnormally in the Android system, wherein the module of listening to includes:
Start unit, for starting Launcher process;
Upgrade unit, when disposing upgrade package, is downloaded for whether disposing upgrade package in detection service device and installs upgrading
Packet restarts Launcher process;When not disposing upgrade package, terminate upgrading;
Unit is listened to, is operating abnormally event for listening to Launcher.
The utility model has the advantages that compared with prior art, the present invention provide Launcher in a kind of Android system be operating abnormally it is extensive
Multiple method and system, the main Activity and spare Activity of built-in Launcher attribute in the APK of Launcher,
In, the priority of spare Activity is higher than main Activity, and the state of spare Activity is disabling, works as starting
Launcher process listens to Launcher and is operating abnormally event;It, will be spare when listening to Launcher operation exception event
The state of Activity is changed to can be used, and restarts Launcher process.The present invention is operating abnormally when Launcher process
Cause main Activity not show normally, then start spare Activity, is presented to the user basic function use.In this way may be used
So that the abnormal problem that research staff has the sufficient time to solve Launcher, while being also not responding to user using equipment, then
Main Activity entrance before being restored to after being solved the problems, such as by network upgrade, greatly reduce return factory lead and after sale on
Door rate.
Detailed description of the invention
Fig. 1 is the process for the restoration methods preferred embodiment that Launcher is operating abnormally in Android system provided by the invention
Figure.
Fig. 2 is the process for one embodiment of restoration methods that Launcher is operating abnormally in Android system provided by the invention
Figure.
Fig. 3 is the structure principle chart for the recovery system that Launcher is operating abnormally in Android system provided by the invention.
Specific embodiment
The present invention provides the restoration methods and system that Launcher is operating abnormally in a kind of Android system, of the invention to make
Purpose, technical solution and effect are clearer, clear, as follows in conjunction with drawings and embodiments further specifically to the present invention
It is bright.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
In the Android system of offer of the present invention Launcher be operating abnormally restoration methods, in Android system
The main Activity and spare Activity of built-in Launcher attribute in the APK of Launcher.The main Activity is used for
Launcher starts when being in normal, and the spare Activity starts when being in abnormal for Launcher.It is described spare
Activity is only to provide system list of application and entrance, does not influence the normal use of whole equipment.Also, it is described spare
The priority of Activity is higher than main Activity, and the original state of spare Activity is disabling.It can be by preparatory
It is configured in the allocation list of Android system, the original state of spare Activity is provided with disabling, is existed in this way
When Launcher normally starts, starting is to live in Activity in available mode.Meanwhile the excellent of spare Activity is set
First grade is higher than main Activity, when arriving Launcher exception in this way, sets available for the state of spare Activity, again
When starting Launcher, since the priority of spare Activity is higher than main Activity, to start spare Activity.It keeps away
Exempt to repeat when main Activity is in abnormal, the main Activity of repeated priming causes Launcher repeated priming, Wu Fazheng
The problem of being often used.
The Launcher is the desktop starter in Android system, and the desktop UI of Android system is referred to as Launcher.
The Activity is an application component in android system, provides a screen, and user can be used to
Interaction is in order to complete a certain task.All operations are all closely related with user in Activity, are one and are responsible for interacting with user
Component.
The APK is for AndroidPackage, i.e. Android installation kit.
With reference to the accompanying drawing, by the description of the embodiment, further explanation of the contents of the invention are made.
Referring to Figure 1, Fig. 1 provides the restoration methods that Launcher is operating abnormally in Android system for the present invention and preferably implements
The flow chart of example.The described method includes:
S100, starting Launcher process, listen to Launcher and are operating abnormally event.
Specifically, the starting Launcher process can be intelligently sets in mobile phone, tablet computer, television set, wrist-watch etc.
It is standby to be switched on and start Launcher process.After Launcher process initiation, one can be created for listening to Launcher fortune
The thread A of row anomalous event listens to Launcher by thread A and is operating abnormally event.The Launcher is operating abnormally event
In the starting of Launcher process and in use process, the generation of operation exception event all might have.Here operation is different
Ordinary affair part refers mainly to the class anomalous event out of service for lacking the generations such as necessary configuration or setting due to running environment, e.g.,
Null pointer is abnormal, writes data exception, reads data exception etc..Due to directly be cut off using meeting, nothing once this exception occurs
Method continues to run, constant to the use agency of user.
In the present embodiment, the Launcher that listens to is operating abnormally the callback method progress that event is carried using Android system
It listens to.Such as: Thread.setDefaultUncaughtExceptionHandler (new
UncaughtExceptionHandler());When being operating abnormally event there are Launcher, it will adjust back
The uncaughtException of UncaughtExceptionHandler.And exception can be carried out in this callback method
The setting of label etc..
S200, when listening to Launcher and being operating abnormally event, setting Launcher is operating abnormally the abnormal mark of event
Will position, and the state of spare Activity is changed to can be used, restart Launcher process.
Specifically, it is that boolean one by one is arranged that the setting Launcher, which is operating abnormally the abnormality mark position of event,
The variable of type, value are true or false.When value is true, specification exception flag bit exists, and when value is false, says
Bright abnormality mark position is not present.Meanwhile it can be by the state of Activity spare in the configuration file prestored in Android system more
It is changed to available mode, and restarts Launcher.In this way, each service in Android system is activated to and can be realized interface
When initialization, the configuration file prestored in Android system is read.In turn, higher spare according to configuration file starting priority
Activity avoids main Activity repeated priming, Launcher starter is caused to restart, and influence that user uses asks
Topic.
Further, in order to avoid user is not available desktop for a long time, Launcher operation exception event will be listened to and arrived
The time of restarting Launcher shortens as far as possible, so that abnormality mark position is only set when noting abnormalities event, it will be described different
Ordinary affair part reports server.But in order to which producer or research staff can quickly understand the Launcher anomalous event,
After restarting Launcher, the Launcher anomalous event is reported into server.It can pass through abnormal log
Formation reports server, that is, generates abnormal log when setting up abnormality mark position, by Launcher anomalous event
When reporting server, abnormal log is reported into server.Ze You producer or research staff incite somebody to action according to abnormal log modification program
Amended program formulates new upgrade package, is uploaded to server.Abnormal problem can be solved by online upgrading in this way, greatly
Reduce and return factory and lead and rate of visiting after sale.
When there is no when exception excessively, that start when starting Launcher process is all Activity by Launcher.But
It is if Launcher occurred extremely, when starting Launcher process, starting may be spare Activity.And it is standby
It is fairly simple with the function of Activity, without the feature-rich of active Activity, then how to judge Launcher exception
Whether modification is also the major issue to bring convenience to the users.To be wrapped in Launcher process initiation
A verification process is included, judges Launcher with the presence or absence of abnormal.
In one embodiment of the invention, as shown in Fig. 2, the recovery that Launcher is operating abnormally in the Android system
Method, after restarting Launcher process further include:
S10, detect whether that there are abnormality mark positions.
Specifically, it when starting Launcher process, detects the value of the variable of boolean type and comes for true or false
Judge whether there is abnormality mark position.It is, being to judge Launcher process by the value for the variable for detecting boolean type
It is no to be transmitted across exception, to start main Activity or spare Activity to determine.
S20, in the presence of abnormality mark position, obtain the current version number of the Launcher;And judge current version number
Whether change, if current version number does not change, starts spare Activity.
Specifically, the version number that current version number refers to obtaining currently running Launcher installation kit is obtained.And sentence
Whether disconnected current version number, which changes, refers to that the version number for running current version number with last time one is compared, if one
It causes, then current version number is to change;If it is inconsistent, current version changes.That is, Launcher process
In each starting, the version number of the Launcher installation kit of this starting is all obtained, and the version number is stored.In next time
When starting Launcher, obtain the version number of current operation Launcher installation kit, and by its version number with last time operation into
Row compares, if version number is identical, it is constant to save version number, if version number is not identical, with the version number of this operation
Update the version number saved.It is of course also possible to when starting Launcher is carried out every time, all using the Launcher of this operation
The version number of installation kit updates existing version number.
Further, when there is no illustrating that the Launcher process of this operation still has exception when variation for version number
Launcher process, then starting spare Activity.Simple desktop window is provided for user, keeps the normal fortune of system
Row.
Further, since spare Activity function is simple, it is not able to satisfy the whole of user and needs to ask.Therefore, it is necessary to and
When the anomalous event for judging Launcher process whether solve, and affixed one's name to upgrade installation package in server internal.To open
Moving spare Activity can also include later a detection process.It is specifically as follows: after starting spare Activity,
Whether the timer of starting setting predetermined time, dispose upgrade package at interval of predetermined time detection service device, services when detecting
When device disposes upgrade package, upgrade package is downloaded and installed, is then shut off timer, restarts Launcher process.That is,
In the case where starting spare Activity, retrieve whether a server disposes upgrade package, Zhi Daojian at interval of the predetermined time
After rope to upgrade package, upgrade package is downloaded and installed, then stops retrieval.In this way can to avoid when starting main Activity,
The problem of whether continuous retrieve disposes upgrade package, temporary system resource, causes system Caton.
If S30, current version number change, the abnormality mark position of clearing systems anomalous event, and will be described spare
The state of Activity is changed to disable, and restarts Launcher process.
Specifically, if current version number changes, then illustrate that Launcher process is upgraded and eliminates exception
Event.So the abnormality mark position of system exception event is emptied, and the state of spare Activity is changed to disable, again
Start Launcher process.
S40, in the absence of abnormality mark position, then start main Activity, and listen to Launcher be operating abnormally event
Specifically, if abnormality mark position is not present, illustrate that Launcher process is that anomalous event occurred, then start
Main Activity, and listen to Launcher and be operating abnormally event.
In Android system provided in this embodiment Launcher be operating abnormally restoration methods, starting Launcher into
Cheng Shi, judges whether there is the abnormality mark position of anomalous event, and then judges the state of spare Activity for available or disabling.
It can accurately judge currently to need to be started to be main Activity or spare Activity in this way, guarantee Launcher process
Normal operation.Meanwhile abnormality mark position there are when, judge that anomalous event is by the way that whether version number changes
It is no to be solved, realize fast and accurately starting Launcher process.
In yet another embodiment of the present invention, when starting Launcher process, a upgrading thread certainly can be created,
By whether disposing installation upgrade package from upgrading thread detection service device, if deployment installation upgrade package, downloads and installs liter
How grade packet, do not dispose installation upgrade package, then terminates from upgrading thread.This is because the upgrade package of server disposition can be for
Anomalous event is solved, is also possible to normally to upgrade.That is, starting Launcher process all detection service devices every time
Whether upgrade package is disposed, Launcher process can be run using real-time ensuring as latest edition.In practical applications, can also pass through
Upgrade package is detected and downloaded from upgrading thread, while being prompted for there are upgrade package, if needs to install and restarts Launcher
Process, and corresponding operating is carried out according to the user's choice.
The present invention also provides the recovery systems that Launcher in a kind of Android system is operating abnormally, in the Android system
The main Activity and spare Activity of built-in Launcher attribute in the APK of Launcher, wherein spare Activity's
Priority is higher than main Activity, and the original state of spare Activity is disabling;As shown in figure 3, comprising:
Module is listened to, for starting Launcher process, Launcher is listened to and is operating abnormally event;
Execution module, for when listening to Launcher operation exception event, setting Launcher to be operating abnormally event
Abnormality mark position, and the state of spare Activity is changed to can be used, restarts Launcher process.
The recovery system that Launcher is operating abnormally in the Android system, further include:
First detection module, for detecting whether there are abnormality mark positions;
First execution module, for obtaining the current version number of the Launcher in the presence of abnormality mark position;Judgement
Whether current version number changes, if current version number does not change, opens when spare Activity is available mode
Move spare Activity;
Second execution module, in the absence of abnormality mark position, then starting main Activity, and listen to Launcher
Operation exception event.
The recovery system that Launcher is operating abnormally in the Android system, further include:
Whether the second detection module disposes upgrade package at interval of predetermined time detection service device for starting timer;When
When detecting server disposition upgrade package, download and install upgrade package, be then shut off timer, restarting Launcher into
Journey.
The restoration methods that Launcher is operating abnormally in the Android system, wherein first execution module is also used to:
When current version number changes, the abnormality mark position of clearing systems anomalous event, and will be described spare
The state of Activity is changed to disable, and restarts Launcher process.
The recovery system that Launcher is operating abnormally in the Android system, wherein the module of listening to includes:
Start unit, for starting Launcher process;
Upgrade unit, when disposing upgrade package, is downloaded for whether disposing upgrade package in detection service device and installs upgrading
Packet restarts Launcher process;When not disposing upgrade package, terminate upgrading;
Unit is listened to, is operating abnormally event for listening to Launcher.
In embodiment provided by the present invention, it should be understood that disclosed systems approach, it can be by others side
Formula is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (10)
1. the restoration methods that Launcher is operating abnormally in a kind of Android system, which is characterized in that in the Android system
The main Activity and spare Activity of built-in Launcher attribute in the APK of Launcher, wherein spare Activity's
Priority is higher than main Activity, and the original state of spare Activity is disabling, which comprises
Start Launcher process, listens to Launcher and be operating abnormally event;
When listening to Launcher operation exception event, setting Launcher is operating abnormally the abnormality mark position of event, and will
The state of spare Activity is changed to can be used, and restarts Launcher process.
2. the restoration methods that Launcher is operating abnormally in Android system according to claim 1, which is characterized in that described to work as
When listening to Launcher operation exception event, setting Launcher is operating abnormally the abnormality mark position of event, and will be spare
The state of Activity is changed to can be used, after restarting Launcher process further include:
Detect whether that there are abnormality mark positions;
In the presence of abnormality mark position, the current version number of the Launcher is obtained;
Judge whether current version number changes, if current version number does not change, when spare Activity is available
Start spare Activity when state;
In the absence of abnormality mark position, then start main Activity, and listens to Launcher and be operating abnormally event.
3. the restoration methods that Launcher is operating abnormally in Android system according to claim 2, which is characterized in that described to sentence
Whether disconnected current version number changes, if current version number does not change, starts spare Activity further include:
If current version number changes, the abnormality mark position of clearing systems anomalous event, and by the spare Activity
State be changed to disable, restart Launcher process.
4. the restoration methods that Launcher is operating abnormally in Android system according to claim 2, which is characterized in that described to sentence
Whether disconnected current version number changes, if current version number does not change, after starting spare Activity further include:
Start timer, whether disposes upgrade package at interval of predetermined time detection service device;When detect server disposition upgrade
Bao Shi downloads and installs upgrade package, is then shut off timer, restarts Launcher process.
5. the restoration methods that Launcher is operating abnormally in Android system according to claim 1, which is characterized in that described to open
Dynamic Launcher process is listened to Launcher operation exception event and is specifically included:
Start Launcher process, whether disposes upgrade package in detection service device;
If disposing upgrade package, upgrade package is downloaded and installed, restarts Launcher process;
If not disposing upgrade package, listens to Launcher and be operating abnormally event.
6. the recovery system that Launcher is operating abnormally in a kind of Android system, which is characterized in that in the Android system
The main Activity and spare Activity of built-in Launcher attribute in the APK of Launcher, wherein spare Activity's
Priority is higher than main Activity, and the original state of spare Activity is disabling;Comprising:
Module is listened to, for starting Launcher process, Launcher is listened to and is operating abnormally event;
Execution module, for when listening to Launcher operation exception event, setting Launcher to be operating abnormally the different of event
Normal flag bit, and the state of spare Activity is changed to can be used, restart Launcher process.
7. the recovery system that Launcher is operating abnormally in Android system according to claim 6, which is characterized in that it is also wrapped
It includes:
First detection module, for detecting whether there are abnormality mark positions;
First execution module, for obtaining the current version number of the Launcher in the presence of abnormality mark position;Judgement is current
Whether version number changes, if current version number does not change, starts when spare Activity is available mode standby
Use Activity;
Second execution module in the absence of abnormality mark position, then starting main Activity, and listens to Launcher operation
Anomalous event.
8. the recovery system that Launcher is operating abnormally in Android system according to claim 7, which is characterized in that it is also wrapped
It includes:
Whether the second detection module disposes upgrade package at interval of predetermined time detection service device for starting timer;Work as detection
When to server disposition upgrade package, upgrade package is downloaded and installed, is then shut off timer, restarts Launcher process.
9. the recovery system that Launcher is operating abnormally in Android system according to claim 7, which is characterized in that described the
One execution module is also used to:
When current version number changes, the abnormality mark position of clearing systems anomalous event, and by the spare Activity's
State is changed to disable, and restarts Launcher process.
10. the recovery system that Launcher is operating abnormally in Android system according to claim 6, which is characterized in that described
Listening to module includes:
Start unit, for starting Launcher process;
Upgrade package is downloaded and installed to upgrade unit, when disposing upgrade package, for whether disposing upgrade package in detection service device,
Restart Launcher process;When not disposing upgrade package, terminate upgrading;
Unit is listened to, is operating abnormally event for listening to Launcher.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610411399.1A CN106095621B (en) | 2016-06-12 | 2016-06-12 | The restoration methods and system that Launcher is operating abnormally in a kind of Android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610411399.1A CN106095621B (en) | 2016-06-12 | 2016-06-12 | The restoration methods and system that Launcher is operating abnormally in a kind of Android system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106095621A CN106095621A (en) | 2016-11-09 |
CN106095621B true CN106095621B (en) | 2019-06-11 |
Family
ID=57846815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610411399.1A Active CN106095621B (en) | 2016-06-12 | 2016-06-12 | The restoration methods and system that Launcher is operating abnormally in a kind of Android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106095621B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775633A (en) * | 2016-11-15 | 2017-05-31 | 广州视源电子科技股份有限公司 | A kind of method, device and the terminal of the acquiescence Launcher that automatically switches |
CN108664252A (en) * | 2017-03-27 | 2018-10-16 | Tcl集团股份有限公司 | A kind of desktop starter restoration methods based on android system and system |
CN107766222B (en) * | 2017-10-31 | 2021-01-01 | 努比亚技术有限公司 | Black screen detection method, mobile terminal and computer readable storage medium |
CN107861738A (en) * | 2017-11-06 | 2018-03-30 | 广东欧珀移动通信有限公司 | Using abnormality eliminating method, device, storage medium and terminal device |
CN108052431A (en) * | 2017-12-08 | 2018-05-18 | 北京奇虎科技有限公司 | Terminal program exception closing information processing method, device, terminal |
CN108958980B (en) * | 2018-07-23 | 2021-07-09 | Oppo(重庆)智能科技有限公司 | Method for preventing Activity life cycle from being abnormal, electronic device and computer readable storage medium |
CN110457154B (en) * | 2019-07-25 | 2023-12-22 | Oppo广东移动通信有限公司 | Abnormal service processing method and device, storage medium and communication terminal |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104615506A (en) * | 2015-02-13 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Logic control based BIOS (basic input/output system) and BMC (baseboard management controller) backup method |
CN105607972A (en) * | 2015-12-28 | 2016-05-25 | Tcl集团股份有限公司 | Abnormity remedying method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001337774A (en) * | 2000-05-25 | 2001-12-07 | Sony Corp | Information processor, its method and medium |
-
2016
- 2016-06-12 CN CN201610411399.1A patent/CN106095621B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104615506A (en) * | 2015-02-13 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Logic control based BIOS (basic input/output system) and BMC (baseboard management controller) backup method |
CN105607972A (en) * | 2015-12-28 | 2016-05-25 | Tcl集团股份有限公司 | Abnormity remedying method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106095621A (en) | 2016-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106095621B (en) | The restoration methods and system that Launcher is operating abnormally in a kind of Android system | |
CN109284217B (en) | Application program exception handling method and device, electronic equipment and storage medium | |
CN107402835B (en) | Application program exception handling method and device, storage medium and mobile terminal | |
US20150089479A1 (en) | Method for pre-testing software compatibility and system thereof | |
CN103092700A (en) | Internal memory cleaning method and cleaning device and terminal device | |
US20140075430A1 (en) | Information backup method and apparatus | |
CN101594613A (en) | The method of terminal equipment and upgrading thereof, system | |
CN110825563B (en) | System recovery method and device and electronic equipment | |
CN102360324B (en) | Failure recovery method and equipment for failure recovery | |
KR20130127465A (en) | Fast computer startup | |
CN105204979A (en) | Recording method of Android logs and mobile terminal | |
CN104978209B (en) | The update method and device of application | |
CN110647333A (en) | Firmware upgrading method and equipment configured to upgrade firmware therein | |
CN103019764B (en) | The detection method of Andriod resource bag installability and system | |
CN108958788A (en) | The method, apparatus and computer equipment of automatic synchronization refreshing browser | |
CN104572394A (en) | Process monitoring method and device | |
CN112199284A (en) | Program automation testing method and corresponding device, equipment and medium | |
CN103902562A (en) | Method and device for upgrading terminal databases | |
CN102331945A (en) | Application management method based on electronic store | |
CN103870319B (en) | Information processing method, device and electronic equipment | |
CN112416411B (en) | Upgrading method and device, equipment end, server and computer readable medium | |
CN103984585A (en) | Method for upgrading Linux kernel in running process of kernel module capable of being plugged in thermal mode | |
CN104216802A (en) | Memory database recovery method and device | |
CN103744585A (en) | Information displaying method applied to screen locking state and device thereof | |
CN105824660A (en) | Application program updating method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |