forked from huckleberrypie/device_Mattel_NabiSE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfig.mk
40 lines (34 loc) · 1.51 KB
/
BoardConfig.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
TARGET_ARCH := arm
TARGET_CPU_ABI := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a9
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_FLASH_BLOCK_SIZE := 131072
TARGET_PREBUILT_KERNEL := device/Mattel/NabiSE/kernel
BOARD_MKBOOTIMG_ARGS := --base 80000000 --pagesize 2048 --kernel_offset 00008000 --ramdisk_offset 04000000 --tags_offset 06900000 --board 3.0.10
#Dem magic numbers tho.
#MTK common twrp flags
TW_NO_EXFAT := true
TWHAVE_SELINUX := true
#TW_USE_TOOLBOX := true
TW_NO_EXFAT_FUSE := true
TW_THEME := portrait_mdpi
#RECOVERY_SDCARD_ON_DATA := true
# Max brightness to prevent display damage
TW_MAX_BRIGHTNESS := 160
# Default brightness for TWRP
TW_DEFAULT_BRIGHTNESS := 120
TW_INCLUDE_FB2PNG := true
TWRP_INCLUDE_LOGCAT := true
DEVICE_RESOLUTION := 1024x600
#Workaround for flipped touch input. May need to clean out folder for it to take effect on compile time
RECOVERY_TOUCHSCREEN_SWAP_XY := true
RECOVERY_TOUCHSCREEN_FLIP_Y := true
#The SE comes with encryption permanently enabled by default.
#Perhaps patching the kernel to defeat forced encryption would do the trick
#Problem is whilst Magisk has that ability, it is seemingly unable to edit boot.img for whatever reason
#Magisk Manager churns out an apparently corrupted image; may have to report it for a definite fix
TW_INCLUDE_CRYPTO := true
TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/mt_usb/gadget/lun%d/file"
BOARD_CUSTOM_BOOTIMG_MK := device/Mattel/NabiSE/boot.mk