Skip to content

feat(root): refactor root access#107

Draft
researchxxl wants to merge 24 commits intomainfrom
refactorRoot
Draft

feat(root): refactor root access#107
researchxxl wants to merge 24 commits intomainfrom
refactorRoot

Conversation

@researchxxl
Copy link
Copy Markdown
Owner

step 1 restore outdated and buggy old root code
step 2 use a maintained libsuperuser dependency instead of the old unmaintained one

step 1 restore outdated and buggy old root code
@researchxxl researchxxl temporarily deployed to dev-sign-untrusted January 20, 2026 23:05 — with GitHub Actions Inactive
@vale981
Copy link
Copy Markdown

vale981 commented Jan 26, 2026

Currently running the debug build :). Can confirm that this works. Thanks :)

@vale981
Copy link
Copy Markdown

vale981 commented Jan 26, 2026

Currently the "Run Script" feature does not work as the scripts ion ".stfolder" are likely not accessible due to permission issues. Would it be possible to fix this?

@researchxxl researchxxl temporarily deployed to dev-sign-untrusted January 31, 2026 12:40 — with GitHub Actions Inactive
@researchxxl researchxxl temporarily deployed to dev-sign-untrusted February 4, 2026 11:43 — with GitHub Actions Inactive
@researchxxl researchxxl temporarily deployed to dev-sign-untrusted February 6, 2026 13:09 — with GitHub Actions Inactive
@researchxxl researchxxl temporarily deployed to dev-sign-untrusted February 8, 2026 15:38 — with GitHub Actions Inactive
@researchxxl researchxxl temporarily deployed to dev-sign-untrusted February 9, 2026 21:09 — with GitHub Actions Inactive
@researchxxl
Copy link
Copy Markdown
Owner Author

researchxxl commented Feb 15, 2026

@vale981

Currently the "Run Script" feature does not work as the scripts ion ".stfolder" are likely not accessible due to permission issues. Would it be possible to fix this?

pls look at util.runScriptSet and runShellCommandGetOutput(command, false).. if you set true you will get root exec of the scripts

needs secure and proper implementation tbh for being accepted here and file permissions should be checked before

@researchxxl
Copy link
Copy Markdown
Owner Author

@dbhavsar76 may i kindly ask if you like to have fun with this?? it is also ok for me if you dont take the challenge

@dbhavsar76
Copy link
Copy Markdown
Collaborator

I'll see what i can do. No promises. Meanwhile, I have the drawer ready.

@researchxxl
Copy link
Copy Markdown
Owner Author

we don't want to use the deprecated libsuperuser library, right? I'm checking out shizuku first, if it's not helpful then there is libsu from topjohnwu.

Edit: libsu will be better for our use case, i think.

Also will this not create problem with play store?

we first need your help to migrate the settings screen regarding root options because that has conflicts with main.. libsu should be okey.. we never know if google play might block a spec lib from some day on at least they didnt block the old lib

@nel0x wrote some weeks ago they like to help with the root implementation.. but from my pov they didnt find time yet and we are not in a hurry :)) you could ping them

researchxxl and others added 3 commits February 24, 2026 00:16
…creen (#172)

Signed-off-by: Jonas <244199422+researchxxl@users.noreply.github.com>
Co-authored-by: Dhruv Bhavsar <dhruv.bhavsar@optimoz.com>
Co-authored-by: Jonas <244199422+researchxxl@users.noreply.github.com>
@dbhavsar76

This comment was marked as resolved.

Co-authored-by: Dhruv Bhavsar <dhruv.bhavsar@optimoz.com>
@researchxxl

This comment was marked as resolved.

@researchxxl researchxxl temporarily deployed to dev-sign-untrusted March 6, 2026 13:07 — with GitHub Actions Inactive
@researchxxl researchxxl temporarily deployed to dev-sign-untrusted March 6, 2026 14:07 — with GitHub Actions Inactive
@dbhavsar76
Copy link
Copy Markdown
Collaborator

What else needs to be done here?

@researchxxl
Copy link
Copy Markdown
Owner Author

researchxxl commented Mar 8, 2026

What else needs to be done here?

@dbhavsar76
imo this might be reasonable

  • use a maintained libsuperuser dependency instead of the old unmaintained one
  • fix script runner after sync
  • show a graceful error message if root permissions are revoke
  • optional move all root related code to separate class so we can add a build variant later if google play forbidds root in future policy updates

@researchxxl researchxxl temporarily deployed to dev-sign-untrusted March 8, 2026 09:21 — with GitHub Actions Inactive
Signed-off-by: Jonas <244199422+researchxxl@users.noreply.github.com>
@researchxxl researchxxl temporarily deployed to dev-sign-untrusted March 10, 2026 20:53 — with GitHub Actions Inactive
@researchxxl researchxxl temporarily deployed to dev-sign-untrusted March 11, 2026 20:38 — with GitHub Actions Inactive
@researchxxl researchxxl temporarily deployed to dev-sign-untrusted March 17, 2026 12:57 — with GitHub Actions Inactive
@researchxxl researchxxl temporarily deployed to dev-sign-untrusted March 17, 2026 22:14 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[root] Add Full Device Storage Access [root] Updating shows error : "failed to read the configuration"

3 participants