-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Based on j5y17lte device tree by @ananjaser1211. A huge thanks! Signed-off-by: Hassan Sardar <[email protected]>
- Loading branch information
0 parents
commit d6f307f
Showing
18 changed files
with
3,000 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ifneq ($(filter j5y17lte j5y17ltexx,$(TARGET_DEVICE)),) | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(call all-makefiles-under,$(LOCAL_PATH)) | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PRODUCT_MAKEFILES := $(LOCAL_DIR)/omni_j5y17lte.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
USE_CAMERA_STUB := true | ||
|
||
# inherit from the proprietary version | ||
TARGET_SOC := exynos7870 | ||
BOARD_VENDOR := samsung | ||
TARGET_BOARD_PLATFORM := exynos5 | ||
TARGET_BOARD_PLATFORM_GPU := mali-t830mp2 | ||
TARGET_NO_BOOTLOADER := true | ||
TARGET_BOOTLOADER_BOARD_NAME := universal7870 | ||
TARGET_NO_RADIOIMAGE := true | ||
|
||
# Flags | ||
TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp | ||
TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp | ||
COMMON_GLOBAL_CFLAGS += -DREFRESH_RATE=60 -DQCOM_HARDWARE | ||
|
||
# Architecture | ||
TARGET_ARCH := arm | ||
TARGET_CPU_ABI := armeabi-v7a | ||
TARGET_ARCH_VARIANT := armv7-a-neon | ||
TARGET_CPU_VARIANT := cortex-a53 | ||
TARGET_CPU_CORTEX_A53 := true | ||
ARCH_ARM_HAVE_NEON := true | ||
|
||
TARGET_KERNEL_ARCH := arm64 | ||
TARGET_KERNEL_HEADER_ARCH := arm | ||
TARGET_USES_UNCOMPRESSED_KERNEL := true | ||
|
||
BOARD_KERNEL_CMDLINE := | ||
BOARD_KERNEL_BASE := 0x10000000 | ||
BOARD_KERNEL_PAGESIZE := 2048 | ||
BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --board SRPQA18G000KU | ||
|
||
# Partitions in Bytes (cat /proc/partitions) | ||
BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432 | ||
BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200 | ||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 39845888 | ||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472 | ||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 11936989184 | ||
BOARD_FLASH_BLOCK_SIZE := 131072 | ||
|
||
TARGET_PREBUILT_KERNEL := device/samsung/j5y17lte/Image | ||
TARGET_PREBUILT_DTB := device/samsung/j5y17lte/dt.img | ||
|
||
# Use this flag if the board has a ext4 partition larger than 2gb | ||
BOARD_HAS_LARGE_FILESYSTEM := true | ||
TARGET_USERIMAGES_USE_EXT4 := true | ||
TARGET_USERIMAGES_USE_F2FS := true | ||
BOARD_CUSTOM_BOOTIMG_MK := device/samsung/j5y17lte/bootimg.mk | ||
|
||
|
||
# TWRP specific build flags | ||
TW_THEME := portrait_hdpi | ||
TW_HAS_MTP := true | ||
RECOVERY_SDCARD_ON_DATA := true | ||
BOARD_HAS_NO_REAL_SDCARD := true | ||
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/13600000.usb/13600000.dwc3/gadget/lun%d/file" | ||
TW_BRIGHTNESS_PATH := "/sys/devices/14800000.dsim/backlight/panel/brightness" | ||
TW_MAX_BRIGHTNESS := 255 | ||
TW_DEFAULT_BRIGHTNESS := 150 | ||
TW_NO_REBOOT_BOOTLOADER := true | ||
TW_HAS_DOWNLOAD_MODE := true | ||
TW_MTP_DEVICE := "/dev/mtp_usb" | ||
TW_EXCLUDE_SUPERSU := true | ||
TW_INCLUDE_NTFS_3G := true | ||
TW_EXTRA_LANGUAGES := true | ||
TW_USE_NEW_MINADBD := true | ||
TWRP_INCLUDE_LOGCAT := true | ||
|
||
# Color fix | ||
RECOVERY_GRAPHICS_USE_LINELENGTH := true | ||
TARGET_RECOVERY_PIXEL_FORMAT := "ABGR_8888" | ||
|
||
# Encryption support | ||
TW_INCLUDE_CRYPTO := true | ||
#TW_INCLUDE_CRYPTO_SAMSUNG := true | ||
#TARGET_HW_DISK_ENCRYPTION := true | ||
|
||
# Debug flags | ||
TWRP_INCLUDE_LOGCAT := true | ||
TARGET_USES_LOGD := true | ||
TWRP_EVENT_LOGGING := false | ||
|
||
# Init properties from bootloader version, ex. model info | ||
#TARGET_UNIFIED_DEVICE := true | ||
#TARGET_INIT_VENDOR_LIB := libinit_sec | ||
#TARGET_RECOVERY_DEVICE_MODULES := libinit_sec | ||
#TARGET_LIBINIT_DEFINES_FILE := device/samsung/j5y17lte/init/init_sec.cpp | ||
|
||
# Charger/Healthd | ||
BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging | ||
BOARD_CHARGER_ENABLE_SUSPEND := true | ||
BOARD_CHARGER_SHOW_PERCENTAGE := true | ||
BACKLIGHT_PATH := "/sys/class/backlight/panel/brightness" | ||
CHARGING_ENABLED_PATH := /sys/class/power_supply/battery/batt_lp_charging | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# TWRP_J5Y17LTE | ||
TWRP device tree for Samsung SM-J530F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
FLASH_IMAGE_TARGET ?= $(PRODUCT_OUT)/recovery.tar | ||
|
||
ifdef TARGET_PREBUILT_DTB | ||
BOARD_MKBOOTIMG_ARGS += --dt $(TARGET_PREBUILT_DTB) | ||
endif | ||
|
||
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) $(recovery_kernel) $(recovery_ramdisk) | ||
@echo -e ${CL_GRN}"----- Making recovery image ------"${CL_RST} | ||
$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@ --ramdisk $(recovery_ramdisk) | ||
@echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST} | ||
@echo -e ${CL_GRN}"----- Lying about SEAndroid state to Samsung bootloader ------"${CL_RST} | ||
$(hide) echo -n "SEANDROIDENFORCE" >> $(INSTALLED_RECOVERYIMAGE_TARGET) | ||
$(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw) | ||
$(hide) tar -C $(PRODUCT_OUT) -H ustar -c recovery.img > $(FLASH_IMAGE_TARGET) | ||
@echo -e ${CL_CYN}"Made Odin flashable recovery tar: ${FLASH_IMAGE_TARGET}"${CL_RST} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# J530F Block legend | ||
|
||
BOOT----> /dev/block/mmcblk0p10 | ||
BOTA0----> /dev/block/mmcblk0p1 | ||
BOTA1----> /dev/block/mmcblk0p2 | ||
CACHE----> /dev/block/mmcblk0p19 | ||
CARRIER ----> /dev/block/mmcblk0p8 | ||
CPEFS----> /dev/block/mmcblk0p4 | ||
CP_DEBUG----> /dev/block/mmcblk0p21 | ||
EFS ----> /dev/block/mmcblk0p3 | ||
HIDDEN----> /dev/block/mmcblk0p20 | ||
NAD_FW----> /dev/block/mmcblk0p22 | ||
NAD_REFER----> /dev/block/mmcblk0p23 | ||
OTA ----> /dev/block/mmcblk0p12 | ||
PARAM----> /dev/block/mmcblk0p9 | ||
PERSISTENT----> /dev/block/mmcblk0p15 | ||
RADIO----> /dev/block/mmcblk0p13 | ||
RECOVERY----> /dev/block/mmcblk0p11 | ||
RESERVED2----> /dev/block/mmcblk0p17 | ||
STEADY----> /dev/block/mmcblk0p16 | ||
SYSTEM----> /dev/block/mmcblk0p18 | ||
TOMBSTONES----> /dev/block/mmcblk0p14 | ||
USERDATA----> /dev/block/mmcblk0p24 | ||
m9kefs1 ----> /dev/block/mmcblk0p5 | ||
m9kefs2 ----> /dev/block/mmcblk0p6 | ||
m9kefs3 ----> /dev/block/mmcblk0p7 | ||
|
||
# Partition Size (in KiloBytes) | ||
|
||
7 0 163840 loop0 | ||
253 0 1572864 vnswap0 | ||
179 0 15388672 mmcblk0 | ||
179 1 4096 mmcblk0p1 | ||
179 2 4096 mmcblk0p2 | ||
179 3 20480 mmcblk0p3 | ||
179 4 8192 mmcblk0p4 | ||
179 5 4096 mmcblk0p5 | ||
179 6 4096 mmcblk0p6 | ||
179 7 4096 mmcblk0p7 | ||
259 0 1024 mmcblk0p8 | ||
259 1 8192 mmcblk0p9 | ||
259 2 32768 mmcblk0p10 | ||
259 3 38912 mmcblk0p11 | ||
259 4 8192 mmcblk0p12 | ||
259 5 90112 mmcblk0p13 | ||
259 6 1024 mmcblk0p14 | ||
259 7 512 mmcblk0p15 | ||
259 8 4096 mmcblk0p16 | ||
259 9 7680 mmcblk0p17 | ||
259 10 3145728 mmcblk0p18 | ||
259 11 204800 mmcblk0p19 | ||
259 12 102400 mmcblk0p20 | ||
259 13 5120 mmcblk0p21 | ||
259 14 20480 mmcblk0p22 | ||
259 15 1024 mmcblk0p23 | ||
259 16 11657216 mmcblk0p24 | ||
179 24 16384 mmcblk0rpmb | ||
179 16 4096 mmcblk0boot1 | ||
179 8 4096 mmcblk0boot0 | ||
179 32 124868608 mmcblk1 | ||
179 33 113502208 mmcblk1p1 | ||
179 34 16384 mmcblk1p2 | ||
179 35 10827776 mmcblk1p3 | ||
179 36 521199 mmcblk1p4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Release name | ||
PRODUCT_RELEASE_NAME := j5y17lte | ||
|
||
# Inherit from the common Open Source product configuration | ||
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) | ||
|
||
# Inherit from our custom product configuration | ||
$(call inherit-product, vendor/omni/config/common.mk) | ||
|
||
PRODUCT_PACKAGES += \ | ||
charger_res_images \ | ||
charger | ||
|
||
## Device identifier. This must come after all inclusions | ||
PRODUCT_NAME := omni_j5y17lte | ||
PRODUCT_DEVICE := j5y17lte | ||
PRODUCT_BRAND := samsung | ||
PRODUCT_MANUFACTURER := samsung | ||
PRODUCT_MODEL := SM-J530F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/boot emmc /dev/block/platform/13540000.dwmmc0/by-name/BOOT | ||
/cache ext4 /dev/block/platform/13540000.dwmmc0/by-name/CACHE | ||
/data ext4 /dev/block/platform/13540000.dwmmc0/by-name/USERDATA length=-20480 | ||
/recovery emmc /dev/block/platform/13540000.dwmmc0/by-name/RECOVERY | ||
/system ext4 /dev/block/platform/13540000.dwmmc0/by-name/SYSTEM | ||
/efs emmc /dev/block/platform/13540000.dwmmc0/by-name/EFS flags=display="EFS";backup=1 | ||
/cpefs ext4 /dev/block/platform/13540000.dwmmc0/by-name/CPEFS flags=backup=1;display="CPEFS";subpartitionof=/efs | ||
/m9kefs1 emmc /dev/block/platform/13540000.dwmmc0/by-name/m9kefs1 flags=backup=1;subpartitionof=/efs | ||
/m9kefs2 emmc /dev/block/platform/13540000.dwmmc0/by-name/m9kefs2 flags=backup=1;subpartitionof=/efs | ||
/m9kefs3 emmc /dev/block/platform/13540000.dwmmc0/by-name/m9kefs3 flags=backup=1;subpartitionof=/efs | ||
/radio emmc /dev/block/platform/13540000.dwmmc0/by-name/RADIO flags=display="Modem";backup=1 | ||
/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable | ||
/usb-otg vfat /dev/block/sda1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 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/platform/13540000.dwmmc0/by-name/SYSTEM /system ext4 ro,errors=panic,noload wait,verify | ||
/dev/block/platform/13540000.dwmmc0/by-name/CACHE /cache ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check | ||
/dev/block/platform/13540000.dwmmc0/by-name/USERDATA /data ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check,encryptable=footer | ||
/dev/block/platform/13540000.dwmmc0/by-name/EFS /efs ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check | ||
|
||
# VOLD | ||
/dev/block/platform/13540000.dwmmc0/by-name/HIDDEN /preload ext4 defaults voldmanaged=preload:auto | ||
/devices/13560000.dwmmc2/mmc_host/mmc* auto vfat defaults voldmanaged=sdcard:auto | ||
/devices/13600000.usb/13600000.dwc3/xhci-hcd.2.auto/usb* auto auto defaults voldmanaged=usb:auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
on fs | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/idVendor 18D1 | ||
write /sys/class/android_usb/android0/idProduct D001 | ||
write /sys/class/android_usb/android0/f_ffs/aliases adb | ||
write /sys/class/android_usb/android0/functions adb | ||
write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer} | ||
write /sys/class/android_usb/android0/iProduct ${ro.product.model} | ||
write /sys/class/android_usb/android0/iSerial ${ro.serialno} | ||
|
||
on property:sys.usb.config=none | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/bDeviceClass 0 | ||
|
||
on property:sys.usb.config=mass_storage,adb | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/functions ${sys.usb.config} | ||
write /sys/class/android_usb/android0/enable 1 | ||
|
||
on property:sys.usb.config=mtp,adb | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/functions ${sys.usb.config} | ||
write /sys/class/android_usb/android0/enable 1 | ||
start adbd | ||
|
||
on property:sys.usb.config=adb | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/functions ${sys.usb.config} | ||
write /sys/class/android_usb/android0/enable ${service.adb.root} | ||
start adbd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
service sys_vold /system/bin/vold \ | ||
--blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0 \ | ||
--fsck_context=u:r:fsck:s0 --fsck_untrusted_context=u:r:fsck_untrusted:s0 | ||
socket vold stream 0660 root mount | ||
socket cryptd stream 0660 root mount | ||
setenv PATH /system/bin | ||
setenv LD_LIBRARY_PATH /system/lib64:/system/lib | ||
disabled | ||
oneshot |
Oops, something went wrong.