How to modify MiuiSystemUI?


nicegamer7

Members
Jan 2, 2022
3
5
I've been trying to modify MiuiSystemUI.apk but with no success. In specific, I'm trying to reorder the four big tiles in MIUI 12's control center.

What I've been doing is using apktool to decode the APK, then make changes to the smali and build it again. I then replace the original and make sure it has the correct permissions.

What happens is the phone boots up, but without SystemUI working properly. Are my modifications breaking it? Or is it because the APK isn't signed anymore?
 
For anyone who runs into the same issue. I think it was because the APK wasn't signed. I got it working by copying the original META-INF folder and AndroidManifest.xml file to the new APK.

Here's a picture of the reordered control center.
 

Attachments

  • Screenshot_2022-01-03-19-31-38-763_com.android.documentsui.jpg
    Screenshot_2022-01-03-19-31-38-763_com.android.documentsui.jpg
    312.5 KB · Views: 405
Last edited:
For anyone who runs into the same issue. I think it was because the APK wasn't signed. I got it working by copying the original META-INF folder and AndroidManifest.xml file to the new APK.

Here's a picture of the reordered control center.

View attachment 40223
Sorry, this is not a picture! considering the size it is what we call a BIG spam!