bat脚本中进入adb shell后如何执行变量

 时间:2026-02-15 00:35:04

1、可以用输入重定向的方法来解决。

1.将所有需要执行的命令放到一个文本文档中,如cmd.txt

2、2.用输入重定向的方法: adb shell < cmd.txt 

这样就可以完全执行文本文档中的命令了。

3、例如 cmd.txt:

sumount -o remount rw /systemtouch /system/app/ttt

run.bat :

adb shell < cmd.shpause

执行以后会在/system/app/中生成一个ttt的文件,说明命令执行正常。

  • debian如何查看iptables状态
  • python使用kafka方法
  • Ubuntu下虚拟机增加新磁盘
  • 树莓派主机如何使用网络存储?
  • SQL Server2016数据库如何新建表?
  • 热门搜索
    浮夸是什么意思 白丁是什么意思 设区市是什么意思 3月17日是什么星座 下面腥臭味是什么回事 toyota是什么意思 which是什么意思 bps是什么意思 曦是什么意思 孕吐什么时候开始