Add support for building TWRP recovery
This commit is contained in:
+17
-15
@@ -92,21 +92,23 @@ BLOCK_BASED_OTA := false
|
||||
# Vold
|
||||
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/mt_usb/musb-hdrc.0.auto/gadget/lun%d/file
|
||||
|
||||
# Cyanogen recovery
|
||||
DEVICE_RESOLUTION := 800x1280
|
||||
# TWRP
|
||||
RECOVERY_VARIANT := twrp
|
||||
TARGET_RECOVERY_FSTAB := device/amazon/ford/recovery/root/recovery.fstab
|
||||
TARGET_RECOVERY_INITRC := device/amazon/ford/recovery/root/init.rc
|
||||
BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_23x41.h\"
|
||||
BOARD_USES_MMCUTILS := true
|
||||
BOARD_HAS_LARGE_FILESYSTEM := true
|
||||
BOARD_HAS_NO_MISC_PARTITION := true
|
||||
BOARD_HAS_NO_SELECT_BUTTON := true
|
||||
DEVICE_RESOLUTION := 600x1024
|
||||
TW_EXCLUDE_MTP := false
|
||||
RECOVERY_SDCARD_ON_DATA := true
|
||||
TW_INTERNAL_STORAGE_PATH := "/sdcard"
|
||||
TW_INTERNAL_STORAGE_MOUNT_POINT := "/sdcard"
|
||||
TW_EXTERNAL_STORAGE_PATH := "/external_sd"
|
||||
TW_EXTERNAL_STORAGE_MOUNT_POINT := "/external_sd"
|
||||
TW_BRIGHTNESS_PATH := /sys/devices/platform/leds-mt65xx/leds/lcd-backlight/brightness
|
||||
TARGET_RECOVERY_LCD_BACKLIGHT_PATH := /sys/devices/platform/leds-mt65xx/leds/lcd-backlight/brightness
|
||||
RECOVERY_GRAPHICS_USE_LINELENGTH := true
|
||||
TARGET_PREBUILT_RECOVERY_KERNEL := device/amazon/ford/kernel
|
||||
TARGET_RECOVERY_INITRC := device/amazon/ford/recovery/root/init.rc
|
||||
TARGET_RECOVERY_FSTAB := device/amazon/ford/recovery/root/recovery.fstab
|
||||
RECOVERY_FSTAB_VERSION := 2
|
||||
TW_THEME := landscape_mdpi
|
||||
#TWRP_EVENT_LOGGING := true
|
||||
RECOVERY_TOUCHSCREEN_SWAP_XY := true
|
||||
#RECOVERY_GRAPHICS_USE_LINELENGTH := true
|
||||
#RECOVERY_TOUCHSCREEN_FLIP_Y := true
|
||||
RECOVERY_TOUCHSCREEN_FLIP_X := true
|
||||
BOARD_HAS_FLIPPED_SCREEN := true
|
||||
|
||||
# CUSTOM RELEASE TOOLS FOR EXTRA LINKS IN UPDATER-SCRIPT
|
||||
TARGET_RELEASETOOL_OTA_FROM_TARGET_SCRIPT := device/amazon/ford/releasetools/ota_from_target_files
|
||||
|
||||
+14
-5
@@ -9,7 +9,7 @@ on early-init
|
||||
setcon u:r:init:s0
|
||||
|
||||
start ueventd
|
||||
start healthd
|
||||
# start healthd
|
||||
|
||||
on init
|
||||
export PATH /sbin:/system/bin
|
||||
@@ -72,7 +72,7 @@ on boot
|
||||
ifup lo
|
||||
hostname localhost
|
||||
domainname localdomain
|
||||
|
||||
|
||||
class_start default
|
||||
|
||||
# Load properties from /system/ + /factory after fs mount.
|
||||
@@ -107,9 +107,9 @@ service ueventd /sbin/ueventd
|
||||
critical
|
||||
seclabel u:r:ueventd:s0
|
||||
|
||||
service healthd /sbin/healthd -r
|
||||
critical
|
||||
seclabel u:r:healthd:s0
|
||||
#service healthd /sbin/healthd -r
|
||||
# critical
|
||||
# seclabel u:r:healthd:s0
|
||||
|
||||
service recovery /sbin/recovery
|
||||
seclabel u:r:recovery:s0
|
||||
@@ -148,3 +148,12 @@ on property:sys.storage.ums_enabled=0
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/functions adb
|
||||
write /sys/class/android_usb/android0/enable ${service.adb.root}
|
||||
|
||||
|
||||
on property:sys.usb.config=mtp,adb
|
||||
stop adbd
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/functions mtp,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
|
||||
|
||||
@@ -1,27 +1,12 @@
|
||||
# mount point fstype device [device2]
|
||||
|
||||
/dev/block/platform/mtk-msdc.0/by-name/boot /boot emmc defaults defaults
|
||||
/dev/block/platform/mtk-msdc.0/by-name/UBOOT /UBOOT emmc defaults defaults
|
||||
/dev/block/platform/mtk-msdc.0/by-name/TEE1 /TEE1 emmc defaults defaults
|
||||
/dev/block/platform/mtk-msdc.0/by-name/cache /cache ext4 defaults defaults
|
||||
/dev/block/platform/mtk-msdc.0/by-name/userdata /data ext4 defaults defaults,length=-16385
|
||||
/dev/block/platform/mtk-msdc.0/by-name/MISC /misc emmc defaults defaults
|
||||
/dev/block/platform/mtk-msdc.0/by-name/recovery /recovery emmc defaults defaults
|
||||
/dev/block/mmcblk0boot0 /boot0 emmc defaults defaults
|
||||
/dev/block/platform/mtk-msdc.0/by-name/system /system ext4 defaults defaults
|
||||
|
||||
|
||||
|
||||
|
||||
#/boot emmc /dev/block/platform/mtk-msdc.0/by-name/boot
|
||||
#/UBOOT emmc /dev/block/platform/mtk-msdc.0/by-name/UBOOT
|
||||
#/TEE1 emmc /dev/block/platform/mtk-msdc.0/by-name/TEE1
|
||||
#/cache ext4 /dev/block/platform/mtk-msdc.0/by-name/cache
|
||||
#/data ext4 /dev/block/platform/mtk-msdc.0/by-name/userdata
|
||||
#/misc emmc /dev/block/platform/mtk-msdc.0/by-name/MISC
|
||||
#/recovery emmc /dev/block/platform/mtk-msdc.0/by-name/recovery
|
||||
#/boot0 emmc /dev/block/mmcblk0boot0
|
||||
#/system ext4 /dev/block/platform/mtk-msdc.0/by-name/system
|
||||
#/external_sd vfat /dev/block/platform/mtk-msdc.1/mmcblk1p1 /dev/block/platform/mtk-msdc.1/mmcblk1 flags=display="Micro #SDcard";storage;wipeingui;removable
|
||||
#/usb-otg vfat /dev/block/platform/mt_usb/sda1 /dev/block/platform/mt_usb/sda flags=display="USB-#OTG";storage;wipeingui;removable
|
||||
|
||||
/boot emmc /dev/block/platform/mtk-msdc.0/by-name/boot
|
||||
/UBOOT emmc /dev/block/platform/mtk-msdc.0/by-name/UBOOT
|
||||
/TEE1 emmc /dev/block/platform/mtk-msdc.0/by-name/TEE1
|
||||
/cache ext4 /dev/block/platform/mtk-msdc.0/by-name/cache
|
||||
/data ext4 /dev/block/platform/mtk-msdc.0/by-name/userdata
|
||||
/misc emmc /dev/block/platform/mtk-msdc.0/by-name/MISC
|
||||
/recovery emmc /dev/block/platform/mtk-msdc.0/by-name/recovery
|
||||
/boot0 emmc /dev/block/mmcblk0boot0
|
||||
/system ext4 /dev/block/platform/mtk-msdc.0/by-name/system
|
||||
/external_sd vfat /dev/block/platform/mtk-msdc.1/mmcblk1p1 /dev/block/platform/mtk-msdc.1/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable
|
||||
/usb-otg vfat /dev/block/platform/mt_usb/sda1 /dev/block/platform/mt_usb/sda flags=display="USB-OTG";storage;wipeingui;removable
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
ro.sf.lcd_density=160
|
||||
|
||||
#ADB on recovery
|
||||
service.adb.root=1
|
||||
|
||||
#support opengles 2.0 3.0 is 196608
|
||||
ro.opengles.version=131072
|
||||
|
||||
|
||||
Reference in New Issue
Block a user