Android Recovery

From OMAPpedia

(Difference between revisions)
Jump to: navigation, search
(Omap Android Recovery System)
(Omap Android Recovery System)
 
Line 1: Line 1:
==Omap Android Recovery System==
==Omap Android Recovery System==
-
On Blaze, keeping "Green" key pressed and booting the system, gets one into recovery mode.
+
On Blaze, pressing down the "green" key while booting the system gets one into the recovery mode.
-
Recovery mode allows to:
+
Recovery mode allows one to issue the following commands:
  erase /data  
  erase /data  
  erase /cache
  erase /cache
  apply update.zip from /sdcard
  apply update.zip from /sdcard
-
This mode can also be entered from Android UI:
+
This mode can also be entered from the Android UI:
  Settings -> Privacy -> Factory data reset
  Settings -> Privacy -> Factory data reset
-
Patches pending to be merged for Recovery UI to work on blaze:
+
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,12242
  http://review.omapzoom.org/#change,12325
  http://review.omapzoom.org/#change,12325
Line 17: Line 17:
  http://review.omapzoom.org/#change,12319
  http://review.omapzoom.org/#change,12319
-
New interface is added to bootloader to allow enter into recovery mode, especially for
+
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)
+
devices that do not have any keys (thus no special key presses to enter recovery):
-
fastboot oem recovery
+
-
Java Interface getting exercised for Android Recovery system are in:
+
:fastboot oem recovery
-
frameworks/base/core/java/android/os/RecoverySystem.java
+
-
API to write to /cache/recovery/command file:
+
Java Interface being exercised for Android Recovery system are in:
-
private static void bootCommand(Context context, String arg)
+
:frameworks/base/core/java/android/os/RecoverySystem.java
-
API used to pass update.zip information:
+
API to write to /cache/recovery/command file:
-
public static void installPackage(Context context, File packageFile)
+
:private static void bootCommand(Context context, String arg)
-
API to reset userdata:
+
API used to pass update.zip information:
-
public static void rebootWipeUserData(Context context)
+
:public static void installPackage(Context context, File packageFile)
 +
 
 +
API to reset userdata:
 +
:public static void rebootWipeUserData(Context context)
Example NexusS recovery procedure:
Example NexusS recovery procedure:
-
http://androidadvices.com/nexus-s-steps-install-android-gingerbread-os/
+
:http://androidadvices.com/nexus-s-steps-install-android-gingerbread-os/
==Some pictures of Recovery UI On TI Blaze board==
==Some pictures of Recovery UI On TI Blaze board==

Latest revision as of 17:09, 3 April 2011

[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