开发常用命令

2018-12-21  本文已影响59人  Ed_Lannister

命令行启动服务

adb shell am startservice -n com.airmouseservice/com.airmouseservice.AirMouseService

命令行启动activity

adb shell am start -n com.android.browser/com.android.browser.BrowserActivity

命令行发送广播

adb shell am broadcast -a "com.net.action.readyForOTA"

monkey启动应用

adb shell monkey -p com.xxx.packagename 1

java打堆栈

Exception e = new Exception("EdwardAM getDevicesForStream will print stack here");
e.printStackTrace();
上一篇下一篇

猜你喜欢

热点阅读