Temporary disable verification when hiding app

For some reason, Google Play Protect randomly blocks our self-signed
repackaged Magisk Manager APKs. Since we are root, the sky is our
limit, so yeah, disable package verification temporarily when installing
patched APKs, LOLz

Close #1979
This commit is contained in:
topjohnwu
2019-10-24 12:23:03 -04:00
parent 0b87108174
commit 9d948f2c2b
2 changed files with 11 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ object PatchAPK {
// Install the application
repack.setReadable(true, false)
if (!Shell.su("pm install $repack").exec().isSuccess)
if (!Shell.su("force_pm_install $repack").exec().isSuccess)
return false
Config.suManager = pkg