基础知识收纳 2018-11

使用adb命令进行路由跳转,需要携带多个参数。

task startActivity << {
    def startCmd = ['adb', 'shell', 'am', 'start', '-a', 'android.intent.action.VIEW','-d',"tmast://install_plugin?pkg=com.tencent.assistant.plugin.kidprotector'&'goto=distance"]
    exec {
        commandLine startCmd
    }
}

参数连接符&需要进行转义,表达为'&'。

你可能感兴趣的:(基础知识收纳 2018-11)