# Recovery # Uncomment RECOVERY_VARIANT to build twrp #RECOVERY_VARIANT=twrp # TWRP stuff ifeq ($(RECOVERY_VARIANT), twrp) #M2Note: Flip the screen 180deg BOARD_HAS_FLIPPED_SCREEN := true TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_8888" DEVICE_RESOLUTION := 1080x1920 DEVICE_SCREEN_WIDTH := 1080 DEVICE_SCREEN_HEIGHT := 1920 TARGET_RECOVERY_LCD_BACKLIGHT_PATH := \"/sys/class/leds/lcd-backlight/brightness\" BOARD_HAS_NO_SELECT_BUTTON := true TW_NO_REBOOT_BOOTLOADER := true TARGET_RECOVERY_FSTAB := device/meizu/m2note/rootdir/recovery.fstab #TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/etc/twrp.fstab TW_THEME := portrait_hdpi TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness TW_CUSTOM_CPU_TEMP_PATH := /sys/devices/virtual/thermal/thermal_zone1/temp TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true RECOVERY_GRAPHICS_USE_LINELENGTH := true RECOVERY_SDCARD_ON_DATA := true TW_INTERNAL_STORAGE_PATH := "/data/media" TW_INTERNAL_STORAGE_MOUNT_POINT := "data" TW_EXTERNAL_STORAGE_PATH := "/external_sd" TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_sd" TW_DEFAULT_EXTERNAL_STORAGE := true TW_MAX_BRIGHTNESS := 255 BOARD_SUPPRESS_SECURE_ERASE := true TW_INCLUDE_CRYPTO := true TW_CRYPTO_FS_TYPE := "ext4" TW_CRYPTO_REAL_BLKDEV := "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/userdata" # i think this isn't used anymore TW_CRYPTO_MNT_POINT := "/data" TW_CRYPTO_FS_OPTIONS := "nosuid,nodev,noatime,discard,noauto_da_alloc,data =ordered" TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness TW_MAX_BRIGHTNESS := 255 TW_NO_USB_STORAGE := true BOARD_USE_FRAMEBUFFER_ALPHA_CHANNEL := true TARGET_DISABLE_TRIPLE_BUFFERING := false TW_USE_TOOLBOX := true else # CWM BOARD_HAS_NO_SELECT_BUTTON := true BOARD_RECOVERY_SWIPE := true BOARD_SUPPRESS_EMMC_WIPE := true BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_15x24.h\" TARGET_RECOVERY_FSTAB := device/meizu/m2note/rootdir/recovery.fstab TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_8888" TARGET_USERIMAGES_USE_EXT4 := true endif