Faulty behavior when the device is rooted but root access is denied
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 58/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 领域
- mobile-dev
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Java
- 星标
- 877
- 派生
- 121
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SmartPack/PackageManager 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
SmartPack/PackageManager#186 ·
-
UI bug未关闭
难度 2/5 1-3 小时 新手友好度 85/100
SmartPack/PackageManager#184 ·
-
难度 3/5 1-2 天 新手友好度 56/100
SmartPack/PackageManager#185 ·
-
Caos未关闭
难度 3/5 半天 新手友好度 30/100
SmartPack/PackageManager#183 ·
-
难度 2/5 1-3 小时 新手友好度 52/100
SmartPack/PackageManager#182 ·
查看 SmartPack/PackageManager 的全部 Issue
相似的 Issue
-
Area: Java feature request needs triage OS: Windows
难度 2/5 1-3 小时 新手友好度 62/100
actions/runner-images#15457 ·
维护者通常 3 天内回复
-
iOS CocoaPods build fails: Package.swift included in sources causes No such module 'PackageDescription'可能已有人在做 @dattm97 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
MewX/light-novel-library_Wenku8_Android#253 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
jarvis2f/telegram-files#160 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
mit-cml/appinventor-sources#4272 · 1 条评论 ·
维护者通常 1 天内回复