mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
native: Remove custom package and cert validation
Remove support for custom/repackaged manager package names (su_manager / repackaged_pkg) and secondary certificate verification (repackaged_cert) from the native daemon and database. - Remove SuManager from DbEntryKey in CXX bridge and db.rs. - Remove unused get_db_string and rm_db_string methods from MagiskD. - Delete check_dyn and check_stub in package.rs. - Remove repackaged_* fields from ManagerInfo and derive Default. - Simplify find_apk_path, get_package_uid, and get_manager to target APP_PACKAGE_NAME and verify against TRUSTED_CERT. - Bump SQLite DB_VERSION to 13, drop strings table on migration, and remove create_strings from new database initialization. - Remove obsolete hidden/stub app sections from FAQ documentation. Assisted-by: Gemini 4 Argon
This commit is contained in:
-14
@@ -16,20 +16,6 @@ The following details should ensure that modules are properly disabled:
|
||||
|
||||
Magisk no longer handles root hiding. There are plenty of Magisk/Zygisk modules available that specifically provide these functionalities, please search around 😉
|
||||
|
||||
### Q: Magisk App shows Magisk Installed = N/A after an update but magisk su is still working.
|
||||
|
||||
If upgrading with App hidden (ie. you took the 'Hide the Magisk app' option), the stub app (for hiding Magisk) may remain while a full Magisk app is also installed. This creates a conflict and the full app fails to see or access root... Uninstalling and reinstalling the full app can fix this, but not if a hidden app (stub) still exists.
|
||||
|
||||
The solution is to check for a hidden stub app and remove it. It may not show up normally in your launcher homescreen any longer, but should be visible from general settings, Apps. The hidden app will be named 'Settings' (default) or whatever you named it during the hiding process. Note that it is possible to have multiple obfuscated apps present. Uninstall any iterations of the hidden app you find and try opening the full app again. If necessary, uninstall it and reinstall the full app matching the binaries installed. Typing magisk -c in a terminal emulator app will show the version and version code for Magisk binaries installed (despite Installed = N/A showing).
|
||||
|
||||
Additionally, if a 'second space', eg. Workspace, Parallel Space etc, or another sandboxed environment, eg. a Multiple User additional profile, Island app or similar, is set up, check that no iterations of Magisk (either hidden or full apps) are running within these environments.
|
||||
|
||||
### Q: After I take the 'Hide the Magisk app' option the app icon is broken.
|
||||
|
||||
When hiding the Magisk app, it will install a "stub" APK that has nothing in it. The only functionality this stub app has is to download the full Magisk app APK data into its internal storage and dynamically load it. Due to the fact that the stub APK is literally empty, it does not contain the image resource for the app icon.
|
||||
|
||||
When you open the hidden Magisk app, it will offer you the option to create a shortcut in the homescreen (which has both the correct app name and icon) for your convenience. You can also manually ask the app to create the icon in app settings.
|
||||
|
||||
### Q: How to use Magisk in the emulator?
|
||||
|
||||
With the emulator running and accessible via ADB, run `./build.py emulator <path to Magisk APK>` to temporarily install Magisk on to the emulator. The patch is not persistent, meaning Magisk will be lost after a reboot, so re-execute the script to emulate a reboot if required.
|
||||
|
||||
Reference in New Issue
Block a user