Skip to content

reiryuki/Miui-Core-Magisk-Module

Repository files navigation

Miui Core Magisk Module

DISCLAIMER

  • Miui apps and blobs are owned by Xiaomi™.
  • The MIT license specified here is for the Magisk Module only, not for Miui apps and blobs.

Descriptions

  • System core framework library of Miui ROM ported from Xiaomi Mi 9 (cepheus) as a dependency of any Miui Magisk Modules
  • With this module, you can even normal install any non-system Miui apps: https://apkmirror.com/apk/xiaomi-inc

For Miui App Porter

  • You need to declare this line in your app AndroidManifest.xml after <application /> if you want to load classes from this Miui Core:

    <uses-library android:name="miui" android:required="false" />

  • You need to declare this line if you want to load classes from this Miui Core and also resources from miuisystem.apk (causes crash in some ROMs):

    <uses-library android:name="com.miui.system" android:required="false" />

  • You need to declare this line if you want to load resources from framework-ext-res.apk (causes crash in some ROMs):

    <uses-library android:name="com.miui.rom" android:required="false" />

  • You need to declare this line if you want to load resources from miui.apk (causes crash in some ROMs):

    <uses-library android:name="com.miui.core" android:required="false" />

  • Do not white list those libraries with your own Magisk Module /system/etc/permissions/ because there might be a conflict.

  • You don't need to declare all of those but just declare which is needed only.

Sources

Requirements

  • NOT in Miui ROM
  • ARM64 or ARM architecture
  • Android 5 and up
  • Magisk or KernelSU installed

Installation Guide & Download Link

  • Install this module https://www.pling.com/p/1537512/ via Magisk app or KernelSU app or Recovery if Magisk installed
  • Install any Miui Magisk Module which depends on this module
  • If you are using KernelSU, you need to disable Unmount Modules by Default in KernelSU app settings
  • Reboot
  • If you are using KernelSU, you need to allow superuser list manually all package name listed in package.txt (enable show system apps) and reboot afterwards

Miui Magisk Modules Available

Optionals

Troubleshootings

Support & Bug Report

Credits and Contributors

Sponsors