Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions BoardConfigPlatform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ TARGET_2ND_CPU_VARIANT := generic
TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a73

### KERNEL
TARGET_KERNEL_SOURCE := kernel/sony/msm8998
TARGET_KERNEL_VERSION := 4.4

BOARD_KERNEL_CMDLINE += user_debug=31
BOARD_KERNEL_CMDLINE += ehci-hcd.park=3
BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1
Expand All @@ -54,6 +57,8 @@ BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 4096

BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb

### PARTITIONS
# See also /proc/partitions on the devices
BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
Expand Down Expand Up @@ -84,9 +89,6 @@ PLATFORM_VERSION := 99.87.36
PLATFORM_VERSION_LAST_STABLE := $(PLATFORM_VERSION)
PLATFORM_SECURITY_PATCH := 2099-12-31
TW_INCLUDE_CRYPTO := true
ifneq ($(filter maple maple_dsds, $(TARGET_DEVICE)),)
TW_INCLUDE_RESETPROP := true
endif

# QSEECOMD DEPENDENCIES
TARGET_RECOVERY_DEVICE_MODULES += libxml2
Expand Down Expand Up @@ -125,7 +127,7 @@ TW_MAX_BRIGHTNESS := 4095
TW_DEFAULT_BRIGHTNESS := 1600

## SDCARD PARTITIONING DISABLED
BOARD_HAS_NO_REAL_SDCARD := true
#BOARD_HAS_NO_REAL_SDCARD := true

## TOOLBOX
TW_USE_TOOLBOX := true
Expand All @@ -134,6 +136,8 @@ TW_USE_TOOLBOX := true
TW_EXCLUDE_SUPERSU := true
TW_EXCLUDE_TWRPAPP := true
TW_EXTRA_LANGUAGES := true
TW_HAS_EDL_MODE := true
TW_USE_LEGACY_BATTERY_SERVICES := true
TW_THEME := portrait_hdpi

### USB
Expand Down
2 changes: 1 addition & 1 deletion recovery/init.recovery.usb.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ on boot
setprop vendor.usb.rndis.func.name "rndis_bam"
setprop vendor.usb.rmnet.func.name "rmnet_bam"

setprop sys.usb.config adb
setprop sys.usb.config mtp,adb

# USB compositions
on property:sys.usb.config=none
Expand Down