同一个脚本无法打开多个app(非同时)

Feb 25, 2022, 2:16:44 PM
// 禁止app「获取手机中已安装的应用信息」权限
function main(appName) {

   launchApp('com.ss.android.ugc.aweme.lite');

    sleepRandom();

    toast('打开快手');

    launchApp('com.kuaishou.nebula');
    toast('任务结束,退出');
}

function sleepRandom(){
    sleep(parseInt(Math.random()*3000+5000));
}
log 日志
373 14:14:17.323 debug RobotService packageName:com.libra.wxhelper  notification:[冰狐智能辅助:启动成功!]
374 14:14:17.695 debug RSContext 获取root成功
375 14:14:17.728 debug LaunchApp appName:抖音极速版
376 14:14:17.873 debug SAR latest app version:1.0.199
377 14:14:17.933 debug RobotService 切换窗口 windowClassName:com.ss.android.ugc.aweme.main.MainActivity  packageName:com.ss.android.ugc.aweme.lite  text:[抖音极速版]
378 14:14:17.933 debug RobotService curWindowClassName:com.ss.android.ugc.aweme.main.MainActivity
379 14:14:18.040 debug RobotService 切换窗口 windowClassName:com.ss.android.ugc.aweme.main.MainActivity  packageName:com.ss.android.ugc.aweme.lite  text:[抖音极速版]
380 14:14:18.235 debug RobotService 切换窗口 windowClassName:android.view.View  packageName:com.miui.securitycenter  text:[]
381 14:14:18.236 debug RobotService curWindowClassName:android.view.View
382 14:14:23.560 debug LaunchApp appName:快手极速版
383 14:14:23.561 debug Engine innerRun:1  removeLayer:falsecom.libra.sar.robot.jsengine.RSContext@1317f2c
384 14:14:23.561 debug Engine end of --run
385 14:14:23.562 debug RobotService end run---
386 14:14:23.739 debug RobotService 切换窗口 windowClassName:android.widget.TextView  packageName:com.libra.wxhelper  text:[任务结束,退出]
发表评论
最新评论
商务合作QQ:3765323427
Copyright © 2021-2024 冰狐智能辅助. All rights reserved. 浙ICP备15043866号 《冰狐智能辅助服务协议》