Faulty behavior when the device is rooted but root access is denied
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Domain
- mobile-dev
Research direction
Start by reproducing the issue on Android 11 with Magisk, denying root access to Package Manager, and triggering batch uninstallation. Trace the root-access check and batch uninstall flow to find where denied root access still selects the root-based path; the change is done when denied access falls back to the system uninstall dialog for each app.
Written by the indexing model from the issue text.
Description
Android version 11 (LineageOS 18.1)
Root method: Magisk version 26.1
Package Manager version: 7.0 (70) from F-Droid
Issue description
Some features that work on a non-rooted device do not work on a rooted device if root access for Package Manager is denied. I noticed it with batch uninstallation of apps at least. I did not test any other feature that might be affected.
Steps to reproduce
- Root the device
- Install Package Manager
- Deny root access when asked
- Select multiple applications
- Choose action "Uninstall"
Expected behavior
Package Manager detects that root access was denied and falls back to uninstalling each app one by one via the system dialog.
Observed behavior
Package Manager opens a batch uninstall activity and appears to try and uninstall the apps via root access which obviously fails.
Suggested solution
Detect if root access was denied and perform each action as if the device was not rooted at all.
Possible alternatives
- Grant root access to Package Manager
Batch uninstallation is the only feature i'm using which is affected by root access. I don't use it very much so when i do, i am fine with clicking the system uninstall dialog a couple of times. I try to grant root access to as few apps as possible and i'd prefer to not grant root access just for this one feature.
- Dominant language
- Java
- Stars
- 877
- Forks
- 121
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SmartPack/PackageManager
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SmartPack/PackageManager#186 ·
-
UI bugOpen
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
SmartPack/PackageManager#184 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
SmartPack/PackageManager#185 ·
-
CaosOpen
Difficulty 3/5 Half a day Newbie friendliness 30/100
SmartPack/PackageManager#183 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
SmartPack/PackageManager#182 ·
All issues in SmartPack/PackageManager
Similar issues
-
Area: Java feature request needs triage OS: Windows
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
actions/runner-images#15457 ·
Maintainers usually reply within 3 days
-
iOS CocoaPods build fails: Package.swift included in sources causes No such module 'PackageDescription'Possibly taken @dattm97 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MewX/light-novel-library_Wenku8_Android#253 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jarvis2f/telegram-files#160 ·
-
Android Spreadsheet reads the wrong column for multi-letter references when useHeaders is falseOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mit-cml/appinventor-sources#4272 · 1 comment ·
Maintainers usually reply within 1 day