mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Add -r
flag to ShizukuInstaller createCommand
Co-Authored-By: FourTOne5 <59261191+FourTOne5@users.noreply.github.com>
This commit is contained in:
parent
0d08ae6e15
commit
d1a72265a4
1 changed files with 2 additions and 2 deletions
|
@ -89,9 +89,9 @@ class ShizukuInstaller(private val context: Context, val finishedQueue: (Shizuku
|
|||
val size = context.getUriSize(entry.uri) ?: throw IllegalStateException()
|
||||
context.contentResolver.openInputStream(entry.uri)!!.use {
|
||||
val createCommand = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
"pm install-create --user current -i ${context.packageName} -S $size"
|
||||
"pm install-create --user current -r -i ${context.packageName} -S $size"
|
||||
} else {
|
||||
"pm install-create -i ${context.packageName} -S $size"
|
||||
"pm install-create -r -i ${context.packageName} -S $size"
|
||||
}
|
||||
val createResult = exec(createCommand)
|
||||
sessionId = SESSION_ID_REGEX.find(createResult.out)?.value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue