From d530449e54bd327e9c26209ffa0490c6508afe6c Mon Sep 17 00:00:00 2001 From: Sen Jiang Date: Fri, 9 Dec 2016 16:20:49 -0800 Subject: Add a stub recovery UI. This allows recovery to work on devices without screen. The stub recovery UI does nothing except print to stdout. Test: write 'recovery\n--wipe_data\n--reason=wipe_data_from_ota\n' to misc and boot to recovery on a device without screen. Bug: 33175036 Change-Id: Icde698aa2e2e29f4b3d0532dfd3c6a939ac2bc63 --- ui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 82d95a346..be95a4e23 100644 --- a/ui.h +++ b/ui.h @@ -28,8 +28,8 @@ class RecoveryUI { virtual ~RecoveryUI() { } - // Initialize the object; called before anything else. - virtual void Init(); + // Initialize the object; called before anything else. Returns true on success. + virtual bool Init(); // Show a stage indicator. Call immediately after Init(). virtual void SetStage(int current, int max) = 0; -- cgit v1.2.3