在使用"su"时出错命令 [英] getting error while using "su" command
本文介绍了在使用"su"时出错命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试制作批处理文件以运行adb命令.我想使用su -c
,但出现错误:
I try to make batch file to run adb commands. I want to use su -c
, but I get the error:
su: invalid uid/gid '-c'.
我在某处看到我的su
版本不支持-c
,如何启用此功能?
I saw somewhere that my su
version doesn't support -c
, how can I enable this?
推荐答案
在批处理文件中,它应该是这样的:
In batch file it should be like this:
adb shell "su 0 <command args>"
例如:
adb shell "su 0 mount -o rw,remount /system"
这篇关于在使用"su"时出错命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文