Faulty behavior when the device is rooted but root access is denied
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Área
- mobile-dev
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 877
- Forks
- 121
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SmartPack/PackageManager
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
SmartPack/PackageManager#186 ·
-
UI bugAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
SmartPack/PackageManager#184 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 56/100
SmartPack/PackageManager#185 ·
-
CaosAbierto
Dificultad 3/5 Medio día Aptitud para principiantes 30/100
SmartPack/PackageManager#183 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 52/100
SmartPack/PackageManager#182 ·
Todos los issues de SmartPack/PackageManager
Issues similares
-
Area: Java feature request needs triage OS: Windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
actions/runner-images#15457 ·
Los mantenedores suelen responder en 3 días
-
iOS CocoaPods build fails: Package.swift included in sources causes No such module 'PackageDescription'Posiblemente ocupada @dattm97 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MewX/light-novel-library_Wenku8_Android#253 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
jarvis2f/telegram-files#160 ·
-
Android Spreadsheet reads the wrong column for multi-letter references when useHeaders is falseAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
mit-cml/appinventor-sources#4272 · 1 comentario ·
Los mantenedores suelen responder en 1 día