Project

General

Profile

Issue #2153

Enable users to get root directly on the device

Added by Denis 'GNUtoo' Carikli 5 months ago. Updated 16 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
11/03/2020
Due date:
% Done:

0%

Estimated time:
Resolution:
Device:
Unknown
Grant:
Type of work:
Unknown
#1

Updated by Denis 'GNUtoo' Carikli 4 months ago

This could probably be done in a way that takes advantages of user / userdebug / eng build types:
  • 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).

#2

Updated by Denis 'GNUtoo' Carikli 3 months ago

LineageOS itself doesn't have root for applications since some time:
  • 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/

#3

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

#4

Updated by Kurtis Hanna 28 days ago

Should we ship Replicant 11 with Magisk pre-installed?

#5

Updated by _I3^ RELATIVISM 16 days ago

  • Type of work Unknown added

Also available in: Atom PDF