[APP] MIUI Global Theme Manager MOD


geoorg

Members
28 Sep 2020
1,814
297
Hello there,
Based on this post and subsequent discussion on that thread i decided to take up the challenge.

And I'm glad to present to you a global themes app MOD.
You can now have the global themes app alongside the china themes app on xiaomi.eu rom. (Applause) :emoji_clap:

** Features **
- All features of global themes app
- Dual themes app on same device (global and china themes app) best of both worlds :emoji_thumbsup: :D
- Download premium content for free (no video ads)

Version: 1.6.9.5-global:

** Magisk **

Magisk module (to install in Magisk app)
Magisk_ThemeManagerGlobal_1.6.9.5-global.zip


** Screenshot **
IMG_20211125_145228.jpg

** Installation **
- Install Riru magisk module and Riru LSPosed magisk module

- reboot (required)

install Core patch LSPosed module and activate in LSPosed

- reboot (required)

open core patch from LSPosed and turn on the settings from the screenshot below
IMG_20211212_164321.jpg

- Flash MOD and reboot device.

No need to wipe cache, it's all done by the installation scripts

IMPORTANT: please don't come crying about some theme elements not applying correctly. Complain to the respective theme developers.


** Special thanks **
@Poney70 and @katerpanne for testing and feedback

Feedbacks are welcome! :)
 
Last edited:
If you have issue of seeing the download button after downloading a theme
Head over to profile > themes
And the theme will be imported successfully
 
Last edited:
no video adds :emoji_sweat_smile:

attention… twrp version will run mostly only on android 10! for higher versions you need the magisk version
 
Last edited:
  • Like
Reactions: geoorg

geoorg

Good work. :emoji_clap:
I don't understand but I'll ask.
It would not be easier to do mtz. file? At least for those who don't use root. :emoji_innocent:
 
Hi geoorg,

- on Mi11Ultra a11, the chinestore is updated to global but only one item (Magisk / Riru / package installer) - Magisk Module
- on Mi10 a11, its not updated only a new folder /system/app/ThemeManagerGlobal (Magisk / Riru / package installer) - Magisk Module
- on Mi9 a10, its not updated only a new folder /system/app/ThemeManagerGlobal (Magisk / Riru / package installer) - TWRP Module

- If I try to install the new package from /system/app/ThemeManagerGlobal (with package installer) there is a info, cant parse the module
- if I download the newest ThemeManagerGlobal from apk mirror, it is installed (with package installer) and themenager is updated to global
- If I put the newest file from apkmirror into the magisk module, it is not installed


It seems that not all AndroidVersions / phone configurations will handle and install the "ThemeManagerGlobal.apk" in front of the old one

With TWRP & Magisk Module there is a new directory with the new apk but it is not installed (Mi10/Mi9 configuration and on Mi11 it was replaced)

Before installation I have deleted all updates / cache from ThemeManager

With your configuration, you have got 2 icons, the challenge is now to find the root cause :)

The permissions are correct 755 directory / 644 file apk - I will try it with /system/priv-app/ -> same result as described before
But I can install with SAI from /system/app/ThemeManagerGlobal -> result: update to global but only one icon :)


I have tried it with different names in "system" & "system/priv-app" with $MODPATH and so on.
It was not possible for me to get an parallel up and running ThemeManager. If I replace the old one, everything is fine.
 
Last edited:
  • Wow
Reactions: Poney70
- on Mi9 a10, its not updated only a new folder /system/app/ThemeManagerGlobal (Magisk / Riru / package installer) - TWRP Module
Completely ignore the TWRP module, it has been deleted because it will not work.

if I download the newest ThemeManagerGlobal from apk mirror, it is installed (with package installer) and themenager is updated to global
That has the original package name "com.android.thememanager" so it will replace the china theme store since they both have same package name.
My MOD has the package name of the global themes app renamed to "com.android.thememanagex" (the main reason you can have both apps)

It seems that not all AndroidVersions / phone configurations will handle and install the "ThemeManagerGlobal.apk" in front of the old one
This is true because although the package has been modified, the original signature wasn't touched for several reasons
- There are certain device API or features accessed by the themes app that can only be granted to app signed as system apps and this requires signing keys from OEMs.
- Resigning the apk with a regular key won't work. you will get a security exception when using the app.

Hence riru is needed to bypass the signature verification check.

This is related to the security patch mentioned here

To get this working, i suggest you:
- remove all changes to the themes app (uninstall updates or other mods)
- Restore the original china theme apk from Xiaomi.eu rom installed on your device
- install riru
- Then flash this mod
 
Last edited:
To get this working, i suggest you:
- remove all changes to the themes app (uninstall updates or other mods)
- Restore the original china theme apk from Xiaomi.eu rom installed on your device
- install riru
- Then flash this mod
- remove all changes to the themes app (uninstall updates or other mods) - already done
- Restore the original china theme apk from Xiaomi.eu rom installed on your device - I will extract it and install it
- install riru - already done
- Then flash this mod - to be continued :)
 
To get this working, i suggest you:
- remove all changes to the themes app (uninstall updates or other mods)
- Restore the original china theme apk from Xiaomi.eu rom installed on your device
- install riru
- Then flash this mod


I do Every thing, but nothing change,, only the china theme content shown
 
Yes, i installed first (reboot) then i install Magisk_ThemeManagerGlobal_1.6.9.5-global.zip (reboot)
Here's some screenshot of my device setup.
Screenshot_2021-12-01-10-23-01-334_com.topjohnwu.magisk.jpg
Magisk modules (i have everything els disabled except this mod and riru)

Screenshot_2021-12-01-10-23-10-040_com.topjohnwu.magisk.jpg
Magisk version

Screenshot_2021-12-01-10-31-30-442_com.android.settings.jpg
Device info

IMG_20211201_102907.jpg
As you can see, i have both themes app.


No other patches or mods have been applied to my device.
 
  • Like
Reactions: kohut.lukas.33
Is there a way to save a theme offline for install when I need without internet ??


I want to save themes in my device for use when I need l'incase some themes get removed