Where are the Battery Icons? - Nexus 5 Q&A, Help & Troubleshooting

Everytime, I set up a new android device, my first step is to decompile SystemUI.apk, add battery percentage icons and recompile it.
But now I'm facing one big problem: Where are these icons stored in Android 4.4? SystemUI.apk is in priv-app, but it doesn't contain stat_sys_battery.xml, stat_sys_battery_charge.xml and all those stat_sys_battery_xxx.png files.
Anyone here, who has found the apk, which contains these files now?

kroegerama said:
Everytime, I set up a new android device, my first step is to decompile SystemUI.apk, add battery percentage icons and recompile it.
But now I'm facing one big problem: Where are these icons stored in Android 4.4? SystemUI.apk is in priv-app, but it doesn't contain stat_sys_battery.xml, stat_sys_battery_charge.xml and all those stat_sys_battery_xxx.png files.
Anyone here, who has found the apk, which contains these files now?
Click to expand...
Click to collapse
Those files are contained in framework-res now however it is pointless to change as nothing will happen. I tried changing /res/values/arrays.xml
<integer-array name="batterymeter_color_levels"> and <array name="batterymeter_color_values"> but it does nothing either.
Look at /res/layout/status_bar.xml
Code:
<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/signal_cluster_view" />
[B]<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="10.5dip" android:layout_height="16.0dip" android:layout_marginBottom="2.0px" android:layout_marginStart="4.0dip" />
[/B]
</LinearLayout>
I uploaded BatteryMeterView.java using dextojar but I think I'll have to download the 4.4 source to really understand the battery icon I think.

You would think Google would have built this option into Android by now.

killer2239 said:
You would think Google would have built this option into Android by now.
Click to expand...
Click to collapse
they probably don't want people monitoring the percentage drop minute to minute.

It's already embedded in the BatteryMeterView.smali

joeyhuab said:
It's already embedded in the BatteryMeterView.smali
Click to expand...
Click to collapse
And is there any way to enable it?

kroegerama said:
And is there any way to enable it?
Click to expand...
Click to collapse
I think so, working on it now.

Great news! Can't wait for it

REALLY missing % battery as well. Please share once complete! :highfive:

+1! unbelieveable that google still hasnt implemented this as a stock feature...
Sent from my Nexus 5 using Tapatalk

jbmc83 said:
+1! unbelieveable that google still hasnt implemented this as a stock feature...
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Agree
Another one I'm surprised STILL isn't in AOSP is the button you can press when changing volume to reveal all the other volume sliders. I use it ALL THE TIME on custom AOSP ROMs and even on (ugh) TouchWiz.

no way to have the percentage battery icon?
it's terrible for me

There is a way, it takes a little more time since it isn't so simple than in 4.3. Trying for 2 days now. It's just more than simply changing xml and icons.
Sent from Google N5...

Dirk64 said:
There is a way, it takes a little more time since it isn't so simple than in 4.3. Trying for 2 days now. It's just more than simply changing xml and icons.
Sent from Google N5...
Click to expand...
Click to collapse
Wonderful! Thank you very much!
---------- Post added at 10:20 AM ---------- Previous post was at 09:51 AM ----------
lelez84 said:
Wonderful! Thank you very much!
Click to expand...
Click to collapse
Just one question, forgiveness,
but you will make a flashable zip from recovery?

I try and I think I'm not the only one. Maybe it would be great if ideas would be shared here. I've got a very bad internet connection and downloading the source code takes two days...
Sent from Google N5...

Dirk64 said:
I try and I think I'm not the only one. Maybe it would be great if ideas would be shared here. I've got a very bad internet connection and downloading the source code takes two days...
Sent from Google N5...
Click to expand...
Click to collapse
Yes it has been tough, I think I need to download the the source to really understand it, been tough mainly looking at the dalvik vm code or it converted to java with jdgui. I am not sure why it doesn't show up, looks like the phone needs to be in some test mode or demo mode. I started looking at the quick tile code since it has the percent below it and also a BatteryMeterView; however, the percentage is displayed through a text view.
Thinking I can make it a relative layout in the in the xml and then port the code to status bar icon for it to show or even change it to the way it was displayed on 4.3 and before.

Yes, I've seen the code in Smalis but I don't even understand why the stat_sys_battery and stat_sys_battery_charge.xml and icons are in the framework-res.apk and there must be some reason why.

I'm at work right now and don't have much time to look at it but here is the source from the Android 4.4 github. Much easier to understand, and will hopefully get time to go over it in about 6-7 hours when I go home. So I uploaded it for others incase you're on windows and cannot "git" things easily.

goldfingerfif said:
I'm at work right now and don't have much time to look at it but here is the source from the Android 4.4 github. Much easier to understand, and will hopefully get time to go over it in about 6-7 hours when I go home. So I uploaded it for others incase you're on windows and cannot "git" things easily.
Click to expand...
Click to collapse
Excuse me for noob question,
Can i flash this zip whit recovery for change battery icon?

lelez84 said:
Excuse me for noob question,
Can i flash this zip whit recovery for change battery icon?
Click to expand...
Click to collapse
No
Gesendet von meinem Nexus 5 mit Tapatalk

Related

[Q] Theming JVB

I've been theming small aspects of JVB, specifically Perception II. I've tried to theme the background of the music controls inside the status bar drawer. On Froyo ROMs, I could just throw a modified png into the zip. Now, I do that and it's still purple. I even decompiled and recomplied with the new pngs, but it doesn't work. Any ideas on what to do? I attached the modded files below. Thanks!
Are you replacing the ones in twframework-res.apk?
Sent from my GT-I9000 using XDA fap
modest_mandroid said:
Are you replacing the ones in twframework-res.apk?
Sent from my GT-I9000 using XDA fap
Click to expand...
Click to collapse
Of course. I opened them in Photoshop and edited and put them back into twframework. Thing is, I've done this before very successfully modifying themes on Froyo.
Wacky.. dunno dude, I'll give it a shot later tonight and see if I can get it to work if the wife doesn't burglarize all my time.
modest_mandroid said:
Wacky.. dunno dude, I'll give it a shot later tonight and see if I can get it to work if the wife doesn't burglarize all my time.
Click to expand...
Click to collapse
Wow thanks a lot man
Yeah, that's weird.. changing the png's doesn't seem to affect what actually shows up. Makes you wonder if it's grabbing them from somewhere else entirely..
Edit: I was right! Check out /system/app/MusicPlayer.apk, it has it's own set of status bar png's. I haven't tried replacing them myself yet, but I have a strong feeling that those are the ones you should be changing as opposed to the ones in twframework-res.apk. Samsung seems to enjoy scattering their graphics around.. there are also a couple pertinent to the status bar and dropdown shade in SystemUI.apk and Phone.apk.
Good luck, dude! Let me know if those were the correct ones!
modest_mandroid said:
Yeah, that's weird.. changing the png's doesn't seem to affect what actually shows up. Makes you wonder if it's grabbing them from somewhere else entirely..
Edit: I was right! Check out /system/app/MusicPlayer.apk, it has it's own set of status bar png's. I haven't tried replacing them myself yet, but I have a strong feeling that those are the ones you should be changing as opposed to the ones in twframework-res.apk. Samsung seems to enjoy scattering their graphics around.. there are also a couple pertinent to the status bar and dropdown shade in SystemUI.apk and Phone.apk.
Good luck, dude! Let me know if those were the correct ones!
Click to expand...
Click to collapse
Is SystemUI.apk new to Gingerbread? I'll look into it.
God THANK YOU, that's an amazing find and so useful to me! I am SO GRATEFUL. Damn, Samsung isn't the most efficient company of coders. Putting lockscreen music control backgrounds in framework-res and status bar ones in music apk? Wow.
SystemUI.apk handles all the notification bar/dropdown stuff and all of those images are used instead of what's in twframework-res.apk now (GB).
The background and buttons for the dropdown are in MusicPlayer.apk though. Crazy.
So apparently the toggle PNGs in SystemUI.apk are locked, so they cannot be edited in Photoshop and lose their transparency. Sucks....
Yeah, kinda sucks. I grabbed a screenshot of Explorer with large thumbnails, copied each one and inverted them so they're smoothed to black background, made black transparent, then changed the color. It works out ok I guess.
CuriousTech said:
Yeah, kinda sucks. I grabbed a screenshot of Explorer with large thumbnails, copied each one and inverted them so they're smoothed to black background, made black transparent, then changed the color. It works out ok I guess.
Click to expand...
Click to collapse
They still turn out jagged because the originals, using transparency, are smoothed. I think I can get someone to fix that...
If anyone is interested, I am recreating a lot of the elements by hand. It's HARD OH MY GOD, some pieces require 7 layers of separate transparencies i have to match to the originals. But I'm making a theme, just modded stock for now but I'll be working on it for a while. I'll make a thread soon!
So ALL the battery icons are locked... I downloaded a random GB theme and took out the battery icons, and those are locked too. Decompiled framework, still locked. What the hell???? How do I mod them?!
I figured most stuff out now. Except how to change the status bar background. I put it into SystemUI.apk (2 different names), framework, and twframework. Nothing works. Any clues?
Haloruler64 said:
So ALL the battery icons are locked... I downloaded a random GB theme and took out the battery icons, and those are locked too. Decompiled framework, still locked. What the hell???? How do I mod them?!
Click to expand...
Click to collapse
How'd you solve this?
Haloruler64 said:
I figured most stuff out now. Except how to change the status bar background. I put it into SystemUI.apk (2 different names), framework, and twframework. Nothing works. Any clues?
Click to expand...
Click to collapse
Check SystemUI.apk drawable-hdpi directory, also check the values directory, there's one xml in there that defines the background color for the dropdown shade.
Edit: nevermind, changing that xml does nothing
Haloruler64 said:
Is SystemUI.apk new to Gingerbread? I'll look into it.
God THANK YOU, that's an amazing find and so useful to me! I am SO GRATEFUL. Damn, Samsung isn't the most efficient company of coders. Putting lockscreen music control backgrounds in framework-res and status bar ones in music apk? Wow.
Click to expand...
Click to collapse
Half of it is left over Google crap, half of it is left over Samsung Froyo crap, and half of it is actually being used.
It's quite the mess.
Haloruler64 said:
If anyone is interested, I am recreating a lot of the elements by hand. It's HARD OH MY GOD, some pieces require 7 layers of separate transparencies i have to match to the originals. But I'm making a theme, just modded stock for now but I'll be working on it for a while. I'll make a thread soon!
Click to expand...
Click to collapse
Why aren't you using the originals? Is it because they're Index images that don't open properly? If so, open them with Adobe Fireworks, save them, then open them in whatever else.
res\layout\status_bar_tracking.xml has the background color. Change to image:
<View android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Copy the file from the theme in my sig if you need a working reference. It has no clock in the bar and no text in the toggles as well.
MikeyMike01 said:
Half of it is left over Google crap, half of it is left over Samsung Froyo crap, and half of it is actually being used.
It's quite the mess.
Click to expand...
Click to collapse
3 halves, it must be all kinds of messy!
modest_mandroid said:
How'd you solve this?
Click to expand...
Click to collapse
GIMP, convert to RGB, then it works. But GIMP has no real batch mode, like Photoshop. Which sucks.
MikeyMike01 said:
Why aren't you using the originals? Is it because they're Index images that don't open properly? If so, open them with Adobe Fireworks, save them, then open them in whatever else.
Click to expand...
Click to collapse
Yeah that's why originally. Can you open 171 files in Fireworks and save them automatically? I don't wanna do that for all the status bar stuff individually.
Also I have to get Fireworks.
CuriousTech said:
res\layout\status_bar_tracking.xml has the background color. Change to image:
<View android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Copy the file from the theme in my sig if you need a working reference. It has no clock in the bar and no text in the toggles as well.
Click to expand...
Click to collapse
Wow thanks! I'll do that now.
EDIT: Using APK Manager 4.9, I keep getting errors while decompiling SystemUI.apk. Any reason or special method to decompile it?

[APP MOD] Google Maps 6.14.3 with NO extra shortcuts

Do you hate launcher spam? I do. If you prefer to have an uncluttered app drawer with only one icon instead of three, here is the latest version of Google Maps with a modified AndroidManifest.xml. Of course, all the missing shortcuts are still accessible within the app, nothing has changed except that I removed the intent-filter declarations that created the extra icons.
This app was tested on my SE Xperia Ray, which runs the official Gingerbread ROM.
Google Maps 6.14.3:
http://rapidshare.com/files/3321873630/Google_Maps_614030402_v6.14.3.apk
http://www.mediafire.com/download.php?x95dmq5bpahqzxh
Thanks
Gonna try it
Thx Facebook works perfectly
Sent from my VS920 4G using xda premium
please upload mediafire or 4shared thankyou.
Awesome work! Just out of curiosity, is there a way to have Maps+ nav and eliminate places, latitude, etc.?
Sent from my SCH-I500 using XDA
Google maps 6,5.2!? none of our phones or tabs show this update and market only has 6,5.1?
Big ZD said:
Awesome work! Just out of curiosity, is there a way to have Maps+ nav and eliminate places, latitude, etc.?
Sent from my SCH-I500 using XDA
Click to expand...
Click to collapse
Probably! All I did was decompile the apk with apktool, remove a few lines in AndroidManifest.xml and compile again.
But I guess the process is the same for the modded Google Maps app you're talking about, and it's pretty much straightforward if you know what you're looking for. The lines you need to remove in AndroidManifest.xml look like this:
Code:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
You will probably have to remove three of the four occurences of the above code, one for each unwanted icon. You can figure out which three by checking out the icon declaration that precedes the aforementioned code. If the icon's name includes the words latitude, places or navigation, you're good to remove this instance. If I recall correctly, the first instance is the one you will need to leave intact (btw, I used Notepad++ for the editing).
lohtse said:
Google maps 6,5.2!? none of our phones or tabs show this update and market only has 6,5.1?
Click to expand...
Click to collapse
Sorry, my mistake! It's 6.5.1 indeed. I corrected the OP.
gpolydoros said:
Probably! All I did was decompile the apk with APK Easy Manager v1.0 (using Gingerbread decompiler), remove a few lines in AndroidManifest.xml and compile again with APK Manager 5.0.2. This combination was the only one that worked for me, with every other failing either during decompiling or recompiling the project.
But I guess the process is the same for the modded Google Maps app you're talking about, and it's pretty much straightforward if you know what you're looking for. The lines you need to remove in AndroidManifest.xml look like this:
Code:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
You will probably have to remove three of the four occurences of the above code, one for each unwanted icon. You can figure out which three by checking out the icon declaration that precedes the aforementioned code. If the icon's name includes the words latitude, places or navigation, you're good to remove this instance. If I recall correctly, the first instance is the one you will need to leave intact (btw, I used Notepad++ for the editing).
Click to expand...
Click to collapse
Haha, I appreciate the instructions and the quick response, but I have no idea how to do what you describe. If you think it is possible, maybe one of you able coders out there could do a quick little mod. Thanks to anyone who can, and if not, no worries!
Sent from my SCH-I500 using XDA
Big ZD said:
Haha, I appreciate the instructions and the quick response, but I have no idea how to do what you describe. If you think it is possible, maybe one of you able coders out there could do a quick little mod. Thanks to anyone who can, and if not, no worries!
Sent from my SCH-I500 using XDA
Click to expand...
Click to collapse
Well, the instructions are here, someone will. It's fairly easy. I don't use Google's navigation, so let's hope someone will upload a tested apk.
Thank god. Those shortcuts are annoying.
Sent From My HTC Evo 3D, On The Now Network From Sprint!
Ty. Hated the shortcuts
Sent from my SGH-I777 using xda premium
Brilliant! Love it!
Sorry, anyone tried the latest fb update on market v1.91? Are the additional icons still there after the latest update? If they are will this patch solve it again?
Sent from my LG-P970 using xda premium
Zaihanzainal said:
Sorry, anyone tried the latest fb update on market v1.91? Are the additional icons still there after the latest update? If they are will this patch solve it again?
Sent from my LG-P970 using xda premium
Click to expand...
Click to collapse
Yep, the icons are still there. It's funny that in the "What's New" section Facebook states that they've updated the icons based on user feedback. I've been checking out the app comments every now and then for the past few days and, honestly, there are hundreds of users complaining that they simply don't want those extra icons. At all. Then a few said that the icons were misleading, as they did not clearly state that they were Facebook shortcuts. And there you have it, Facebook updated the icons, adding a small Facebook badge to make them distinguishable. Pretty selective listening, don't you think?
Anyway, this mod still works and it will probably stay this way, unless Facebook decides to use a customized compiler that apktool can't handle. I updated the OP with RapidShare and MediaFire links for the new version.
Thanks! Yeah they chose to listen to a comment about making the icons distinguishable but failed to listen to the prob hundreds that didn't wasn't them there in the first place..... strange place this world is.....
Anyway thank you again for the reply and most importantly the patch!
Sent from my LG-P970 using xda premium
Does not work on a variant of CM7. App will not install.
WhammyDroid said:
Does not work on a variant of CM7. App will not install.
Click to expand...
Click to collapse
Hmm. Are you talking about Facebook or Maps? Or both? I haven't used CM ever since I got rid of my old ZTE, so I can't test it myself. One thing I know for sure is that you can't overwrite the original app with the modded version. You have to completely uninstall it first (this probably requires some extra steps if it's a system app). But if you've done that and the modded version still refuses to install, I guess I'm out of suggestions... Still though, it's frustrating, because these apps don't depend on any specific frameworks.
FB from 1.8.4 to 1.9.1
Could you please update the Google maps version to the latest available??

[Q] Disable Ticker Animation (Notification Privacy)

I am talking about Paranoid Android's very useful tweak. The "Do Not Disturb" option in settings menu where it completely disables the ticker animation whenever there's a notification.
This is a great tweak for me because whenever a friend borrows my phone to browse the web or to send an sms, he/she sees the COMPLETE incoming text thru the ticker animation. This is really an annoying accidental invasion of my privacy.
"So why don't you just use paranoid android rom?"
Well, because that mod is the only reason i was able to stick to that rom for almost 2 weeks.
I am more than willing to create a custom rom that suits my exact preferences but i lack the time and skills to do it.
Okay so i've searched EVERYWHERE (trust me) but i can't find an individual mod that does exactly this.
Thanks for reading and I am very grateful if anyone answers. :good:
ej8989 said:
I am talking about Paranoid Android's very useful tweak. The "Do Not Disturb" option in settings menu where it completely disables the ticker animation whenever there's a notification.
This is a great tweak for me because whenever a friend borrows my phone to browse the web or to send an sms, he/she sees the COMPLETE incoming text thru the ticker animation. This is really an annoying accidental invasion of my privacy.
"So why don't you just use paranoid android rom?"
Well, because that mod is the only reason i was able to stick to that rom for almost 2 weeks.
I am more than willing to create a custom rom that suits my exact preferences but i lack the time and skills to do it.
Okay so i've searched EVERYWHERE (trust me) but i can't find an individual mod that does exactly this.
Thanks for reading and I am very grateful if anyone answers. :good:
Click to expand...
Click to collapse
Does it only affect SMS/MMS? If so, the mod can probably be cleanly packaged into a modded mms.apk and the setting option/toggle moved from PA settings to mms settings. Can't say, never used it, but someone with time on their hand can probably track it in the PA git.
polobunny said:
Does it only affect SMS/MMS? If so, the mod can probably be cleanly packaged into a modded mms.apk and the setting option/toggle moved from PA settings to mms settings. Can't say, never used it, but someone with time on their hand can probably track it in the PA git.
Click to expand...
Click to collapse
It affects all ticker animations that pop up on the status bar whenever there's a notification.
For example, when i turn the feature on and i use titanium backup to do a batch restore, the icon is still there but there will be no ticker animation.
It's quite redundant if you ask me.
7 months passed.... still looking. lol
ej8989 said:
7 months passed.... still looking. lol
Click to expand...
Click to collapse
Would also be really interested in this if it's possible.
liabilityman said:
Would also be really interested in this if it's possible.
Click to expand...
Click to collapse
Still not possible thru stock SMS. I use Textra SMS and it's got the option to hide the ticker animation
ej8989 said:
Still not possible thru stock SMS. I use Textra SMS and it's got the option to hide the ticker animation
Click to expand...
Click to collapse
Still no luck? I am searching everywhere, like you, but I can't find a mod for this. It is found in Cataclysm rom, but I can't understand why this is not asked for more. Every rom should have a preference to disable all notification tickers.
fredrik74 said:
Still no luck? I am searching everywhere, like you, but I can't find a mod for this. It is found in Cataclysm rom, but I can't understand why this is not asked for more. Every rom should have a preference to disable all notification tickers.
Click to expand...
Click to collapse
I learned to accept the fact that noone will make a stand-alone mod (or even an app) for this specific feature.
I am in exactly the same boat.. I don't know how many hours I've spent looking around and found nothing.
I need to specifically for WhatsApp; no such luck.
Did you guys find anything?
ombadboy said:
I am in exactly the same boat.. I don't know how many hours I've spent looking around and found nothing.
I need to specifically for WhatsApp; no such luck.
Did you guys find anything?
Click to expand...
Click to collapse
No luck here. Almost 2 years looking around.
If I had a better idea how ROMs work.. I would've had a look at the one you mentioned in your OP and maybe create an XPOSED mod..
ej8989 said:
No luck here. Almost 2 years looking around.
Click to expand...
Click to collapse
See the changelog for SlimKat Weekly 8.9. Is this what you actually want?
smit.sanghavi said:
See the changelog for SlimKat Weekly 8.9. Is this what you actually want?
Click to expand...
Click to collapse
Yes. I have also seen those settings on mahdi last week
So nobody has helped you yet? Strange.
Decompile SystemUI with ApkTool (Import the framework, decompile)
Open res/values/bools
Modify the string <bool name="enable_ticker">true</bool> TO <bool name="enable_ticker">false</bool>
Recompile the app with apktool using the command: apktool b -c SystemUI.apk.
DONE
CoolJoseph96 said:
So nobody has helped you yet? Strange.
Decompile SystemUI with ApkTool (Import the framework, decompile)
Open res/values/bools
Modify the string <bool name="enable_ticker">true</bool> TO <bool name="enable_ticker">false</bool>
Recompile the app with apktool using the command: apktool b -c SystemUI.apk.
DONE
Click to expand...
Click to collapse
Thanks! But custom ROMs nowadays already has this as a mandatory feature.
And I already switched to another device.
ej8989 said:
Thanks! But custom ROMs nowadays already has this as a mandatory feature.
And I already switched to another device.
Click to expand...
Click to collapse
Yeah, i've just pointed it if somebody needs it

how to move battery icon to left

Hi guys can move battery icon to left status bar..or guide me
SystemUI>res>layout>status_bar.xml
Morningstar said:
SystemUI>res>layout>status_bar.xml
Click to expand...
Click to collapse
Lollipop changed xml no status _bar.xml
amro habib said:
Lollipop changed xml no status _bar.xml
Click to expand...
Click to collapse
I have status_bar.xml from both TW lollipop and CM12 open in front of me as I type this.....It's there...
Morningstar said:
I have status_bar.xml from both TW lollipop and CM12 open in front of me as I type this.....It's there...
Click to expand...
Click to collapse
tw rom 5 lollipop tryed more but no change
I use to disable standard battery icon completely and use the icon from GSam battery monitor app. That resides on left side because it is notification.
amro habib said:
tw rom 5 lollipop tryed more but no change
Click to expand...
Click to collapse
No offense, but if you need it spelled out for you, maybe these mods are a little too advanced....
Anyway, look in status_bar.xml. Do you see where the battery is? No? Well, we know it's on the status bar, so look at the <includes....There's only one, system_icons, so take a look at that....Oh, look! There's the battery! Imagine that!
Now, either pull it out of system_icons and place it somewhere in status_bar, or change the location of the <include in status_bar....
Morningstar said:
No offense, but if you need it spelled out for you, maybe these mods are a little too advanced....
Anyway, look in status_bar.xml. Do you see where the battery is? No? Well, we know it's on the status bar, so look at the <includes....There's only one, system_icons, so take a look at that....Oh, look! There's the battery! Imagine that!
Now, either pull it out of system_icons and place it somewhere in status_bar, or change the location of the <include in status_bar....
Click to expand...
Click to collapse
try pull of system_icons and place in status_bar but no change
attched for system_icons.xml and status_bar.xml
pleas cheak and moded...
up.......
^Up Down Down Left Right Left Right B A Start...

SystemUI Navigation Bar Animations (Solved)

Hey I know that other people have asked this sort of question before, but I was wondering if anyone can help me with setting up the Pixel/Pixel XL navigation bar animation on a none Pixel device (in my case Nexus 5X).
The reason I have started this thread is because I'm very suspicious of people when ever I see someone post a system modification for a device without explaining what they did to get there so I research things online and make my own version of they're system mod. Another reason is that asking these questions allows people to help me with my struggles and it expands everyone's knowledge on system modifications allowing everyone to create their own system mods or this same mod for their own device on any version of android.
Anyway the current things that I have found out is that the Pixel's SystemUI has a few extra files in the drawable folder (SystemUI.apk\res\drawable) they are
ic_sysbar_opa_blue.xml
ic_sysbar_opa_green.xml
ic_sysbar_opa_red.xml
ic_sysbar_opa_yellow.xml
Click to expand...
Click to collapse
they contain a information similar to these
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="oval"
xmlns:android="http://schemas.android.com/apk/res/android">
<size android:height="@dimen/opa_dot_diam" android:width="@dimen/opa_dot_diam" />
<solid android:color="#fffbbc05" />
</shape>
What this means:
Version of XML
Start of draw circle shape string
Thing
The size of the circle
Colour of the circle
End of string
Click to expand...
Click to collapse
This tells android to draw the little dots that appear when you press the home button on the Pixel. I have inported these files into my sytemui and was now wondering how to create the dots and make them move. I believe that this can be activated by finding out which file causes the home button to make that little ripple effect when you tap it and comparing it to find out what's different. So my question is at the moment is:
What file controls current home button animations (the home button ripple effect) on the Nexus 5X?
Click to expand...
Click to collapse
If any of you want the uncompressed versions of the Pixel's SystemUI and current Nexus SystemUI that I'm using then feel free too download them. (I have removed any unnecessary guff).
Edit: I think I have found the file. It's located at:
SystemUI.apk\res\layout\home.xml
Edit: I have edited the home.xml and it seems that it just cuases my SystemUI to crash. I believe this is caused by something else in the apk.
My current guess is that there is another file in the Pixels SystemUI that reads the xml file ic_sysbar_opa_colour.xml or home.xml
If anyone knows of a way I can search for those values in a large amount of xml files quickly, then please tell me.
No, It is not that simple. lots of things needs to modify, not only the res, dex code needs to patch, the one that detect the assistant and trigger the animation.
The worse thing is, if you do anything wrong, you have to use the twrp to restore the phone...
Charles_l said:
No, It is not that simple. lots of things needs to modify, not only the res, dex code needs to patch, the one that detect the assistant and trigger the animation.
The worse thing is, if you do anything wrong, you have to use the twrp to restore the phone...
Click to expand...
Click to collapse
I've edited the navigation bar in the SystemUI before without any problems. I know what you mean by resetting the phone if I mess anything up because I messed up a few things while editing the framework.apk but I haven't run into any problems with the dex file before.
Jackio987 said:
I've edited the navigation bar in the SystemUI before without any problems. I know what you mean by resetting the phone if I mess anything up because I messed up a few things while editing the framework.apk but I haven't run into any problems with the dex file before.
Click to expand...
Click to collapse
The dev that figured out how to enable the animated nav bar for the Nexus 5 posted this I hope it helps
http://forum.xda-developers.com/goo...-fake-nexus-rom-nexus-5-t3466736/post69496350
kevtrysmoddin said:
The dev that figured out how to enable the animated nav bar for the Nexus 5 posted this I hope it helps
http://forum.xda-developers.com/goo...-fake-nexus-rom-nexus-5-t3466736/post69496350
Click to expand...
Click to collapse
I noticed that someone else has done it before, (it's on page 120) link:
http://forum.xda-developers.com/goo...t/rom-fake-nexus-rom-nexus-5-t3466736/page120
Click to expand...
Click to collapse
And that inspired me to ask how it was done. Another thing is that I have a nexus 5X and he has a nexus 5 which both have different processor types (arm and arm64). I also tried flashing his zip which as you would of guessed caused my phone to crash as soon as the phone had booted up requiring me to factory reset it. I might try flashing the zip onto a phone that has an arm processor (my moto g 2nd generation running cyanogenmod 14 beta) and figure out how to export it to my Nexus. Anyway I have asked qitt the guy that made the original nav bar animation for the nexus 5 work how he did it and he still hasn't responed.
Also taking a look at it, it seems that the Pixel's SystemUI and qitt's SystemUI are almost identical with only about a 200 byte difference.
Jackio987 said:
Hey I know that other people have asked this sort of question before, but I was wondering if anyone can help me with setting up the Pixel/Pixel XL navigation bar animation on a none Pixel device (in my case Nexus 5X).
The reason I have started this thread is because I'm very suspicious of people when ever I see someone post a system modification for a device without explaining what they did to get there so I research things online and make my own version of they're system mod. Another reason is that asking these questions allows people to help me with my struggles and it expands everyone's knowledge on system modification allowing everyone to create their own system mod or this same mod for their own device on any operating system.
Anyway the current things that I have found out is that the Pixel's SystemUI has a few extra files in the drawable folder (SystemUI.apk\res\drawable) they are
they contain a information similar to these
This tells android to draw the little dots that appear when you press the home button on the Pixel. I have inported these files into my sytemui and was now wondering how to create the dots and make them move. I believe that this can be activated by finding out which file causes the home button to make that little ripple effect when you tap it and comparing it to find out what's different. So my question is at the moment is:
If any of you want the uncompressed versions of the Pixel's SystemUI and current Nexus SystemUI that I'm using then feel free too download them. (I have removed any unnecessary guff).
Edit: I think I have found the file. It's located at:
SystemUI.apk\res\layout\home.xml
Edit: I have edited the home.xml and it seems that it just cuases my SystemUI to crash. I believe this is caused by something else in the apk.
My current guess is that there is another file in the Pixels SystemUI that reads the xml file ic_sysbar_opa_colour.xml or home.xml
If anyone knows of a way I can search for those values in a large amount of xml files quickly, then please tell me.
Click to expand...
Click to collapse
I'm working on same and I'm willing to help you .. it's quite a surprise why despite so many ppl being there, none have managed to figure this one out. I'm also moderately knowledgeable about the subject so I just might be Able to help you. Can you share the systemUI.apk file for pixel?
raghavsharmaxda said:
I'm working on same and I'm willing to help you .. it's quite a surprise why despite so many ppl being there, none have managed to figure this one out. I'm also moderately knowledgeable about the subject so I just might be Able to help you. Can you share the systemUI.apk file for pixel?
Click to expand...
Click to collapse
Here you go.
I got this by flashing the Pixel's system.img onto my Nexus 5X extracting the entire system partition then re flashing android 7.1.1 beta. I have also included the .obex files in the system_other.img that comes with the Pixel's factory image.
I'm just wondering if it's as simple as changing the name of the Pixel's SystemUI, the AndroidManifest.xml, the meta-inf, the .odex and anything else related to application identification to get it working. The reason I say this is because qitt claims to have done this and I've taken a look at what he has done and it seems that there is basically no different between the Pixel's SystemUI and his in terms of file and folder layout. One problem is that qitt's SystemUI is optimized for the Nexus 5 which has a arm based processor not a arm64 one like the nexus 5x meaning that we just can't install it.
Here is qitts post
http://forum.xda-developers.com/goo...t/rom-fake-nexus-rom-nexus-5-t3466736/page120
Just create a flashable zip of systemui with animated navbar ( from 26/10 ). Try it if you want. Worked for me on 1/11 Fake Nexus. All credits to author this ROM ganachoco.
Attached Files
File Type: zip Pixel_NavBar.zip - [Click for QR Code] (11.56 MB, 856 views)
Click to expand...
Click to collapse
Jackio987 said:
Here you go.
I got this by flashing the Pixel's system.img onto my Nexus 5X extracting the entire system partition then re flashing android 7.1.1 beta. I have also included the .obex files in the system_other.img that comes with the Pixel's factory image.
I'm just wondering if it's as simple as changing the name of the Pixel's SystemUI, the AndroidManifest.xml, the meta-inf, the .odex and anything else related to application identification to get it working. The reason I say this is because qitt claims to have done this and I've taken a look at what he has done and it seems that there is basically no different between the Pixel's SystemUI and his in terms of file and folder layout. One problem is that qitt's SystemUI is optimized for the Nexus 5 which has a arm based processor not a arm64 one like the nexus 5x meaning that we just can't install it.
Here is qitts post
http://forum.xda-developers.com/goo...t/rom-fake-nexus-rom-nexus-5-t3466736/page120
Click to expand...
Click to collapse
I'm wondering how to solve the signature problem after modifying the AndroidManifest.xml?
Charles_l said:
I'm wondering how to solve the signature problem after modifying the AndroidManifest.xml?
Click to expand...
Click to collapse
I really want to just flash the files and then start editing from there but since my 5X is my personal device and if there are any stuff ups with this installation it meas that I have to factory reset my device which isn't that great if I have to do it every time I flash the file. I also don't want to make a TWRP backup and just recover from that when I'm all finished be cause every time I have done that my data partition always stuffs up basically causing me to factory reset again.
Testing this could become a slow and repetitive process
Ok I have figured out how to keep my devices data intact so I can flash the systemUI.apk over and over again without having to factory reset my device, now it's time to get this thing working.
Jackio987 said:
Ok I have figured out how to keep my devices data intact so I can flash the systemUI.apk over and over again without having to factory reset my device, now it's time to get this thing working.
Click to expand...
Click to collapse
If you keep the apk signature, when you get systemui fc, you can always replace the original apk file with TWRP, reboot and everything back to normal.
Jackio987 said:
Ok I have figured out how to keep my devices data intact so I can flash the systemUI.apk over and over again without having to factory reset my device, now it's time to get this thing working.
Click to expand...
Click to collapse
I have succeeded in porting all res and smali things to 5X's systemUI which is related to Assistant.
Process by now, the sendOpaBroadcast refuse to work.
issue:
Code:
11-11 11:58:02.915 D/AssistManagerGoogle(3038): New assistant: null
Charles_l said:
I have succeeded in porting all res and smali things to 5X's systemUI which is related to Assistant.
Process by now, the sendOpaBroadcast refuse to work.
issue:
Code:
11-11 11:58:02.915 D/AssistManagerGoogle(3038): New assistant: null
Click to expand...
Click to collapse
Do you have the new google assistant enabled?
If not then you can change your build.prop to get it working
Code:
change
ro.product.model=Nexus 5X to ro.product.model=Pixel
and add
ro.opa.eligible_device=true
somewhere into the build.prop then flash it or push it back onto the device.
This might be useful since the little circles the home buttons draws are called
ic_sysbar_opa_colour.xml
Click to expand...
Click to collapse
and the build prop tells the device that you can use opa with this line
ro.opa.eligible_device=true
Click to expand...
Click to collapse
Charles_l said:
I have succeeded in porting all res and smali things to 5X's systemUI which is related to Assistant.
Process by now, the sendOpaBroadcast refuse to work.
issue:
Code:
11-11 11:58:02.915 D/AssistManagerGoogle(3038): New assistant: null
Click to expand...
Click to collapse
Also can you tell us how to got the System UI's nav bar working, if it does work after you have changed the build.prop
Jackio987 said:
Also can you tell us how to got the System UI's nav bar working, if it does work after you have changed the build.prop
Click to expand...
Click to collapse
What did you do with build.prop, if you add a line in it to enable some settings, the setting doesn't turn off when you delete the line, you have to set the value to 0 of what you have added.
Good news, now I got the home button animation, though the four dots didn't appera.
I might need the Pixel phone user setting, if I can't override the Opa_Enabled settings.
Charles_l said:
What did you do with build.prop, if you add a line in it to enable some settings, the setting doesn't turn off when you delete the line, you have to set the value to 0 of what you have added.
Good news, now I got the home button animation, though the four dots didn't appera.
I might need the Pixel phone user setting, if I can't override the Opa_Enabled settings.
Click to expand...
Click to collapse
Here goes the build.prop from the Pixel if it helps.
Jackio987 said:
Here goes the build.prop from the Pixel if it helps.
Click to expand...
Click to collapse
Thank you but no need, after analysising Google App, I found a way to get systemUI turn on the OPA animation switch. I will start a new thread for details.
Charles_l said:
Thank you but no need, after analysising Google App, I found a way to get systemUI turn on the OPA animation switch. I will start a new thread for details.
Click to expand...
Click to collapse
Can you please make a tutorial on this so we can port it to other devices like my moto g 2014 or a nexus 6P or future updates to the nexus 5X.
Charles_l said:
Thank you but no need, after analysising Google App, I found a way to get systemUI turn on the OPA animation switch. I will start a new thread for details.
Click to expand...
Click to collapse
I worked on this for week but no luck .. if you have figured out how and do know the exact reasons, let me know..thank you
PS- don't back and restore /data all the time. Simply replace the apk and grand permissions from aroma file manager which can manipulate data from recovery itself.

Categories

Resources