[UNOFFICIAL][TEST WANTED][Magisk][v86][22 Oct] Systemless Xposed Framework for MIUI

Does it work for you?

  • Yeah!

    Votes: 16 59.3%
  • Nope.

    Votes: 11 40.7%

  • Total voters
    27
Search This thread

aviraxp

Senior Member
Jun 24, 2016
485
902
Beijing
@topjohnwu has already released the Systemless Xposed Framework based on Magisk, an awesome universal systemless interface. But since official Xposed Framework is not compatible with MIUI, I am trying a hand on porting Xposed Framework for MIUI to Magisk with @SolarWarez's work.

At first I think app_process should be modified to adjust for magisk path detection. Fortunately, I found that app_process is the same as official release. So I have only a little work to do based on the work @topjohnwu has already done. Since I do not have a device running MIUI, I decide to upload it here to give it a test, although it should work.

Whether it works or not, please report!

Prerequisite:
Magisk is required to be installed on your device.
Magisk v8 - The Universal Systemless Interface

Support Devices:
Devices running MIUI with Magisk V7+

Downloads:
Like the original Systemless Xposed Framework, ARM/ARM64/X86 devices use the same flashable zip (X86-64 is being worked on)
As for system versions, please follow this:
Android 5.0: SDK21 Android 5.1: SDK22 Android 6.0: SDK23

Install Guide:
- Follow the instructions in Magisk thread to install Magisk
- Install Material Designed Xposed Installer instead of official Xposed Installer, official Xposed Installer will not detect the /magisk/xposed path.
- Make a nandroid backup
- Flash the compatible zip through a custom recovery
- Reboot and wait for the magic
- (For uninstallation) Remove the Xposed Magisk Module within Magisk Manager or flash the uninstall zip placed in Original Systemless Xposed Framework Thread

OTA:
It is reported that MIUI will verify the boot partition when applying OTA. So if you want to accept OTA, please flash the stock boot.img first.

Sources:
As I actually do not do any hex edit or decompile, and Xposed for MIUI is close-source, the zip you download is the source. But I want to place it here in case somebody wants it.
https://github.com/aviraxp/xposed_21_miui
https://github.com/aviraxp/xposed_22_miui
https://github.com/aviraxp/xposed_23_miui

Credits:
@rovo89 for creating the awesome Xposed Framework
@SolarWarez for making Xposed Framework compatible with MIUI
@topjohnwu for the amazing work on Magisk and Systemless Xposed Framework
All credits go to them.

If you just follow up the steps and encounter a bootloop/not working issue, please feel free to tell me. But since I am not a professional dev, what I can do is try my best to help you.
 

Attachments

  • xposed-miui-sdk21.zip
    11.5 MB · Views: 2,942
  • xposed-miui-sdk22.zip
    11.7 MB · Views: 1,533
  • xposed-miui-sdk23.zip
    16.6 MB · Views: 4,681
Last edited:

aviraxp

Senior Member
Jun 24, 2016
485
902
Beijing
  • Like
Reactions: MrOops

MrOops

Senior Member
Jan 4, 2013
87
14
Now, I have proper installation rom (without root). I have just /system/bin/
Nothing in side
 

MrOops

Senior Member
Jan 4, 2013
87
14
Ok. Thx
Module xposed work but no root for my app like titanium backup, etc... :/
 

MaArCiN074

Member
Dec 11, 2010
44
41
Warsaw
Hi,
I'm very happy to see someone working on miui systemless. Thx for your job.

But I'm not sure to understand how to install all of this precisely. And I'm lost between Magic and Suhide.

Edit : I trying @MaArCiN074 files (link) without succes : http://xdaforums.com/showpost.php?p=69242924&postcount=3162

I have done the same as in a first post (repacked original one with SolarWarez files), so if my version doesn't work for you, aviraxp's one shouldn't work too. The problem is related to different part, maybe Magisk or other framework, or you have made so many changes in android core. Maybe you can try to reflash MIUI and try again.
 
Last edited:

xeGox

Senior Member
Apr 25, 2011
608
81
40
Bari
www.FiXiaLo.it
Guys...I need to know a thing about MAGISK.

I would install it on a stock dev china rom.
It has a partial root(I can't write on system partition)
Flashify works good to flash .img files (and maybe .zip files)
But, if I want to update OTA every week my rom, I CAN'T install twrp. (I have a redmi3, it has dm-verity and it cause a bootloop with original rom+twrp)

I want to know if I can install MAGISK zip with flashify, so I can use Xposed and ota updates withoit bootloop.
 
Tested with phh supersu and automagisk. Installed material design Xposed apk. When I flash miui Xposed is telling me that can extract binaries and flash on my miui8. Help

Inviato dal mio Redmi Note 2 utilizzando Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    @topjohnwu has already released the Systemless Xposed Framework based on Magisk, an awesome universal systemless interface. But since official Xposed Framework is not compatible with MIUI, I am trying a hand on porting Xposed Framework for MIUI to Magisk with @SolarWarez's work.

    At first I think app_process should be modified to adjust for magisk path detection. Fortunately, I found that app_process is the same as official release. So I have only a little work to do based on the work @topjohnwu has already done. Since I do not have a device running MIUI, I decide to upload it here to give it a test, although it should work.

    Whether it works or not, please report!

    Prerequisite:
    Magisk is required to be installed on your device.
    Magisk v8 - The Universal Systemless Interface

    Support Devices:
    Devices running MIUI with Magisk V7+

    Downloads:
    Like the original Systemless Xposed Framework, ARM/ARM64/X86 devices use the same flashable zip (X86-64 is being worked on)
    As for system versions, please follow this:
    Android 5.0: SDK21 Android 5.1: SDK22 Android 6.0: SDK23

    Install Guide:
    - Follow the instructions in Magisk thread to install Magisk
    - Install Material Designed Xposed Installer instead of official Xposed Installer, official Xposed Installer will not detect the /magisk/xposed path.
    - Make a nandroid backup
    - Flash the compatible zip through a custom recovery
    - Reboot and wait for the magic
    - (For uninstallation) Remove the Xposed Magisk Module within Magisk Manager or flash the uninstall zip placed in Original Systemless Xposed Framework Thread

    OTA:
    It is reported that MIUI will verify the boot partition when applying OTA. So if you want to accept OTA, please flash the stock boot.img first.

    Sources:
    As I actually do not do any hex edit or decompile, and Xposed for MIUI is close-source, the zip you download is the source. But I want to place it here in case somebody wants it.
    https://github.com/aviraxp/xposed_21_miui
    https://github.com/aviraxp/xposed_22_miui
    https://github.com/aviraxp/xposed_23_miui

    Credits:
    @rovo89 for creating the awesome Xposed Framework
    @SolarWarez for making Xposed Framework compatible with MIUI
    @topjohnwu for the amazing work on Magisk and Systemless Xposed Framework
    All credits go to them.

    If you just follow up the steps and encounter a bootloop/not working issue, please feel free to tell me. But since I am not a professional dev, what I can do is try my best to help you.
    1
    Hi,
    I'm very happy to see someone working on miui systemless. Thx for your job.

    But I'm not sure to understand how to install all of this precisely. And I'm lost between Magic and Suhide.

    Edit : I trying @MaArCiN074 files (link) without succes : http://xdaforums.com/showpost.php?p=69242924&postcount=3162
    1
    Hi,
    I'm very happy to see someone working on miui systemless. Thx for your job.

    But I'm not sure to understand how to install all of this precisely. And I'm lost between Magic and Suhide.

    Edit : I trying @MaArCiN074 files (link) without succes : http://xdaforums.com/showpost.php?p=69242924&postcount=3162

    Seems miui has its own su file. Try to delete /system/xbin/su in file explorer.
    1
    Bro tried on mi4w with miui 8 and its working perfect!!

    Sent from my MI 4W using Tapatalk

    Very thanks for the report.;)
    1
    Fail can boot normal
    Log is:

    10-29 16:55:02.407 I/Xposed ( 627): -----------------
    10-29 16:55:02.407 I/Xposed ( 627): Starting Xposed version 86 (MIUI Edition by SolarWarez, Systemless by topjohnwu and aviraxp), compiled for SDK 23
    10-29 16:55:02.407 I/Xposed ( 627): Device: Redmi 3S (Xiaomi), Android version 6.0.1 (SDK 23)
    10-29 16:55:02.407 I/Xposed ( 627): ROM: MMB29M
    10-29 16:55:02.407 I/Xposed ( 627): Build fingerprint: Xiaomi/land/land:6.0.1/MMB29M/V8.0.10.0.MALCNDG:user/release-keys
    10-29 16:55:02.407 I/Xposed ( 627): Platform: arm64-v8a, 64-bit binary, system server: yes
    10-29 16:55:02.407 I/Xposed ( 627): SELinux enabled: yes, enforcing: yes
    10-29 16:55:02.482 I/Xposed ( 627): -----------------
    10-29 16:55:02.482 I/Xposed ( 627): Added Xposed (/magisk/xposed/system/framework/XposedBridge.jar) to CLASSPATH
    10-29 16:55:03.471 I/Xposed ( 627): Detected ART runtime
    10-29 16:55:03.475 I/Xposed ( 627): MIUI detected... Make some patch...
    10-29 16:55:03.476 I/Xposed ( 627): All done!
    10-29 16:55:03.486 I/Xposed ( 627): Found Xposed class de/robv/android/xposed/XposedBridge, now initializing
    10-29 16:55:03.698 I/Xposed ( 627): Make experimental ClassProxy fix...
    10-29 16:55:03.868 I/Xposed ( 627): Errors during Xposed initialization
    10-29 16:55:03.869 E/Xposed ( 627): java.io.IOException: Permission denied while reading /data/data/de.robv.android.xposed.installer/conf/modules.list
    10-29 16:55:03.869 E/Xposed ( 627): at de.robv.android.xposed.services.ZygoteService.readFile(Native Method)
    10-29 16:55:03.869 E/Xposed ( 627): at de.robv.android.xposed.services.BaseService.getFileInputStream(BaseService.java:132)
    10-29 16:55:03.869 E/Xposed ( 627): at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:1284)
    10-29 16:55:03.869 E/Xposed ( 627): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:150)
    10-29 16:55:12.638 I/Xposed ( 628): -----------------
    10-29 16:55:12.638 I/Xposed ( 628): Starting Xposed version 86 (MIUI Edition by SolarWarez, Systemless by topjohnwu and aviraxp), compiled for SDK 23
    10-29 16:55:12.638 I/Xposed ( 628): Device: Redmi 3S (Xiaomi), Android version 6.0.1 (SDK 23)
    10-29 16:55:12.638 I/Xposed ( 628): ROM: MMB29M
    10-29 16:55:12.638 I/Xposed ( 628): Build fingerprint: Xiaomi/land/land:6.0.1/MMB29M/V8.0.10.0.MALCNDG:user/release-keys
    10-29 16:55:12.638 I/Xposed ( 628): Platform: arm64-v8a, 32-bit binary, system server: no
    10-29 16:55:12.638 I/Xposed ( 628): SELinux enabled: yes, enforcing: yes
    10-29 16:55:12.642 I/Xposed ( 628): -----------------
    10-29 16:55:12.642 I/Xposed ( 628): Added Xposed (/magisk/xposed/system/framework/XposedBridge.jar) to CLASSPATH
    10-29 16:55:13.424 I/Xposed ( 628): Detected ART runtime
    10-29 16:55:13.431 I/Xposed ( 628): MIUI detected... Make some patch...
    10-29 16:55:13.431 I/Xposed ( 628): All done!
    10-29 16:55:13.439 I/Xposed ( 628): Found Xposed class de/robv/android/xposed/XposedBridge, now initializing
    10-29 16:55:13.676 I/Xposed ( 628): Make experimental ClassProxy fix...
    10-29 16:55:13.791 I/Xposed ( 628): Errors during Xposed initialization
    10-29 16:55:13.791 E/Xposed ( 628): java.io.IOException: Permission denied while reading /data/data/de.robv.android.xposed.installer/conf/modules.list
    10-29 16:55:13.791 E/Xposed ( 628): at de.robv.android.xposed.services.ZygoteService.readFile(Native Method)
    10-29 16:55:13.791 E/Xposed ( 628): at de.robv.android.xposed.services.BaseService.getFileInputStream(BaseService.java:132)
    10-29 16:55:13.791 E/Xposed ( 628): at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:1284)
    10-29 16:55:13.791 E/Xposed ( 628): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:150)