detect ADB from mobile Android
Can we detect from phone that phone is connected to charger or Android Debug Bridge 开发者_StackOverflow(ADB)?
and can we shutdown adb server using adb kill-server
command?
You can detect that phone is connected to charger by receiving broadcast intent
ACTION_POWER_CONNECTED
.AFAIK you can't stop ADB server
精彩评论