在進行安卓APP測試中,最後進行壓力測試時,直接執行adb root 提示
adbd cannot run as root in production builds
猜測爲手機端未進行ROOT處理,下載kingroot:https://kingroot.net/zh-thank-you-for-downloading-kingroot-for-android/ 進行root處理
首先進行ROOT不能ROOT手機只能刷機
如果還是遇到這個報錯,進入adb shell
adb shell
su
就能執行monkey指令了。