aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich2014-10-22 20:38:48 -0500
committerNick Kralevich2014-10-22 23:43:08 -0500
commita9ad0324d1e351b1ef460972a871bcb03051cd6a (patch)
tree0ec69c2bc716a91753d6b666b7a554b667bd4990 /default_device.cpp
parenta6e13ae01bff5109361868f565187f16d045c82d (diff)
downloadplatform-bootable-recovery-a9ad0324d1e351b1ef460972a871bcb03051cd6a.tar.gz
platform-bootable-recovery-a9ad0324d1e351b1ef460972a871bcb03051cd6a.tar.xz
platform-bootable-recovery-a9ad0324d1e351b1ef460972a871bcb03051cd6a.zip
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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/default_device.cpp b/default_device.cpp
index a25f05f8..97806ac5 100644
--- a/default_device.cpp
+++ b/default_device.cpp
@@ -31,6 +31,7 @@ static const char* ITEMS[] = {"reboot system now",
31 "wipe cache partition", 31 "wipe cache partition",
32 "reboot to bootloader", 32 "reboot to bootloader",
33 "power down", 33 "power down",
34 "view recovery logs",
34 NULL }; 35 NULL };
35 36
36class DefaultDevice : public Device { 37class DefaultDevice : public Device {
@@ -69,6 +70,7 @@ class DefaultDevice : public Device {
69 case 3: return WIPE_CACHE; 70 case 3: return WIPE_CACHE;
70 case 4: return REBOOT_BOOTLOADER; 71 case 4: return REBOOT_BOOTLOADER;
71 case 5: return SHUTDOWN; 72 case 5: return SHUTDOWN;
73 case 6: return READ_RECOVERY_LASTLOG;
72 default: return NO_ACTION; 74 default: return NO_ACTION;
73 } 75 }
74 } 76 }