mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-24 03:42:15 +00:00
Add: Installer package name to root installer
This commit is contained in:
parent
d3a2c78f70
commit
a0bf22ab70
@ -4,7 +4,7 @@ import android.content.Context
|
|||||||
|
|
||||||
abstract class BaseInstaller(val context: Context) : InstallationEvents {
|
abstract class BaseInstaller(val context: Context) : InstallationEvents {
|
||||||
companion object {
|
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 ROOT_UNINSTALL_PACKAGE = "pm uninstall --user %s %s"
|
||||||
const val DELETE_PACKAGE = "%s rm %s"
|
const val DELETE_PACKAGE = "%s rm %s"
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@ class RootInstaller(context: Context) : BaseInstaller(context) {
|
|||||||
get() = String.format(
|
get() = String.format(
|
||||||
ROOT_INSTALL_PACKAGE,
|
ROOT_INSTALL_PACKAGE,
|
||||||
absolutePath,
|
absolutePath,
|
||||||
|
BuildConfig.APPLICATION_ID,
|
||||||
getCurrentUserState,
|
getCurrentUserState,
|
||||||
length()
|
length()
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user