Add: Installer package name to root installer

This commit is contained in:
machiav3lli 2022-05-07 03:07:02 +02:00
parent d3a2c78f70
commit a0bf22ab70
2 changed files with 2 additions and 1 deletions

View File

@ -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"
}

View File

@ -36,6 +36,7 @@ class RootInstaller(context: Context) : BaseInstaller(context) {
get() = String.format(
ROOT_INSTALL_PACKAGE,
absolutePath,
BuildConfig.APPLICATION_ID,
getCurrentUserState,
length()
)