yashsingh1/xdaforums huggingface dataset:
[Meizu MX] iicc:
How can I colaborate adding my own notification icons?

If you want to add more apps to this mod, you have to extract the notification icon from the apps.

All the user apps are located in /data/app

You have to copy and paste the apk to the internal memory to be able to pass the apk to the computer.

Once you have the apk located in the pc, you have to rigth click and select "open as..". Select open with WinRar or similar

Now you are inside the apk. Just drag the folde called "res" outside tha apk.

Inside the res folder, the folders called "drawable-xxhdpi" and "drawable-xhdpi" is where the notification icon is.

The icon is usually called "notification_icon.png"or something like that. It usually has a size less than 100x100px

This is the icon I am requesting for, you can upload it in the excell tab (see the end of the post)

Also It would be nice if you write me the Main Activity of the apps.

This is very simple, you only have to have xShorcut app installed in your phone.

In side this app, go to App Shorcut, find the app and copy in the excell tab the text below "Component Package"

The excell tab is here

Thanks for supporting this mod :D:D

​
[Meizu MX] iicc:
Added support for the Meizu M1 Note! It is avaliable for download.

I will edit the post later
[Meizu MX] punkmonkey1984:
Are you planning on supporting the Lollipop beta's or when its released officially ?

Also a kakotalk icon would be amazing.
[Meizu MX] iicc:
Yes, of course!

Ok, I will add the icon in the next version ;)
[Meizu MX] punkmonkey1984:
Great:

Here is the link to the latest lollipop mx4 beta (unofficial)

http://download.meizu.com/Flyme/preview/M75/4.5.2A/5.0.1-201505191212/25bang/update.zip

In case you need the files or just want to test, its pretty stable.
[Meizu MX] iicc:
Thanks

I have friends that have the beta, they said that is very fluid and the battery has improved
[Meizu MX] punkmonkey1984:
Yes, everything seems to be working well except for xposed. Can't get it to install.
[Meizu MX] l1r_svg:
Hi, sorry for bad English, I write through Google translator:D

I want to ask you, if you can write the instructions, or just write in any files you are prescribed changes. I just think those icons that I use is not much need rest, as you do not have to collect all the icons, everyone will be able to collect them for yourself.

thanks for the mod, everything works:good:

p.s. I tried to decompile your systemui, which would then be compared with the unmodified systemui and to understand the changes. but I could not.
[Meizu MX] iicc:
Sorry I havent read your comment until now :crying:

Thanks!

So do you want to know how to do this mod by yourself? Of course, I will tell you but it very easy to get a bad compilation

I think the best thing is to have all icons colleted in one, like I am doing, because few people will know how to put the icons in the systemUI and modify it, so very few people will use it. Also icons only are a few bytes large, you wont notice the difference.

So, this is what I do:

After decompiling SystemUI.apk, you have to go to systemui/res/drawablexxhdpi or drawablexxxhdpi if you have a M1 Note and put here the icons

Next, go to /systemui/res/values/public.xml, open it and erase some lines that refers to icons of chinese apps that are not used outside china. Put the name of the icon replacing it and write the id's in a notepaper or somewere to remember it.

Now go to /systemui/smali/com/android(systemui/statusbar/phone/MeizuCustomizedIcons$1 and locate the loops where the previous id's are. You have to find the id's you have stored, change the main activity of the chinese app and put the activity of the app you want to put related to the icon.

Just this, it is easy to make errors.

I dont know if it is well explained, my english is also bad
[Meizu MX] l1r_svg:
thank you for a good and clear instructions

As far as I understand, the number of icons is limited, or I can add millions of them?:laugh:
[Meizu MX] iicc:
Now I only can to do it limited :laugh::laugh:

But I think that It can be made unlimited, at this moment I dont know to do it but It is not a problem now :p
[Meizu MX] l1r_svg:
ok) I will wait for updates:good:
[Meizu MX] punkmonkey1984:
[MENTION=6582191]iicc[/MENTION] what tool are you using for decompiling/compiling ?

Going to give it a go on the lollipop version.
[Meizu MX] iicc:
I use Apktool 2.0 rc4
[Meizu MX] iicc:
Sorry for the delay, I was too busy these days.

Tomorrow I will upload for a new version for the mx4 with lollipop and for m1 note, with more icons and solving some bugs.
[Meizu MX] iicc:
New! v1.4

-Now is only for Lollipop and MX4

-All code rewrited and modded

-New lollipop installer

-New icons:

PrinterShare

Mensajes

Disa

Inbox

Kakaotalk
[Meizu MX] punkmonkey1984:
Thanks for adding kakoatalk. However the notification icon you used is little off with the rest.

This one is more fitting.

Thanks. View attachment 3347611 View attachment 3347613
[Meizu MX] kutinho:
Do you have the original Systemui.apk? Because something went wrong with this installer on 4.2.8.2A...
[Meizu MX] iicc:
Ok, I will upload it in a few minutes
[Meizu MX] kutinho:
Ok, thanks! Do You know, what could be the problem on 4.2.8.2A rom?
[Meizu MX] iicc:
What happened? Have you seen a error during the installation? Does your upper bar disappeared? Do you have the mx4, not the pro I suppose
[Meizu MX] kutinho:
No error, just the upper bar dissappeared and the back arrow.. When somebody called me, i didn't see the caller and couldn't pick up the phone...
[Meizu MX] iicc:
Mmm sorry..

Have you go to system/priv-app to see it the permissions of the SystemUI were correctly set?
[Meizu MX] kutinho:
The permissions were not rw-r-r but i couldn't change them. BTW my phone is rooted with busybox installed...
[Meizu MX] iicc:
Its strange, with a reboot it should work as the SystemUI is correctly placed.

Anyway, here you have the original SystemUI if you want to put it https://docs.google.com/file/d/0B1WZs_VfDdzYc3FRSzctdE85bEk/edit?usp=docslist_api

Sorry for the error, I will investigate it
[Meizu MX] kutinho:
Ok, now this solved my problem. Replaced the SystemUI.apk with the original and everything works again. But i couldn't delete SystemUI.odex, is this a problem? This all thing is strange because i tryied your work on the same phone with 4.5.2A firmware and it worked like a charm...
[Meizu MX] iicc:
Dont worry, in the MX4 is not mandatory to erase the SystemUI.odex, only for M1 Note. It doesnt matter for mx4.

One thing, what version have you tried to install on the 4.2.8? The v1.3 or the v1.4?
[Meizu MX] kutinho:
1.4
[Meizu MX] iicc:
Ahh so there is the problem. v1.4 is only for lollipop now.

Im going to edit the post so there is no confusion.
[Meizu MX] kutinho:
Oh, than it was my bad.. Can i use 1.3?
[Meizu MX] iicc:
Yes, you can use 1.3 with kitkat
[Meizu MX] kutinho:
Ok, thanks!
[Meizu MX] iicc:
One question [MENTION=1149510]punkmonkey1984[/MENTION], do you know how can I put the icons in rectangles?

I mean, the icons that I put in the mod are a square with the icon in the middle. The notification icons of flyme are a rectangle with the icon in the middle. This is the reason that when a notification arrives to the phone, the icon get very big, because the SystemUI tends to fill the height of the screen. If the icons that Im putting were in a rectangle with the image in the middle this would not appear.

Do you know how can I do this?

Edit: I have replaced the kakaotalk icon, many thanks
[Meizu MX] iicc:
v1.4 for the Meizu M1 Note is avaliable ;)
[Meizu MX] punkmonkey1984:
Send me one of your icons, and one from flyme, ill have a look with photoshop. Should be as easy as replacing the new icon over the orignial but keeping the dimensions of the original (triangle icons).
[Meizu MX] iicc:
Sorry, I was so busy these days.

A Flyme icon (44x75) : https://drive.google.com/file/d/0B1WZs_VfDdzYZEs2Snc2cnpPdkE/view?usp=sharing

A non Flyme icon (52x52) : https://drive.google.com/file/d/0B1WZs_VfDdzYbFg2RnhmSXNSeG8/view?usp=sharing
[Meizu MX] punkmonkey1984:
Iv moved on to a LG g3. But I'll have a look at the files when on my laptop.
[Meizu MX] kogli:
An MX3 version would be greatly appreciated. :)
[Meizu MX] Hummer951:
Hi, i`m using an M2 Note running Lollipop 5.1, Flyme 4.5.2.A......any chance your mod will work on my phone?
[Meizu MX] iicc:
Neither of all my uploaded versions will work.. Probably I will adapt it to the m2 note when I have time
[Meizu MX] popy2006:
MX4 Pro support would be very nice.

thx

pOpY
[Meizu MX] lancelot0606:
I am using meizu m2 note. I cant decompile the Browser.apk successfully. which framework files do I have to use? or which tool do I have to use for decompiling. I need to change default search engine www.google.com.hk to www.google.com. Please help me.
[Meizu MX] iicc:
I use apktool 2.0 rc4

What problem do you have? I use framework-res, mediatek-res and flyme-res
[Meizu MX] lancelot0606:
let me try apktool 2.0 rc4 I was using jbart v2a. I think its not suitable for meizu.

my aim is to be able to change the default search engine as I mentioned before. there must be a code defining that.

---------- Post added at 08:19 PM ---------- Previous post was at 08:06 PM ----------

while installing framework-res.apk it gives error. using apktool 2.0. rc4

C:\frameworks>apktool if c:\frameworks\framework-res.apk

Exception in thread "main" brut.androlib.AndrolibException: Invalid value type:

0

at brut.androlib.res.data.value.ResValueFactory.factory(ResValueFactory.

java:64)

at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:242)

at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.ja

va:230)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:200)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:188

)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:156)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:11

3)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource

s.java:678)

at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource

s.java:660)

at brut.androlib.Androlib.installFramework(Androlib.java:641)

at brut.apktool.Main.cmdInstallFramework(Main.java:240)

at brut.apktool.Main.main(Main.java:87)

I gave up... :(
[Meizu MX] iicc:
What java sdk are you using?
[Meizu MX] lancelot0606:
jdk-8u51-windows-x64.exe

I installed this one.
[Meizu MX] iicc:
Install java 7
[Meizu MX] cript0n:
Mx5 please. Thanks for your job!!!

Enviado desde mi MX5 mediante Tapatalk
[Meizu MX] Frambia:
Problèm

Hello ! You are the only one I find Who do something to the natives notifications icons but I have a problèm...

I am on flyme 4.2.8.2l and I do what You say replace old systemUI with thé New one and erase systemUI.odex then I reboot... doesn't change anything so i tried to install the new , it tell me "replace application "UI system" "4.1" remplacer par "4.1" I clik yés and it says application not installed. .... can You explain it to me please ?

Also sorry for my english. .... i'M french

Thanks for answering
[Meizu MX] iicc:
[MENTION=6880281]Frambia[/MENTION] you have to put the SystemUI you want to change inside /system/priv-app and overwrite the previous one. Next, long click on systemUI.apk and change the permissions to: 0644
[Meizu MX] kogli:
Another feature request: Try making this mod for xposed. That way it gets available for every Flyme device, not just for the ones that you specifically port it to. Also, people won't have to replace the systemUI.apk and will have the ability to easily turn the mod on/off.
[Meizu MX] iicc:
Yes, an xposed module would be great, but by now, my java and programming skills are not enough to make an xposed module :(

This mods requires hours and hours to port to other meizu and also to update it.. by now for me it is impossible to support all meizus you have requested :(

But I have an idea, I will bring news soon
[Meizu MX] Antonio.P:
It would be great :D
[Meizu MX] antonyxe:
hi MY FRIEND any changes of this app for lollipop on meizu mx3?
[Meizu MX] iicc:
Nothing, sorry [emoji20]
[Meizu MX] wegwolv:
Thats so great!!! Please make a m2 note version!! ?
[Meizu MX] Angiiie:
[IMG="Busybox"]http://i.imgur.com/yFETuop.jpg[/IMG] Any help would appriciate thanks... running an Flyme OS 4.1.7l
[Meizu MX] iicc:
Are you root?

But 4.1.7I is a very old rom.. This wont work
[Meizu MX] Angiiie:
it is root. i think i cannot get any new because its an european version from tccm.com
[Meizu MX] SHaKTaLe13:
Will you port this to Meizu M2 Note? It would be great... Great job!
[Meizu MX] iicc:
Starting https://github.com/iicc1/Flyme-extended-notifications

I will explain how to colaborate in this mod, for one person is impossible ;)
[Meizu MX] Hummer951:
Thanks [MENTION=6582191]iicc[/MENTION] looking forward to having this mod on my M2 Note :thumbup:
[Meizu MX] donalberto17:
Yeah, it would be awesome, I can help :D
[Meizu MX] dcn00004:
What about Mx4 pro? We also need it.

Thanks.

Enviado desde mi MX4 Pro mediante Tapatalk
[Meizu MX] the-light:
Great job. Would be awesome if there will be a m2 note 4.5.3a ver.
[Meizu MX] donalberto17:
No progress mate?
[Meizu MX] iicc:
Sorry, no pc until today. Today or tomorrow will be ready ;)
[Meizu MX] donalberto17:
OK buddy, I just wanted to know how the things were going, thank you.
[Meizu MX] dhaz94:
HELP!!! can't upload system UI lollipop original for meizu mx4...... thanks
[Meizu MX] Tsmukan:
Hello. Thank you for this mod but I have a problem. There is a question pic in notification bar. Maybe only I have this problem, because nobody wrote about it. Lollipop 4.5.5A

P.S. Unfortunately, I can't attach a pic, because I'm a new here
[Meizu MX] iicc:
What phone?

Dont worry, new version today
[Meizu MX] Tsmukan:
Meizu MX4
[Meizu MX] donalberto17:
I can see the new APK in the dist folder of M2 NOTE, is it ready to test it? Can I test it?
[Meizu MX] iicc:
Its ready to start adding icons, it has only telegram icon.
[Meizu MX] iicc:
So as I said, you can start adding apps to the mod. I explained how to do it here:

https://github.com/iicc1/Flyme-extended-notifications/blob/master/TUTORIAL.md

I will post it also in this thread and continue adding icons and Meizus, but I need a pc to do it. I hope that in 2 days I get one.

But all is explained there, you can start adding apps if you want [emoji6]
[Meizu MX] RasmusDesign:
hello, thank you for this mod, it works very well!

But it shows a question mark in the notification : http://img11.hostingpics.net/pics/543001S50928065959.jpg

It also shows the infinity symbol instead of the icon spotify : http://img11.hostingpics.net/pics/456276S50928065942.jpg

Also, the SMS icon is si tiny, please consider to change to the stock icon ^^
[Meizu MX] sutty86:
Any chance of an mx5 port
[Meizu MX] manuelz31:
Hi, Meizu M2 Note user here!

Version 4.5.4i Android 5.1 Lollipop!

Waiting for your mod to work on M2 Note

Thank you! more power!
[Meizu MX] ugobe:
same problem with last version!
[Meizu MX] silentlearner:
How about a tweak to show the carrier logo on the status bar just like the Oppo OS?

Will this mod resolve that?

I have m1note charm blue with android 5.1 with flyme os v4.5.7a.
[Meizu MX] silentlearner:
How about adding the notification for PHONO app for official/custom carrier logo?
[Meizu MX] AmNeZiiAk:
Valid for meizu m2 note?
[Meizu MX] AmNeZiiAk:
Please I want on my meizu m2 note

Envoyé de mon m2 note en utilisant Tapatalk
[Meizu MX] Hummer951:
Here also please.....Meizu M2 Note
[Meizu MX] drakal10:
files for decompilation

I was wondering which apk do i have to put in the same apktool folder (together with the systemui.apk)?

framework-res.apk probably too and which other one?

the apktool gives me errors and it cannot decompile th whole systeui files.

Thank you!
[Meizu MX] ivicanikolic034:
can we get this for M2 note please?
[Meizu MX] Deni_NS:
Yup it would be nice if you can make this mode for m2 note. You need only our systemUI? Right?

Sent from my m2 note
[Meizu MX] joanagama19:
Yes!

Please M2 note too!!

Enviado do meu m2 note através de Tapatalk
[Meizu MX] AShacks:
Yeah M2 Note please!
[Meizu MX] iBright01:
M2 Note as well
[Meizu MX] tomax80:
m2 note

I'm interested in m2 note version too, thank you!
[Meizu MX] doorfixer:
m2 note, thanks
[Meizu MX] arna1958:
Please, M2 note. Thanks!!
[Meizu MX] ivicanikolic034:
OP is not on forum for a long time... i don't think he is coming back soon, or ever...
[Meizu MX] iicc:
Ok! I will do it for M2 Note ;)

But now I dont have the device, so maybe I will have to upload first test versions.
[Meizu MX] iicc:
Sorry, I dont know what do you mean. Could you send a picture?

systemui, framework-res, flyme-res and mediatek-res.
[Meizu MX] Deni_NS:
https://www.dropbox.com/sh/v3emsfqaoi2fo6p/AABafqUuTWk7iPMzAxE_PqDSa?dl=0

Here are what you need :)

Sent from my m2 note
[Meizu MX] iicc:
Is it Flyme 4.5.4.2A?
[Meizu MX] Deni_NS:
Flyme 4.5.4.1 I

Sent from my m2 note
[Meizu MX] Deni_NS:
Today has been launched new update for I version.

4.5.4.2 I

Do you want new upload of these files or? I think that everything is the same. Just minor fixes.

Sent from my m2 note
[Meizu MX] Radicalep:
With my m1 note doesn't work.. Fw 4.7.5a. Correct the procedure but notifications doesn't change?!
[Meizu MX] iicc:
That firmware is too recent, it is not supported, sorry
[Meizu MX] iicc:
I have started with the last rom but if you upload the newest files maybe it is better. Thx
[Meizu MX] Radicalep:
Ok... Tnx!
[Meizu MX] desertmod1:
Can you please make this into an xposed module for all meizu phones? or at least for the m2 note?
[Meizu MX] iicc:
It would be nice, but I dont have enough programing skills to make this :(
[Meizu MX] desertmod1:
Well if you'll at least make it for the m2 note then I'll be happy to test it.

I have some programming experience too (but with c/c++).
[Meizu MX] ivicanikolic034:
Any progress on m2 note?
[Meizu MX] ivicanikolic034:
Sooooo again... any progress with m2 note? :)
[Meizu MX] sale 83:
Give him some time.[emoji4]
[Meizu MX] S0bes:
[MENTION=6582191]iicc[/MENTION] hi, I see you've done a really great huge work.

I recently bought a meizu m2 mini and faced infinity icon as well but I resolved it in a different way. I modified smali files differently than you and made the system thinks that all apps are internal. So, no more infinity icon appears. But... icons are too huge now. I searched a lot of smali and didn't find any code responsible for icon size. Also I changed every string in dimens.xml and with no result also.

Could you tell me where should I look for changing notification icon size if you know? May be you have any suggestions?

as you can see status bar height is 25dip and icons are aaround 24dip

Thanks
[Meizu MX] irodcata:
I cant change to 0644 permission :(
[Meizu MX] Asiier:
Good work, but there is a Xposed Module that already does that and it has all the icons available

Nonetheless this module use Xposed and your method the terminal, so that's good If cannot get Xposed installed

Xposed Repository
[Meizu MX] albert107:
Hi mate!

I have Meizu M2 Mini too (running 4.5.4 I). Could you please tell me how did you do this so all apps are "spoofed" as internal? I know there is a module for that but I don't want to install Xposed.

Thx.
[Meizu MX] S0bes:
SystemUi.apk - com/android/systemui/statusbar/phone/PhoneStatusBar.smali

replace entire method

.method isInternalApp(Landroid/service/notification/StatusBarNotification;)Z
....
.end method

and

.method isInternalApp(Ljava/lang/String;)Z
....
.end method

with

method isInternalApp(Landroid/service/notification/StatusBarNotification;)Z
.locals 1
.param p1, "sbn" # Landroid/service/notification/StatusBarNotification;

.prologue
const/4 v0, 0x1

return v0
.end method

and

.method isInternalApp(Ljava/lang/String;)Z
.locals 1
.param p1, "pkg" # Ljava/lang/String;

.prologue
const/4 v0, 0x1

return v0
.end method

same thing for com/android/systemui/statusbar/phone/MarqueeTicker.smali
[Meizu MX] albert107:
Thanks! What do you use to decompile and compile SystemUI.apk? I triend APKMulti-Tool but failed. I installed framework-res using the setup script.
[Meizu MX] S0bes:
Try batch apktool. But also, besides framework-res.apk you should install two more apks from framework folder flyme-res and mediatek

P. S and of course your apktool should be compatible with lollipop
[Meizu MX] albert107:
Well ok, I tried using apktool. I installed all 3 apks. The decompile went fine, then I edited the files. But when I try to compile back I got this:

edit: Nevermind, I got it to work. When decompiling you have to add an "-r" option so the command look like this:

apktool d -r <apk>

Then when compiling there is no error. After compile you have to copy META-INF folder from the original apk to the modded one.

Notification icons work like a charm, thanks, but is there any way to make those icons smaller?

Cheers.
[Meizu MX] S0bes:
Smaller only with xposed
[Meizu MX] showofdeth:
This mod is not needed anymore. There is now an xposed module called "Meizu notification fix" and it works like a charm. No more need for dodgy systemUI apks
[Meizu MX] SayG:
MX3

Please do for Meizu MX3 More Flyme Notifications
[Meizu MX] S0bes:
I managed to change 3rd party app icons size but only for flyme 5. You can not do the same with flyme 4. If someone need that I can write a guide
[Meizu MX] iicc:
Could you please tell how did you that? What I was doing before is to resize the icons of the third party apps manually, one by one.

Sorry of not answering that before, I was disconnected from all forums some weeks due to studies :(
[Meizu MX] Solitario88:
mate work on pro 5???
[T-Mobile Samsung Galaxy S 4] BIatu:
Hello, I have been having issues with my SGH-M919 doing a bootloop recently. Since 2014 I have been running CyanogenMod. Overtime it has been working flawlessly. Ocassionally I would make a backup, then proceed to flash the latest nightly rom. Going from CM11, CM12, then CM12.1. Over the past month, or month and a half, I have been experiencing radio issues. The modem would fail to have a decent signal, or I would get no data, and wifi, and/or airplane mode would fail to enable or disable until reboot. Recently, I had notice a conenction issue just a few days ago, and after reboots the radio would fail to initialize. I recieved a call, and it rebooted. So fed up with radio issues I suspected a bad rom configuration. When I rebooted after backing up and flashing the CM12/1 05.14.2015 build, I got nothing but a bootloop. I tried restoring the backup but had the same result. I tried installing a previous rom build with same results. Cleared dalvid cache, and still got the same result. I ended up completely wiping the phone, all options under the wipe options under PhilZ Touch recovery. Upon reboot I was stuck in download mode. Eventually getting odin to repartition without a pit file, it failed using the only available stock rom I had available, odin failed and kies wouldnt cooperate AT ALL. I eventually found a PhilZ mirror cause the site keeps returning "invalidcust" on downloading. So I flashed the recovery and sideloaded the latest rom and got it to boot. After rebooting to install gapps, it worked, then afer setting up google play store, I had noticed I was not getting any data, and upon reboot, bootloop came back. The actual point of reboot/crash varies. Sometimes is hangs a few seconds at the samsung logo, then not even a few seconds after the bootanimation starts... it reboots. and at other times it stays around 8-10 seconds before a reboot. I suspect, faulty hardware, or I need to flash the stock rom to get the hardware to refresh properly.

Any help would be greatly appreciated.

Update:

Upon booting with USB cable connected to a power source, it boots properly. A few moments after unplugging, it reboots, then bootloops. So...Bad battery? Even though it shows it as being at like 70/80 %?
[T-Mobile Samsung Galaxy S 4] mgp53:
Sounds like a bum battery... Had a similar issue with a S2.