DuckPolicy

Verified safeExclusive
—
No reviews reviews
54
downloads
5.0
android

AI summary

Xposed/LSPosed module that hides device-policy restrictions from apps on your own device. Hooks client-side policy checks across 13 categories including camera blocks, screenshot limits, password rules, and user restrictions, with per-category toggles plus a master switch. Version 3.1 adds an Outlook enrollment-gate bypass. Requires root and LSPosed framework.

Generated by AI. May contain inaccuracies.

About this app

An LSPosed / Xposed module that makes apps see no device-policy restrictions on your own device. It hooks the client-side DevicePolicyManager and UserManager restriction checks and returns the "no restriction" answer — per category, behind a master toggle.

Features

- Master toggle + per-category switches, with All / None quick actions. - 13 categories: - Camera block — report the camera as not disabled - Screenshot / screen-record block — allow screen capture - Device admin & owner checks — look unmanaged (no admin / owner / managed profile) - Password & PIN policy — drop length, complexity, expiry and wipe rules - Lock-screen feature limits — re-enable camera, notifications, etc. on keyguard - Storage-encryption enforcement — report encryption as not required - Managed app configuration — return empty app-restriction bundles - User restrictions (DISALLOW_*) — clear them, incl. UserManager.hasUserRestriction - Auto-lock timeout — remove the forced maximum time-to-lock - Kiosk / lock-task mode — report lock-task as permitted / unrestricted - Allowed IMEs & accessibility — remove input-method / accessibility allow-lists - Misc — auto-time, cross-profile, Bluetooth and other smaller restrictions - Outlook enrollment gate (new in 3.1) — hooks Outlook's own private DevicePolicy class (requiresDeviceManagement / isPolicyApplied) so it skips the "your organization requires device management" enrollment screen. Different layer than the rows above (Outlook's own gate, not the framework or Intune MAM SDK); only installs when scoped into com.microsoft.office.outlook. - Material You dynamic colours (Android 12+) and an adaptive icon. - Small: R8 + resource shrinking, ~1.8 MB.

Install & scope

1. Install and enable DuckPolicy in LSPosed. 2. Set the module scope: - System Framework (android) for the broadest, system-wide effect — the recommended default for work-profile / user-restriction cases. - or specific target app(s) whose policy view you want to change. 3. Reboot (or force-stop the scoped processes) to apply.

⚠️ Important

Do not scope the MDM app itself (e.g. Microsoft Intune / Company Portal) or Microsoft Authenticator — hooking those can expose Xposed/root to detection. Outlook is different and included in the default scope: it has no meaningful Xposed/root detection, only its own enrollment-gate check, which the Outlook enrollment gate category neutralises. It does not touch Intune MAM app-protection restrictions (screenshot block, copy/paste, PIN) inside Outlook — those are enforced independently and need a separate hook.

Settings are shared cross-process via XSharedPreferences, so enable the module and reboot once before relying on the toggles — a freshly-installed, not-yet-hooked app can't read them until then.

To see which restrictions are actually applied on your device: adb shell dumpsys device_policy (look under userRestrictions:).

How it works (and its limits)

The hooks patch the client-side DevicePolicyManager / UserManager wrappers inside each scoped process, changing what an app (or the framework) sees when it queries policy. They do not rewrite what system_server actually enforces underneath. Intended for your own device.

What's new

v3.1Jul 24, 2026

https://github.com/Xposed-Modules-Repo/com.strawing.duckdevicepolicy/compare/3-3.0...4-3.1/

About this version

Version
3.1 (4)
Size
1.75 MB
Requires Android
5.0
Target SDK
21
Architecture
universal
Downloads
54
Updated
Jul 24, 2026
Package
com.strawing.duckdevicepolicy

Similar apps

Ratings & reviews

—
0 ratings
  • 5
    0
  • 4
    0
  • 3
    0
  • 2
    0
  • 1
    0

Write a review

Tap a star to rate this app