Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable a device owner app from android terminal

well, my problem is: I have an application which is set as the device owner of a device (my tablet in this case). I did it from the terminal in Ubuntu, connecting the tablet to my PC and executting this line in the adb shell:

dpm set-device-owner my.app.package/my.app.route.MyAdmin

So, I want to disable the device owner app without restoring the device, just executing a line similar to the last one. Me and my coworker have been researching for a long time and we've never found anything about this, so I would like to know if it is possible or not, and if it is, how to do that.

Thanks!

like image 570
Jack Moe Avatar asked Dec 06 '25 04:12

Jack Moe


1 Answers

you can use the following ADB shell command to remove device owner

adb shell dpm remove-active-admin com.example.app/.AdminReceiver

Disables an active admin, the admin must have declared android:testOnly in the application in its manifest. This will also remove device owner and profile owners

like image 114
sjDroid Avatar answered Dec 07 '25 21:12

sjDroid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!