Warning
Because Google has already shifted the DevicePolicyManager API, the app architecture will be redesigned. The Device Policy features will become a standalone app acting as the Device Owner core, and the other apps will request the required functionality from it.
Enforce security policies.
Tiny app to enforce security policies of your device.
It can:
- limit the maximum number of failed password attempts
- disable USB data connections (Android 12, USB HAL 1.3, Device Owner)
- disable safe boot mode (Android 7, Device Owner)
- notify on failed password attempt
- notify when an app without Internet permission got it after an update
Be aware that the app may not work in safe mode.
- DEVICE_ADMIN - limit the maximum number of failed password attempts
- DEVICE_OWNER - disable USB data connections
- NOTIFICATION_LISTENER - receive lock/package events
- QUERY_ALL_PACKAGES - receive all package events
To set as Device Owner:
adb shell dpm set-device-owner me.lucky.sentry/.admin.DeviceAdminReceiver