I'm trying to set the profile owner for one of my application using command on my Android 10 device:
adb shell dpm set-profile-owner com.example.blockcamera/.BlockCameraDeviceAdminReceiver
When I press Enter nothing happens - the command will be stuck with a cursor flashing on new line. I have to Ctrl+C to kill it.
The command works fine on Android Emulator and the app works as expected afterwords. I am using android:testOnly flag in AndroidManifest.xml
Things tried:
- Used --user current option but no luck
- Also tried set-device-owner command but same result, the command gets stuck.