avbroot icon indicating copy to clipboard operation
avbroot copied to clipboard

How to replace the partition when rooting a device with init_boot

Open dumet12138 opened this issue 1 year ago • 1 comments

For devices shipped with Android 13 or higher, the ramdisk is in init_boot. If I manually patch init_boot, how do I need to replace the partition? Should I use --prepatched or --replace to replace a partition

dumet12138 avatar May 07 '24 05:05 dumet12138

If your patches are for enabling root access, use --prepatched. If you're editing other files in the ramdisk that are unrelated to root access, use --replace (avbroot will apply the root patches for you in this scenario.)

chenxiaolong avatar May 07 '24 14:05 chenxiaolong