Google has recently changed the way to mount system and introduced Dynamic Partitions. Previously in a rooted adb shell, I used to run mount -o rw,remount /system
to mount system in read-write mode. They introduced a new super.img that contains system, vendor, odm, product, etc.
I have a simple question: How can I mount a system from a rooted adb shell in recovery?
After reading the Implementing Dynamic Partitions guide it looks like I have to
- create system partition dynamically
- need an entry somewhere where mount point exists
- mount the system after the above steps.
I don't know how I can do the first step. As the information on the mounting location is inside super.img meta-data and I am unable to read it.
Anyone can put some more light here?
chmod 777 /dev/diag
in init.rc? I read Magisk code but it uses prebuilt-binary so not able to figure out how exactly it patches init.