{{auto.service != null}} 判断是否开启无障碍
启动无障碍界面
app.startActivity({ action: "android.settings.ACCESSIBILITY_SETTINGS" });
log('1.点选之后会跳到界面,看最下面\n2.已下载的应用(或已安装的服务)\n3.找到:APP>使用>确定')
root自动开启权限:先取句柄,后开启无障碍
function root_open() {
let ss = shell('settings get secure enabled_accessibility_services', true).result; log(ss);
shell("settings put secure enabled_accessibility_services " + ss, true);
shell("settings put secure accessibility_enabled 1", true);
}