removed su -c from install-write

This commit is contained in:
X1nto 2021-02-22 15:34:55 +04:00
parent 979e1da8f7
commit c783de1d74
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ object PackageHelper {
// Moving apk to avoid permission denials
Shell.su("mv ${apkFile.path} $newPath").exec()
val command = Shell.su("su -c pm install-write -S ${apkFile.length()} $sessionId $apkName $newPath").exec()
val command = Shell.su("pm install-write -S ${apkFile.length()} $sessionId $apkName $newPath").exec()
Shell.su("rm $newPath").exec()
if (!command.isSuccess) {
sendFailure(command.out, context)