回答
是的,Hamibot 支持使用 adb 命令。
在 Hamibot 脚本中,你可以使用 shell() 函数来执行 adb shell 命令。例如:
// 文档地址 https://docs.hamibot.com/
var result = shell('am force-stop com.tencent.mm', true);
log(result);
这个例子中,shell() 函数执行了 am force-stop 命令来强制停止微信应用,第二个参数 true 表示以 root 权限运行(如果需要)。
注意:Hamibot 使用的 JavaScript 引擎是 Rhino 1.7.15,编写脚本时需避免使用箭头函数等现代 JS 特性以确保兼容性。
ℹ️ 本回答由 AI 生成,内容仅供参考