CN111324490B - Android advertisement machine system recovery method - Google Patents
Android advertisement machine system recovery method Download PDFInfo
- Publication number
- CN111324490B CN111324490B CN202010192300.XA CN202010192300A CN111324490B CN 111324490 B CN111324490 B CN 111324490B CN 202010192300 A CN202010192300 A CN 202010192300A CN 111324490 B CN111324490 B CN 111324490B
- Authority
- CN
- China
- Prior art keywords
- android
- time
- threshold
- restarting
- recovery
- 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
Images
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
-
- 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/0703—Error 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/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/076—Error or fault detection not based on redundancy by exceeding limits by exceeding a count or rate limit, e.g. word- or bit count limit
-
- 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/0703—Error 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/0793—Remedial or corrective actions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Retry When Errors Occur (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to a recovery method of an android advertising machine system, which is characterized in that when an advertising machine system captures that system equipment fails, a self-recovery program is carried out, wherein the self-recovery program is carried out in the following manner, firstly, the system is restarted, then, the system is restarted to enter a recovery mode, a designated partition is formatted, and finally, damaged data is deleted and restarted.
Description
Technical Field
The invention relates to a system recovery method, in particular to a solution for solving the problem that the system cannot be normally accessed due to data damage of an android advertisement machine system, which can realize the self-recovery method when the android advertisement machine cannot access the system due to the fact that a data file is damaged.
Background
With the rapid development of economy in recent years, the demand for intelligent devices is also increasing. In particular to an intelligent advertisement machine, the intelligent advertisement machine has the characteristics of functional diversity and wide application scene, and is widely applied to high-value commercial areas such as medical industry, retail industry, informatization construction of universities, squares, pedestrian streets, subways, museums, airports and the like to see the body and the shadow of the intelligent equipment, particularly the advertisement machine.
For many intelligent devices, a large part of products are intelligent electronic devices without shutdown keys, such as advertising machines, face gates, face recognition and the like, so that a problem exists, when a system caused by external factors suddenly fails to power or the device caused by human factors is powered off, an android system can possibly cause damage to a data file system under the condition, if the damaged file is data required by the system, the phenomenon that the system cannot be started normally can occur, and normal use of a terminal client can be influenced to a great extent, so that the method is a main disadvantage of the traditional technology.
Disclosure of Invention
The technical scheme adopted by the invention is as follows: when the advertiser system captures that the system equipment fails, a self-recovery program is carried out, wherein the self-recovery program is carried out in the following manner, firstly, the system is restarted, then, the system is restarted to enter a recovery mode, a designated partition is formatted, and finally, damaged data is deleted and restarted.
When the system is operated, the system is started according to the following steps, the monitoring service is started in the first step, the system is started in the second step, the system is started in the third step, the starting animation is started in the fourth step, the system records the time from the starting animation to the entering of the desktop, the time of the fourth step is compared with the threshold time in the fifth step, the threshold time is 180 seconds, when the time of the fourth step of the system is smaller than the threshold time, the system clears the restarting number, then the system enters the desktop, when the time of the fourth step of the system is larger than the threshold time and the system cannot be started, the system is started in the sixth step, the system records the restarting number, the seventh step, the system compares the restarting number of the sixth step with the threshold number, the threshold number is larger than three, preferably five times, when the restarting number of the sixth step of the system is smaller than the threshold number, the system is restarted, and enters the first step, when the restarting number of the sixth step is larger than the threshold number of the system is reset, the system is reset to leave factory, when the system is still set, and the system enters the first cycle after the restarting number is started.
The beneficial effects of the invention are as follows: for many intelligent devices, a large part of products are intelligent electronic devices without shutdown keys, such as advertising machines, face gates, face recognition and the like, so that a problem exists, when a system is suddenly powered off due to external factors or the device is powered off due to human factors, an android system can possibly cause damage to a data file system, if the damaged file is data required by the system, the phenomenon that the system cannot be started normally can occur, normal use of a terminal client can be influenced to a great extent, and in order to avoid the situation that the system cannot be started due to special reasons such as upgrading abnormality, data abnormality and the like, a system fault recovery mechanism is added on the platform, and the system can be automatically recovered when the fault occurs, so that normal starting of the system is not influenced, the equipment returning maintenance can be reduced to a great extent, and the user experience of the terminal client is perfected.
Drawings
Fig. 1 is a schematic block diagram of the present invention.
Detailed Description
As shown in FIG. 1, in the android advertiser system recovery method, when the advertiser system captures that the system equipment fails, a self-recovery program is performed, and the self-recovery program is performed in the following manner, firstly, the system is restarted, then, the system is restarted to enter a recovery mode, a designated partition is formatted, and finally, damaged data is deleted and restarted.
When the system works, the method comprises the following steps of starting the system, starting the monitoring service by the system, entering the starting animation by the system, and recording the time from the starting animation to the desktop by the system.
And fifthly, comparing the time of the fourth step with a threshold time, wherein the threshold time is 180 seconds, when the time of the fourth step is smaller than the threshold time, clearing the restarting times, then entering the desktop by the system, and when the time of the fourth step is larger than the threshold time and still not entering the system, performing the following steps.
And sixthly, recording the restarting times by the system.
And seventh, comparing the restarting times of the sixth step with the threshold times, wherein the threshold times are more than three times, preferably five times, restarting the system when the restarting times of the sixth step of the system are less than the threshold times, entering the first step, restoring the factory setting when the restarting times of the sixth step of the system are greater than the threshold times, entering the first step after the restarting times are cleared, and circulating in this way.
In specific implementation, in the android advertiser system, a bootanimation process is created when the first-step starting system is started, the process is used for controlling animation display in the starting process, graphics is initialized after the surfaceflinger process in the system operates, and then startBootAnim is called to play the starting animation. The bootanimation process controls a service, bootanim, exit attribute, and sets the service, bootanim, exit attribute to 0 when the system runs each time, and periodically checks, and exits the animation when the service, bootanim, exit attribute is set to 1, so as to enter the system, otherwise, stay in the startup animation.
The present invention makes use of the service. When the time of starting the system is detected to be longer, whether the system can be started or not is judged, a threshold F is set, and if the system is not started for N times continuously, namely N > F, the system is considered to be in a fault mode at the moment, and self-recovery is needed.
Claims (5)
1. A method for recovering an android advertisement machine system is characterized by comprising the following steps of:
when the advertiser system captures that the system equipment fails, a self-recovery program is performed, wherein the self-recovery program is performed in a manner that firstly, the system is restarted, then the system is restarted to enter a recovery mode, a designated partition is formatted, finally, the damaged data is deleted and restarted,
in operation, the method is carried out according to the following steps,
the first step is that the system is started up,
secondly, the system starts the monitoring service,
thirdly, entering a startup animation,
fourth, the system records the time from starting up the animation to entering the desktop,
fifth, the system compares the time of the fourth step with the threshold time,
when the time of the fourth step of the system is less than the threshold time, the system clears the restart times, and then the system enters the desktop,
when the time of the fourth step of the system is greater than the threshold time and the system still cannot be entered, the following steps are performed,
sixthly, the system records the restarting times,
seventh, the system compares the restarting times of the sixth step with the threshold times,
when the number of restarting times in the sixth step of the system is smaller than the threshold number, restarting the system, entering the first step,
when the number of restarting times in the sixth step of the system is larger than the threshold number, the system is restored to factory setting, and enters the first step after the number of restarting times is cleared, and the system is circulated in this way.
2. The android advertiser system recovery method of claim 1, wherein: in the android advertisement machine system, a bootanimation process is created when the first step of starting the system is carried out, the process is used for controlling animation display in the starting process, graphics are initialized after the surfacinger process in the system runs, then startBootAnim is called to play the starting animation, the bootanim process is used for controlling a service.
3. The android advertiser system recovery method of claim 1, wherein: the threshold time in the fifth step is 180 seconds.
4. The android advertiser system recovery method of claim 1, wherein: in the seventh step, the threshold number of times is greater than three.
5. The android advertiser system recovery method of claim 4, wherein: the threshold number is preferably five.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010192300.XA CN111324490B (en) | 2020-03-18 | 2020-03-18 | Android advertisement machine system recovery method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010192300.XA CN111324490B (en) | 2020-03-18 | 2020-03-18 | Android advertisement machine system recovery method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111324490A CN111324490A (en) | 2020-06-23 |
CN111324490B true CN111324490B (en) | 2023-05-12 |
Family
ID=71167672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010192300.XA Active CN111324490B (en) | 2020-03-18 | 2020-03-18 | Android advertisement machine system recovery method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111324490B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113806139B (en) * | 2021-06-15 | 2023-04-07 | 荣耀终端有限公司 | Operating system recovery method, operating system recovery device, storage medium and computer program product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591745A (en) * | 2011-12-26 | 2012-07-18 | Tcl集团股份有限公司 | Method and device for system recovery based on android system and intelligent equipment |
CN103826162A (en) * | 2014-02-28 | 2014-05-28 | 深圳市佳创视讯技术股份有限公司 | Embedded system of intelligent set top box based on Android and recovery method of embedded system |
CN106598618A (en) * | 2016-12-21 | 2017-04-26 | Tcl集团股份有限公司 | Method and system for realizing shutdown advertisement on the basis of Android system |
CN110543376A (en) * | 2019-08-02 | 2019-12-06 | 上海绿联软件股份有限公司 | Android system equipment fault self-repairing method and android system equipment |
-
2020
- 2020-03-18 CN CN202010192300.XA patent/CN111324490B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591745A (en) * | 2011-12-26 | 2012-07-18 | Tcl集团股份有限公司 | Method and device for system recovery based on android system and intelligent equipment |
CN103826162A (en) * | 2014-02-28 | 2014-05-28 | 深圳市佳创视讯技术股份有限公司 | Embedded system of intelligent set top box based on Android and recovery method of embedded system |
CN106598618A (en) * | 2016-12-21 | 2017-04-26 | Tcl集团股份有限公司 | Method and system for realizing shutdown advertisement on the basis of Android system |
CN110543376A (en) * | 2019-08-02 | 2019-12-06 | 上海绿联软件股份有限公司 | Android system equipment fault self-repairing method and android system equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111324490A (en) | 2020-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102394774B (en) | Service state monitoring and failure recovery method for controllers of cloud computing operating system | |
CN111324490B (en) | Android advertisement machine system recovery method | |
CN105117246A (en) | Method for rapidly booting electronic equipment | |
CN104102559B (en) | A kind of double controller storage system restarting link based on redundancy heart beating link and opposite end | |
CN103729275B (en) | Hard disk firmware repairing system and hard disk firmware repairing method | |
EP2342647A2 (en) | Long-term memory in a video analysis system | |
CN109388556B (en) | Method and device for analyzing test process | |
CN106201690A (en) | Application progress control method and device | |
US11662803B2 (en) | Control method, apparatus, and electronic device | |
CN113079195B (en) | Remote controller and remote control system | |
CN111581021B (en) | Application program starting abnormality repairing method, device, equipment and storage medium | |
CN101207519A (en) | Version server, operation maintenance unit and method for restoring failure | |
EP4224317A1 (en) | Method and apparatus for controlling distributed operation system, and device, medium and program product | |
CN111860302A (en) | Image annotation method and device, electronic equipment and storage medium | |
CN111611106A (en) | System recovery method of face recognition system | |
CN111176897A (en) | Closed BIOS self-repairing method, system, terminal and storage medium | |
CN105938444B (en) | A kind of system state backup and restoration methods based on data double copies mechanism | |
CN107509108B (en) | Method for recovering network type of smart television after restarting in abnormal condition | |
CN107357684A (en) | A kind of kernel failure method for restarting and device | |
CN109117320A (en) | Power distribution automation main station failure disaster tolerance processing system and method based on cloud platform | |
CN114363704A (en) | Video playing method, device, equipment and storage medium | |
CN115103218B (en) | Data stream recovery method and device, equipment and medium thereof | |
TWI658443B (en) | Digital signage system | |
TWI764009B (en) | Maintenance plan generation device, maintenance plan generation method, and maintenance plan generation program product | |
CN115934479B (en) | Interface service control method, device, storage medium and equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |