diff options
author | Nick Kralevich <nnk@google.com> | 2014-10-22 18:38:48 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2014-10-22 21:43:08 -0700 |
commit | a9ad0324d1e351b1ef460972a871bcb03051cd6a (patch) | |
tree | 0ec69c2bc716a91753d6b666b7a554b667bd4990 /default_device.cpp | |
parent | a6e13ae01bff5109361868f565187f16d045c82d (diff) | |
download | bootable_recovery-a9ad0324d1e351b1ef460972a871bcb03051cd6a.zip bootable_recovery-a9ad0324d1e351b1ef460972a871bcb03051cd6a.tar.gz bootable_recovery-a9ad0324d1e351b1ef460972a871bcb03051cd6a.tar.bz2 |
Make /cache/recovery/last_log available in recovery
Create a new recovery UI option to allow the user to view
/cache/recovery/last_log for their device. This gives enhanced
debugging information which may be necessary when a failed
OTA occurs.
Bug: 18094012
Change-Id: Ic3228de96e9bfc2a0141c7aab4ce392a38140cf3
Diffstat (limited to 'default_device.cpp')
-rw-r--r-- | default_device.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/default_device.cpp b/default_device.cpp index a25f05f..97806ac 100644 --- a/default_device.cpp +++ b/default_device.cpp @@ -31,6 +31,7 @@ static const char* ITEMS[] = {"reboot system now", "wipe cache partition", "reboot to bootloader", "power down", + "view recovery logs", NULL }; class DefaultDevice : public Device { @@ -69,6 +70,7 @@ class DefaultDevice : public Device { case 3: return WIPE_CACHE; case 4: return REBOOT_BOOTLOADER; case 5: return SHUTDOWN; + case 6: return READ_RECOVERY_LASTLOG; default: return NO_ACTION; } } |