CN106095621A - The restoration methods of Launcher operation exception and system in a kind of Android system - Google Patents
The restoration methods of Launcher operation exception and system in a kind of Android system Download PDFInfo
- Publication number
- CN106095621A CN106095621A CN201610411399.1A CN201610411399A CN106095621A CN 106095621 A CN106095621 A CN 106095621A CN 201610411399 A CN201610411399 A CN 201610411399A CN 106095621 A CN106095621 A CN 106095621A
- Authority
- CN
- China
- Prior art keywords
- launcher
- activity
- operation exception
- aku
- standby
- 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
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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses restoration methods and the system of Launcher operation exception in a kind of Android system, the main Activity and standby Activity of built-in Launcher attribute in the APK of Launcher, wherein, the priority of standby Activity is higher than main Activity, and the state of standby Activity is disabling, when starting Launcher process, intercept Launcher operation exception event;When listening to Launcher operation exception event, change to can use by the state of standby Activity, and restart Launcher process.The present invention causes main Activity normally to show when Launcher process operation exception, then started by standby Activity, presents to user's basic function and uses.Research staff so can be made to have the time of abundance to solve the abnormal problem of Launcher, also being not responding to user uses equipment simultaneously, then by the main Activity entrance before returning to after network upgrade solution problem, greatly reduce and return factory and lead and visit after sale rate.
Description
Technical field
The present invention relates to restoration methods and the system of Launcher operation exception in a kind of Android system.
Background technology
Android(Android) system is a mobile device operation system of increasing income based on Linux, it is mainly used in
Mobile phone, panel computer, intelligent television etc..At the end of 2010, data show, the most formally the release android system of 2 years accounts in market
Have in rate to have surmounted and seek hegemony the Nokia's Symbian system exceeding 10 years, become global first categorles mobile phone operating system.Extremely
In January, 2014, the announcement of Google corporate external, the android system global market share belonging under it has been up to
60%。
Launcher(is also referred to as desktop) apply greatly as the first of android system, carry display Android desktop system,
Process the important duty of man-machine interaction.First android system will start Launcher after starting, and provides the user terminal and sets
Standby abundant content portals and other kinds application entrance.Therefore, in present each equipment, the function of Launcher is the most increasingly
Abundant, as shown all kinds of video display posters, weather, time, application and other assemblies, and content can from server the most more
Newly.But, along with being on the increase of function, Launcher occurs that abnormal probability is also increasing.And once occur irrecoverable
Exception, Launcher will enter in constantly restarting, it is impossible to display interface content, causes equipment to lose man-machine interaction only
One entrance, can only update the availability of the launcher ability restorer of system by the way of after sale.
Although the Launcher currently existed applies automatic recovery policy, it mainly includes removing application local cache
Data before data or backup, the method recovered by data before when occurring abnormal.But owing to Launcher applies
The exception occurred has a variety of, has some abnormal reasons being not only application local data, also with other running environment of system
Accumulation relevant.At this moment, current method just cannot solve problem.
Thus prior art could be improved and improve.
Summary of the invention
The technical problem to be solved in the present invention is, for the deficiencies in the prior art, it is provided that in a kind of Android system
The restoration methods of Launcher operation exception and system, it solves Launcher and applies automatic recovery policy, when exception and system
The accumulation of other running environment relevant time cannot solve abnormal problem.
In order to solve above-mentioned technical problem, the technical solution adopted in the present invention is as follows:
The restoration methods of Launcher operation exception in a kind of Android system, interior in the APK of Launcher in described Android system
Putting the main Activity and standby Activity of Launcher attribute, wherein, the priority of standby Activity is higher than main
Activity, and the original state of standby Activity is for disabling, described method includes:
Start Launcher process, intercept Launcher operation exception event;
When listening to Launcher operation exception event, set the abnormality mark position of Launcher operation exception event, and will
The state of standby Activity changes to can use, and restarts Launcher process.
The restoration methods of Launcher operation exception in described Android system, wherein, described when listening to Launcher fortune
During row anomalous event, set the abnormality mark position of Launcher operation exception event, and the state of standby Activity is changed
It is available, also includes after restarting Launcher process:
Detect whether to there is abnormality mark position;
In the presence of abnormality mark position, obtain the current version number of described Launcher;
Judge whether current version number changes, if current version number does not changes, then when backup Activity be available
Backup Activity is started during state;
When abnormality mark position not in the presence of, then start main Activity, and intercept Launcher operation exception event.
Whether the restoration methods of Launcher operation exception in described Android system, wherein, described judge current version number
Change, if current version number does not changes, then start backup Activity and also include:
If current version number changes, then the abnormality mark position of clearing systems anomalous event, and by described backup Activity
State change to disabling, restart Launcher process.
Whether the restoration methods of Launcher operation exception in described Android system, wherein, described judge current version number
Change, if current version number does not changes, then also include after starting backup Activity:
Start timer, whether dispose AKU at interval of scheduled time detection server;When detecting that server disposition is upgraded
Bao Shi, downloads and installs AKU, being then shut off timer, restarts Launcher process.
The restoration methods of Launcher operation exception in described Android system, wherein, described startup Launcher process, detect
Launcher operation exception event is listened to specifically include:
Start Launcher process, in detection server, whether dispose AKU;
If deployment AKU, then download and AKU is installed, restarting Launcher process;
If not disposing AKU, then intercept Launcher operation exception event.
The recovery system of Launcher operation exception in a kind of Android system, the APK of Launcher in described Android system
In the main Activity and standby Activity of built-in Launcher attribute, wherein, the priority of standby Activity is higher than main
Activity, and the original state of standby Activity is for disabling;Comprising:
Intercept module, be used for starting Launcher process, intercept Launcher operation exception event;
Perform module, for when listening to Launcher operation exception event, set the different of Launcher operation exception event
Often flag bit, and change to can use by the state of standby Activity, restart Launcher process.
The recovery system of Launcher operation exception in described Android system, it also includes:
, for detecting whether there is abnormality mark position in first detection module;
First performs module, in the presence of abnormality mark position, obtains the current version number of described Launcher;Judge current
Whether version number changes, if current version number does not changes, then starts standby when backing up Activity and being upstate
Part Activity;
Second performs module, for when abnormality mark position not in the presence of, then start main Activity, and intercept Launcher and run
Anomalous event.
The recovery system of Launcher operation exception in described Android system, it also includes:
Second detection module, is used for starting timer, whether disposes AKU at interval of scheduled time detection server;Work as detection
During to server disposition AKU, download and AKU is installed, being then shut off timer, restarting Launcher process.
The restoration methods of Launcher operation exception in described Android system, wherein, described first performs module is additionally operable to:
When current version number changes, the abnormality mark position of clearing systems anomalous event, and by described backup Activity's
State changes to disabling, restarts Launcher process.
The recovery system of Launcher operation exception in described Android system, wherein, described in intercept module and include:
Start unit, is used for starting Launcher process;
Whether upgrade unit, dispose AKU in being used for detecting server, when disposing AKU, downloads and installs AKU,
Restart Launcher process;When not disposing AKU, terminate upgrading;
Intercept unit, be used for intercepting Launcher operation exception event.
Beneficial effect: compared with prior art, the present invention provides the extensive of Launcher operation exception in a kind of Android system
Multiple method and system, the main Activity and standby Activity of built-in Launcher attribute in the APK of Launcher, its
In, the priority of standby Activity is higher than main Activity, and the state of standby Activity is disabling, works as startup
Launcher process, intercepts Launcher operation exception event;When listening to Launcher operation exception event, by standby
The state of Activity changes to can use, and restarts Launcher process.The present invention works as Launcher process operation exception
Cause main Activity normally to show, then standby Activity is started, present to user's basic function and use.So may be used
So that research staff has the time of abundance to solve the abnormal problem of Launcher, being also not responding to user uses equipment, then simultaneously
By the main Activity entrance before returning to after network upgrade solution problem, greatly reduce and return factory and lead and go up after sale
Door rate.
Accompanying drawing explanation
The flow process of the restoration methods preferred embodiment of Launcher operation exception in the Android system that Fig. 1 provides for the present invention
Figure.
The flow process of restoration methods one embodiment of Launcher operation exception in the Android system that Fig. 2 provides for the present invention
Figure.
The structure principle chart of the recovery system of Launcher operation exception in the Android system that Fig. 3 provides for the present invention.
Detailed description of the invention
The present invention provides restoration methods and the system of Launcher operation exception in a kind of Android system, for making the present invention's
Purpose, technical scheme and effect are clearer, clear and definite, develop simultaneously embodiment referring to the drawings to the present invention the most specifically
Bright.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The restoration methods of Launcher operation exception in the Android system of offer of the present invention, its in Android system
The main Activity and standby Activity of built-in Launcher attribute in the APK of Launcher.Described main Activity is used for
Starting when Launcher is in normal, described standby Activity started when Launcher is in exception.Described backup
Activity is only to provide system list of application and entrance, and it does not affect the normal use of whole equipment.Further, described standby
The priority of Activity is higher than main Activity, and the original state of standby Activity is disabling.It can be by advance
Configure in the allocation list of Android system, the original state of standby Activity is provided with disabling, so exists
When Launcher normally starts, the live in Activity being in upstate of startup.Meanwhile, the excellent of standby Activity is set
The state of standby Activity, higher than main Activity, when so arriving Launcher exception, is set to can use, again by first level
When starting Launcher, owing to the priority of standby Activity is higher than main Activity, thus start standby Activity.Keep away
Exempt to repeat when main Activity is in abnormal, the main Activity of repeated priming, caused Launcher repeated priming, it is impossible to just
The problem often used.
Described Launcher is the desktop starter in Android system, and the desktop UI of Android system is referred to as Launcher.
Described Activity is an application component in android system, it is provided that a screen, user can be used to
Mutual in order to complete a certain task.In Activity, all operations is all closely related with user, is one and is responsible for mutual with user
Assembly.
Described APK is for AndroidPackage, i.e. Android installation kit.
Below in conjunction with the accompanying drawings, by the description to embodiment, summary of the invention is described further.
Referring to Fig. 1, Fig. 1 provides the restoration methods of Launcher operation exception in Android system preferably to implement for the present invention
The flow chart of example.Described method includes:
S100, startup Launcher process, intercept Launcher operation exception event.
Specifically, described startup Launcher process can be to set in intelligence such as mobile phone, panel computer, television set, wrist-watches
Standby start also starts Launcher process.When, after Launcher process initiation, one being created and be used for intercepting Launcher fortune
The thread A of row anomalous event, intercepts Launcher operation exception event by thread A.Described Launcher operation exception event
When the startup of Launcher process and during use, all there may be the generation of operation exception event.Here operation is different
Ordinary affair part refer mainly to due to running environment lack necessity configuration or arrange wait produce class anomalous event out of service, e.g.,
Null pointer is abnormal, writes data exception, reads data exception etc..Owing to once there is this exception, application can directly be cut off, nothing
Method continues to run with, and acts on behalf of constant to the use of user.
In the present embodiment, described in intercept Launcher operation exception event and use the callback method that carries of Android system to carry out
Intercept.As: Thread.setDefaultUncaughtExceptionHandler (new
UncaughtExceptionHandler());In time there is Launcher operation exception event, will adjust back
The uncaughtException of UncaughtExceptionHandler.And exception can be carried out in this callback method
The setting of labelling etc..
S200, when listening to Launcher operation exception event, set Launcher operation exception event exception mark
Will position, and change to can use by the state of standby Activity, restart Launcher process.
Specifically, the abnormality mark position of described setting Launcher operation exception event is to arrange boolean one by one
The variable of type, its value is true or false.On duty for true time, specification exception flag bit exist, on duty for false time, say
Bright abnormality mark position does not exists.Meanwhile, in the configuration file that can will prestore in Android system, the state of standby Activity is more
Change upstate into, and restart Launcher.So, each service in Android system is activated to be capable of interface
During initialization, read the configuration file prestored in Android system.And then, start higher standby of priority according to this configuration file
Activity, it is to avoid main Activity repeated priming, causes the Launcher trigger to repeat to restart, and affect that user uses asks
Topic.
Further, desktop cannot be used for a long time in order to avoid user, Launcher operation exception event will be listened to and arrive
The time restarting Launcher shortens as far as possible, thus only sets abnormality mark position when noting abnormalities event, by described different
Often reporting events server.But in order to producer or research staff can quickly understand described Launcher anomalous event,
After restarting Launcher, described Launcher anomalous event is reported to server.It can be by abnormal log
Formation reports server, namely generates abnormal log setting up abnormality mark position when, by Launcher anomalous event
When reporting server, abnormal log is reported server.Ze You producer or research staff revise program according to abnormal log, and will
Amended program formulates new AKU, uploads onto the server.So can solve abnormal problem by online upgrading, greatly
Reduce and return factory and lead and visit after sale rate.
When Launcher did not occur exception, that start when starting Launcher process is all Activity.But
Being if Launcher occurred abnormal, then when starting Launcher process, Activity is backed up in being probably of startup.And it is standby
The function of part Activity is fairly simple, does not has the feature richness of actively Activity, then how to judge that Launcher is abnormal
Whether revise the major issue being also to bring convenience to the users.Thus can also wrap when Launcher process initiation
Include a proof procedure, it is judged that whether Launcher exists exception.
In one embodiment of the invention, as in figure 2 it is shown, the recovery of Launcher operation exception in described Android system
Method, also includes after restarting Launcher process:
S10, detect whether to there is abnormality mark position.
Specifically, when starting Launcher process, the value of the variable of detection boolean type is that true or false comes
Judge whether abnormality mark position.It is, judge that Launcher process is by the value of the variable of detection boolean type
No it is transmitted across exception, determines and be intended to start main Activity or standby Activity.
S20, in the presence of abnormality mark position, obtain the current version number of described Launcher;And judge current version number
Whether change, if current version number does not changes, start standby Activity.
Specifically, obtain current version number and refer to obtain the version number of the Launcher installation kit of current operation.And sentence
Whether disconnected current version number changes and refers to compare current version number with the version number run last time, if one
Cause, then current version number is for changing;If it is inconsistent, current version changes.It is to say, Launcher process
When starting every time, all obtain the version number of this Launcher installation kit started, and described version number is stored.In next time
When starting Launcher, obtain the current version number running Launcher installation kit, and it is entered with the version number run last time
Row compares, if version number is identical, then preserves version number constant, if version number differs, then and the version number run with this
Update the version number preserved.During it is of course also possible to startup Launcher is carried out every time, all use this Launcher run
The version number of installation kit updates existing version number.
Further, when version number does not change, illustrate that this Launcher process run still exists exception
Launcher process, then start standby Activity.Provide the user simple desktop window, keep the normal fortune of system
OK.
Further, simple due to standby Activity function, it is impossible to the whole needs meeting user are asked.Accordingly, it would be desirable to and
Time the anomalous event judging Launcher process whether solve, and affixed one's name to upgrade installation package at server internal.Thus, opening
A detection process can also be included after dynamic backup Activity.It is specifically as follows: after starting backup Activity,
Start the timer that the scheduled time is set, whether dispose AKU, when service being detected at interval of scheduled time detection server
When AKU disposed by device, download and AKU is installed, being then shut off timer, restarting Launcher process.It is to say,
In the case of starting backup Activity, whether dispose AKU at interval of server of scheduled time retrieval, until inspection
Rope, to after AKU, is downloaded and installs AKU, then stops retrieval.So can avoid when starting main Activity, also
Constantly whether retrieval disposes AKU, temporary system resource, causes the problem that system card pauses.
If S30 current version number changes, then the abnormality mark position of clearing systems anomalous event, and by described backup
The state of Activity changes to disabling, restarts Launcher process.
Specifically, if current version number changes, then explanation Launcher process carries out upgrading and eliminating exception
Event.So the abnormality mark position of system exception event is emptied, and the state of standby Activity is changed to disabling, again
Start Launcher process.
S40, when abnormality mark position not in the presence of, then start main Activity, and intercept Launcher operation exception event
Specifically, if abnormality mark position does not exists, then for there is anomalous event in explanation Launcher process, then start master
Activity, and intercept Launcher operation exception event.
The restoration methods of Launcher operation exception in the Android system that the present embodiment provides, it enters at startup Launcher
Cheng Shi, it may be judged whether there is the abnormality mark position of anomalous event, and then judge that the state of standby Activity is as can use or disabling.
That so can judge accurately to be currently needed for start is main Activity or standby Activity, it is ensured that Launcher process
Properly functioning.Meanwhile, the when of existence in abnormality mark position, whether changed by version number and judge that anomalous event is
No it is solved, it is achieved that start Launcher process fast and accurately.
In yet another embodiment of the present invention, when starting Launcher process, a thread of certainly upgrading can be created,
By whether disposing installation AKU from upgrading thread detection server, if disposed, AKU is installed, then downloads and liter is installed
How level bag, do not dispose installation AKU, then terminate from upgrading thread.This be due to the AKU of server disposition can be for
Solve anomalous event, it is also possible to be normal upgrading.It is to say, start Launcher process all detect server every time
Whether dispose AKU, Launcher process can be run as latest edition with real-time ensuring.In actual applications, it is also possible to pass through
Detecting from upgrading thread and download AKU, prompting simultaneously is used for there is AKU, if need install and restart Launcher
Process, and carry out corresponding operating according to the selection of user.
Present invention also offers the recovery system of Launcher operation exception in a kind of Android system, in described Android system
The main Activity and standby Activity of built-in Launcher attribute in the APK of Launcher, wherein, standby Activity's
Priority is higher than main Activity, and the original state of standby Activity is disabling;As it is shown on figure 3, comprising:
Intercept module 100, be used for starting Launcher process, intercept Launcher operation exception event;
Perform module 200, for when listening to Launcher operation exception event, set Launcher operation exception event
Abnormality mark position, and change to can use by the state of standby Activity, restart Launcher process.
The recovery system of Launcher operation exception in described Android system, it also includes:
, for detecting whether there is abnormality mark position in first detection module;
First performs module, in the presence of abnormality mark position, obtains the current version number of described Launcher;Judge current
Whether version number changes, if current version number does not changes, then starts standby when backing up Activity and being upstate
Part Activity;
Second performs module, for when abnormality mark position not in the presence of, then start main Activity, and intercept Launcher and run
Anomalous event.
The recovery system of Launcher operation exception in described Android system, it also includes:
Second detection module, is used for starting timer, whether disposes AKU at interval of scheduled time detection server;Work as detection
During to server disposition AKU, download and AKU is installed, being then shut off timer, restarting Launcher process.
The restoration methods of Launcher operation exception in described Android system, wherein, described first performs module is additionally operable to:
When current version number changes, the abnormality mark position of clearing systems anomalous event, and by described backup Activity's
State changes to disabling, restarts Launcher process.
The recovery system of Launcher operation exception in described Android system, wherein, described in intercept module and include:
Start unit, is used for starting Launcher process;
Whether upgrade unit, dispose AKU in being used for detecting server, when disposing AKU, downloads and installs AKU,
Restart Launcher process;When not disposing AKU, terminate upgrading;
Intercept unit, be used for intercepting Launcher operation exception event.
In embodiment provided by the present invention, it should be understood that disclosed system approach, can be by other side
Formula realizes.Such as, device embodiment described above is only schematically, such as, the division of described module, the most only one
Kind of logic function divides, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or
It is desirably integrated into another system, or some features can be ignored, or do not perform.Another point, shown or discussed mutual it
Between coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication link
Connect, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme
's.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list
Unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit and realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions with so that a computer
Equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform the present invention each
The part steps of method described in embodiment.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. various
The medium of program code can be stored.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although
With reference to previous embodiment, the present invention is described in detail, it will be understood by those within the art that: it still may be used
So that the technical scheme described in foregoing embodiments to be modified, or wherein portion of techniques feature is carried out equivalent;
And these amendment or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (10)
1. the restoration methods of Launcher operation exception in an Android system, it is characterised in that in described Android system
The main Activity and standby Activity of built-in Launcher attribute in the APK of Launcher, wherein, standby Activity's
Priority is higher than main Activity, and the original state of standby Activity is disabling, and described method includes:
Start Launcher process, intercept Launcher operation exception event;
When listening to Launcher operation exception event, set the abnormality mark position of Launcher operation exception event, and will
The state of standby Activity changes to can use, and restarts Launcher process.
The restoration methods of Launcher operation exception in Android system the most according to claim 1, it is characterised in that described work as
When listening to Launcher operation exception event, set the abnormality mark position of Launcher operation exception event, and by standby
The state of Activity changes to can use, and also includes after restarting Launcher process:
Detect whether to there is abnormality mark position;
In the presence of abnormality mark position, obtain the current version number of described Launcher;
Judge whether current version number changes, if current version number does not changes, then when backup Activity be available
Backup Activity is started during state;
When abnormality mark position not in the presence of, then start main Activity, and intercept Launcher operation exception event.
The restoration methods of Launcher operation exception in Android system the most according to claim 2, it is characterised in that described in sentence
Whether disconnected current version number changes, if current version number does not changes, then starts backup Activity and also includes:
If current version number changes, then the abnormality mark position of clearing systems anomalous event, and by described backup Activity
State change to disabling, restart Launcher process.
The restoration methods of Launcher operation exception in Android system the most according to claim 2, it is characterised in that described in sentence
Whether disconnected current version number changes, if current version number does not changes, then also includes after starting backup Activity:
Start timer, whether dispose AKU at interval of scheduled time detection server;When detecting that server disposition is upgraded
Bao Shi, downloads and installs AKU, being then shut off timer, restarts Launcher process.
The restoration methods of Launcher operation exception in Android system the most according to claim 1, it is characterised in that described in open
Dynamic Launcher process, intercepts Launcher operation exception event and specifically includes:
Start Launcher process, in detection server, whether dispose AKU;
If deployment AKU, then download and AKU is installed, restarting Launcher process;
If not disposing AKU, then intercept Launcher operation exception event.
6. the recovery system of Launcher operation exception in an Android system, it is characterised in that in described Android system
The main Activity and standby Activity of built-in Launcher attribute in the APK of Launcher, wherein, standby Activity's
Priority is higher than main Activity, and the original state of standby Activity is disabling;Comprising:
Intercept module, be used for starting Launcher process, intercept Launcher operation exception event;
Perform module, for when listening to Launcher operation exception event, set the different of Launcher operation exception event
Often flag bit, and change to can use by the state of standby Activity, restart Launcher process.
The recovery system of Launcher operation exception in Android system the most according to claim 6, it is characterised in that it also wraps
Include:
, for detecting whether there is abnormality mark position in first detection module;
First performs module, in the presence of abnormality mark position, obtains the current version number of described Launcher;Judge current
Whether version number changes, if current version number does not changes, then starts standby when backing up Activity and being upstate
Part Activity;
Second performs module, for when abnormality mark position not in the presence of, then start main Activity, and intercept Launcher and run
Anomalous event.
The recovery system of Launcher operation exception in Android system the most according to claim 7, it is characterised in that it also wraps
Include:
Second detection module, is used for starting timer, whether disposes AKU at interval of scheduled time detection server;Work as detection
During to server disposition AKU, download and AKU is installed, being then shut off timer, restarting Launcher process.
The restoration methods of Launcher operation exception in Android system the most according to claim 7, it is characterised in that described
One performs module is additionally operable to:
When current version number changes, the abnormality mark position of clearing systems anomalous event, and by described backup Activity's
State changes to disabling, restarts Launcher process.
The recovery system of Launcher operation exception in Android system the most according to claim 6, it is characterised in that described
Intercept module to include:
Start unit, is used for starting Launcher process;
Whether upgrade unit, dispose AKU in being used for detecting server, when disposing AKU, downloads and installs AKU,
Restart Launcher process;When not disposing AKU, terminate upgrading;
Intercept unit, be used for intercepting Launcher operation exception event.
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 true CN106095621A (en) | 2016-11-09 |
CN106095621B 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) |
Cited By (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 |
CN107766222A (en) * | 2017-10-31 | 2018-03-06 | 努比亚技术有限公司 | Blank screen detection method, mobile terminal and computer-readable recording 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 |
CN108664252A (en) * | 2017-03-27 | 2018-10-16 | Tcl集团股份有限公司 | A kind of desktop starter restoration methods based on android system and system |
CN108958980A (en) * | 2018-07-23 | 2018-12-07 | Oppo(重庆)智能科技有限公司 | Prevent method, electronic device and the computer readable storage medium of Activity life cycle exception |
CN110457154A (en) * | 2019-07-25 | 2019-11-15 | Oppo广东移动通信有限公司 | Exception service processing method and processing device, storage medium, communication terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020054151A1 (en) * | 2000-05-25 | 2002-05-09 | Shoji Inomata | Information processing method and apparatus and medium |
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 |
-
2016
- 2016-06-12 CN CN201610411399.1A patent/CN106095621B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020054151A1 (en) * | 2000-05-25 | 2002-05-09 | Shoji Inomata | Information processing method and apparatus and medium |
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 |
Cited By (9)
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 |
CN107766222A (en) * | 2017-10-31 | 2018-03-06 | 努比亚技术有限公司 | Blank screen detection method, mobile terminal and computer-readable recording 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 |
CN108958980A (en) * | 2018-07-23 | 2018-12-07 | Oppo(重庆)智能科技有限公司 | Prevent method, electronic device and the computer readable storage medium of Activity life cycle exception |
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 |
CN110457154A (en) * | 2019-07-25 | 2019-11-15 | Oppo广东移动通信有限公司 | Exception service processing method and processing device, storage medium, communication terminal |
CN110457154B (en) * | 2019-07-25 | 2023-12-22 | Oppo广东移动通信有限公司 | Abnormal service processing method and device, storage medium and communication terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106095621B (en) | 2019-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106095621A (en) | The restoration methods of Launcher operation exception and system in a kind of Android system | |
US9146839B2 (en) | Method for pre-testing software compatibility and system thereof | |
CN111338854B (en) | Kubernetes cluster-based method and system for quickly recovering data | |
US7263632B2 (en) | Programmatic computer problem diagnosis and resolution and automated reporting and updating of the same | |
WO2019019668A1 (en) | Application startup method and device, computer apparatus, and storage medium | |
US20110167300A1 (en) | Device driver rollback | |
US8341648B1 (en) | Automatic virtualization based on user-defined criteria | |
KR20080082623A (en) | Metadata driven deployment of applications | |
US20220129256A1 (en) | Android penetration method and device for implementing silent installation based on accessibility services | |
CN103345411A (en) | Method and device for uninstalling application program | |
CN110647333A (en) | Firmware upgrading method and equipment configured to upgrade firmware therein | |
CN102999343A (en) | Method and device for forbidding self-starting of startup project | |
CN103019764B (en) | The detection method of Andriod resource bag installability and system | |
WO2020010725A1 (en) | Method and apparatus for automatically synchronously refreshing browser, and computer device | |
US20200233744A1 (en) | System and Methods for Diagnosing and Repairing a Smart Mobile Device by Disabling Components | |
CN103970564A (en) | Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions | |
CN112199284A (en) | Program automation testing method and corresponding device, equipment and medium | |
JP6198229B2 (en) | Installation engine and package format for parallelizable and reliable installation | |
CN111090546B (en) | Method, device and equipment for restarting operating system and readable storage medium | |
WO2016082450A1 (en) | Method for upgrading user terminal, and user terminal | |
CN104360880A (en) | Application installing method and electronic equipment | |
CN113032183A (en) | System management method, device, computer equipment and storage medium | |
CN106933604B (en) | System upgrading method and device | |
EP4220406B1 (en) | Action undo service based on cloud platform | |
WO2016131294A1 (en) | Version upgrade processing method and device |
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 |