63

How To Guide - [GUIDE] [T220/T225] Flash a GSI on the A7 Lite (without TWRP) | P...

 1 year ago
source link: https://forum.xda-developers.com/t/guide-t220-t225-flash-a-gsi-on-the-a7-lite-without-twrp.4456821/page-17#post-88618837
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How To Guide [GUIDE] [T220/T225] Flash a GSI on the A7 Lite (without TWRP)

Can someone please compile a build for SM-T220, im getting an error in step 4 and im unable to figure it out.

Pixel Experience Plus 13.0 v2023.04.21 <gsi to use

T220XXS3CWD1 <my current software

the help would be greatly appreciated

WHY NOT Uses fastbootD ?

Xardly

Member
Apr 9, 2023
WHY NOT Uses fastbootD ?

im a bit of a newbie when it comes to flashing custom roms so i struggle a bit when it comes to using things like fasbootD, it would make my life a lot easier if i could find a way to flash it with ODIN but i'll give fastbootD a shot

im a bit of a newbie when it comes to flashing custom roms so i struggle a bit when it comes to using things like fasbootD, it would make my life a lot easier if i could find a way to flash it with ODIN but i'll give fastbootD a shot

1.Extract your "recovery.img.lz4" from Your AP Firmware here. ( uses winzip or 7-zip)

2. I'll patch this "recovery.img.lz4" to recovery_fastbootD.tar then you must flash this tar file to replace old recovery.

3. When you have patched (boot.img+vbmeta.img) + recovery_fastbootD that I call it " 3in1.tar" then you can uses command to flash your own any GSI.

More detail please read my tutorial here https://forum.xda-developers.com/t/rewrite-using-fastbootd.4544863/

FastbootD Command
=FastbootD===

adb devices
adb reboot fastboot
fastboot erase system

fastboot flash system PixelExperience_Plus_arm64-ab-vndklite-13.0-20230421-UNOFFICIAL.img

-------> if founded not enough spaces to resized partition.
fastboot erase product
fastboot resize-logical-partition product 0x0
fastboot getvar all
-----> if resized product success then you will saw
(bootloader) partition-sizeroduct:0x0

fastboot -w

*At FastbootD Menu select
-Enter Recovery

*At Recovery Menu select
-Wipe data/Factory reset
confirm

-Reboot system now

==================================

Last edited: Apr 29, 2023

Xardly

Member
Apr 9, 2023
so im trying to use your guide but when i try to flash the vbmeta.img it gives me an "unknown command" error

Attachments

  • Screenshot 2023-04-28 225122.png

    Screenshot 2023-04-28 225122.png
    35.7 KB · Views: 15
so im trying to use your guide but when i try to flash the vbmeta.img it gives me an "unknown command" error

-You can't uses fastbootd with vbmeta.
-Please make one tar file (boot.img.lz4 +vbmeta.img.lz4) then patch with magisk in your tab device.
-create 3in1.tar and flash with odin.
_After your tab had (magisk-patch boot.img + magisk-patch vbmeta.img+ recovery patch) tar. Then you can uses fastboot command.

Last edited: Apr 29, 2023

applekid2016

New member
May 8, 2023
Hi everyone, this is a short guide on how to flash a GSI on the A7 Lite (without TWRP).

Its a nice little tablet for the price but it doesn't have a very powerful SOC and for me the One UI is barely usable on this device. The launcher and the whole system UI feel extremely laggy, but apps generally run fine.

I tried phhusson's custom Android 12 GSI and the device was almost resurrected. Much much less UI lag and the battery life is the same as stock ROM. The only thing i found not working is MTP but i don't need it.

Since i saw a couple users here asking about GSIs i decided to make a very simple guide.

As always do this at your own risk. You may brick your device. You will void your warranty.

Follow the guide only if you know what your are doing. Read each step carefully and avoid copy pasting stuff randomly.

I won't go deep into details as i believe you should have some basic knowledge if you decide to do this.

The procedure sould work for both T220 and T225 (i tested it on a T220).

I did this on Windows using WSL for some of the steps.

Sources

Thanks to @kkoo and @Brepro1 for the useful info

- https://forum.xda-developers.com/t/...sing-odin-without-twrp-phh-lineageos.4114435/
- https://forum.xda-developers.com/t/...r-img-and-flashing-our-modifications.4196625/

Requirements​

- Unlocked bootloader

If you haven't done this already follow the steps in parts 1-2 from:
forum.xda-developers.com

[TUTORIAL] How To Unlock & Root Tab A7 Lite T220/T225, & Install LSPosed, Magisk, Mods

While some of these instructions are copied from other sources, I combined all the different things I learned, because no one guide was sufficient, and all needed additional info, so I expanded it all to one place. Part I is partly from...
forum.xda-developers.com forum.xda-developers.com
- Latest official ROM

I used T220XXU1AVE1 for EUX region
samfw.com

Samsung Galaxy Tab A7 Lite Firmware Download SM-T220 Free Download

Samsung Galaxy Tab A7 Lite Firmware Download SM-T220 Free Download ⭐ Official and fast update ⭐ Max speed and free download ⭐ Best Samsung Galaxy website
samfw.com samfw.com
- Download your preferred GSI

I used AOSP 12.1 v414 with gapps from phhusson
github.com

Releases · phhusson/treble_experimentations

Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.
github.com
- Clean vbmeta.img from Google

Tools​

- lz4
github.com

Releases · lz4/lz4

Extremely Fast Compression algorithm. Contribute to lz4/lz4 development by creating an account on GitHub.
github.com
- simg2img
forum.xda-developers.com

[DEV][Tools] simg2img for Windows

Hello, although I'm working in Linux (VM too) I rewrote the SIMG2IMG so far for Windows (PE32, x86) Usage: simg2img.exe -i -o Optional: -d for debugging messages, listing all chunks of the image...
forum.xda-developers.com forum.xda-developers.com
- lpunpack and lpmake
forum.xda-developers.com

[GUIDE] OTA Tools LPUnpack

Please see this URL https://android.googlesource.com/platform/build.git/+/eec4a7cba4face3370acb6293ab357879920b467 and this for more information. Hi everyone. I'm surprised I havent seen a thread about ota tools yet and lpunpack. This zip file...
forum.xda-developers.com forum.xda-developers.com
- tar-md5-script-tool

Use the attached tar-md5-script-tool.zip

Steps​

1. Extract official ROM files (BL, AP, CP, CSC)

2. Extract AP .tar.md5

3. Decompress the extracted super.img.lz4
Code:
lz4 -d super.img.lz4 super.img
4. Convert the sparse super.img
Code:
simg2img super.img super.ext4.img
5. Unpack super.ext4.img
Code:
lpunpack super.ext4.img
I got 4 partitions in my image (should be the same for all T220/T225 ROMs):

- odm.img
- product.img
- system.img
- vendor.img

6. Replace system.img with your GSI (rename it to system.img)

7. Get the size of all partitions and the size of the original super.ext4.img (not the sparse super.img)
Code:
stat -c '%n %s' IMG_FILE.img
8. Repack super.img
Code:
lpmake --metadata-size 65536 \
--super-name super \
--metadata-slots 2 \
--device super:ORIGINAL_SUPER_IMG_SIZE \
--group main:SUM_OF_ALL_PARTITIONS_SIZES \
--partition odm:readonly:ODM_PARTITION_SIZE:main \
--image odm=./odm.img \
--partition product:readonly:PRODUCT_PARTITION_SIZE:main \
--image product=./product.img \
--partition system:readonly:SYSTEM_PARTITION_SIZE:main \
--image system=./system.img \
--partition vendor:readonly:VENDOR_PARTITION_SIZE:main \
--image vendor=./vendor.img \
--sparse \
--output ./super_new.img
Replace ORIGINAL_SUPER_IMG_SIZE, SUM_OF_ALL_PARTITIONS_SIZES, ODM_PARTITION_SIZE, PRODUCT_PARTITION_SIZE, SYSTEM_PARTITION_SIZE, VENDOR_PARTITION_SIZE with the values you obtained in step 7.

Read lpmake docs for a more detailed expalation of the args used above: 9. Compress the repacked super_new.img
Code:
lz4 -B6 --content-size super_new.img super_new.img.lz4
10. Compress the clean vmbeta.img
Code:
lz4 -B6 --content-size vbmeta.img vbmeta.img.lz4
11. Extract tar-md5-script-tool.zip

12. Put all the *.img.lz4 files extracted from AP .tar.gz in tar-md5-script-tool dir

13. Replace super.img.lz4 and vbmeta.img.lz4 in tar-md5-script-tool dir with your repacked and compressed super_new.img.lz4 (rename it to super.img.lz4) and the clean compressed vbmeta.img.lz4

14. Run batch.bat in tar-md5-script-tool dir

You will find the new AP .tar.md5 in the temp-folder subdir

15. Flash your custom AP .tar.md5 with Odin along with BL, CP, CSC from original ROM

16. Reboot into recovery and do a factory reset

17. Done

i am having trouble finding a firmware file for sm-t220 that has all the components BL, AP, CP, CSC. every stock rom that ive downloaded only has AP and BL. Can you help me with this?

- Project Elixir 3.6 (Android 13) For SM-T220 (February 23rd update)
- Region: XAR
- Firmware needed: T220XXS2CWA6 (Android 13)
- Has GApps and Magisk 25.2
- Security: February 5th, 2023.
- microSD exFAT compatible

Remember:
  1. Enable Double Tap To Wake in Phh Treble Settings > Samsung features > Enable double tap to wake. Reboot.
  2. Fix headset support enabling "Use alternate way to detect headsets" in Phh Treble Settings > Misc features. Reboot.
  3. Set "Smallest width" on either "Display" settings or "Developer options" at 598 if you don't want the toolbar.

HEY I WANT LINK PLEASE !! WHY DID YOU REMOVED ITT

nirogu325

Senior Member
Oct 15, 2010 3,787 1,973
HEY I WANT LINK PLEASE !! WHY DID YOU REMOVED ITT

Learn how to do it yourself, instructions on first post. I don't owe you anything so you can drop the caps.

Xardly

Member
Apr 9, 2023
Thanks for the reminder. Deleted.

well played, he didn't deserve it but oh well

nirogu325

Senior Member
Oct 15, 2010 3,787 1,973
well played, he didn't deserve it but oh well

There's an automated tool to make GSIs for this tablet for quite some time now. Whoever hasn't learned how to use that by now...well...

Xardly

Member
Apr 9, 2023
There's an automated tool to make GSIs for this tablet for quite some time now. Whoever hasn't learned how to use that by now...well...

true, however when i tried to use it the site it brings you to didnt seem to work for me and i never really followed up on it

Learn how to do it yourself, instructions on first post. I don't owe you anything so you can drop the caps.

Sorry SIR ! for my behaviour actually i am new to this gsi making and i really don't get it ! i have onced succesfully flashed your file but then i flashed stock one and i not able to file your SM-t220 GSI file that's why i tried to download it but it's removed from mediafire ! {:iam15} 😢😢

Are there so many tutorials about SM-T22x here, from history till now from nothing (hard way) to very easy method why don't read and upgrade your skill from it.

Reactions: Sakuna

Are there so many tutorials about SM-T22x here, from history till now from nothing (hard way) to very easy method why don't read and upgrade your skill from it.

never mind ! i just install fastbootd and a custom gsi from Tutorials ! THX A LOT @tom.android

Madacam

New member
Feb 26, 2020
Hello Nirogu325,

You get a lot of requests for tab a7 lite compilations. Can you make a compilation for my own tablet? Here are the firmware references: SM-T225_XEF_T225XXS3CWC2 (android 13). The gsi I'm interested in is LeOS or AOSP without GAPPs.

I've consulted a few compilation tutorials but, given my computer level, I don't feel equipped to do it by myself, on the other hand I know how to use Odin. If this is possible for you, I'd be grateful. (excuse my English translation).

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK