Activate Device Administrator via ADB
It's not possible. The settings code is specifically written to prevent this. The closest  you can come is to bring up the Device Administration Settings page in the Settings app. You can do this with:
adb shell am start -S &quot;com.android.settings/.Settings\$DeviceAdminSettingsActivity&quot;