WeAreFairphone / flashable-zip_microG

Install microG or UnifiedNlp into an Android system, plus an OTA survival addon.d script
https://github.com/WeAreFairphone/flashable-zip_microG/releases
GNU General Public License v3.0
28 stars 6 forks source link

add support for system_root based recoveries #18

Open greenflash1986 opened 3 years ago

greenflash1986 commented 3 years ago

Hi @Roboe

as I ran into the (possible) same issue #11 I possibly fixed it. This PR tries to mount "system" and if this fails it mounts "system_root" and changes the paths accordingly. (If this mount would fail also the script dies.)

Best regards

greenflash1986 commented 3 years ago

I realized that there is more work to do: the TARGET_APKs and TARGET_DIRS need to corrected as well. Will do it and come back with a solution.

greenflash1986 commented 3 years ago

Did it. Hopefully you want to merge it.

Some explanations: