Reputation: 21899
Can we detect from phone that phone is connected to charger or Android Debug Bridge (ADB)?
and can we shutdown adb server using adb kill-server
command?
Upvotes: 1
Views: 608
Reputation: 20346
You can detect that phone is connected to charger by receiving broadcast intent ACTION_POWER_CONNECTED
.
AFAIK you can't stop ADB server
Upvotes: 2