百趣云
百趣云的博客
🔖自动化
Appium 为什么会被检测用 Appium 做 App 自动化(抢票、薅羊毛、批量操作)时,经常遇到"脚本一跑就触发验证,手动操作就没事"——App 检测到了自动化框架。检测点分几层:1. 系统属性层Appium 驱动基于 UIAutomator2/Espresso,会在系统里留特征:// 检测代码的典型实现
// UIAutomator2 的服务端口和包名特征
getSystemService("uiautomator") != null
// 或检测已安装包
pm.getInstalledPackages() 包含 "io.appium.uiautomato