Add TWRP recovery

This commit is contained in:
Kamil Trzcinski 2016-09-11 17:03:43 +02:00
parent 0a388ddd8a
commit 640637f72e
5 changed files with 51 additions and 20 deletions

View file

@ -14,24 +14,24 @@
LOCAL_PATH := $(call my-dir)
#######################
include $(CLEAR_VARS)
LOCAL_MODULE := busybox
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_CLASS := FAKE
include $(BUILD_PREBUILT)
#######################
include $(CLEAR_VARS)
LOCAL_MODULE := busybox-smp
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_OUT)/bin
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_CLASS := FAKE
include $(BUILD_PREBUILT)
# #######################
#
# include $(CLEAR_VARS)
# LOCAL_MODULE := busybox
# LOCAL_MODULE_TAGS := optional
# LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin
# LOCAL_SRC_FILES := $(LOCAL_MODULE)
# LOCAL_MODULE_CLASS := FAKE
# include $(BUILD_PREBUILT)
#
# #######################
# include $(CLEAR_VARS)
# LOCAL_MODULE := busybox-smp
# LOCAL_MODULE_TAGS := optional
# LOCAL_MODULE_PATH := $(TARGET_OUT)/bin
# LOCAL_SRC_FILES := $(LOCAL_MODULE)
# LOCAL_MODULE_CLASS := FAKE
# include $(BUILD_PREBUILT)
#######################

View file

@ -24,8 +24,11 @@ BOARD_CACHEIMAGE_PARTITION_SIZE := 805306368
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1073741824
# recovery stuff
#TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
TARGET_RECOVERY_UI_LIB := librecovery_ui_tulip_chiphd
TW_THEME := landscape_hdpi
TW_NO_REBOOT_BOOTLOADER := true
TW_NO_SCREEN_TIMEOUT := true
TW_HAS_NO_RECOVERY_PARTITION := true
TW_HAS_NO_BOOT_PARTITION := true
SW_BOARD_TOUCH_RECOVERY := true
# wifi and bt configuration

View file

@ -37,6 +37,9 @@ PRODUCT_COPY_FILES += \
device/softwinner/tulip-chiphd/modules/modules/sw-device.ko:obj/sw-device.ko \
device/softwinner/tulip-chiphd/modules/modules/gslX680new.ko:obj/gslX680new.ko \
PRODUCT_COPY_FILES += \
device/softwinner/tulip-chiphd/twrp.fstab:recovery/root/etc/twrp.fstab
PRODUCT_COPY_FILES += \
device/softwinner/common/config/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \

View file

@ -41,6 +41,9 @@ PRODUCT_COPY_FILES += \
device/softwinner/tulip-chiphd/modules/modules/sw-device.ko:obj/sw-device.ko \
device/softwinner/tulip-chiphd/modules/modules/gslX680new.ko:obj/gslX680new.ko \
PRODUCT_COPY_FILES += \
device/softwinner/tulip-chiphd/twrp.fstab:recovery/root/etc/twrp.fstab
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \

22
tulip-chiphd/twrp.fstab Normal file
View file

@ -0,0 +1,22 @@
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/block/mmcblk0p1 /bootloader vfat defaults defaults
/dev/block/mmcblk0p2 /system ext4 defaults defaults
/dev/block/mmcblk0p3 /cache ext4 defaults defaults
/dev/block/mmcblk0p4 /data ext4 defaults defaults
/dev/block/mmcblk0p1 /sdcard vfat defaults defaults
/dev/block/mmcblk1p1 /extsd vfat defaults defaults
/dev/block/mmcblk1 /extsd vfat defaults defaults
/dev/block/sda1 /usbhost vfat defaults defaults
/dev/block/sda /usbhost vfat defaults defaults
/bootloader vfat /dev/block/mmcblk0p1 flags=display="BOOT";settingsstorage;storage;backup=0
/system ext4 /dev/block/mmcblk0p2 flags=display="SYSTEM";backup=1;wipeingui
/cache ext4 /dev/block/mmcblk0p3 flags=display="CACHE";backup=1;wipeingui;wipeduringfactoryreset
/data ext4 /dev/block/mmcblk0p4 flags=display="DATA";storage;backup=1;wipeingui;length=-16384;wipeduringfactoryreset
/usb-otg vfat /dev/block/sda1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable