fix: current is not supposed to be there

This commit is contained in:
Ahmad Ansori Palembani 2024-11-29 20:17:07 +07:00
parent 393ccb822e
commit a832e4d6dc
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -101,7 +101,7 @@ class ShizukuInstaller(private val context: Context, val finishedQueue: (Shizuku
context.contentResolver.openInputStream(entry.uri)!!.use {
val createCommand = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val userId = Process.myUserHandle().hashCode()
"pm install-create --user $userId current -r -i ${context.packageName} -S $size"
"pm install-create --user $userId -r -i ${context.packageName} -S $size"
} else {
"pm install-create -r -i ${context.packageName} -S $size"
}