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

Search This thread

Skorpion96

Senior Member
Aug 28, 2014
368
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
368
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
434
213
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
368
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

  • There are no posts matching your filters.
  • 3
    Booted With just a minimal fix And Touch working
    Nice, it's good to see someone owning the device developing for it, I was mostly "blindly" doing stuff and then asking Skorpion to test them.
    1
    After formatting and flashing recovery again does touch work?
    not recovery in gsi touch dead , i fetched sources added my fixes to be able to compile with clang 16.0.2 from google upstreamed from version 4.19.191 to 4.19.200 compiled booted and DEAD touch no idea why or maybe lagsung did the same as the a11 kernel or my optimizations broke the touch drivers HIMAX dunno im compiling now with theirs toolchain and not chaing anything else to see if i boot with touch for now just using stock a13 kernel with Kernel Command line modded to be permissive this way on GSI WIFI_GRIP sensor sar works no idea how to use it but its there also when kernel is permissive i can see all the GPT table on Device Info HW and make viper works ETC

    On The Screenshot is the new kernel brick ... XD
    1
    not recovery in gsi touch dead , i fetched sources added my fixes to be able to compile with clang 16.0.2 from google upstreamed from version 4.19.191 to 4.19.200 compiled booted and DEAD touch no idea why or maybe lagsung did the same as the a11 kernel or my optimizations broke the touch drivers HIMAX dunno im compiling now with theirs toolchain and not chaing anything else to see if i boot with touch for now just using stock a13 kernel with Kernel Command line modded to be permissive this way on GSI WIFI_GRIP sensor sar works no idea how to use it but its there also when kernel is permissive i can see all the GPT table on Device Info HW and make viper works ETC

    On The Screenshot is the new kernel brick ... XD
    Booted With just a minimal fix And Touch working

    Screenshot_20230102-190301_Settings.png
    1
    Same here, no touch coming from USA t220 . Using a Dongle and mouse.
    Yes that happens because Samsung didn't include touch drivers, so it's a matter of be lucky. If we can boot A13 kernel twrp will be released hopefully with touch support
    1
    Someone help me, I have been trying many times and the twrp does not work on the touch screen.
    Touch doesn't work I guess that's what everyone said
  • 12
    pngwing.com.png

    /* * Your warranty is now void. * * I am not responsible for bricked devices, dead SD cards, * thermonuclear war, or you getting fired because the alarm app failed. Please * do some research if you have any concerns about features included in this Recovery * before flashing it! YOU are choosing to make these modifications, and if * you point the finger at me for messing up your device, I will laugh at you. */

    Remember this is in early development (alpha)
    1. Not Working:
    2. > Adb Sideloading
    3. > Vibration (minor issue)
    4. > Other Problems: Sometimes when you boot recovery touch not works and only solution is to re-flash TWRP again from Odin, this is kernel issue, we need custom kernel. I found out that in that case you can reboot with usb otg and mouse connected and twrp could start working on next reboot.

    1. Install Instructions
    2. Flash TWRP from Odin on AP Slot & Hold Volume Up + Power while flashing until TWRP appears.
    3. Go to Advanced > Terminal and type "multidisabler" (without quotes", then data wipe.
    4. Now reboot into system, after completing first setup of the device reboot into TWRP again to see if you can see the contents of your Internal Storage, you should, if yes you have successfully disabled Samsung encryption of internal storage.


    1. Downloads (SM-T220): https://github.com/Skorpion96/android_device_samsung_gta7lite/releases/
    2. Downloads (SM-T225): https://github.com/DevZillion/android_device_samsung_gta7lite/releases/tag/v0.1.0_T225
    3. Downloads (SM-T227): https://github.com/DevZillion/android_device_samsung_gta7lite/releases/tag/v0.0.0_T227
    4. Credits to me obviously for testing and recovery tree: https://github.com/Skorpion96/gta7lite_recovery
    5. and to https://github.com/DevZillion for helping with TWRP.
    6. Sources:
    7. Device Tree:https://github.com/Skorpion96/android_device_samsung_gta7lite/tree/main
    8. TWRP:https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp/tree/twrp-11
    9. Kernel - Samsung's Stock Kernel built from source.
    3
    Warning! Do not update to OCT security.

    T22XXXS1BVI2


    Bootloader has changed, from U1 , if so ,you can't downgrad anymore.!
    ( Brick your tab if downgrade.)

    Now. this update is on all samsung server. ota to your lock bootloader for auto update.

    Don't make your CustomAP file with T225XXS1BVI2.

    Samsung wants me to request sources again?
    3
    Booted With just a minimal fix And Touch working
    Nice, it's good to see someone owning the device developing for it, I was mostly "blindly" doing stuff and then asking Skorpion to test them.
    2
    SM-T227 twrp added, Enjoy!