yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] WhiteNeo:
Still fc. Guess we need to edit some more smali stuff here. :D

But looks better than the last log. :good:

E/AndroidRuntime( 4206): FATAL EXCEPTION: main
E/AndroidRuntime( 4206): Process: com.android.systemui, PID: 4206
E/AndroidRuntime( 4206): java.lang.ClassCastException: android.widget.ImageView cannot be cast to com.android.systemui.BatteryMeterView
E/AndroidRuntime( 4206): at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:896)
E/AndroidRuntime( 4206): at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:2793)
E/AndroidRuntime( 4206): at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:2767)
E/AndroidRuntime( 4206): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:309)
E/AndroidRuntime( 4206): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:542)
E/AndroidRuntime( 4206): at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106)
E/AndroidRuntime( 4206): at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58)
E/AndroidRuntime( 4206): at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:228)
E/AndroidRuntime( 4206): at com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java:49)
E/AndroidRuntime( 4206): at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)
E/AndroidRuntime( 4206): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 4206): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 4206): at android.app.ActivityThread.main(ActivityThread.java:5001)
E/AndroidRuntime( 4206): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 4206): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 4206): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime( 4206): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime( 4206): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
E/AndroidRuntime( 4206): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 2749): Process com.android.systemui has crashed too many times: killing!
[Sony Cross-Device General] STRYDER~007:
Need help please...

I was porting battery icon from z2 systemui to jelly bean 4.2.2 as the inside battery percent is not there ..I copied the pngs and drawbles...changed status bar layout and recompiled successfully.I also copied the smali files and gave proper address reference and recompiled but when pushed to system it force closes..Will somebody help me please?? I've attached logcat here...
[Sony Cross-Device General] nurps:
Would it be possible to create a KitKat Battery Changer xPosed module? Or is there only the "hard" way?
[Sony Cross-Device General] WhiteNeo:
Would be possible by hiding the stock battery and displaying another battery icon instead in statusbar. Perhaps one might add an option to use battery theme zip files with a certain structure.

However, I dont have the skills to create such a module. :(
[Sony Cross-Device General] Siddhesh Sapre:
Can someone please try this?

Dear all friends and senior members,developers,

I know you all really work hard on designing a particular rom and to get it working.However,there is a small request,though a personal one.

I tried to replace the 4.4.2 battery icon with the stock 4.2.2 battery icon and the stamina mode(green horizontal one that all the xperia 2011,2012 and early 2013 xperias had,and even on our xperia z 4.1.2 and 4.2).

I tried this by editing the SystemUI.apk of the 4.4.2 with winrar and replacing the system battery pictures from SystemUI.apk of 4.2.2.However,I had no success.I aslo tried this guide,but no success!:confused:

Can someone please do the following:

1.Prepare a SystemUI.apk with the green horizontal icon that came with the stock 4.2.2 and old 2011 and 2012 xperias and the Stamia icon(old one on 4.2.2 and 4.3 stock)

2.Prepare a SystemUI.apk with the green horizontal icon that came with the stock 4.2.2 and old 2011 and 2012 xperias and the Stamia icon(new one on 4.4.2 existenz/stock)

I know a majority of you will give replies as ....you do it yourself,its your personal choice,we don't want the one you want and blah..blah..blah

But guys,I think,we all are here to help each other.I asked for help,because i tried and I couldn't do it successfully.I first tried myself and I am then asking for this.

If anyone cannot make it,then kindly,atleast explain/guide me as to how to do this properly to get the things I want to have on this rom.

Please help guys

Yours sincerely,

Siddhesh Sapre
[Sony Cross-Device General] Ticklefish:
Hmm...I didn't know this thread had unread posts on it. Sorry for not paying attention, guys!

This is why your apk is FC'ing:

You could try fixing that...but, to be honest, I personally wouldn't bother. If all you want is a battery icon that looks like the 'inside battery percent' one from 4.4., why not just make it?

Your apk already has all the code it needs to display image files as the battery icon. A few minutes work with a decent image editor and you can have 100 .png files that look just like the KitKat icon you're trying to copy.

Should be simple enough. I'll need a few things from you though. I'll need your framework-res.apk, SystemUI.apk (before you tried modding it) and the icons you want to use.

If you're still interested, let me know!
[Sony Cross-Device General] Oohhlala:
Bro im using 4.3 firmware on Tx device with modified systemui from Z2, i like everything except battery icon. I like 4.3 stock icon than z2 style, one of reasons it can be themed. Could you tell me or help me how to bring back 4.3 battery to my systemui ( really 4.3 icon and text)
[Sony Cross-Device General] Siddhesh Sapre:
Hii there here are my files

@Ticklefish

Hey man Thank you very much that you are doing this for me.Here are the files you needed.However I don't have the Battery Icons.The Battery Icons I want are from Jellybean Stock ( The Sony default Horizontal Green Battery Icon):good:

I hope you have those Stock Jellybean Battery Icons(i dont have them because currently, I am on XPERIA Z Stock 4.4.4 ,rooted, deodexed)

Here is the link for the files you need:http://www39.zippyshare.com/v/63080515/file.html

Thanks bro!

Sidd
[Sony Cross-Device General] Ticklefish:
That depends on your SystemUI.apk. Can you share a link to it?
[Sony Cross-Device General] Ticklefish:
Well, it didn't take long to find the battery icons you were after. I found a 4.1 rom and just extracted the icons from it. Couldn't find the old-style stamina icon though, which was strange..

Give this attached zip a try. Flash it in CWM or Philz Touch and let me know what happens!

(If you do find the stamina icon you want to use, you just need to change 'somc_sys_powersaver_am.png' :))
[Sony Cross-Device General] Oohhlala:
here for you :)

http://www.mediafire.com/download/p63s4753h1q6mmj/systemUI_framework.rar
[Sony Cross-Device General] Siddhesh Sapre:
First of all Thank you so much bro for the kind help.I flashed the file,but the Stock 4.4.4 icon remained unchanged.Please help !

However,just a small question bro:

You said if i find the stamina icon i need to replace the 'somc_sys_powersaver_am.png'.I wanted to ask from which all folders do i need to replace this icon.

Thanks

Regards

Sidd
[Sony Cross-Device General] Ticklefish:
I was hoping you'd just link to the apk so I could see any screenshots.. lol

I'll download this now and take a look for you.

Curious...can you share a screenshot of your phone after you flashed the zip please?

Oh, and that icon would go in your 'drawable-xxhdpi' folder.
[Sony Cross-Device General] Siddhesh Sapre:
Here is the screenshot (i uploaded it on zippyshare because the xda forum doesn't allow the filw size of png of 2 MB)

Here is the link:http://www59.zippyshare.com/v/32117784/file.html

Thanks

Sidd:rolleyes:
[Sony Cross-Device General] Ticklefish:
You need to sign up with an image hosting site..

Many thanks for your screenshot, it confirms exactly what I suspected. The new battery icon isn't showing because you're showing the percentage icon instead.

Go into the Settings app, select Personalisation --> Status bar icons, then deselect '% Battery percentage' and make sure 'Battery' is selected.

Now you should see your new battery icon. :D

Nice navbar icons, by the way!
[Sony Cross-Device General] Siddhesh Sapre:
Very much Thanks for your so friendly approach and kind help.I know it may irritate you, but still 1 more question bro:

The battery icon that i see now(the one that i wanted), is too small, can i make it a little bigger?

Secondly,can i make the plus(+) icon for stamina mode same size as that of the battery icon so that I can show it besides the battery icon same like it is in 4.4.4?(It would look great, just imagine)

Thirdly, in the 4.2.2 stock for Sony XPERIA Z, they also have a percentage option besides having this green horizontal battery icon.Can I enable that?

I would happily stay with the stock Stamina icon as it was in 4.2.2.

And 1 final request:Using my files, if possible, per your convenience, can you make the battery icon using the battery icons from 4.2.2 stock(so that i may have battery percentage with green icon as well, as it is in the stock 4.2.2).

And a great Thanks for your time and dedication bro!

If you want any help w.r.t. any testing of your mods or screenshots(that much I can do), I will me more than happy to help you.

Thanks

Regards,

Sidd
[Sony Cross-Device General] Ticklefish:
To make the battery icon bigger, you could possibly change the height of the battery icon line in the xml.

It's worth adding an 'android:scaleType' attribute to the line as well to make the icon change size. There are some useful guides here: http://developer.android.com/reference/android/widget/ImageView.html and http://www.techrepublic.com/article/clear-up-ambiguity-about-android-image-view-scale-types-with-this-guide/

For changing the height of the stamina icon, you could try doing the same thing.

It'll take a bit of experimenting but you should be able to find the result you're looking for eventually.

To get the battery text, the easiest way to use a mod by my good friend [MENTION=4485836]Erhany[/MENTION] here: http://xdaforums.com/showthread.php?t=2356012

I've used this on 2.3, 4.0, 4.1, 4.2, 4.3 and 4.4 and it works every time.

As for the 4.2 battery icon...that is the Xperia 4.2. icon. Or at least I thought it was. What icon are you currently showing on your statusbar? Can you share another screenshot please?
[Sony Cross-Device General] Ticklefish:
This zip isn't working. I just get an error about an 'unexpected end of archive'.

Is it possible you could just link to the thread where you got your SystemUI.apk from? All I want to do is see a screenshot of it so I can work out what type of battery icon it's using..
[Sony Cross-Device General] Siddhesh Sapre:
Screenshot

HEY BRO Here it is..the screen shot:http://www18.zippyshare.com/v/82268177/file.html

And bro I tolf 4.2.2 icon because it also has the battery percentage mod in stock 4.2.2 right(i wanted to say that if it's from 4.2.2 you can get battery % ,but if its from 4.1.2, you may not get battery %)
[Sony Cross-Device General] Ticklefish:
If you want text next to the icon, use that mod I linked to in my previous post.

If you're looking to port the whole battery icon code from 4.2.2. to 4.4.4, so that you can turn the battery text on and off in the settings app, I'd have no idea how to do that. That'd be a much bigger job.
[Sony Cross-Device General] Siddhesh Sapre:
Thank you bro for your kind help.I will do as you instructed to in the earlier post.

Can I post in this thread if i find anything difficult bro?Actually I am a Biology student...but kind of Tech Crazy...and have a little bit of knowledge in android...but I don't know actually how to complie/decompile or code/decode or write a programme.

You helped a lot however,Thank you very much bro!

Sidd:laugh:
[Sony Cross-Device General] Ticklefish:
I'm always happy to help. :)

If you have any questions about XML, I have a thread dedicated to XML modding here: http://xdaforums.com/showthread.php?t=1767593

As for compiling and decompiling, I suggest using Tickle My Android, which you can find here: http://xdaforums.com/showthread.php?t=1633333

There's a good collection of regular users there who can help with any de/recompiling issues. And I pop in from time to time as well. ;)
[Sony Cross-Device General] Oohhlala:
i'm sorry i dont know why the zip not working. Im using this ROm

http://xdaforums.com/showthread.php?t=2696405
[Sony Cross-Device General] Toni Suwanto:
[MENTION=4315551]Ticklefish[/MENTION] can you make tutorial change battery icon on legacy xperia cm11? Thanks
[Sony Cross-Device General] Ticklefish:
Screenshots not working...sigh..

I'm downloading the rom now. Watch this space!

No...because I don't know how. We tried working out the battery icon on OmniRom about a month ago on this thread, and didn't have any luck.

Xperia KitKat is relatively easy because Sony still use images but CM11 uses pure code to generate its battery icon and that's a lot harder to work out.

Sorry. :(
[Sony Cross-Device General] krzycho26:
Hi,

With the help of a colleague Ticklefish managed to create an animation for Sony Xperia M2 [2303].

Maybe not the best quality video, but Seeing what's going on.

TICKLEFISH - you are a good guy -- [IMG="http://i1195.photobucket.com/albums/aa396/krzycho4/Nowy%20Album/podziw_zpsa2e34311.gif"]http://i1195.photobucket.com/albums/aa396/krzycho4/Nowy%20Album/podziw_zpsa2e34311.gif[/IMG] thanks!

[YOUTUBE]xZJEyo_BkAk[/YOUTUBE]

Ticklefish thank you - for helping in the proper placing a link from YT

man learns whole life.....
[Sony Cross-Device General] Ticklefish:
Your SystemUI is a ported Xperia KitKat apk so you can just use this tutorial to change the icon.

And use this tutorial by [MENTION=4485836]Erhany[/MENTION] for the battery text: http://xdaforums.com/showthread.php?t=2356012
[Sony Cross-Device General] Ticklefish:
Looking good! :highfive:
[Sony Cross-Device General] krzycho26:
Hello,

I decided to modify some animations. The following result of modifications:

[YOUTUBE]YK3HkeLcbek[/YOUTUBE]

Changes are in the files "somc_sys_battery" and "somc_sys_charging"

In addition to this I had after replacing SystemUI.apk modernized, remove SystemUI.odex then moved animations. .

Of course, you need to override all the files that showed fellow Ticklefish in one post - this is very important for proper operation

Here are ready files "somc_sys_battery" and "somc_sys_charging" -->https://db.tt/s5elJ76d

And what png files, it depends on your taste ;)

It must be remembered in every file must they be 100 pieces

If you do everything according to the tutorial Ticklefish - there should be no problems :D
[Sony Cross-Device General] Mysteryagr:
Could you tell me ow to change xperia android 4.3 icon to xperia kitkat?

Can I Just replace files from drawable folder?
[Sony Cross-Device General] Ticklefish:
Pretty much, you just need the right image files. Have a look at Tickle My Android (http://xdaforums.com/showthread.php?t=1633333), that's got the icons available. :good:
[Sony Cross-Device General] devilmaycry2020:
[MENTION=4315551]Ticklefish[/MENTION]

How about stamina icon when actived ? do you have a solution for it ? thanks for any help
[Sony Cross-Device General] Ticklefish:
What do you want to do to it?

--------------------------------

Sent via Tapatalk

---------------------------
[Sony Cross-Device General] devilmaycry2020:
I want stamina icon proper display such as circle around battery icon not display next to battery
[Sony Cross-Device General] Ticklefish:
Oh, you mean like back in Jelly Bean? I remember that..

I'm busy working on another mod right now, but I'll take a look at this in a little while.
[Sony Cross-Device General] devilmaycry2020:
i want it look like as pic below
[Sony Cross-Device General] Ticklefish:
Ah, yes. We tried this a while ago, didn't we? I seem to recall we had some trouble..

I'll give it a try as soon as I can. Today is going a bit wrong for my Android stuff. I flashed a MIUI rom which worked fine....but recovering my original rom soft-bricked my device. I'm about a third of the way through restoring the original 4.1. rom with Emma.

So it's going to be a while before I can get my rooted KK rom setup back again and I can revisit this. But you're on my list of things to do once my phone's back up and running! :good:
[Sony Cross-Device General] devilmaycry2020:
bad news. get well soon. good luck.
[Sony Cross-Device General] Ticklefish:
Well, it's taken all day. But my phone is finally out of soft-brick. Thank God for Sony's support of the modding community. If it wasn't for "Emma", I would be completely screwed...

I still need to root and recover my rom, but I should be able to take a look at this tomorrow for you.

--------------------------------------

Sent from my iPad (yes, really)

----------------------------------
[Sony Cross-Device General] devilmaycry2020:
good to hear that. you're an expert developer so nothing to worry about.;) . next times be careful
[Sony Cross-Device General] Ticklefish:
My very good friend and skilled developer, [MENTION=4485836]Erhany[/MENTION], has made a fantastic mod to make changing the battery icon really easy on every KitKat rom.

We're still working out the bugs to get it to work on Xperia roms, but this will perfectly on anything else. And will probably work on Lollipop as well.. :D

Check out his hard work here: http://xdaforums.com/showpost.php?p=56300485&postcount=1

And don't forget to give him a press of the 'Thanks' button while you're there!
[Sony Cross-Device General] Ticklefish:
Here you go:

To do it, I applied this thread's mod to a stock KK SystemUI.apk. And then I just turned this code:

<LinearLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="center_vertical" android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/somc_sys_powersaver" />
</LinearLayout>

into this code:

<[COLOR="Red"]Frame[/COLOR]Layout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/somc_sys_powersaver" />
</[COLOR="Red"]Frame[/COLOR]Layout>

Oh, and I edited the stamina icon with a png that I've zipped up and attached to this post.

Simple. :D

Sorry for taking so long with this. Life just seems to keep getting in the way...:crying:
[Sony Cross-Device General] devilmaycry2020:
Good job [MENTION=4315551]Ticklefish[/MENTION]. here is mine
[Sony Cross-Device General] Ticklefish:
Very nice! :D
[Sony Cross-Device General] devilmaycry2020:
here is stock battery icon with flashing charge icon inside

[YOUTUBE]http://youtu.be/na-Eq_VFEVY[/YOUTUBE]
[Sony Cross-Device General] Ticklefish:
Very nice! Looks professional.. :highfive:

By the way, I think you've got your tags wrong in your post. You've got:

[YOUTUBE][url]http://youtu.be/na-Eq_VFEVY[/url][/YOUTUBE]

But it needs to be:

[YOUTUBE]na-Eq_VFEVY[/YOUTUBE]

Which gives you this:

[YOUTUBE]na-Eq_VFEVY[/YOUTUBE]

I'll admit it's not obvious. It took me ages to work out how to embed YouTube videos on this forum... :eek:
[Sony Cross-Device General] Ticklefish:
For those of you that like to mod XML, I've just started a new thread that you might find interesting.

Check it out here: XML 101 - XML Modding Made Easy! ;)
[Sony Cross-Device General] Rio Rapha:
Thanks You For This Tutorial ::HandShake::
[Sony Cross-Device General] Rio Rapha:
Does this tutorial can change any icons like Signal and Sound at status bar ? (With same procedure) . Thanks b4

Newbee Here ~ C6502
[Sony Cross-Device General] Ticklefish:
Not really, no. To change those icons, you just need to change the image files inside your apk.

Have a look at TICKLE MY ANDROID, it can do it for you!
[Sony Cross-Device General] Rio Rapha:
I will look it (tickle) if works , but i have trouble why after im placing png files for icons at xxhdpi (replace) sound image then i compile systemUI but nothing icon be changed.

Newbee Here ~ C6502
[Sony Cross-Device General] Ticklefish:
If your icons aren't changing, either you've changed the wrong files or there's something not right with the way you've flashed the apk file to your phone...
[Sony Cross-Device General] Rio Rapha:
Problem solved about change icons , still not solved about battery change. Very confused :banghead: about xml and smali edit with notepad ++
[Sony Cross-Device General] Ticklefish:
What version of Android are you running?
[Sony Cross-Device General] Rio Rapha:
kitkat 4.4.4 stock firmware .283 deodex
[Sony Cross-Device General] Ticklefish:
Probably the best thing to do if you're having trouble is to take it slowly and test each step. Before you get to the part about editing the smali, compile your apk and see if it works in your phone.

If it does, try the smali editing. If it doesn't, share your XML here and I'll see what I can do to help you.

Android modding takes a bit of practice to get used to. But once you do, you'll be able to do stuff like this in your sleep!

It took me about two months from rooting my first Android phone to being able to change the battery icon..and that was on Android 2.1 which was a lot easier!

Just have patience and you'll get there. :highfive:
[Sony Cross-Device General] Rio Rapha:
Hi mate :) how are you ? I need your help for edit this StatusBar.XML How to make notification icon . battery go to the top ?? Please look my Layout.Xml , 2 weeks still working to edit this statusbar layout and not yet solve :crying:

Im get "Force close" After Added New <LinearLayout

Thanks you Very much

Newbie Layout XML using Xperia ZL
[Sony Cross-Device General] andybr1ggs:
hi mate do you know how to do this for 5.`1 z3c running carbon rom ?
[Sony Cross-Device General] Ticklefish:
This mod won't really work on Lollipop the same way as Kitkat. Especially not if it's not a stock ROM.

What exactly are you trying to do?
[Android Q&A, Help & Troubleshooting] afzaal_ahmad_zeeshan:
I have an android phone, Qmobile A500. Which last night I tried to Root, I tried out a new software instead of Bin4ry to root my phone. MtkDroidTools was used by me. Which in turn shell rooted my cell phone; this is the term I came to know after tons of Googling, that a partial kind of root is known as Shell Root.

I can even see that in the main page of the Software too. Yellow light of it, tells me that the Phone is not fully rooted, once I click on Root button. It gives me Rooted phone, but (shell rooted).

I have tried using MobileUNCLE Tools, to update recovery. I was able to get to recovery 2 times, but had errors. Now, everytime I reboot into recovery it attempts to restart into recovery and then restarts my phone back.

I tried uninstalling the SuperSU application, but it doesn't get off of my phone.

I don't know what to do now. All I need to do is to gain root access to install CWM recovery, I do have the recovery.img file. But I am not able to update the Recovery of my phone. Or if I can reverse this process and unroot my phone and reroot it using bin4ry that would be helpfull too. Any help guys?