Enable users to get root directly on the device
Updated by Denis 'GNUtoo' Carikli 4 months ago
- Support for user and eng could be added if they are not yet in the launch target
- It would only be enabled for userdebug (and eng?)
- The default will be userdebug
As there is some interest in not having root for security reasons, it would also support such use case (provided that users wanting that recompile Replicant).
Updated by Denis 'GNUtoo' Carikli 3 months ago
- AddonSU was provided by LineageOS as an add-on to enable applications to get root
- This doesn't work anymore with LineageOS 17.1, so users are now advised to use Magisk (https://github.com/topjohnwu/Magisk) instead.
I now added the ability to integrate applications from the F-Droid repository in a more robust way. The code isn't perfect as enabling it should probably be done in vendor/replicant but beside that it's robust enough.
Since Magisk isn't in F-droid we however cannot use it like that. Installing some applications as system apps also don't automatically enable them to get root.
The su binary is also not shipped with userdebug.
We have https://f-droid.org/en/packages/me.phh.superuser/ but it probably requires us to ship some su binary to work. It's source code README has more infos.
Note that there are specifications for adding root support to Android: https://su.chainfire.eu/
Updated by Kurtis Hanna 3 months ago
It sounds like Magisk does not build on F-Droid's build system because of a Python issue that is directly related to the fact that F-Droid's build system is still on Debian Stretch rather than Debian Stable. There is a build recipe on the issue thread though, so it is likely to get merged once they upgrade to Debian Stable. https://gitlab.com/fdroid/fdroiddata/-/merge_requests/4401