diff --git a/src/main/kotlin/com/looker/droidify/installer/BaseInstaller.kt b/src/main/kotlin/com/looker/droidify/installer/BaseInstaller.kt index 68c14d1d..d9225ecc 100644 --- a/src/main/kotlin/com/looker/droidify/installer/BaseInstaller.kt +++ b/src/main/kotlin/com/looker/droidify/installer/BaseInstaller.kt @@ -4,7 +4,7 @@ import android.content.Context abstract class BaseInstaller(val context: Context) : InstallationEvents { companion object { - const val ROOT_INSTALL_PACKAGE = "cat %s | pm install --user %s -t -r -S %s" + const val ROOT_INSTALL_PACKAGE = "cat %s | pm install -i %s --user %s -t -r -S %s" const val ROOT_UNINSTALL_PACKAGE = "pm uninstall --user %s %s" const val DELETE_PACKAGE = "%s rm %s" } diff --git a/src/main/kotlin/com/looker/droidify/installer/RootInstaller.kt b/src/main/kotlin/com/looker/droidify/installer/RootInstaller.kt index f117d59f..05fd1e25 100644 --- a/src/main/kotlin/com/looker/droidify/installer/RootInstaller.kt +++ b/src/main/kotlin/com/looker/droidify/installer/RootInstaller.kt @@ -36,6 +36,7 @@ class RootInstaller(context: Context) : BaseInstaller(context) { get() = String.format( ROOT_INSTALL_PACKAGE, absolutePath, + BuildConfig.APPLICATION_ID, getCurrentUserState, length() )