Atemu / Polardroid

Efficient Android backups using Borg via Nix
1 stars 0 forks source link

Magisk support #6

Open Atemu opened 1 month ago

Atemu commented 1 month ago

Magisk can provide root privileges without needing a rooted ADB daemon which isn't a thing in user builds. The trouble is that everything needs to be ran via su.

Currently, adb is invoked dozens of times to do various things. In order to make operation possible without dozens of root prompts, we need some way run all required commands in a single privileged session.

It also needs to be researched whether Magisk su can even function properly while the system is stopped.

Atemu commented 1 month ago

Apparently there's a module to enable adb root via Magisk but it's not clear whether that works in user builds.