234 questions
1
vote
2
answers
250
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 ...
1
vote
0
answers
57
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
31
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
2
answers
341
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() {
...
1
vote
1
answer
160
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 ...
2
votes
1
answer
682
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 ...
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
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 ...
0
votes
0
answers
130
views
How can I disable Android USB debugging through device admin programmatically
when you become Device admin how to disable USB Debuting option through device admin i need to this pragmatically.
2
votes
0
answers
541
views
Unlock/Lock device using DevicePolicyManager
I am trying to make an app that automatically locks the screen to force it into sleep mode and reactivated it / unlock it at a specific time
I've managed to lock the screen using the ...
2
votes
1
answer
215
views
Can not run DevicePolicyManger (deviceManger) inside running service in android studio
My project has a running background service class. The service class performs a certain operation and every time period of x seconds, it gives an output flag (True or False). Based on that flag, ...
4
votes
1
answer
2k
views
Can't set device owner on Samsung device with Android 11
I'm trying to set my app as a device owner on the Samsung A51 with Android 11. It's a fresh device with no accounts added:
adb shell dpm set-device-owner <package>/<package>.receiver....
1
vote
0
answers
598
views
How auto-reset permissions works in Android 11 with device admin?
I have an application that is a device administrator. First, a little disclaimer, our app has an MDM intention (Mobile Device Management), so it is not supposed to be used by end-users.
Since our app ...
2
votes
3
answers
1k
views
DevicePolicyManager.resetPasswordWithToken throws NPE
I use it like this:
devicePolicyManager
.resetPasswordWithToken(
componentName,
nonNullOrEmptyPassword,
...
1
vote
1
answer
1k
views
Can we close/terminate another app with our app?
I have an app in which i have a device admin permission and foreground service.
Now i want to close/terminate particular app when that comes on foreground. I know the package name of that another app.
...
1
vote
0
answers
944
views
DevicePolicyManager throws SecurityException
I am creating an application using Samsung Knox and Device Administration.
I am trying to disable the keyguard but I keep getting a SecurityException with the message:
Admin ComponentInfo{com.samsung....
2
votes
1
answer
3k
views
Device Owner Admin / DevicePolicyManager, Possible to turn on Mobile Data & Data Roaming automatically on Android?
So I am developing an app which works as device owner on the specific Android device. This app is not available on the play store, but gets transferred with a provisioning app from a different device ...
-1
votes
1
answer
566
views
How do I disable a syncadapter or provider as Device Admin programmatically?
I need to write an App that can prevent contact syncing in a work profile.
Until Android 9 i just disabled the package com.google.android.syncadapters.contacts and that's it.
Unfortunately since ...
2
votes
0
answers
464
views
Ensure Android screen lock has been continuously enabled
For an Android app managing cryptographic keys, I want to ensure that the device has had a screen lock set up continuously since the first time the app has been run.
Specifically, the app will only ...
0
votes
0
answers
298
views
Android. Activity not start from service
I tried to start activity for enabling device administration mode but admin activity did not start.
It`s my service class
class MainService : Service() {
private val description = "Some Description ...
1
vote
0
answers
77
views
How exactly does Device Admin add a layer of security to uninstall app?
So I have made my App Device admin to add a layer of protection. I am unable to uninstall the app when I try to Uninstall from HomeScreen as it tells you cannot uninstall the app as it is a device ...
9
votes
2
answers
12k
views
Make my Android app to fully kiosk mode when enabled
I am trying to make my feedback app to support fully kiosk, I have tried a lot of solutions but Nothing is completely satisfying my need. Here are the things that I found yet.
1. Make my app as ...
7
votes
2
answers
2k
views
How Can I disable the Uninstall button of an app in settings android
I am implementing a Parent's And Child's App where
parents can track their child
the child can not uninstall the app.
I am using the Device Administration Feature to implement this.
When Enabled ...
7
votes
1
answer
1k
views
setKeyguardDisabledFeatures(componentName, DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE); not working in android-q / Android 10
In Android Q / Android 10 using USES_POLICY_DISABLE_KEYGUARD_FEATURES of the keyguard_features causes a security exception.
devicePolicyManager.setKeyguardDisabledFeatures(componentName, ...
8
votes
1
answer
3k
views
Device Admin Receiver not working in few versions
I am working on a security app, which protects device from strangers.
In my application, I have a feature that should capture the image from front camera if user tries to unlock device with wrong PIN/...