Skip to content

Choose a tag to compare

@Bouteillepleine Bouteillepleine released this 01 Jul 23:57

v3.0 — full Kotlin rewrite

A ground-up rewrite (fork of liyafe1997/FuckDevicePolicy) that turns the module
from a single UserManager patch into a per-category DevicePolicyManager +
UserManager bypass with a real UI.

Highlights

  • New Material You UI: master toggle, per-category switches, All / None quick actions.
  • Coverage expanded from UserManager-only to 12 categories across
    DevicePolicyManager AND UserManager:
    camera block · screenshot/screen-record block · device admin & owner checks ·
    password & PIN policy · lock-screen (keyguard) feature limits ·
    storage-encryption enforcement · managed app configuration ·
    user restrictions (DISALLOW_*, incl. UserManager.hasUserRestriction) ·
    auto-lock timeout · kiosk / lock-task mode · permitted IMEs & accessibility ·
    misc (auto-time, cross-profile, Bluetooth …).
  • Settings shared cross-process via XSharedPreferences (per-hook try/catch,
    hook-once-per-process).
  • Material You dynamic colours (Android 12+) and a new adaptive icon.
  • Signed release, R8 + resource shrinking (~1.8 MB).

Scope

  • Recommended: System Framework (android) for system-wide effect.
  • Do NOT scope the MDM app itself (Intune / Company Portal).
  • Enable + reboot once before relying on the toggles (cross-process prefs).

Notes

  • Client-side hooks change what apps/framework SEE, not what system_server
    enforces. For your own device.