Disable a device owner app from android terminal

前端 未结 2 818
隐瞒了意图╮
隐瞒了意图╮ 2021-01-24 12:53

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

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-24 13:49

    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

提交回复
热议问题