Development TWRP for Samsung Galaxy A7 Lite SM-T220 SM-T225 SM-T227

Search This thread

Skorpion96

Senior Member
Aug 28, 2014
371
87
Palermo
Im using this SM-T220_XAR_T220XXU1AVE1 but when Im flashing your TWRP it wont boot into it, its just bootlooping
When you flash with odin you have to boot twrp with combination of buttons, if you don't tablet will reflash stock, a suggestion to not go crazy would be to flash with flashify and after flash select reboot to recovery, about the build of the os it should be Android 11 2021, June I believe, I don't remember exactly, others will suggest you the right build
 

ozmage

Senior Member
Jun 28, 2017
298
73
36
Santo Domingo
Samsung Galaxy Tab A7 Lite
When you flash with odin you have to boot twrp with combination of buttons, if you don't tablet will reflash stock, a suggestion to not go crazy would be to flash with flashify and after flash select reboot to recovery, about the build of the os it should be Android 11 2021, June I believe, I don't remember exactly, others will suggest you the right build
Hi Sr. do you have a11 kernel sources tarball somewhere ? the a12 one does not boot for a11 because the modules in /vendor/lib/modules don't match i have compiled a12 sources from your github all works on a gsi with a12 vendor and other stuff as base
 

Skorpion96

Senior Member
Aug 28, 2014
371
87
Palermo
Hi Sr. do you have a11 kernel sources tarball somewhere ? the a12 one does not boot for a11 because the modules in /vendor/lib/modules don't match i have compiled a12 sources from your github all works on a gsi with a12 vendor and other stuff as base
A11 & A12 Kernel sources:https://opensource.samsung.com/uploadSearch?searchValue=T220
For A11 download RR version
 
  • Like
Reactions: ozmage
Thank you

Skorpion96

for building this TWRP.

All of the pages for this build state that MAGISK 24 - is the only one that works when installing.

may i ask, ( using a SM-T220 ) after installing a patched boot.tar, and TWRP, is it possible to update MAGISK from this TWRP ? ( haven't seen this asked yet. )

is their any hope this gets added to the OFFCIAL TWRP page for recoveries ?
 

Juli199696

New member
Dec 13, 2022
1
0
Hey guys,

Device : SM-T220 Wifi
i think i ****ed up a bit. I tried to root my device on A12 and ****ed up the boot.img step. Well i recoverd it with the full Downloaded Stock AP File (4,42GB) EU Version.

The thing now is i just got 4GB of Storage (Should be 32GB) in the System. As im on A12 now i cant use TWRP to resize the partition. Any progress on TWRP for A12?

Btw. i got extracted working recovery.img so i could play around with different test versions of TWRP if needed.

Or can i flash complete A11 Image and use TWRP there?
 
Last edited:

Talich52

Senior Member
Dec 24, 2010
437
217
The thing now is i just got 4GB of Storage (Should be 32GB) in the System. As im on A12 now i cant use TWRP to resize the partition.
Go to stock recovery and do a wipe data/factory reset. In fact, format data is being made and the device writes about it ... The memory will be restored in full :)
 

ozmage

Senior Member
Jun 28, 2017
298
73
36
Santo Domingo
Samsung Galaxy Tab A7 Lite
Sir i Found Out ... that the A11 R kernel tarball that lagsung is giving us is incomplete that is why touch not work i have extracted the config from a running system with zcat /proc/config.gz > /sdcard/stock_defconfig

and diffed with the one inside the zip sources

[email protected]:/a7lite-kernel/arch/arm64/configs# diff -ur gta7litewifi_defconfig stock_defconfig


--- gta7litewifi_defconfig 2021-04-15 04:59:57.000000000 -0400
+++ stock_defconfig 2022-12-21 04:58:49.725645400 -0400
@@ -1569,12 +1569,12 @@
CONFIG_MTK_SEC_VIDEO_PATH_SUPPORT=y
CONFIG_MTK_DRM_KEY_MNG_SUPPORT=y
# CONFIG_MTK_LCM_PHYSICAL_ROTATION_HW is not set
-CONFIG_CUSTOM_KERNEL_IMGSENSOR="hi846_sjc_mipi_raw gc8054_hlt_mipi_raw hi846_txd_mipi_raw gc8054_cxt_mipi_raw gc02m1_sjc_mipi_raw gc02m1_cxt_mipi_raw ov02b10_jk_mipi_raw"
+CONFIG_CUSTOM_KERNEL_IMGSENSOR="hi846_sjc_mipi_raw gc8054_hlt_mipi_raw hi846_txd_mipi_raw gc8054_cxt_mipi_raw sc800cs_ly_mipi_raw gc02m1_sjc_mipi_raw gc02m1_cxt_mipi_raw ov02b10_jk_mipi_raw"
CONFIG_MTK_VIDEOCODEC_DRIVER=y
CONFIG_MTK_MMPROFILE_SUPPORT=y
CONFIG_MMPROFILE=y
CONFIG_MTK_LCM=y
-CONFIG_CUSTOM_KERNEL_LCM="hx83102e_hlt_hsd_fhdplus2408 nt36523_liansi_hsd_incell_vdo ili9881t_liansi_inx_incell_vdo nt36523_hlt_mdt_incell_vdo ft8201ab_dt_qunchuang_inx_vdo_fhdplus2408 nt36523bh_qunchuang_inx_incell_vdo ft8201_lianchuang_boe_dsi_vdo_hdp_wxga"
+CONFIG_CUSTOM_KERNEL_LCM="hx83102e_hlt_hsd_fhdplus2408 nt36523_liansi_hsd_incell_vdo nt36523_liansi_hsd_ntfpc_incell_vdo ili9881t_liansi_inx_incell_vdo nt36523_hlt_mdt_incell_vdo ft8201ab_dt_qunchuang_inx_vdo_fhdplus2408 nt36523bh_qunchuang_inx_incell_vdo hx83102e_liansi_mdt_incell_vdo hx83102e_copper_hlt_hsd_fhdplus2408 ft8201_lianchuang_boe_dsi_vdo_hdp_wxga"
# CONFIG_MTK_LCM_DEVICE_TREE_SUPPORT is not set
CONFIG_MTK_SYNC=y
CONFIG_MTK_FB=y
@@ -2797,7 +2797,7 @@
#
# Watchdog Device Drivers
#
-# CONFIG_SOFT_WATCHDOG is not set
+CONFIG_SOFT_WATCHDOG=y
# CONFIG_GPIO_WATCHDOG is not set
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
@@ -4776,6 +4776,7 @@
CONFIG_SEC_DEBUG_AUTO_COMMENT=y
# CONFIG_SEC_DEBUG_LIMIT_BACKTRACE is not set
CONFIG_SEC_DEBUG_INIT_EXIT_PANIC=y
+CONFIG_SEC_DEBUG_SOFTDOG_PWDT=y
CONFIG_SEC_MISC=y
CONFIG_SEC_BOOTSTAT=y
# CONFIG_SEC_DEVICE_BOOTSTAT is not set
@@ -5209,7 +5210,7 @@
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_SM4 is not set
# CONFIG_CRYPTO_TEA is not set
-# CONFIG_CRYPTO_TWOFISH is not set
+CONFIG_CRYPTO_TWOFISH=y
CONFIG_CRYPTO_TWOFISH_COMMON=y

if iuse the stock_defconfig the compilation stops telling me that some dirs are missing from drivers/misc/mediatek and they are present in A12 kernel sources but compilation still fails after add them so my recomendation is recompile TWRP but with A12 kernel sources instead of the a11 ones maybe this way we can get touch on sm-t220
 

ozmage

Senior Member
Jun 28, 2017
298
73
36
Santo Domingo
Samsung Galaxy Tab A7 Lite
Sir i Found Out ... that the A11 R kernel tarball that lagsung is giving us is incomplete that is why touch not work i have extracted the config from a running system with zcat /proc/config.gz > /sdcard/stock_defconfig

and diffed with the one inside the zip sources

[email protected]:/a7lite-kernel/arch/arm64/configs# diff -ur gta7litewifi_defconfig stock_defconfig


--- gta7litewifi_defconfig 2021-04-15 04:59:57.000000000 -0400
+++ stock_defconfig 2022-12-21 04:58:49.725645400 -0400
@@ -1569,12 +1569,12 @@
CONFIG_MTK_SEC_VIDEO_PATH_SUPPORT=y
CONFIG_MTK_DRM_KEY_MNG_SUPPORT=y
# CONFIG_MTK_LCM_PHYSICAL_ROTATION_HW is not set
-CONFIG_CUSTOM_KERNEL_IMGSENSOR="hi846_sjc_mipi_raw gc8054_hlt_mipi_raw hi846_txd_mipi_raw gc8054_cxt_mipi_raw gc02m1_sjc_mipi_raw gc02m1_cxt_mipi_raw ov02b10_jk_mipi_raw"
+CONFIG_CUSTOM_KERNEL_IMGSENSOR="hi846_sjc_mipi_raw gc8054_hlt_mipi_raw hi846_txd_mipi_raw gc8054_cxt_mipi_raw sc800cs_ly_mipi_raw gc02m1_sjc_mipi_raw gc02m1_cxt_mipi_raw ov02b10_jk_mipi_raw"
CONFIG_MTK_VIDEOCODEC_DRIVER=y
CONFIG_MTK_MMPROFILE_SUPPORT=y
CONFIG_MMPROFILE=y
CONFIG_MTK_LCM=y
-CONFIG_CUSTOM_KERNEL_LCM="hx83102e_hlt_hsd_fhdplus2408 nt36523_liansi_hsd_incell_vdo ili9881t_liansi_inx_incell_vdo nt36523_hlt_mdt_incell_vdo ft8201ab_dt_qunchuang_inx_vdo_fhdplus2408 nt36523bh_qunchuang_inx_incell_vdo ft8201_lianchuang_boe_dsi_vdo_hdp_wxga"
+CONFIG_CUSTOM_KERNEL_LCM="hx83102e_hlt_hsd_fhdplus2408 nt36523_liansi_hsd_incell_vdo nt36523_liansi_hsd_ntfpc_incell_vdo ili9881t_liansi_inx_incell_vdo nt36523_hlt_mdt_incell_vdo ft8201ab_dt_qunchuang_inx_vdo_fhdplus2408 nt36523bh_qunchuang_inx_incell_vdo hx83102e_liansi_mdt_incell_vdo hx83102e_copper_hlt_hsd_fhdplus2408 ft8201_lianchuang_boe_dsi_vdo_hdp_wxga"
# CONFIG_MTK_LCM_DEVICE_TREE_SUPPORT is not set
CONFIG_MTK_SYNC=y
CONFIG_MTK_FB=y
@@ -2797,7 +2797,7 @@
#
# Watchdog Device Drivers
#
-# CONFIG_SOFT_WATCHDOG is not set
+CONFIG_SOFT_WATCHDOG=y
# CONFIG_GPIO_WATCHDOG is not set
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
@@ -4776,6 +4776,7 @@
CONFIG_SEC_DEBUG_AUTO_COMMENT=y
# CONFIG_SEC_DEBUG_LIMIT_BACKTRACE is not set
CONFIG_SEC_DEBUG_INIT_EXIT_PANIC=y
+CONFIG_SEC_DEBUG_SOFTDOG_PWDT=y
CONFIG_SEC_MISC=y
CONFIG_SEC_BOOTSTAT=y
# CONFIG_SEC_DEVICE_BOOTSTAT is not set
@@ -5209,7 +5210,7 @@
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_SM4 is not set
# CONFIG_CRYPTO_TEA is not set
-# CONFIG_CRYPTO_TWOFISH is not set
+CONFIG_CRYPTO_TWOFISH=y
CONFIG_CRYPTO_TWOFISH_COMMON=y

if iuse the stock_defconfig the compilation stops telling me that some dirs are missing from drivers/misc/mediatek and they are present in A12 kernel sources but compilation still fails after add them so my recomendation is recompile TWRP but with A12 kernel sources instead of the a11 ones maybe this way we can get touch on sm-t220
Check / Compare The Lines That Have + an - the plus ones are the stuff missing from the kernel config inside the tarball the CONFIG_CUSTOM_KERNEL_LCM option is what concern to touch , the kernel does compiles fine with the original config but on real android when boots crash and reboots on TWRP stays for some reason but without touch and maybe other functions
 
Last edited:

Skorpion96

Senior Member
Aug 28, 2014
371
87
Palermo
Sir i Found Out ... that the A11 R kernel tarball that lagsung is giving us is incomplete that is why touch not work i have extracted the config from a running system with zcat /proc/config.gz > /sdcard/stock_defconfig

and diffed with the one inside the zip sources

[email protected]:/a7lite-kernel/arch/arm64/configs# diff -ur gta7litewifi_defconfig stock_defconfig


--- gta7litewifi_defconfig 2021-04-15 04:59:57.000000000 -0400
+++ stock_defconfig 2022-12-21 04:58:49.725645400 -0400
@@ -1569,12 +1569,12 @@
CONFIG_MTK_SEC_VIDEO_PATH_SUPPORT=y
CONFIG_MTK_DRM_KEY_MNG_SUPPORT=y
# CONFIG_MTK_LCM_PHYSICAL_ROTATION_HW is not set
-CONFIG_CUSTOM_KERNEL_IMGSENSOR="hi846_sjc_mipi_raw gc8054_hlt_mipi_raw hi846_txd_mipi_raw gc8054_cxt_mipi_raw gc02m1_sjc_mipi_raw gc02m1_cxt_mipi_raw ov02b10_jk_mipi_raw"
+CONFIG_CUSTOM_KERNEL_IMGSENSOR="hi846_sjc_mipi_raw gc8054_hlt_mipi_raw hi846_txd_mipi_raw gc8054_cxt_mipi_raw sc800cs_ly_mipi_raw gc02m1_sjc_mipi_raw gc02m1_cxt_mipi_raw ov02b10_jk_mipi_raw"
CONFIG_MTK_VIDEOCODEC_DRIVER=y
CONFIG_MTK_MMPROFILE_SUPPORT=y
CONFIG_MMPROFILE=y
CONFIG_MTK_LCM=y
-CONFIG_CUSTOM_KERNEL_LCM="hx83102e_hlt_hsd_fhdplus2408 nt36523_liansi_hsd_incell_vdo ili9881t_liansi_inx_incell_vdo nt36523_hlt_mdt_incell_vdo ft8201ab_dt_qunchuang_inx_vdo_fhdplus2408 nt36523bh_qunchuang_inx_incell_vdo ft8201_lianchuang_boe_dsi_vdo_hdp_wxga"
+CONFIG_CUSTOM_KERNEL_LCM="hx83102e_hlt_hsd_fhdplus2408 nt36523_liansi_hsd_incell_vdo nt36523_liansi_hsd_ntfpc_incell_vdo ili9881t_liansi_inx_incell_vdo nt36523_hlt_mdt_incell_vdo ft8201ab_dt_qunchuang_inx_vdo_fhdplus2408 nt36523bh_qunchuang_inx_incell_vdo hx83102e_liansi_mdt_incell_vdo hx83102e_copper_hlt_hsd_fhdplus2408 ft8201_lianchuang_boe_dsi_vdo_hdp_wxga"
# CONFIG_MTK_LCM_DEVICE_TREE_SUPPORT is not set
CONFIG_MTK_SYNC=y
CONFIG_MTK_FB=y
@@ -2797,7 +2797,7 @@
#
# Watchdog Device Drivers
#
-# CONFIG_SOFT_WATCHDOG is not set
+CONFIG_SOFT_WATCHDOG=y
# CONFIG_GPIO_WATCHDOG is not set
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
@@ -4776,6 +4776,7 @@
CONFIG_SEC_DEBUG_AUTO_COMMENT=y
# CONFIG_SEC_DEBUG_LIMIT_BACKTRACE is not set
CONFIG_SEC_DEBUG_INIT_EXIT_PANIC=y
+CONFIG_SEC_DEBUG_SOFTDOG_PWDT=y
CONFIG_SEC_MISC=y
CONFIG_SEC_BOOTSTAT=y
# CONFIG_SEC_DEVICE_BOOTSTAT is not set
@@ -5209,7 +5210,7 @@
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_SM4 is not set
# CONFIG_CRYPTO_TEA is not set
-# CONFIG_CRYPTO_TWOFISH is not set
+CONFIG_CRYPTO_TWOFISH=y
CONFIG_CRYPTO_TWOFISH_COMMON=y

if iuse the stock_defconfig the compilation stops telling me that some dirs are missing from drivers/misc/mediatek and they are present in A12 kernel sources but compilation still fails after add them so my recomendation is recompile TWRP but with A12 kernel sources instead of the a11 ones maybe this way we can get touch on sm-t220
This could be tried, @Zillion if you want to try you are welcome
 
  • Like
Reactions: ozmage

Top Liked Posts