Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeviceAdminService does not restart after reboot #176

Open
iain-mcandrew opened this issue Jan 10, 2023 · 0 comments
Open

DeviceAdminService does not restart after reboot #176

iain-mcandrew opened this issue Jan 10, 2023 · 0 comments
Assignees

Comments

@iain-mcandrew
Copy link

When I set a device owner it will behave correctly (including automatically launching the DeviceAdminService when the owner is set) until a restart, where the DeviceAdminService will not launch but the package will remain as device owner.
It was my understanding that the DeviceAdminService should be started on boot by the system. This was working recently until I updated to Android 13 (though I am unable to confirm if this is the cause).

Repro steps:

  1. Starts with clean device that has no device owner registered
  2. Install Test DPC
  3. Set Test DPC as device owner with adb command: adb shell dpm set-device-owner com.afwsamples.testdpc/.DeviceAdminReceiver
  4. Check running services with command: adb shell dumpsys activity services. DeviceAdminService will be listed as running.
  5. Restart the device
  6. Run the same adb shell dumpsys activity services command. The service will not be listed as running despite being the DeviceAdminService

Is this behaviour correct? Is there any way to manually start the DeviceAdminService on boot?

@pfmaggi pfmaggi self-assigned this Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants