RAM Self-Refresh Mode for Android Soft Reset Log Preservation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
During a global reset in an Android operating system, the existing method results in the loss of the running log stored in RAM, as the power management unit is reset, causing the RAM to power off and on, which prevents analysis of system exceptions.
Innovation Solution
Configuring the RAM to work in self-refresh mode during a running exception, performing a reset on the application processor while keeping the power management unit operational, and then saving the running log from RAM after the reset is complete.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If a global reset is performed on the Android operating system to eliminate exceptions, then the system can be reset and exceptions eliminated, but the running log stored in RAM is lost due to power-off and power-on of the RAM
Solution Approach 1:
The patent divides the reset operation into two independent parts: resetting the application processor (AP) and keeping the power management unit (PMU) operational. This segmentation allows the AP to be restarted to eliminate exceptions while the PMU maintains power supply to the RAM, preventing log data loss. The reset signal is selectively applied only to the AP, not to the entire system including the PMU and RAM.
Solution Approach 2:
The patent extracts the reset function from the entire system and applies it only to the application processor. By separating the reset operation from the power management unit, the solution removes the harmful effect (power-off/power-on cycle) from the system while preserving the beneficial effect (exception elimination). The PMU is extracted from the reset process, allowing it to continue managing power without causing RAM data loss.
2Adaptability or versatility
If the power management unit is reset during a global reset, then the system can be fully restarted, but the random access memory powers off and on causing data loss
Solution Approach 1:
The patent applies local quality by providing different treatment to different components during the reset process. The application processor receives the reset signal and is fully restarted, while the power management unit does not receive the reset signal and continues operating normally. This differential treatment allows the system to restart the AP for exception elimination while maintaining continuous power supply to the RAM for data preservation.
Solution Approach 2:
Instead of the conventional approach where the entire system including PMU is reset, the patent inverts the approach by resetting only the AP and keeping the PMU operational. This inversion of the traditional global reset sequence prevents the PMU from causing power-off/power-on cycles in the RAM, thereby avoiding data loss while still achieving system restart capability.
Data Source
AI summary
Embodiments of the present application disclose a method for saving a running log, including: when a running exception occurs in an operating system, configuring that a random access memory adapted to record a running log of the operating system works in a self-refresh mode; performing reset on an application processor of the operating system and keeping a power management unit working normally, where the power management unit is adapted to manage power of the application processor and the random access memory; acquiring the running log of the operating system from the random access memory and saving the running log of the operating system, after reset of the application processor is completed. The embodiments of the present application further disclose a device. By adopting the present application, it can be ensured that a log is saved completely during a preset process of the system.


