How To Guide [Close] Stock A13 + GSIs A13

Search This thread

Skorpion96

Account currently disabled
Aug 28, 2014
378
91
Palermo
Description: TWRP boots fine, everything mounts fine. Everything else is good except when I try to backup prism partition or super partition. It reboots when it progresses so far. Recovery,boot,etc..all backup without issue.

Device tree: https://github.com/LeDrew2017/android_devic_gta7lite

Kernel Source: https://github.com/LeDrew2017/gta7lite_kernel

Recovery log: https://pastebin.com/3SyQ1bAs

dmesg Log: https://pastebin.com/R1y9i0Ry

Last_Kmsg log: https://pastebin.com/Pxafxa2F


List Of Things: i have tried checking my mountpoints in my fstab file, and my twrp.flags. I'm thinking it might have to do with the kernel maybe, a second opinion would be great.
Are you on android 11? twrp only boot there, or do you have twrp for android 12?
 

Skorpion96

Account currently disabled
Aug 28, 2014
378
91
Palermo
@ozmage how you fixed this:

Run chmod a+x script2.sh
12open: ../r.img failed with 2: No such file or directory
13open: system/bin/recovery failed with 2: No such file or directory
14open: system/bin/recovery failed with 2: No such file or directory
15open: system/bin/recovery failed with 2: No such file or directory
16open: system/bin/recovery failed with 2: No such file or directory
17open: system/bin/recovery failed with 2: No such file or directory
18open: system/bin/recovery failed with 2: No such file or directory
19open: system/bin/recovery failed with 2: No such file or directory
20open: system/bin/recovery failed with 2: No such file or directory
21open: system/bin/recovery failed with 2: No such file or directory
22open: system/bin/recovery failed with 2: No such file or directory
23open: system/bin/recovery failed with 2: No such file or directory
24open: system/bin/recovery failed with 2: No such file or directory
25open: ../r.img failed with 2: No such file or directory
26cp: cannot stat 'new-boot.img': No such file or directory
27wc: recovery.img: No such file or directory
28usage: avbtool add_hash_footer [-h] [--image IMAGE]
29 [--partition_size PARTITION_SIZE]
30 [--dynamic_partition_size]
31 [--partition_name PARTITION_NAME]
32 [--hash_algorithm HASH_ALGORITHM] [--salt SALT]
33 [--calc_max_image_size]
34 [--output_vbmeta_image OUTPUT_VBMETA_IMAGE]
35 [--do_not_append_vbmeta_image]
36 [--algorithm ALGORITHM] [--key KEY]
37 [--signing_helper APP]
38 [--signing_helper_with_files APP]
39 [--public_key_metadata KEY_METADATA]
40 [--rollback_index ROLLBACK_INDEX]
41 [--rollback_index_location ROLLBACK_INDEX_LOCATION]
42 [--append_to_release_string STR]
43 [--prop KEY:VALUE] [--prop_from_file KEY:pATH]
44 [--kernel_cmdline CMDLINE]
45 [--setup_rootfs_from_kernel IMAGE]
46 [--include_descriptors_from_image IMAGE]
47 [--print_required_libavb_version]
48 [--chain_partition PART_NAME:ROLLBACK_SLOT:KEY_PATH]
49 [--flags FLAGS] [--set_hashtree_disabled_flag]
50 [--use_persistent_digest] [--do_not_use_ab]
51avbtool add_hash_footer: error: argument --partition_size: expected one argument
52Error: Process completed with exit code 2.

Has someone been able to build this stupid recovery? How?
 
Last edited:

ozmage

Senior Member
Jun 28, 2017
299
74
36
Santo Domingo
Samsung Galaxy Tab A7 Lite
@ozmage how you fixed this:

Run chmod a+x script2.sh
12open: ../r.img failed with 2: No such file or directory
13open: system/bin/recovery failed with 2: No such file or directory
14open: system/bin/recovery failed with 2: No such file or directory
15open: system/bin/recovery failed with 2: No such file or directory
16open: system/bin/recovery failed with 2: No such file or directory
17open: system/bin/recovery failed with 2: No such file or directory
18open: system/bin/recovery failed with 2: No such file or directory
19open: system/bin/recovery failed with 2: No such file or directory
20open: system/bin/recovery failed with 2: No such file or directory
21open: system/bin/recovery failed with 2: No such file or directory
22open: system/bin/recovery failed with 2: No such file or directory
23open: system/bin/recovery failed with 2: No such file or directory
24open: system/bin/recovery failed with 2: No such file or directory
25open: ../r.img failed with 2: No such file or directory
26cp: cannot stat 'new-boot.img': No such file or directory
27wc: recovery.img: No such file or directory
28usage: avbtool add_hash_footer [-h] [--image IMAGE]
29 [--partition_size PARTITION_SIZE]
30 [--dynamic_partition_size]
31 [--partition_name PARTITION_NAME]
32 [--hash_algorithm HASH_ALGORITHM] [--salt SALT]
33 [--calc_max_image_size]
34 [--output_vbmeta_image OUTPUT_VBMETA_IMAGE]
35 [--do_not_append_vbmeta_image]
36 [--algorithm ALGORITHM] [--key KEY]
37 [--signing_helper APP]
38 [--signing_helper_with_files APP]
39 [--public_key_metadata KEY_METADATA]
40 [--rollback_index ROLLBACK_INDEX]
41 [--rollback_index_location ROLLBACK_INDEX_LOCATION]
42 [--append_to_release_string STR]
43 [--prop KEY:VALUE] [--prop_from_file KEY:pATH]
44 [--kernel_cmdline CMDLINE]
45 [--setup_rootfs_from_kernel IMAGE]
46 [--include_descriptors_from_image IMAGE]
47 [--print_required_libavb_version]
48 [--chain_partition PART_NAME:ROLLBACK_SLOT:KEY_PATH]
49 [--flags FLAGS] [--set_hashtree_disabled_flag]
50 [--use_persistent_digest] [--do_not_use_ab]
51avbtool add_hash_footer: error: argument --partition_size: expected one argument
52Error: Process completed with exit code 2.

Has someone been able to build this stupid recovery? How?
it's a .lz4 recovery ? need unpacked

heimdall is much better than that odin
 

Skorpion96

Account currently disabled
Aug 28, 2014
378
91
Palermo
it's a .lz4 recovery ? need unpacked

heimdall is much better than that odin
it is .img, anyway idk i had difficulties installing heimdall, so i went for odin, and let me tell you, this version is great.
Edit: i got it, i renamed recovery to recovery.img, uploaded to transfer.sh here is the link (T220-A12):https://www.mediafire.com/file/gu6scemkfdoijev/T220_A12-Patched-Recovery.zip/file
T220 A13 Fastboot Patched recovery:https://www.mediafire.com/file/2g6i6pv7empj9z2/SM-T220_A13_fastbootd-recovery.tar/file
T225 A13 fastboot patched recovery:https://www.mediafire.com/file/bjr1x9broklnh8n/T225_A13-Patched-Recovery.zip/file
also there is a good mirror to patch recovery if you need (easier to use since has a gui):https://tmpfiles.org/
Another thing, i was successful flashing with fastboot this:Xtended-XT-13_arm64-bvN-lite-UNOFFICIAL.img.xz you can download from internet directlty. Seems that the time of converting images is over. Personally now only thing I want to do is disable zip verification on stock recovery to root GSIs from it and so I asked the dev of the fastboot recovery patching tool to add it, obliviously I don't know if he will but I hope. Anyway @tom.android maybe we should make a new post for the fastboot recovery and fastboot flashing for our tab but potentially for every Samsung, giving credit to the creator of the tool and @Zillion for the idea.
Also since Christmas passed a few days ago i made a video of the whole process of porting recovery, flashing it through odin4 cli, and flashing a gsi from fastboot:
Another thing, i got gsi working on A13 firmware on my T220 (cherish os A13 with phhh superuser)@tom.android
 
Last edited:

Top Liked Posts