Skip to content

Commit

Permalink
Touchscreen FIXED
Browse files Browse the repository at this point in the history
Touchscreen FIXED

1. Vendor bin/libs added **[ Failed ]**
2. GT9886 - firmware added + BoardConfig Adjustments **[ Failed ]**
3. Adjusted Kernel Touchscreen Drivers **[ Working!! ]**

- Several mount errors resolved
- init.recovery.usb.rc added & adjusted to device, allowing ADB/MTP to work together

- removed crypto files for this build
- prepped BoardConfig for future A13 Crypto development.
  • Loading branch information
forforksake committed Aug 4, 2023
1 parent 5a08fd6 commit da24048
Show file tree
Hide file tree
Showing 69 changed files with 127 additions and 578 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
LOCAL_PATH := $(call my-dir)

ifeq ($(TARGET_DEVICE),a14xm)
ifeq ($(TARGET_DEVICE),a14m)
include $(call all-subdir-makefiles,$(LOCAL_PATH))
endif
59 changes: 25 additions & 34 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,21 @@ TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := generic
TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a55

# APEX
DEXPREOPT_GENERATE_APEX_IMAGE := true

# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := a14m
TARGET_NO_BOOTLOADER := true
TW_NO_REBOOT_BOOTLOADER := true

# Display
TARGET_SCREEN_DENSITY := 450

# Kernel
BOARD_BOOTIMG_HEADER_VERSION := 2
BOARD_KERNEL_BASE := 0x40078000
BOARD_KERNEL_CMDLINE := bootopt=64S3,32N2,64N2 loop.max_part=7
BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive bootopt=64S3,32N2,64N2 loop.max_part=7
BOARD_KERNEL_PAGESIZE := 2048
BOARD_RAMDISK_OFFSET := 0x07c08000
BOARD_KERNEL_TAGS_OFFSET := 0x0bc08000
Expand Down Expand Up @@ -58,10 +62,8 @@ BOARD_BOOTIMAGE_PARTITION_SIZE := 80740352
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 80740352
BOARD_HAS_LARGE_FILESYSTEM := true
BOARD_SYSTEMIMAGE_PARTITION_TYPE := ext4
BOARD_SYSTEMIMAGE_PARTITION_TYPE := erofs
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := erofs
TARGET_COPY_OUT_VENDOR := vendor
BOARD_SUPER_PARTITION_SIZE := 9126805504 # TODO: Fix hardcoded value
BOARD_SUPER_PARTITION_GROUPS := samsung_dynamic_partitions
Expand All @@ -73,17 +75,10 @@ TARGET_BOARD_PLATFORM := mt6768

# Recovery
BOARD_INCLUDE_RECOVERY_DTBO := true
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
TARGET_RECOVERY_PIXEL_FORMAT := RGBA_8888
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true

# fstab
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery/root/system/etc/recovery.fstab
BOARD_BUILD_SYSTEM_ROOT_IMAGE := false

# Properties
TARGET_VENDOR_PROP := $(DEVICE_PATH)/vendor.prop

# Verified Boot
BOARD_AVB_ENABLE := true
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 3
Expand All @@ -92,41 +87,37 @@ BOARD_AVB_RECOVERY_ALGORITHM := SHA256_RSA4096
BOARD_AVB_RECOVERY_ROLLBACK_INDEX := 1
BOARD_AVB_RECOVERY_ROLLBACK_INDEX_LOCATION := 1

# Crypto
TW_INCLUDE_CRYPTO := true
TW_INCLUDE_CRYPTO_FBE := true
TW_INCLUDE_FBE_METADATA_DECRYPT := true
BOARD_USES_METADATA_PARTITION := true
BOARD_ROOT_EXTRA_FOLDERS += metadata

# Crypto A13
# Hack: prevent anti rollback - adjusted for future A13 crypto
PLATFORM_SECURITY_PATCH := 2127-12-31
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
PLATFORM_VERSION := 99.87.36
PLATFORM_VERSION_LAST_STABLE := $(PLATFORM_VERSION)

# TWRP Configuration
TW_THEME := portrait_hdpi
TW_EXTRA_LANGUAGES := true
TW_INPUT_BLACKLIST := "hbtp_vm"
TW_USE_TOOLBOX := true
TW_HAS_DOWNLOAD_MODE := true
TW_DEVICE_VERSION := 1_CFkod_XDA
TW_USES_VENDOR_LIBS := true
TW_EXCLUDE_DEFAULT_USB_INIT := true
RECOVERY_SDCARD_ON_DATA := true
TW_Y_OFFSET := 75
TW_H_OFFSET := -75
TW_NO_LEGACY_PROPS := true
PRODUCT_ENFORCE_VINTF_MANIFEST := true

# Backups
TW_BACKUP_EXCLUSIONS := /data/fonts

# Build Debug
BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true

# PBRP
#PB_DISABLE_DEFAULT_DM_VERITY := true
#PB_TORCH_PATH := "/sys/devices/platform/flashlights_mt6360/enable_flashlight"
#PB_TORCH_PATH := "/sys/class/camera/flash/rear_flash"

TW_INCLUDE_LIBRESETPROP := true
TW_INCLUDE_RESETPROP := true
TW_INCLUDE_REPACKTOOLS := true
TW_INCLUDE_NTFS_3G := true
TW_INCLUDE_PYTHON := true

# touchscreen firmware added to vendor/firmware/gt9886*
TW_SCREEN_BLANK_ON_BOOT := true

# future Crypto Arguements
#TW_INCLUDE_CRYPTO := true
#TW_INCLUDE_CRYPTO_FBE := true

# Development Help Touchscreen and Future Crypto
TWRP_INCLUDE_LOGCAT := true
TARGET_USES_LOGD := true
43 changes: 41 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,41 @@
# recovery_device_samsung_a14m
Recovery Tree for Samsung Galaxy A14 **WIP**
### Samsung Galaxy A14 (Mediatek) - Android Recovery Device Tree

| **Prop** | **spec** |
| --- | --- |
| `Codename` | **A14m** |
| `Model` | **SM-A145P** |
| `Board` | **MediaTek MT679V (MT6768)** |
| `Chipset` | **Helio G80** |
| `OS` | **Android 13** |

### TOUCHSCREEN

1. Vendor bin/libs added **[ Failed ]**
2. GT9886 - firmware added + BoardConfig Adjustments **[ Failed ]**
3. Adjusted Kernel Touchscreen Drivers **[ Working!! ]**

### FIXES

- Several mount errors resolved
- init.recovery.usb.rc added & adjusted to device, allowing ADB/MTP to work together

### CRYPTO

- removed crypto files for this build
- prepped BoardConfig for future A13 Crypto development.

### Kernel

https://github.com/forforksake/android_kernel_samsung_a145p

### THANKS

Thanks to Physwizz initial device tree & kernel commits,
SebaUbuntu's awesome twrpdtgen
plus all the contributors to TWRP ofcourse.

C F K o d @ X D A

@Cardiffian
[Telegram](https://t.me/cardiffian)

Binary file modified prebuilt/kernel
Binary file not shown.
1 change: 0 additions & 1 deletion recovery/root/init.recovery.mt6768.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import /init.recovery.samsung.rc
import /[email protected]
import /teegris_v4.rc

on init
setprop sys.usb.configfs 1
Expand Down
Empty file modified recovery/root/init.recovery.samsung.rc
100755 → 100644
Empty file.
206 changes: 0 additions & 206 deletions recovery/root/system/bin/multidisabler

This file was deleted.

Loading

0 comments on commit da24048

Please sign in to comment.