AZ_
AZ_

Reputation: 21899

detect ADB from mobile Android

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

Answers (1)

Sergey Glotov
Sergey Glotov

Reputation: 20346

  1. You can detect that phone is connected to charger by receiving broadcast intent ACTION_POWER_CONNECTED.

  2. AFAIK you can't stop ADB server

Upvotes: 2

Related Questions