mirror of
https://github.com/YTVanced/VancedManager
synced 2025-01-05 15:01:01 +00:00
removed su -c from install-write
This commit is contained in:
parent
979e1da8f7
commit
c783de1d74
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ object PackageHelper {
|
||||||
|
|
||||||
// Moving apk to avoid permission denials
|
// Moving apk to avoid permission denials
|
||||||
Shell.su("mv ${apkFile.path} $newPath").exec()
|
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()
|
Shell.su("rm $newPath").exec()
|
||||||
if (!command.isSuccess) {
|
if (!command.isSuccess) {
|
||||||
sendFailure(command.out, context)
|
sendFailure(command.out, context)
|
||||||
|
|
Loading…
Reference in a new issue