Global Rom Notification Style Port For Xiaomi.eu / China Rom ( Developer & Stable )


HitFan

Members
Sep 5, 2017
6
15
Can you give me the app, I have the same problem
Go to /system/priv-app/MMS, remove the MMS.apk and rename MMS.apk.hzq to MMS.apk. the only provlem is, new notificstions won't work for SMS.

Back to my problem. I foind out, there's different for global and China ROMs.

Is there possibility to mod global systemUI to use Chinese font?
 

polonyk

Members
Jan 24, 2018
106
40
Is there possibility to mod global systemUI to use Chinese font?
Yes. The hard non amateur way - extract the archive, decompile the app, search for the proper file, search for the proper string in that file, search for the proper attribute for that string in another file and modify it, recompile the app, rearchive, reinstall, cross your fingers that you didn't brake something, enjoy your work.
Is all of this worth a barely visible difference in a non-critical text to you?

In case you're actually considering this - I forgot to mention that you obviously need to know the inner structure and hierarchy of an android app and have a clue about attributes. Also you'll have to do this every single time you change a ROM and want to flash Global notifications.

There, there's a big clue in my previous post and I basically told you what to do in this one.
Please don't expect that someone is going to modify this for you, it's a big waste of time for such a minor change.
 
Last edited:

HitFan

Members
Sep 5, 2017
6
15
Yes. The hard non amateur way - extract the archive, decompile the app, search for the proper file, search for the proper string in that file, search for the proper attribute for that string in another file and modify it, recompile the app, rearchive, reinstall, cross your fingers that you didn't brake something, enjoy your work.
Is all of this worth a barely visible difference in a non-critical text to you?
Yes. It's worth.
Do you know where should I start to search for those strings? I know how to decompile app etc :)
 

polonyk

Members
Jan 24, 2018
106
40
If you know how to decompile, then you shoudn't be asking such simple questions like where to start searching.
I'm sorry, man. I am trying not to be a downer, but I don't want to take responsability if you break your phone. Figure it out on your own.

EDIT:
Bad news for you, @HitFan
I don't think it's as easy as I originally thought. I succeded in modifying it to my needs (removing the brightness slider) but I failed to make the text not bold.
The simple modification from bold to normal resulted in the total lack of a theme and status bar/notification drawer.
So you better be very sure what are you messing with and have a backup (plan).

Also, in the 3.29 weekly for my Note 5A the text is bold even on chinese notifications.
It's also curious that after I removed the notification slider the charging sound changed and the toggle became inactive just at this moment. I'm pretty sure that with the untouched Global notification the toggle works fine.

@Soebianto do you know where the charging sounds are supposed to be going? I spotted a couple of oggs in the decompiled files, and I guess they are being extracted somewhere (and renamed?). My first guess was system/media/audio/ui but that was a fail. Also the charging sound that's playing now is nowhere to be found on my system, which is quite weird. And I don't really beleive in a broken archive or a hidden error during recompilation because everything else is working like before.
I get the text thing, it depends on themes and fonts.
I didn't delete or modify the contents of the brightness slider file, I just tagged it hidden. How can a couple of words in a file which itself is called in another file to affect totally another part of the app? :confused:
 
Last edited:

DeXeD

Members
Nov 6, 2017
22
15
Hi, will we still have this mod for future stable MIUI 9 EU ROMs? Since there will be no more Dev ROMs...
 

Soebianto

Members
Sep 15, 2017
1,106
222
If you know how to decompile, then you shoudn't be asking such simple questions like where to start searching.
I'm sorry, man. I am trying not to be a downer, but I don't want to take responsability if you break your phone. Figure it out on your own.

EDIT:
Bad news for you, @HitFan
I don't think it's as easy as I originally thought. I succeded in modifying it to my needs (removing the brightness slider) but I failed to make the text not bold.
The simple modification from bold to normal resulted in the total lack of a theme and status bar/notification drawer.
So you better be very sure what are you messing with and have a backup (plan).

Also, in the 3.29 weekly for my Note 5A the text is bold even on chinese notifications.
It's also curious that after I removed the notification slider the charging sound changed and the toggle became inactive just at this moment. I'm pretty sure that with the untouched Global notification the toggle works fine.

@Soebianto do you know where the charging sounds are supposed to be going? I spotted a couple of oggs in the decompiled files, and I guess they are being extracted somewhere (and renamed?). My first guess was system/media/audio/ui but that was a fail. Also the charging sound that's playing now is nowhere to be found on my system, which is quite weird. And I don't really beleive in a broken archive or a hidden error during recompilation because everything else is working like before.
I get the text thing, it depends on themes and fonts.
I didn't delete or modify the contents of the brightness slider file, I just tagged it hidden. How can a couple of words in a file which itself is called in another file to affect totally another part of the app? :confused:
Charging sound is inside MiuiSystemUI.apk, filename : '/res/raw/charging.ogg'.

Afaik, It's not extracted to anywhere.
 

polonyk

Members
Jan 24, 2018
106
40
Well, that's an interesting implimentation. I would have thought it was a system-wide thing.
Even more curious that it still has a charging sound that's no present anywhere in the system or in raw...

So it's a compilation issue then?...
I'll do a backwards thing and revert the brightness slider file to original and recompile it again into original form. But I quite doubt it'll work now.
 

DeXeD

Members
Nov 6, 2017
22
15
Yes, and PLS read 1st post.
I read it many times. In first post there is no mention for stable EU roms, this is why I needed to post in the thread in order to understand whether I could flash or not the global mod on the china eu rom.
 

polonyk

Members
Jan 24, 2018
106
40
:D

There's no such thing as an EU rom.
There's China ROM and Global ROM.
The Xiaomi.eu ROM is a custom ROM based on China ROM.
That's why we flash Global notifications on China ROM (even though it's modified and released by Xiaomi.eu).

And before you come back with a comeback, it is specified in every single weekly release thread:
Our ROMs features (Whats not in Global):
Based on China Stable / Weekly builds (except HMNote3SE)
 

DeXeD

Members
Nov 6, 2017
22
15
Man why are you telling me things I already know, assuming I'm just too stupid to read and understand what's written here and there? :)
There's no such thing as an EU rom.
How do you want to call the custom rom cooked by xiaomi.eu team? I just call it "eu rom", so funny I have to explicit this.

Bla bla things I already knew
:eek:
And before you come back with a comeback, it is specified in every single weekly release thread
Thanks for the information. Can you show me at least one sentence in first post in which we can read that the global stable notification mod can be flashed over eu stable roms?
Since global stable roms didn't have the new notifications until some weeks ago, it wasn't stupid to assume that this mod could be flashed over official global MIUI roms. The fact that almost everytime the version of eu stable rom for my Redmi 4X had a different number from the one I found in the AH Soebianto repository just make stronger my first doubt about compatibility between the mod and eu stable roms.
 
Last edited:

DeXeD

Members
Nov 6, 2017
22
15
So funny you don't see the irony in your own bullshit.
I guess you realized how the hell you're wrong in this argument and directly started with insults :) BTW thanks for the detailed answer to my last post, you're really useful.
 

Soebianto

Members
Sep 15, 2017
1,106
222
I read it many times. In first post there is no mention for stable EU roms, this is why I needed to post in the thread in order to understand whether I could flash or not the global mod on the china eu rom.
Stable ROM is mentioned several times in the 1st post, most obvious is in the title of the thread (Global Rom Notification Style Port For Xiaomi.eu / China Rom ( Developer & Stable).

With the title in mind, unless specifically stated, everything written in the 1st post applied to Xiaomi.eu/China, Dev and Stable, for example this part:
  • Flashing Newer Global ROM's MiuiSystemUI on older ROM usually works (for example : flashing MiuiSystemUI of Dev ROM 8.1.25 on Dev ROM 8.1.18)
This applied to Xiaomi.eu, China, Dev and Stable (maybe I should put another example using Stable ROM..)

Hope this clear things up.

The reason I asked you to read the 1st post is so you know what to do if you encounter problem after flashing and some other things I mentioned there, people like to ask things that's already there.
 
Last edited:

Epopirynek

Members
Apr 29, 2018
13
15
Can I extract files from MIUI 9 Global Beta ROM 8.4.26 and replace files in Your installer? It will work on my Redmi 4X?