yashsingh1/xdaforums huggingface dataset:
[Android Themes] copperge:
Thanks for your help here bud. I don't think I can attach files at the moment since I don't post much, but listed as follows:

Original gemini_status_bar.xml:

<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/gemini_signal_cluster_view" />
<com.mediatek.systemui.statusbar.util.LaptopBatteryView android:id="@id/laptop_battery" android:visibility="gone" android:layout_width="20.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:id="@id/percentage" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="4.0dip" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="10.5dip" android:layout_height="16.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
</LinearLayout>

Modded gemini_status_bar.xml:

<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/gemini_signal_cluster_view" />
<com.mediatek.systemui.statusbar.util.LaptopBatteryView android:id="@id/laptop_battery" android:visibility="gone" android:layout_width="20.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:id="@id/percentage" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="4.0dip" />
<com.erhany.KitKatBattery android:gravity="center" android:id="@id/battery" android:paddingLeft="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>

I have tried the steps on page 2 post #11 also but to no avail.

Again! Thanks for trying!
[Android Themes] peterpion:
Just large numbers for battery level?

I'm running rooted stock 5.1 gpe on a i9505 and I want to change the status bar battery to just digits (eyesight on the way down). So a simple large percentage number for battery level (percent sign even not needed). I tried the tweak to show battery percent in the battery icon but just can't see it (digits too small).

So I was reading this thread but not quite understanding it - im new to android and rooting, but a programmer so the situation is not too bad. So my question is, does 5.1 have the potential to just draw the digits if I just set a xml file, or should I create 100 large text png inages and do it that way? In the OP linked rar file, I can't see any images with numbers in them, just transparent background images, which I assume the digits are drawn over. Perhaps the digits are drawn in a fixed font size though, or perhaps its configurable somewhere? How should I approach this?

Thanks, Pete
[Android Themes] Ticklefish:
Oops, I never replied to this! Sorry! It's been a crazy Christmas... :(

As far as I can tell, you're doing the right things. I think this mod just doesn't work on your phone. Which is annoying but it does happen sometimes. Sorry about that..

Probably the easiest way to do this would be not to use this mod, but to use another one [MENTION=4485836]Erhany[/MENTION] created instead.

Have a look here: http://xdaforums.com/showthread.php?t=2356012 :)
[Android Themes] copperge:
Had a feeling this would be the case. Never mind, I'll find an alternative. Thanks for replying! :)
[Android Themes] xsm901218:
good work bro,thanks for sharing.
[Android Themes] ETheHedgehog:
[MENTION=4315551]Ticklefish[/MENTION] Can you help me , im running android 5.1.1 stock samsung

And i can't find anything about the battery in both msim_status_bar and status_bar XML

I did everything just need to do the last step but i can't
[Android Themes] Ticklefish:
Have you looked in "signal_cluster.xml"?
[Android Themes] ETheHedgehog:
Yes, nothing there too in both msim and normal
[Android Themes] Ticklefish:
Can you share your status_bar.xml please?
[Android Themes] ETheHedgehog:
[MENTION=4315551]Ticklefish[/MENTION] i have attached both msim and normal status bar files

and i'm sorry i have been asking you a lot lately but my phone's forums have barely anything for it
[Android Themes] Ticklefish:
That's okay. Have a look in "system_icons.xml".
[Android Themes] ETheHedgehog:
thnx , it was in System_Icons like you said
[Android Themes] Huncriter:
FC in cm12.1. please help

E/AndroidRuntime( 1032): FATAL EXCEPTION: main

E/AndroidRuntime( 1032): Process: com.android.systemui, PID: 1032

E/AndroidRuntime( 1032): java.lang.ClassCastException: com.android.systemui.BatteryMeterView cannot be cast to com.erhany.KitKatBattery

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.phone.StatusBarHeaderView.setBatteryController(StatusBarHeaderView.java)

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java)

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java)

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java)

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java)

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java)

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java)

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java)

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java)

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java)

E/AndroidRuntime( 1032):	at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java)

E/AndroidRuntime( 1032):	at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 1032):	at android.os.Looper.loop(Looper.java:135)

E/AndroidRuntime( 1032):	at android.app.ActivityThread.main(ActivityThread.java:5294)

E/AndroidRuntime( 1032):	at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 1032):	at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime( 1032):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:910)

E/AndroidRuntime( 1032):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:705)
[Android Themes] munjilhossain:
not workin for me

I follow the steps. but it is not working for me.my device model Walton primo rm 4.4.2
[Android Themes] Aman gee:
Good work..... I am use GENERAL MOBILE DISCOVERY MTK6589 and insall samsung s6 rom i wants to remove s.finder and Quick connect from toggle plz help i upload my systemui plz check.... I hope u help me thanks in advance...

http://www.mediafire.com/?bdhzm0ivtgew02e

[IMG="s6 toggle"]http://i68.tinypic.com/2eqh0yo.png[/IMG]
[Android Themes] Ticklefish:
It's worth giving this thread a little bump, I think.

I've just tried this mod on my Marshmallow rom and it still works nicely. ;)
[Android Themes] tanish2k09:
Tried the method for Android 7.1.1

It seems like it is quite different than what has been mentioned in the op.

Anyways, [MENTION=4315551]Ticklefish[/MENTION]

Here are the apk as it is (untouched) :

1) This link is to framework-res.apk

https://drive.google.com/file/d/0BxkDSj8MtdPQZG5RSUZQTGM0MWc/view?usp=drivesdk

2) Systemui.apk attached.

Now, here is what I had tried/intended to do :

1) Bring the clock to the center(with seconds enabled in systemui tuner).

2) Replace the battery aosp icons with the downloaded icon png. I have attached the custom icons as rar.

Any assistance will be appreciated.
[Android Themes] tanish2k09:
It seems systemui.apk had failed to upload in my previous post. [MENTION=4315551]Ticklefish[/MENTION] sorry about that. Here is the systemui.apk untouched.
[Android Themes] Ticklefish:
Thanks for your files. Your code is a little different to the stock KitKat XML...but it's nothing that's going to cause a problem. Your battery icon is in "layout\system_icons.xml", not "layout\status_bar.xml".

Here's the code with the current battery icon in red:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="[URL]http://schemas.android.com/apk/res/android[/URL]">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<include android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/signal_cluster_margin_start" layout="@layout/signal_cluster_view" />
<com.g84.g84view.Taptap android:layout_width="wrap_content" android:layout_height="wrap_content">
[color="red"] <com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_icon_width" android:layout_height="@dimen/status_bar_battery_icon_height" android:layout_marginBottom="@dimen/battery_margin_bottom" />[/color]
</com.g84.g84view.Taptap>
</LinearLayout>

That's the line you need to change. Just follow my tutorial and you should be fine.

Bear in mind that this mod was intended for KitKat. It works on Marshmallow and should, in theory, work on Nougat as well. But it hasn't been tested as far as I know. Looks like you're going to be the first tester. :D
[Android Themes] tanish2k09:
Yup. I'll try it out. It shouldn't be a problem. Not being a noob feels really good :D

I guess you get the idea why I couldn't properly follow the tutorial.

Btw, isn't the battery icon supposed to be in framework-res.apk?

And what do I need to edit to replace the current battery icons with the icons in the rar file I uploaded?
[Android Themes] Ticklefish:
The icon used to be framework-res.apk but these days everything like that is in the System User Interface file...SystemUI.apk.

To use different icons you just need to replace the ones provided in the OP with your own. I would suggest concentrating on getting the mod working first though. If you know it works then you can work on changing it.
[Android Themes] tanish2k09:
Tried it out. Also used your "Tickle my android". I appreciate you for that software. It is marvelous, with everything integrated.

Now, I tried your code, to change the color to red.

Recompiled using tma with option "recompile for 7.0+".

Pushed it back, then rebooted. Turns out, systemui vanished completely. I kept getting " systemui has stopped".

Couldn't find any way to revert it, so I restored the original apk. But still, systemui kept stopping.

Good thing I had a nandroid to save me.

Any idea what happened?

******I forgot to take a logcat******
[Android Themes] Ticklefish:
Can you share your history.txt please? Oh, and did you get a warning about the signature when you recompiled?
[Android Themes] tanish2k09:
History.txt?

Well, I had a peek in the recompilation log. Everything was good. I'll share required files if you want to see them. Pm or on this thread?
[Android Themes] Ticklefish:
This thread will be fine. I just want to see your history.txt to check your process. If you're using TMA, it'll be in the user_files folder.
[Android Themes] tanish2k09:
Bro, after doing a bit of debugging, I got the following result :

There doesn't seem to be a problem with TMA.

When I copy my systemui.apk to my sd card as backup, then go to recovery, delete original apk and replace with the backup apk and then after I chmod 644 it, and reboot, it does the same thing. No status bar or navbar. On long-pressing power button, power menu doesn't appear, rather, it does a soft reboot.

After restarting, I get "systemui has stopped" but I am able to access the power menu.

Any idea on this??

If this is figured out, then I can figure out the modded apk too. Assistance required.

//And sorry for late response... Exams...

//Awaiting response from your side now, [MENTION=4315551]Ticklefish[/MENTION]
[Android Themes] tanish2k09:
How can I add add quick tiles in my notification bar from some other ROM?
[Android Themes] Erhany:
wow, I cant believe that topic is still active and got 9k+ downloads. Hello, happy modding everyone. Months later Im back again.. But for now, no questions no help please. because i forgot everything :)
[Android Themes] tanish2k09:
Nice to hear that. Can we expect you to actively start maintaining the thread in some time?
[Android Themes] abessi sofiene:
essalamou alikom

i do all the steps in tuto but the battery icon wasn't changed

my phone is running android 4.4.2

everstar d40

If there's another maanipulation to do?

in my framework-res.apk there's 2 files stat_sys_battery.xml and stat_sys_battery_charge may be i must delette theses two files ?

thanks for interresting
[Android Themes] Ticklefish:
The files in framework-res.apk and probably redundant. Can you share your framework-res.apk and your SystemUI.apk please? I'll take a look at them and see if there's anything unusual about them.
[Android Themes] abessi sofiene:
thanks for reply

these are framework-res.apk and systemui.apk of my device
[Android Themes] Ticklefish:
Oh, yes. You're only on two posts. Don't worry, it doesn't take that long to get past ten posts. :)

You're welcome to PM me. I think you can use links in PM..
[Android Themes] tanish2k09:
[MENTION=4315551]Ticklefish[/MENTION] [MENTION=4485836]Erhany[/MENTION]

I thank you for your help. And the dev for the tut.

Also thanks for the amazing tool "tickle my android"... I have been spreading the news of this tool from my signature.

And as far as the testing of this method is concerned on Android nougat, I confirm that this tut works on n too!!
[Android Themes] Ticklefish:
Thank you, that's very kind of you. If you would like, there are banners available in the TMA thread that can go in your signature. People with TMA banners are the greatest people on the planet... :D

Good to hear this is working on Nougat as well!
[Android Themes] tanish2k09:
[MENTION=4485836]Erhany[/MENTION] [MENTION=4315551]Ticklefish[/MENTION]

My question still remains unanswered.

Is it possible to bring a qs tile of some other ROM to your own ROM? By editing system apks?

Like if I want the "music" qs tile of RR in my own aosp ROM, is it possible to achieve what I seek?
[Android Themes] Huncriter:
i can confirm this still working on nougat 7.1.1. how can i blackout icons on app browser ?
[Android Themes] tanish2k09:
[MENTION=4315551]Ticklefish[/MENTION]

I tried one thing but I need your help. I'm stuck.

There is a special feature in our ROM "ghost aosp" called "data protection" from settings>security.

But whenever we choose a file to protect, it crashes. So, to check the exact point of call, I need to find the name of the app that is called.

I thought if I decompile the settings apk, I could find it. The closest I got was something called "crypt keep" but that might be android's own lock screen.

Will you please take a look for me.
[Android Themes] Ticklefish:
Have a look at the top of the Manifest file. The package name should be there.
[Android Themes] tanish2k09:
Got it. And bug fixed. Thanks.

Lol, logcat showed that a permission was missing, causing the app to create a fatal status. Trying to read storage without read and write permissions...:eek::p:silly:
[Android Themes] Ticklefish:
lol at least you got it working!
[Android Themes] Ch3if-0f-Skull5:
Touchwiz

Touchwiz annoys me enough on it's own, but the battery icons seem to be hard-coded worse than stock kitkat. Could someone help me out? I have my SystemUI File below. It's from a Galaxy Core Prime [SM-S820L]

SystemUI_ESS.apk
[Android Themes] Ticklefish:
There's nothing much that can be done with just SystemUI.apk on its own. You need the framework files to go with it.

The trick with most roms is to track down where the battery icon is in the various layout XML files. Once you've found it, you can hide it and use this sort of mod.
[Android Themes] tanish2k09:
What to do about odexed ROMs?

They won't ever work until it is de-odexed first, right?
[Android Themes] Ticklefish:
Yes. Essentially odexed roms store the smali files you need to change outside the APK. You have to deodex if you want to change those.
[Android Themes] tanish2k09:
That was essentially the reason why I was failing to boot the rom after editing the apk... I think you remember when I was testing this method on nougat.

After some studying, I found this odex related info. Found out my rom is odexed lol. Then after deodexing the modded apk worked on nougat too.:D
[Android Themes] Ch3if-0f-Skull5:
It works! (I'm late, forgive me)

This is months overdue, but I want to post that this method works with the Samsung Galaxy Core Prime.

I was able to make it look like gingerbread... XD
[Android Themes] Ticklefish:
Very nice! :good:
[Android Themes] JT1510365:
im confused i got the mod working successfully but now my apk wont recompile due to something wrong i am trying to add the charging anims in second post everything else is working ok but that:(

Can you help me ticklefish can you explain how to add the charge anim code it would mean a lot to me?

also if you dont mind the battery percentage is right up next to the battery icon as shown in screenshot how can i make it so that it has a tiny bit of divider space between the percentage and the batt icon itself?

Thanks in advance and huge thanks to the OP for this amazing mod:)

Please also check my recompile log and the status charge xml i modified

View attachment 4248372

View attachment stat_sys_battery_charge.xml

View attachment 4248374
[Android Themes] Poerdjoe:
Please show me how to use this guide on nouget.
[Android Themes] Ticklefish:
Please don't quote the entire OP like that. It makes the thread hard to read and is considered bad etiquette.

As for using this mod on Nougat, the process is pretty much the same as on Kit Kat. You have to find the original line of code that shows the battery icon, hide it, and put in the line of code that shows this new one.

Just read the instructions and follow the steps. As long as you don't rush anything you should be fine.
[Android Themes] 3to4:
Hello! I don't know if anyone is still following this thread, but I am finally updating my N9005 from Kitkat to Lollipop, and trying to apply this mod to Lollipop (stock deodexed and rooted).

What I am trying to do is to have Circle Battery (with 1% increments), which I succeeded basically following your guide. The difference is that I added the line ( <com.erhany.KitKatBatter...) in status_bar.xml, but to remove the original battery, I edited system_icons by adding (android:visibility="gone") after (com.android.systemui.BatteryMeterView android:id="@id/battery").

I have now Circle Battery, but there is no charging animation. I mean, with Kitkat, when the phone is charging, the battery icon displays a charging arrow intermittently, but in my phone, the Circle Battery remains the same and does not show a charging arrow.....

I put back Samsung original battery, and I now notice that there is no charging animation.

Can anyone help to have a charging animation? I
[Android Themes] Ticklefish:
So your stock APK doesn't have a charging animation?

I had a similar issue a few roms ago, which might have been Lollipop. I remember trying to create a bit of smali that would display an icon, like a lightning bolt, when the phone was charging. I don't remember if I had any luck though.

If you want a charging animation, we may have to do a lot of detective work. If you still have your files from the old KitKat rom, we could see if we could track down the smali code that displayed the charging icons and see if we can port that across.

Which is theoretically achievable but it won't be a quick fix. I'm very much a beginner at smali but I'm happy to help if you want to try to work this out?
[Android Themes] 3to4:
Thank you very much for your reply!! I think you helped me with another issue some time ago.

Actually, I have two Note 3, one is still with Kitkat with circle battery (with a charging animation), and the other is with Lollipop (without a charging animation). And, I made two flashable SystemUI zips (circle battery and original battery) for Lollipop. So, it is easy to switch from one to the other. And, no, with the original battery, there is no charging animation. I mean I see an arrow in the battery, but it doesn't show animations. On the other hand, with circle battery, the battery remains the same without even an arrow in the center, although I copied obviously the pngs with arrows, as in the same way as with Kitkat.

For the mod, I used exactly the same smalis (stat_sys_battery and stat_sys_battery_charge) for Kitkat and Lollipop. I can upload the smalis, if necessary. What would you advice I start checking? Thank you in advice.
[Android Themes] Ticklefish:
I won't lie, I'm not sure.

Could you share your SystemUI.apk files and matching framework files please? I'll decompile them and see if I can work out something.
[Android Themes] 3to4:
Thank you very much. Please find my files. I already made some mods to my SystemUI, like operator name and network traffic, but it is working.

PS: I am very sorry. I uploaded the wrong systemUI!! So, I replaced it with the correct one. This one is with Circle Battery, which doesn't show charging animations. Thanks for your time.
[Android Themes] Ticklefish:
Thank you.

So your original icon is in "system_icons.xml" but you've put the new one in "status_bar.xml". That might be causing an issue. The "@id/battery" is still in system_icons but is being duplicated in status_bar.xml.

Try deleting the new line from status_bar.xml, deleting the stock battery from system_icons.xml and putting it there instead.

Hopefully that'll make a difference.

If it doesn't we will have to see how we can make the charging icon work in smali..
[Android Themes] 3to4:
Thank you for your advice.

I deleted the line ( <com.erhany.KitKatBatter...) from status_bar.xml and added it to system-icons.xml. Then, I deleted the line (com.android.systemui.BatteryMeterView android:id="@id/battery".... ). I hope I understood well your advice.

I flashed it to my phone, but I got a FC... It seems that this mod is not easy.. I remember someone saying that the only way he avoided FC is to use (android:visibility="gone") But, as you say, as it is only invisible, there maybe conflicts with the new line. I don't know.
[Android Themes] Ticklefish:
The trouble with "@id" attributes is that you can't delete in a decompiled APK or you'll get a FC every time. Unless you do some serious smali editing.

My thought was the two id's might have been causing issues. But there may be more going on here.

Could you possibly share your stock APK's if you still have them? I'll try doing the mod here and we can see what happens. If you get a charging animation then we're good to go. If we don't then that will give us something to work with.
[Android Themes] 3to4:
Thank you. As I am not sure if I can have a working circle battery, and as I wanted to move forward, I actually made two versions of modded SystemUI.apk (operator name, network traffic, etc), one is with stock battery and the other with circle battery. So, I am uploading the one with stock battery. If you like a real stock (without any mod), I can upload it as well.