From c35c1b079756e239ac4812ea6c4695aa6f710729 Mon Sep 17 00:00:00 2001 From: katao Date: Fri, 8 Dec 2017 11:02:43 +0800 Subject: recovery: Porting screensave mode for new platform. On new board platform the brightness path of sys/class/leds/lcd-backlight is deprecated,instead of /sys/class/backlight/panel0-backlight/. Test: reboot into recovery on sdm845. Change-Id: Idf0027ab888f9f982a8eef7de230ce3635e7c300 Signed-off-by: katao --- ui.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 4086023a..4c54d691 100644 --- a/ui.h +++ b/ui.h @@ -148,6 +148,8 @@ class RecoveryUI { // be configured via subclassing. Setting brightness_normal_ to 0 to disable screensaver. unsigned int brightness_normal_; unsigned int brightness_dimmed_; + std::string brightness_file_; + std::string max_brightness_file_; // Whether we should listen for touch inputs (default: false). bool touch_screen_allowed_; -- cgit v1.2.3-54-g00ecf