Android Recovery

From OMAPpedia

Jump to: navigation, search

[edit] Omap Android Recovery System

On Blaze, pressing down the "green" key while booting the system gets one into the recovery mode. Recovery mode allows one to issue the following commands:

erase /data 
erase /cache
apply update.zip from /sdcard

This mode can also be entered from the Android UI:

Settings -> Privacy -> Factory data reset

These patches are pending to be merged for Recovery UI to work on blaze:

http://review.omapzoom.org/#change,12242
http://review.omapzoom.org/#change,12325

Test Application to invoke recovery manually:

http://review.omapzoom.org/#change,12319

New interface is added to bootloader to allow entry into recovery mode. This is especially useful for devices that do not have any keys (thus no special key presses to enter recovery):

fastboot oem recovery

Java Interface being exercised for Android Recovery system are in:

frameworks/base/core/java/android/os/RecoverySystem.java

API to write to /cache/recovery/command file:

private static void bootCommand(Context context, String arg)

API used to pass update.zip information:

public static void installPackage(Context context, File packageFile)

API to reset userdata:

public static void rebootWipeUserData(Context context)

Example NexusS recovery procedure:

http://androidadvices.com/nexus-s-steps-install-android-gingerbread-os/

[edit] Some pictures of Recovery UI On TI Blaze board

2011-03-22 19-27-25 273-II.jpg


2011-03-22 19-27-42 876-III.jpg

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox