[Samsung Galaxy Tab A7 Lite] tom.android:
Part 3

Advanced CustomAP

Step by Step for changes mount Read Only To Read/Write.

*** the continue part of Step by Step CREATE CustomAP framework file for GSI Flashing with Odin.

​

1.) Back to Stock Firmware.

It's still a good idea to flash stock firmware every now and then, because critical system components get updated and fixed, like the bootloader etc.

2.) If you used Stock A12, creates CustomAP (target GSI) and flash with Odin (include patched-Magisk of boot.img.lz4 and vbmeta.img.lz4)

View attachment 5774635

BL slot: Stock BL

AP slot: CustomAP

CP slot: Stock CP

CSC Slot: Stock CSC

UserData slot: boot+vbmeta patched by Magisk.tar

After 1'st boot( Finished Flashing)

2.1 setup magisk v.24.3

(download additional some part) if not you can't uses magisk. And Reboot.

3.) If you used Stock A11

3.1 Stock A11 + TWRP

Flash GSI with TWRP' S Fastboot (with root)

* Your Computer must installed " Bootloader Driver " before. If not you

can't uses "Fastboot command"

Set of fastboot command.

adb reboot fastboot
>>>tab will auto reboot to "TWRP fastoot mode" (ignored black screen)

fastboot devices
>>>Output screen will show your tab S/n

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

fastboot erase system

fastboot flash system yourGSI.img
>>> ignored invalid spare 'system'...at header magic
>>> divided PE system image file into parts suitable for write to dynamic tab
>>> system partition.

fastboot -w
>>>This will also erase your internal storage.

fastboot reboot recovery
>>>>>>Booting to TWRP

from TWRP menu
wipe --->format data --->yes
reboot fastboot

fastboot flash boot boot.img
>>> boot.img was patched by magisk

fastboot reboot

3.2 Stock A11 + non TWRP 》 Back to (2)

4.) NOW Your tablet was running by GSI firmware.

4.1 Computer

download platform-tools and extract to C:\

4.2 Tablet

install Root File Manager. (Such as MiXplorer)

4.3 Connect your tablet with Computer

4.4 Use root file manager copy "systemrw_1.32" folder

from downloaded Archive to "/data/local/tmp"

4.5 Open CMD as Administrator and Run in folder

" C:/platform-tools"

adb shell

su
* check magisk supersu permission--given to Shell program or not

cd /data/local/tmp/systemrw_1.32

chmod +x ./systemrw.sh

./systemrw.sh size=15

[LIST]
[*]size=x *ONLY RECOMMENDED IF YOU'VE GOT SUPER PARTITION*
With this parameter you can specify the extra free space (in megabytes) that will be added to each partition. There is a limit as to how much extra free space you can add per partition. Check your lpdump.txt to find out the exact maximum extra size.
If omitted, default extra size is 0 (shrink to minimum)
[/LIST]

or for fix no

or
./systemrw.sh out=/mnt/media_rw/8644-7453/patch/super_fixed.bin size=200

**changes 8644-7453 with your

Output: Fail but got system.img

Spoiler content hidden.

ignored " Error! failed to create super_fixed.img file. Error code: 70"

4.6 Final copy "/data/local/tmp/systemrw_1.32/img/system.img"

for making new CustomAP Or Flashing with Fastboot.

Note:​

Note:1. if you want to fix not enough space Solved with changing size from 15 to 200

But I want only "new system.img" which removed shared_blocks.

Note:2. Examples.

https://xdaforums.com/t/part3-advan...i-a13-howto-configured.4523089/#post-87775999

Note:3 Fix: Not enough space on device for partition. xxxxx

C:\platform-tools>adb shell

gta7lite:/ $ su

gta7lite:/ # cd /data/local/tmp/systemrw_1.32

gta7lite:/data/local/tmp/systemrw_1.32 # chmod +x ./systemrw.sh

gta7lite:/data/local/tmp/systemrw_1.32 # ./systemrw.sh size=200

Spoiler content hidden.

✓ Final we got "/data/local/tmp/systemrw_1.32/img/super_fixed.bin and super_original.bin

✓ Change super_fixed.bin to super_new.img

> fastboot flash super super_new.img ( new r/w GSI overwritten read only)

CustomAP

9) Compress the repacked super_new.img

Code:

lz4 -B6 --content-size super_new.img super_new.img.lz4

Then. Read Part1 tutorial.

If you want only system.img

> sudo simg2img super_new.img super.raw

> ./imjtool super.raw extract

Resources:​

1. https://xdaforums.com/t/script-andr...-superrw-featuring-makerw-read-write.4247311/

2.

TWRP FOR Android 11 Device SM-T22x​

No touch supported.

Used only (TWRP 's Fastboot)Mode.

​

Spoiler content hidden.