[Android Software Development] Android-Andi:
# remove TrueType fonts

TW_DISABLE_TTF:= true

# building of an OEM friendly TWRP. excludes SuperSu, uses Toolbox instead busybox, disables themeing. MORE INFOS TO BE ADDED

TW_OEM_BUILD := true

# Adds EXT4 formatting binaries

TARGET_USERIMAGES_USE_EXT4 := true

# exclude mtp from twrp (disable if you are not able to fix it device/kernel side, safes some space)

TW_EXCLUDE_MTP := true

# screen will stay awake

TW_NO_SCREEN_TIMEOUT := true

# needed on devices without a recovery partition (some devices have recovery included im boot.img)

TW_HAS_NO_RECOVERY_PARTITION := true

# removes the reboot option to boot into boooader, needed e.g. on samsung devices which use Download mode instead

TW_NO_REBOOT_BOOTLOADER := true

# add an option in reboot menu to reboot into Download Mode

TW_HAS_DOWNLOAD_MODE := true

# some devices don't have a temp sensor, disable in such case to stop spamming recovery.log

TW_NO_CPU_TEMP := true

# recursive delete by default instead fotmatting (available optional inside recovery settings too)

TW_ALWAYS_RMRF := true

# system won't be unmounted,

TW_NEVER_UNMOUNT_SYSTEM := true

# don't blank screen (available optional inside recovery settings too)

TW_NO_SCREEN_BLANK := true

# deprecated, use TW_INCLUDE_CRYPTO instead

TW_INCLUDE_JB_CRYPTO := true

# add support for encryption

TW_INCLUDE_CRYPTO := true

# use a custom init.rc in recovery, add the path. Example:

TARGET_RECOVERY_INITRC := device/samsung/p3100/rootdir/init.twrp.rc

# ToyBox (disables busybox?)

TW_USE_TOOLBOX := true

# exclude SuperSu e.g. to save some space or for different other reasons (supersu still included bx default?)

TW_EXCLUDE_SUPERSU := true

# include f2fs support (make sure your kernel supports f2fs!)

TARGET_USERIMAGES_USE_F2FS := true

# device resolution - deprecated, use TW_THEME instead

DEVICE_RESOLUTION :=

# define the theme for your device resolution, note: you can also use smaller/bigger themes because the theme get scaled for your deviceresolution anyway):

# 240x240 280x280 320x320

TW_THEME := watch_mdpi

# 320x480 480x800 480x854 540x960

TW_THEME := portrait_mdpi

# 720x1280 800x1280 1080x1920 1200x1920 1440x2560 1600x2560

TW_THEME := portrait_hdpi

# 800x480 1024x600 1024x768

TW_THEME := landscape_mdpi

# 1280x800 1920x1200 2560x1600

TW_THEME := landscape_hdpi

# auto copy files placed in device/$VENDOR/$DEVICENAME/recovery/root inside recovery ramdisk (e.g. init.recivery*.rc which get removed from recoveryramdisk by default). example:

TARGET_RECOVERY_DEVICE_DIRS += device/samsung/espresso-common

# path to a prebuild kernel (can be used if you are unable to compile a kernel yourself, e.g. if no kernel source available)

TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/prebuilt/zImage

# swap x anf y axis for touch

RECOVERY_TOUCHSCREEN_SWAP_XY := true

# flip x axis for touch

RECOVERY_TOUCHSCREEN_FLIP_X := true

# flip y axis for touch,

RECOVERY_TOUCHSCREEN_FLIP_Y := true

Gesendet von meinem LG-H815 mit Tapatalk

---------- Post added at 05:23 PM ---------- Previous post was at 05:19 PM ----------

# don't include default init.recovery.usb.rc, provide your own or use needed defines inside init.recovery.$DEVICE.rc

TW_EXCLUDE_DEFAULT_USB_INIT := true

Gesendet von meinem LG-H815 mit Tapatalk