Fall back to session installer when chosen installer is unavailable
Address #1386 The Shizuku branch of getPreferredInstaller() already fell back to the session installer, but the guard hasShizukuPerm() called Shizuku.checkSelfPermission(), which throws when the binder is not alive (Shizuku disabled). The exception escaped before the fallback could run, so installs failed instead of falling back. - Guard hasShizukuPerm() on Shizuku.pingBinder() and swallow failures so it returns false (instead of throwing) when Shizuku is unavailable, letting the existing fallback run. This also fixes canInstallSilently(). - Detect when any chosen installer resolves to the default and optionally inform the user via a toast, gated by notifyOnFallback so cancel/remove callers stay silent while real install paths surface it.
This commit is contained in:
@@ -178,6 +178,7 @@
|
||||
<string name="installer_am_unavailable">Install App Manager or change the installer.</string>
|
||||
<string name="installer_root_unavailable">No root access. Grant it or change the installer.</string>
|
||||
<string name="installer_shizuku_unavailable">Shizuku is not installed or set up properly.</string>
|
||||
<string name="installer_fallback_session">Chosen installer is unavailable, using the default installer instead.</string>
|
||||
<string name="installer_service_available">"Aurora Services is available and ready to install."</string>
|
||||
<string name="installer_service_unavailable">Install Aurora Services 1.0.9 or above, or change the installer.</string>
|
||||
<string name="installer_service_misconfigured">Set up Aurora Services and grant all permissions first.</string>
|
||||
|
||||
Reference in New Issue
Block a user