mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +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 {
|
||||
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"
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ class RootInstaller(context: Context) : BaseInstaller(context) {
|
||||
get() = String.format(
|
||||
ROOT_INSTALL_PACKAGE,
|
||||
absolutePath,
|
||||
BuildConfig.APPLICATION_ID,
|
||||
getCurrentUserState,
|
||||
length()
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user