English | 中文 | Bahasa Indonesia
An LSPosed module that brings back the Performance mode and Ultra battery saver options in the Battery page of Xiaomi tablets — options Xiaomi hides on purpose, even though the modes themselves are fully present in the system.
On Xiaomi phones, the Battery page offers a mode picker: Performance mode / Balanced / Battery saver / Ultra battery saver.
On tablets running a stable HyperOS/MIUI build, the picker only shows Balanced and Battery saver. Reverse-engineering the SecurityCenter app on the target device shows why: the Performance entry is only added when an internal check (PowerSaverUtils.isSupportPerformanceMode) passes, and that check is hard-coded to fail when the device is a tablet and the build is stable:
SDK > 28 && (!Build.IS_TABLET || buildType != "stable") && miuiVersion > 10
&& persist.sys.power.default.powermode != "unSupported"
The Ultra battery saver entry is gated by a separate device-support check that also fails on this device. Nothing is broken — the buttons are simply withheld. The modes themselves work fine at system level.
This module forces those two genuine support checks to return true inside com.miui.securitycenter, so the real Xiaomi entries — real titles, real remaining-time estimates, real mode actions — appear in the picker again. No fake entries, no re-implementation.
The Battery page mode picker becomes:
- Performance mode — the system's high-performance profile (
power_mode = high) - Balanced — the default (
power_mode = middle) - Battery saver — the standard power-save mode
- Ultra battery saver — Xiaomi's super power saver
- Xiaomi Pad 6S Pro (codename sheng), HyperOS 1.0
V816.0.8.0.UNXIDXM, Android 14 - SecurityCenter
8.9.1-240321.1.1.pad(versionCode 100891) - LSPosed (also compatible with Vector, the maintained LSPosed fork — both use the classic Xposed API)
⚠️ The hooks target obfuscated class names (cc.e,ke.i) from the SecurityCenter build above. A SecurityCenter/HyperOS update may rename them and the module will silently stop working (it logs and never crashes the app). Reports for other devices/builds are welcome.
- A Xiaomi tablet (or phone where the entries are hidden) running MIUI/HyperOS
- Android 14 (minSdk 34 of this build)
- A working Xposed framework: LSPosed or Vector
- Scope:
com.miui.securitycenter(pre-declared by the module)
- Download the APK from Releases.
- Install it.
- Open LSPosed/Vector Manager → Modules → enable Pad Power Mode Unlock (scope
com.miui.securitycentershould be pre-selected). - Force stop SecurityCenter (or just reopen the Battery page).
- Open Settings → Battery and enjoy the full mode picker.
Two hooks, both verified against the decompiled code and resources of the target SecurityCenter build:
| Hook | Real method | Effect |
|---|---|---|
cc.e.f() |
PowerSaverUtils.isSupportPerformanceMode() |
Adds the Performance mode entry (string/pc_hidemode_performance_title) |
ke.i.C(Context) |
Super power support check | Adds the Ultra battery saver entry (string/power_center_super_save_title_text) |
The picker itself is built by com.miui.powercenter.batteryhistory.y (PowerFeatureViewHolder) in SecurityCenter — the module only flips the two support gates and lets Xiaomi's own UI do the rest.
No Gradle needed — the project builds with a plain shell script using the Android SDK command-line tools:
./build.shThe script downloads the Xposed API jar (compile-only) if missing, compiles resources with aapt2, compiles and dexes the Java sources, then zipaligns and signs the APK with a locally generated keystore (tools/release.keystore, created on first run — keep it private, it is git-ignored).
- 1.0.1 — Package renamed to
io.github.ryandxter.padpowerfor the LSPosed Module Repository listing. Identical hooks; the 1.0 build usedid.rvmeur.padpower. - 1.0 — First release.
MIT — see LICENSE.
Made by rvmeur after one too many encounters with a battery page that offered a grand total of two modes.