Android Factory Data Reset
今天看了看Android做Master Clear的过程,记录如下:
1. Call function RecoverySystem.rebootWipeUserData().
2. Save the parameter –wipe_date into /cache/recovery/command.
3. Do PowerManager.reboot() and reboot into Recovery model. Recovery source code is /bootable/recovery
4. Recovery kernel read parameter from /cache/recovery/command then call function wipe_data();
5. Execute function format_volume() to clear “/data” and “/cache” partitions.
6. Eventually, the function mtd_write_partition() is called to re-build the data and cache partitions.
7. Then do reboot to launch the normal power on.
浙公网安备 33010602011771号