27 lines
714 B
JavaScript
27 lines
714 B
JavaScript
const config = {
|
|
// 基础命令
|
|
baseShell: {
|
|
adbkeyboard: 'adb shell pm list packages adbkeyboard',
|
|
adb: 'adb version'
|
|
},
|
|
// 功能性命令
|
|
shellAction: {
|
|
// 点击输入框
|
|
tap: 'adb shell input tap',
|
|
// 滑动页面
|
|
swipe: 'adb shell input swipe',
|
|
},
|
|
// 坐标集合
|
|
shellCoordinate: {
|
|
// 先点赞,然后滑动下一个视频
|
|
Fabulous: {
|
|
tap: '988 1229', // 点赞按钮的坐标
|
|
swipe: '868 1811 800 272', // 滑动页面
|
|
}
|
|
},
|
|
startShell: (action, coordinate) => {
|
|
return `${config.shellAction[action]} ${coordinate}`
|
|
}
|
|
}
|
|
|
|
module.exports = config |