Starting using TOOLBOX instead of BUSYBOX
[GitHub/moto-9609/twrp_device_motorola_troika.git] / BoardConfig.mk
index 595794b2f9981b6103286ea52884a13b4fd24fa9..3a717fe12e65edf8ab64dbe2e2e71733bb5f134d 100644 (file)
@@ -79,7 +79,7 @@ BOARD_HAS_NO_SELECT_BUTTON := true
 BOARD_HAS_NO_REAL_SDCARD := true
 RECOVERY_SDCARD_ON_DATA := true
 TARGET_RECOVERY_QCOM_RTC_FIX := true
-TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
+TW_BRIGHTNESS_PATH := "/sys/class/backlight/panel0-backlight/brightness"
 TW_EXCLUDE_DEFAULT_USB_INIT := true
 TW_EXCLUDE_SUPERSU := true
 TW_EXTRA_LANGUAGES := true
@@ -88,11 +88,14 @@ AB_OTA_UPDATER := true
 BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
 TW_INPUT_BLACKLIST := "hbtp_vm"
 TW_MAX_BRIGHTNESS := 1023
-TW_THEME := portrait_hdpi
+TW_THEME := portrait_hdpi   # set portrait_hdpi_notch to use the notch theme (and finally see the clock)
 TARGET_RECOVERY_DEVICE_MODULES += android.hardware.boot@1.0
 #TW_RECOVERY_ADDITIONAL_RELINK_FILES := ${OUT}/system/lib64/android.hardware.boot@1.0.so
+TARGET_USE_CUSTOM_LUN_FILE_PATH := "/config/usb_gadget/g1/functions/mass_storage.0/lun.%d/file"
 TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888
 TW_NO_SCREEN_BLANK := true
+TW_USE_TOOLBOX := true
+TW_NO_LEGACY_PROPS := true
 
 # Encryption
 PLATFORM_SECURITY_PATCH := 2025-12-31
@@ -102,5 +105,6 @@ TW_INCLUDE_CRYPTO_FBE := true
 # Extras
 BOARD_SUPPRESS_SECURE_ERASE := true
 TW_USE_LEDS_HAPTICS := true
-#TW_USE_TOOLBOX := true
 TW_EXCLUDE_TWRPAPP := true
+USE_RECOVERY_INSTALLER := true
+RECOVERY_INSTALLER_PATH := device/oneplus/fajita/installer