233 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
2
answers
353
views
Android 14: InvalidForegroundServiceTypeException when starting FGS with SYSTEM_EXEMPTED type
I’m seeing a repetitive crash in production when starting a foreground service from the background. The issue has occurred ~177K times in the last 30 days, mostly on Samsung devices (~50%) running ...
0
votes
0
answers
113
views
Getting android.app.role.DEVICE_POLICY_MANAGEMENT role
I'm stuck with getting DEVICE_POLICY_MANAGEMENT role for my application.
DevicePolicyManager reports that my application is active admin (isAdminActive() returns true) and device owner (...
1
vote
0
answers
71
views
Detect app pinning / unpinning on Android
I am trying to detect when an app is pinned or unpinned. I know I can check with ActivityManager.getLockTaskModeState() but I want to be notified when this changes.
DeviceAdminReceiver has ...
0
votes
1
answer
35
views
Create a unskippable overlay in android
I want to create an unskippable screen that is forced to show to the user at a particular time or when the app desired too, under the acknowledgment of the user (it is an attempt to create a self-...
0
votes
1
answer
590
views
How to set an app as device admin/owner in the android management api?
I'm in an MDM development project, we are integrating MDM with an Android management API, our application is mandatory to install on devices and is included in all policies that are created. the ...
1
vote
2
answers
368
views
Device Admin features such as wipe data or changing password is not authorized after Android 14 update?
After properly adding it as an admin app, other DPM functions work fine (such as dpm.lockNow()).
I can also wipe the data on android 10. The issues occur on android 14,13.
fun wipeData() {
...
3
votes
1
answer
1k
views
Installing Device Admin & Device Owner App
I'm writing a device owner application, where I'm setting the app as device owner via ADB command:
adb shell dpm set-device-owner {package-name}/{admin-receiver}
The app is successfully set as a ...
1
vote
1
answer
174
views
Not Receiving Callbacks for Security Logs in DeviceAdminReceiver
I'm developing an app that acts as a Device Policy Controller on Android, primarily focusing on enabling and handling security logging. Despite following the documentation to set up everything ...
1
vote
1
answer
785
views
How to make an Android app a device owner without using ADB and hide navigation buttons programmatically
I am developing an Android app for my organization, which will not be available on the Play Store. The app will only be installed on company-owned devices. I want the app to hide the navigation "...
2
votes
1
answer
762
views
"While My App installing Using QR code of Device Owner app, it says Blocked by Play Protect"
enter image description here
I have created a device owner app but I am having trouble installing it on a real device. I'm generating Qr Code Using
https://datalogic.github.io/aeqrdoc/generat.
The ...
0
votes
1
answer
1k
views
how to delete an app that is a device admin app that is preventing device admin app deactivation
how to delete an app that is a device admin app that is preventing device admin app deactivation?
when i try to deactivate it, the deactivate device administrator button is greyed out.
I tried ...
45
votes
5
answers
19k
views
Getting 'No active admin' SecurityException in Android 10 - how to resolve?
I am encountering an error in the pre-launch report on the Google Play Console during testing. The error message is as follows:
java.lang.SecurityException: No active admin ComponentInfo{com.google....
0
votes
3
answers
698
views
Can I still use Device Admin API only to disable the CAMERA for android 11 and above as Device Admin API is deprecated
In my project I’m using Device Admin API for disabling the CAMERA. It is working fine in Android 7 and 8. Can I still use Device Admin API only to disable the CAMERA for android 11 and above as ...
0
votes
1
answer
2k
views
Do we have a way to trigger a custom API when user tries to uninstall the application?
Trying to open the Device Admin Access option when the user tries to uninstall the application from the settings->apps screen and trigger a custom API to notify that the user is trying to uninstall ...
1
vote
0
answers
2k
views
QuickStep launcher (com.android.launcher3) doesn't start after un-hiding through device admin
I have a custom kisok app and a device admin app (device policy manager) running in android 10. When the kiosk app launches, the device-admin app disable various components of the system. One of the ...