Skip to content

[FEAT] sudo permissions for apps on user_debug builds #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pixincreate opened this issue Mar 21, 2024 · 3 comments
Open

[FEAT] sudo permissions for apps on user_debug builds #1

pixincreate opened this issue Mar 21, 2024 · 3 comments

Comments

@pixincreate
Copy link
Owner

As the title says,

user_debug builds have su binary in it and on most of the ROMs (example: GrapheneOS), it is officially supported.

image

A user with access to start adb as root. With this, we can show app an interface for granting root access.

Of course, there are ton of limitations:

  • Build has to be of type user_debug. Only custom ROMs can support this (LineageOS and Own built GrapheneOS, DivestOS and etc.,)
  • App has to support this su binary which is way too hard to achieve
@pixincreate
Copy link
Owner Author

Well, no.

@pixincreate pixincreate closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2024
@yangFenTuoZi
Copy link

我通过发生root:控制码实现了类似的功能,其等效于adb root,所以不依赖于su文件
它已在我的设备上测试,但是偶尔会因为adbd没有重启完成而无法打开adb连接,我想加一个延迟会好一点
我的提交

Image
Image
Image
Image

@pixincreate
Copy link
Owner Author

Well, yeah, this can be implemented. The initial idea here was that, I wanted to give an interface like Magisk where apps can request root permission via adb root. Felt that to be too much complicated, so closed this issue as not planned given my time constraints.

I'll try to check this though!

@pixincreate pixincreate reopened this Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants