Faulty behavior when the device is rooted but root access is denied
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- mobile-dev
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 877
- Fork
- 121
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của SmartPack/PackageManager
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
SmartPack/PackageManager#186 ·
-
UI bugĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
SmartPack/PackageManager#184 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
SmartPack/PackageManager#185 ·
-
CaosĐang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 30/100
SmartPack/PackageManager#183 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 52/100
SmartPack/PackageManager#182 ·
Tất cả issue của SmartPack/PackageManager
Issue tương tự
-
Area: Java feature request needs triage OS: Windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
actions/runner-images#15457 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
iOS CocoaPods build fails: Package.swift included in sources causes No such module 'PackageDescription'Có thể đã có người làm @dattm97 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MewX/light-novel-library_Wenku8_Android#253 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jarvis2f/telegram-files#160 ·
-
Android Spreadsheet reads the wrong column for multi-letter references when useHeaders is falseĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mit-cml/appinventor-sources#4272 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày