New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Hide the Magisk App" fails without "Install Unknown Apps" permission #4960
Comments
@osm0sis Can you reproduce it? |
On MIUI I definitely can |
video_2021-11-24_22-35-06.mp4 |
MIUI 12.5 21.11.23 Nightly |
video_2021-11-24_22-36-37.mp4Pixel5 RQ3A.211001.001 |
I'll add my Poco X2 video here later, since we're doing show-and-tell. 😛 |
Probably should've mentioned in the original summary - this is with the latest LineageOS, rather than stock AOSP. |
No one can reproduce it or provide a valid log. |
I can reproduce the issue, repeatedly, with ease. I can give you logs, but wouldn't be able to fix it myself. I have a screen recording of the whole process but it's 100mb. I'll upload it to my AFH if you want to inspect it. |
Granting REQUEST_INSTALL_PACKAGES kills the process and when returning to the app it is already a new process, causing the previously registered install broadcast receiverto be lost. Magisk/app/src/main/java/com/topjohnwu/magisk/core/tasks/HideAPK.kt Lines 143 to 146 in 1c8ebfa
|
Added video above. 👍 |
"Hide the Magisk App" fails if Magisk Manager does not have permission to "Install Unknown Apps". There is no prompt that this functionality is missing. Instead the hidden app is in a half-installed state where there is a launcher icon but it cannot be launched.
Magisk Manager should check that it has this permission before attempting to hide.
This permission prompt for this successfully appears when updating (or reinstalling) Magisk Manager from within Magisk Manager. After this the "Hide the Magisk App" function works successfully.
Device: Pixel 5
Android version: 11
Magisk version name: 23014
Magisk version code: 23014
The text was updated successfully, but these errors were encountered: