From 2e36a68e7212062b67d03abb86622da74a67c450 Mon Sep 17 00:00:00 2001 From: 24richgum <34275935+24richgum@users.noreply.github.com> Date: Fri, 29 Nov 2019 11:25:46 +0800 Subject: [PATCH 1/6] Create Xiaomi.ysl --- data/devices/Xiaomi.ysl | 109 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 data/devices/Xiaomi.ysl diff --git a/data/devices/Xiaomi.ysl b/data/devices/Xiaomi.ysl new file mode 100644 index 000000000..c70b2adc1 --- /dev/null +++ b/data/devices/Xiaomi.ysl @@ -0,0 +1,109 @@ +--- +- name: Redmi 7a(Pine) + id: pine + codenames: + - pine + - mokee + architecture: armeabi-v7a + block_devs: + base_dirs: + - /dev/block/platform/soc/7824900.sdhci/by-name + - /dev/block/bootdevice/by-name + - /dev/block/by-name + system: + - /dev/block/bootdevice/by-name/system + - /dev/block/by-name/system + - /dev/block/mmcblk0p57 + - /dev/block/platform/soc/7824900.sdhci/by-name/system + cache: + - /dev/block/bootdevice/by-name/cache + - /dev/block/by-name/cache + - /dev/block/mmcblk0p55 + - /dev/block/platform/soc/7824900.sdhci/by-name/cache + data: + - /dev/block/bootdevice/by-name/userdata + - /dev/block/by-name/userdata + - /dev/block/mmcblk0p60 + - /dev/block/platform/soc/7824900.sdhci/by-name/userdata + boot: + - /dev/block/bootdevice/by-name/boot + - /dev/block/by-name/boot + - /dev/block/mmcblk0p52 + - /dev/block/platform/soc/7824900.sdhci/by-name/boot + - ext4 + recovery: + - /dev/block/bootdevice/by-name/recovery + - /dev/block/by-name/recovery + - /dev/block/mmcblk0p53 + - /dev/block/platform/soc/7824900.sdhci/by-name/recovery + extra: + - /dev/block/platform/soc/7824900.sdhci/by-name/DDR + - /dev/block/platform/soc/7824900.sdhci/by-name/aboot + - /dev/block/platform/soc/7824900.sdhci/by-name/abootbak + - /dev/block/platform/soc/7824900.sdhci/by-name/apdp + - /dev/block/platform/soc/7824900.sdhci/by-name/bk1 + - /dev/block/platform/soc/7824900.sdhci/by-name/bk2 + - /dev/block/platform/soc/7824900.sdhci/by-name/bk3 + - /dev/block/platform/soc/7824900.sdhci/by-name/bk4 + - /dev/block/platform/soc/7824900.sdhci/by-name/bk5 + - /dev/block/platform/soc/7824900.sdhci/by-name/cmnlib + - /dev/block/platform/soc/7824900.sdhci/by-name/cmnlib64 + - /dev/block/platform/soc/7824900.sdhci/by-name/cmnlib64bak + - /dev/block/platform/soc/7824900.sdhci/by-name/cmnlibbak + - /dev/block/platform/soc/7824900.sdhci/by-name/config + - /dev/block/platform/soc/7824900.sdhci/by-name/cust + - /dev/block/platform/soc/7824900.sdhci/by-name/devcfg + - /dev/block/platform/soc/7824900.sdhci/by-name/devcfgbak + - /dev/block/platform/soc/7824900.sdhci/by-name/devinfo + - /dev/block/platform/soc/7824900.sdhci/by-name/dip + - /dev/block/platform/soc/7824900.sdhci/by-name/dpo + - /dev/block/platform/soc/7824900.sdhci/by-name/dsp + - /dev/block/platform/soc/7824900.sdhci/by-name/dspbak + - /dev/block/platform/soc/7824900.sdhci/by-name/dtbo + - /dev/block/platform/soc/7824900.sdhci/by-name/dtbobak + - /dev/block/platform/soc/7824900.sdhci/by-name/fsc + - /dev/block/platform/soc/7824900.sdhci/by-name/fsg + - /dev/block/platform/soc/7824900.sdhci/by-name/keymaster + - /dev/block/platform/soc/7824900.sdhci/by-name/keymasterbak + - /dev/block/platform/soc/7824900.sdhci/by-name/keystore + - /dev/block/platform/soc/7824900.sdhci/by-name/limits + - /dev/block/platform/soc/7824900.sdhci/by-name/logdump + - /dev/block/platform/soc/7824900.sdhci/by-name/mcfg + - /dev/block/platform/soc/7824900.sdhci/by-name/mdtp + - /dev/block/platform/soc/7824900.sdhci/by-name/mdtpbak + - /dev/block/platform/soc/7824900.sdhci/by-name/misc + - /dev/block/platform/soc/7824900.sdhci/by-name/modem + - /dev/block/platform/soc/7824900.sdhci/by-name/modemst1 + - /dev/block/platform/soc/7824900.sdhci/by-name/modemst2 + - /dev/block/platform/soc/7824900.sdhci/by-name/mota + - /dev/block/platform/soc/7824900.sdhci/by-name/msadp + - /dev/block/platform/soc/7824900.sdhci/by-name/persist + - /dev/block/platform/soc/7824900.sdhci/by-name/persistbak + - /dev/block/platform/soc/7824900.sdhci/by-name/rpm + - /dev/block/platform/soc/7824900.sdhci/by-name/rpmbak + - /dev/block/platform/soc/7824900.sdhci/by-name/sbl1 + - /dev/block/platform/soc/7824900.sdhci/by-name/sbl1bak + - /dev/block/platform/soc/7824900.sdhci/by-name/sec + - /dev/block/platform/soc/7824900.sdhci/by-name/splash + - /dev/block/platform/soc/7824900.sdhci/by-name/ssd + - /dev/block/platform/soc/7824900.sdhci/by-name/syscfg + - /dev/block/platform/soc/7824900.sdhci/by-name/tz + - /dev/block/platform/soc/7824900.sdhci/by-name/tzbak + - /dev/block/platform/soc/7824900.sdhci/by-name/vbmeta + - /dev/block/platform/soc/7824900.sdhci/by-name/vbmetabak + - /dev/block/platform/soc/7824900.sdhci/by-name/vendor + - /dev/block/mmcblk1 + - /dev/block/mmcblk1p1 + + boot_ui: + supported: true + flags: + - TW_GRAPHICS_FORCE_USE_LINELENGTH + brightness_path: /sys/class/leds/lcd-backlight/brightness + max_brightness: 255 + default_brightness: 168 + cpu_temp_path: /sys/devices/virtual/thermal/thermal_zone0/temp + battery_path: /sys/class/power_supply/battery/capacity + graphics_backends: + - fbdev + theme: portrait_hdpi From 5dacc1ce34a356a646b6aaf363ee60b6aed84780 Mon Sep 17 00:00:00 2001 From: 24richgum <34275935+24richgum@users.noreply.github.com> Date: Fri, 29 Nov 2019 11:26:35 +0800 Subject: [PATCH 2/6] Rename Xiaomi.ysl to xiaomi.ysl --- data/devices/{Xiaomi.ysl => xiaomi.ysl} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename data/devices/{Xiaomi.ysl => xiaomi.ysl} (100%) diff --git a/data/devices/Xiaomi.ysl b/data/devices/xiaomi.ysl similarity index 100% rename from data/devices/Xiaomi.ysl rename to data/devices/xiaomi.ysl From bf27e4e47c9a8c1d6bd540b21a2912eb7ad19c46 Mon Sep 17 00:00:00 2001 From: 24richgum <34275935+24richgum@users.noreply.github.com> Date: Fri, 29 Nov 2019 12:24:27 +0800 Subject: [PATCH 3/6] Update xiaomi.ysl --- data/devices/xiaomi.ysl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/devices/xiaomi.ysl b/data/devices/xiaomi.ysl index c70b2adc1..cb5ca1ebf 100644 --- a/data/devices/xiaomi.ysl +++ b/data/devices/xiaomi.ysl @@ -1,9 +1,9 @@ --- -- name: Redmi 7a(Pine) +- name: Redmi 7a id: pine codenames: - pine - - mokee + - REL architecture: armeabi-v7a block_devs: base_dirs: From 2165e6d158834d7aeb98ad42ac857043871f302c Mon Sep 17 00:00:00 2001 From: 24richgum <34275935+24richgum@users.noreply.github.com> Date: Fri, 29 Nov 2019 13:44:22 +0800 Subject: [PATCH 4/6] Update CMakeLists.txt --- data/devices/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/data/devices/CMakeLists.txt b/data/devices/CMakeLists.txt index 1f0daaf51..0a990d531 100644 --- a/data/devices/CMakeLists.txt +++ b/data/devices/CMakeLists.txt @@ -73,6 +73,7 @@ set(files zoji.yml zte.yml zuk.yml + Xiaomi.ysl ) set(target_file "${CMAKE_CURRENT_BINARY_DIR}/devices.json") From 8776260a0e182720c379c23fd8965a91b4d18a72 Mon Sep 17 00:00:00 2001 From: 24richgum <34275935+24richgum@users.noreply.github.com> Date: Fri, 29 Nov 2019 13:45:48 +0800 Subject: [PATCH 5/6] Update CMakeLists.txt --- data/devices/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/devices/CMakeLists.txt b/data/devices/CMakeLists.txt index 0a990d531..e0a650dc4 100644 --- a/data/devices/CMakeLists.txt +++ b/data/devices/CMakeLists.txt @@ -63,6 +63,7 @@ set(files walton.yml wiko.yml wileyfox.yml + xiaomi.yml xiaomi/00_mi.yml xiaomi/01_mi_note.yml xiaomi/02_mi_max.yml @@ -73,7 +74,6 @@ set(files zoji.yml zte.yml zuk.yml - Xiaomi.ysl ) set(target_file "${CMAKE_CURRENT_BINARY_DIR}/devices.json") From 36ecade245ffb20b894f66c1e8ca053fa8aba0a7 Mon Sep 17 00:00:00 2001 From: 24richgum <34275935+24richgum@users.noreply.github.com> Date: Fri, 29 Nov 2019 13:47:01 +0800 Subject: [PATCH 6/6] Rename xiaomi.ysl to xiaomi.yml --- data/devices/{xiaomi.ysl => xiaomi.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename data/devices/{xiaomi.ysl => xiaomi.yml} (100%) diff --git a/data/devices/xiaomi.ysl b/data/devices/xiaomi.yml similarity index 100% rename from data/devices/xiaomi.ysl rename to data/devices/xiaomi.yml