phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.4k stars 660 forks source link

Vendor and system in super img #1800

Open hacker812c opened 3 years ago

hacker812c commented 3 years ago

Samsung developed the Galaxy a51 by joining the vendor and the system on android 11 in a super partition. As I understand it from the Treble project, the vendor partition should be separate from the system. this device uses dynamic partitions. This development by Samsung prevents the creation of backups via twrp and prevents or hinders the use of custom roms. I present this way this complaint because I bought a Samsung device that cannot use custom roms and twrp backups. I await thank you.

Geraldo Gomes From west center Brazil cnesbr@gmail.com

devrieshh commented 3 years ago

you can extract the super partition see https://forum.xda-developers.com/t/extract-system-img-vendor-img-and-product-img-from-super-img.4184901/ But you only have to reflash vendor.img when you have hardware problems,see how to flash samsung devices

phhusson commented 3 years ago

You can also just flash a recovery that has fastbootd

14 avr. 2021 20:14:53 devrieshh @.***>:

you can extract the super partition see https://forum.xda-developers.com/t/extract-system-img-vendor-img-and-product-img-from-super-img.4184901/ But you only have to reflash vendor.img when you have hardware problems,see how to flash samsung devices

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub[https://github.com/phhusson/treble_experimentations/issues/1800#issuecomment-819730193], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAAA4OSKYFMYWMM4IRY72KTTIXLR3ANCNFSM424JDIAQ]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAjSURBVGiB7cEBDQAAAMKg909tDwcUAAAAAAAAAAAAAADApwExOAABR9ZGcwAAAABJRU5ErkJggg==###24x24:true###][Image de pistage][https://github.com/notifications/beacon/AAAA4OS52R2FY2IFZQOEYYLTIXLR3A5CNFSM424JDIA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGDOBOEI.gif]

lss4 commented 3 years ago

Sorry but have you tried this?

This works on Galaxy Tab S7+, though there are still a few hurdles to getting GSIs working flawlessly on it (namely Magisk doesn't work yet).

Theoretically, you can simply unsparse the image (if necessary) and dd it to the dynamic partitions (which this zip does). If done correctly, try mounting /system (read-only recommended, and particularly if using non-vndklite) and see if you can see the stuffs in there. If yes, then the GSI has been flashed successfully, though this doesn't mean it'll work.

EDIT: Additionally, you need Multi-Disabler to remove encryption, if you ever want TWRP to access your data, as otherwise TWRP can't access your data nor make backup of it.