yashsingh1/xdaforums huggingface dataset:
[Sony Xperia T, TL, TX, V] Rycon33:
Re-aarange the icons placement if you want your own arrangement

<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
</LinearLayout>

That first linearlayout is for portrait mode, you can see from the code, icons from top-to-bottom, it will show left-to-right on your phone. Cut and paste the whole line in place of the other, swap the menu and recent code lines.

The 3rd linear layout is for landscape, top-to-bottom code is also top-to-bottom in phone landscape. Justa swap menu and recent code lines as well.

And no need to touch the lights-out linear layout, that's the 2nd and 4th linear layout.
[Sony Xperia T, TL, TX, V] whalesplaho:
i notice dat after flashing tha mod, my nav bar aint transparent anymore cos i mod it for transparency before.... but status bar still transparent!
[Sony Xperia T, TL, TX, V] Rycon33:
i'm not sure this mod can cause conflict to other mods, but if it does, you have to choose which one you intend to keep:p
[Sony Xperia T, TL, TX, V] whalesplaho:
Definitely knows which to keep.... thanks!
[Sony Xperia T, TL, TX, V] Rycon33:
[MENTION=4471890]whalesplaho[/MENTION], that's because you forgot to swap the menu and recent code lines in portrait mode(1st linear layout):p

I only saw you changed the one in landscape from your file:p:D
[Sony Xperia T, TL, TX, V] devilmaycry2020:
hi Rycon33

please fix the transparent mod to work correctly because all tutorial make not correctly. such as : hi all !

i dont know if this is the bug or not . when i view image in Album. if i slide up and continue slide up until the last picture the white halo sphere move from at bottom of Home icon then move up. This animation don't occur if don't mod transparent navi bar . that's mean the white halo sphere move up from the top of navi bar
[Sony Xperia T, TL, TX, V] Rycon33:
Asked [MENTION=4471890]whalesplaho[/MENTION] how he did it right with the 2 mods working nicely coz I can't tell you anything about transparent bar thing as I don't use one.:p:D

And with regards to that "swipe-up" thingy, it's the "Google now" and I believe you cannot remove that, believe me I've searched around before regarding that and to no avail. It is also there in your previous mod. Correct me if I'm wrong.:D

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] Rycon33:
And if that swipe-up thing is not really present on your previous mod, I'd gladly like to know that mod as I'm personally annoyed with that accidental swiping-up of home button at times.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
Everything working perfectly brov..... Now i av back home recent app menu!!!

Thanks to yhu buddy. What about adding power button to tha bar but how does tha power button works.

Transparent bar works too.
[Sony Xperia T, TL, TX, V] Rycon33:
Nice:)

For power button, it works like this:

Short press - screen off

Long press - shows power menu

Very good right?

And for the tut, just add that getPower thingy I mentioned a few pages back, or follow the linked guide, just replace everything mentioned about "search" and replace it with power, hope you get what I mean. Good luck, any problem along the way then you can ask here, hehehe.

EDIT: Btw, here's the navigation_bar.xml if you want that power-back-HOME-recent-menu(of course you can re-arrange, this is only the default template). Just copy the content and over-write your existing one inside navigation_bar.xml.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
Nice brov, i ll give it a shot n post feedback... Thanks!!!

---------- Post added at 03:19 PM ---------- Previous post was at 02:45 PM ----------

Will i add values in ids.xml, strings.xml, public.xml & tha likes to get tha power nav bar. Maybe posting a fresh tut ll help.

Thanks.
[Sony Xperia T, TL, TX, V] Rycon33:
Yes add power in those 3 xmls

Edit: One trick is, delete the public.xml first. Then fill up the ids.xml and strings.xml, recompile the apk. Now you only did that so a hex ID is automatically assigned to the new "power" variable. Go to the newly-generated public.xml and search for "power" and you have the hex ID, use that same hex ID in your smali edit. After the smali edit and icons images has been added in drawable-xhdpi and navigation_bar.xml has been edited too, recompile and build with the original manifest ofc.

Tapatalked from my Nook
[Sony Xperia T, TL, TX, V] whalesplaho:
Please can yhu help with tha pngs to add in drawable-xhdpi please???

modding now!
[Sony Xperia T, TL, TX, V] Rycon33:
I'm on mobile right now, just download the one I did for TX in first page then extract the power icon images.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
Okies brov... Downloading!!!

thanks.
[Sony Xperia T, TL, TX, V] whalesplaho:
dnt know what i did wrong, no status bar & nav bar after flashing.... dis is my decompiled systemui (res & smali) folders.!
[Sony Xperia T, TL, TX, V] Rycon33:
looks OK to me

except on mine, I added the code after

invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getHomeButton()Landroid/view/View;

move-result-object v6

so it becomes like this:

invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getHomeButton()Landroid/view/View;

move-result-object v6

[COLOR="Blue"] invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getMenuButton()Landroid/view/View;

move-result-object v7

invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getPowerButton()Landroid/view/View;

move-result-object v8[/COLOR]

if-eqz v1, :cond_6

move v3, v5

:goto_6
invoke-virtual {v6, v3}, Landroid/view/View;->setVisibility(I)V

[COLOR="Blue"]invoke-virtual {v7, v3}, Landroid/view/View;->setVisibility(I)V

invoke-virtual {v8, v3}, Landroid/view/View;->setVisibility(I)V[/COLOR]

Not really sure though if it does makes a difference but that's the only thing I can see that is different from my one.
[Sony Xperia T, TL, TX, V] whalesplaho:
Compiled successfully with dis.....

>copying to phone..... >rebooting to recovery..... >flashing..... >rebooting..... >still no luck

gonna start again!
[Sony Xperia T, TL, TX, V] whalesplaho:
Retry.agan but still same... Shows 65.0dip error
[Sony Xperia T, TL, TX, V] Rycon33:
Give me your last "working" SystemUI.apk and I'll try to look into it further.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] ashinh:
Ryconn I got a zip and modified the systemUI,but there is something wrong.

The softkey work well in usual but when I lock the phone,the power and menu buttons r still there.

Here is my SystemUI and the screenshot.Please help me.I wanna know what code is wrong.

View attachment SystemUI.apk
[Sony Xperia T, TL, TX, V] Rycon33:
I looked at your NavigationBarView.smali and you haven't modify this method -> .method public setDisabledFlags(IZ)V

And you havent't added the getPowerButton method also.

Follow again the step 7 and 8 in the linked procedure.

I can do it for you but it's nice if you can do it, it's more satisfying.:D
[Sony Xperia T, TL, TX, V] whalesplaho:
Thanks a mill brov.... dis is my current working systemui.apk!
[Sony Xperia T, TL, TX, V] Rycon33:
I only saw the accessability power ID doesn't match the one in smali.

Flash this in CWM recovery, backup just in case. I didn't tested it as my phone is TX.
[Sony Xperia T, TL, TX, V] ashinh:
After I add them,I lost my status bar ,navigation bar and wallpaper in the next boot up.:(
[Sony Xperia T, TL, TX, V] Rycon33:
It's either other mods are conflicting with this or you may have missed some step.

If you are sure that you follow the steps correctly and still the statusbar/nav bar is messed up, My suggestion is, start from a stock SystemUI.apk, doing only this mod, if it workes then you know it's conflicting with other mod.
[Sony Xperia T, TL, TX, V] ashinh:
guess I compile it too many times.I redo all in once then it's fine.

big thx man.
[Sony Xperia T, TL, TX, V] whalesplaho:
okies brov... thanks!!!

but please can yhu point me to that?
[Sony Xperia T, TL, TX, V] whalesplaho:
Unfortunately, SystemUI stop..... dnt know whats wrong!
[Sony Xperia T, TL, TX, V] Rycon33:
I guess the easiest way is to do it on a clean stock SystemUI, then once this works, you can add your other mod.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
but my statusbar is tha docomo status bar.... hope dats not tha prob?

will try mod an umodded status bar when free!

Thanks.:good:
[Sony Xperia T, TL, TX, V] erick_shadow:
I only need the menu icon

Xperia T
[Sony Xperia T, TL, TX, V] whalesplaho:
still no luck brov... guess i ll leave it!!!
[Sony Xperia T, TL, TX, V] Rycon33:
Did you try it on a stock/unmodded SystemUI? Anyway if you really cannot get it to work, I guess yeah, leave it:D

If we have the same phone I could help you look into the problem, but mine is TX.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
didnt try stock statusbar since i dnt like it..... which statusbar re yhu using?
[Sony Xperia T, TL, TX, V] Rycon33:
Well, I'm on stock SystemUI, I just mod it a bit for center clock only. I don't have anymore fancy mods as I'm also using XthemeEngine which is way better in terms of theming a stock ROM phone.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
okies brov but dat engine cant add more toggles to tha statusbar.
[Sony Xperia T, TL, TX, V] Rycon33:
That's one of the tradeoffs but they said lidroid toggles is being themed by the engine as well. Don't know coz I'm using widgetsoid for more toggles.

But overall the engine is very good. You're missing it mate, I suggest you to try it as well. Anyway it's easy to go back and forth to any themes and system default.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
am using Icon Themer for theming stock & also Apex launcher...:highfive:
[Sony Xperia T, TL, TX, V] Rycon33:
but on xThemeEngine you can do the below example to your phone easily:

btw, both engines, icon themer and xtheme are from ruqqq, genius guy
[Sony Xperia T, TL, TX, V] whalesplaho:
Dnt really understand tha screenshot brov..... Seems Xtheme ll theme tha whole system aite?

Yeap, a super duper genius...
[Sony Xperia T, TL, TX, V] Rycon33:
It themes the framework and system images and other apps too, it's actually the same as CyanogenMod theme engine, but XthemeEngine is for stock ROM.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
Great brov.... I have 2 CM10 themes, how can i use dem with xtheme?
[Sony Xperia T, TL, TX, V] Rycon33:
http://xdaforums.com/showthread.php?t=2334637

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
Okay brov... Checking it out!
[Sony Xperia T, TL, TX, V] whalesplaho:
Yipeeeeeeeeeeeeeeeee..... Whew atlast, got it!!!!
[Sony Xperia T, TL, TX, V] Rycon33:
Very good mate:thumbup::)

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
i use tha last hex code in type=id.... tha last line in tha public.xml was type=menu, was using dat before dats why am getting error, even when i delete public.xml & used tha newly generated one, was still same!!!! :D :D :D
[Sony Xperia T, TL, TX, V] Pangkoy08:
I'm lost

Hello [MENTION=4023029]Rycon33[/MENTION],

I was reading the thread and I was lost at step 6. Can you guide me where I can find this at my phone.

Thank you for your time.
[Sony Xperia T, TL, TX, V] dully79:
You need to decompile your SystemUI.apk and navigate to address listed:

SystemUI>smali>com>android>systemui>statusbar>phone>NavigationBarView.smali
[Sony Xperia T, TL, TX, V] Pangkoy08:
Oh ok, I thought I will be able to see that through my device. I'll check it out once I get home.
[Sony Xperia T, TL, TX, V] dully79:
There are various elements in the apk that are "hidden" in Resources.arsc. Its a bit like a pinata, you smash it open with apktool and get all the candy. smali being one them.
[Sony Xperia T, TL, TX, V] matt4321:
But smali is a pain to edit, as I've experienced tonight :P
[Sony Xperia T, TL, TX, V] whalesplaho:
impossible brov......:D

---------- Post added at 11:32 PM ---------- Previous post was at 11:30 PM ----------

yhu gonna love it with a good guide! :D
[Sony Xperia T, TL, TX, V] dully79:
Amen to that bruvva. It's like a different language....

Oh wait it is.

I only really touch it if there is a guide. Id love to learn it, but it burns my head out.:eek:
[Sony Xperia T, TL, TX, V] matt4321:
Same, even with the guide I somehow I screwed it up. Had to get Whalesplaho to give me his already working files from his V, let's hope they compile and work on my T when I try tomorrow
[Sony Xperia T, TL, TX, V] dully79:
I've been wanting to redo this mod for xperiment but have been busy with work and other stuff. I might do it tomorrow also.
[Sony Xperia T, TL, TX, V] matt4321:
I'm going to try compile using the V files, if it doesn't work I'll start from scratch. Let us know how you get on
[Sony Xperia T, TL, TX, V] dully79:
Will do.

It'll be tomorrow night as im back on days for the rest of the week. Thank god, as im bored with Greggs late shifts.:(
[Sony Xperia T, TL, TX, V] matt4321:
I failed at this, tried using the files whalesplaho gave me but then made sure I had the correct hex numbers corresponding in public.xml and the smali file so edited that.

it compiled but when I booted I had no nav or status bar, ha!

I couldn't even get it compiled when I did it last night manually, couldn't track the error. Hope you succeed better than I have dully. I may try again tomorrow if I can be motivated enough, if not I'm trying when I get back from holiday
[Sony Xperia T, TL, TX, V] Rycon33:
[MENTION=4393511]matt4321[/MENTION], you can post here your SystemUI then I'll try if I can take a look at it after my shift. Or [MENTION=4471890]whalesplaho[/MENTION] can take a look at it also.:)

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] matt4321:
That'd be awesome if either of you get it working, if you do, I'd love to hear how and what you did etc so I can try learn/find out what I did wrong so I can learn
[Sony Xperia T, TL, TX, V] dully79:
I attempted this morning before setting off to work. I havent tested it yet, although ive only added permanent menu as the search would be redundant on my phone. Ill test shortly when ive had a shower and report back.

Edit:

My modified modification didnt work. "SystemUI has stopped".

Ill try again tomorrow or over the weekend, i need to go to bed as im back up for work at 4:30 am:mad:
[Sony Xperia T, TL, TX, V] whalesplaho:
lemme do some workings...... :D
[Sony Xperia T, TL, TX, V] Rycon33:
[MENTION=4393511]matt4321[/MENTION] , I know you guys got new firmware already but you may still try this from the previous systemui you posted

sample, added "power" icon and "menu" is permanent

if that don't work, wait for [MENTION=4471890]whalesplaho[/MENTION] , he's got one also for you to try :D
[Sony Xperia T, TL, TX, V] whalesplaho:
Thanks Rycoon.... There is power outage here, but wen i have tha chance to come online, i ll post what i gat. Already downloaded tha Systemui! :D

Sent from tsubasa using XDA app
[Sony Xperia T, TL, TX, V] matt4321:
cheers mate, I'll try give it a shot at some point today
[Sony Xperia T, TL, TX, V] matt4321:
Cheers thanks so much, it worked and looks really good! glad someone managed to do it :D

EDIT: Did you just follow the guide exactly, or did you change/add something? Really want to work out what I did wrong so I can learn for future things
[Sony Xperia T, TL, TX, V] Rycon33:
Good that it worked.:)

Just fyi, power icon there will give you two functionalities:

Short press - screen will off.

Long press - will show normal power menu.

Edit: And if you want to change the arrangement of the nav bar icons, change it in the navigation_bar.xml.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] matt4321:
perfect
[Sony Xperia T, TL, TX, V] Rycon33:
Yup, I did that while the tab is open on my chrome browser(only I change to power instead of his example "search" ) Maybe you forgot to put back the original meta-inf folder and the androidmanifest to the modded one.

Edit: Btw matt, can I ask a favor, I know you're pretty good with image editing. So can you help me change the "setup guide" icon and "xperia" icon in settings page to make it look as same as in CyanogenMod icons. I mean the white color with the correct depth or gradient like the other CM icons. Only if you got time though.

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] matt4321:
ahh, I didn't add the androidmanifest,didn't know you had to do that, i always just added the meta-inf folder.

I'd be happy to take a look, I'm not amazing at it making them, navbar ones I think are a lot easier. Though I go on holiday tomorrow at 5am, so I'm afraid it'll have to wait, I've got loads to do tonight.
[Sony Xperia T, TL, TX, V] Rycon33:
Enjoy your holiday mate.:)

And no worries mate, only if you got the chance to look at it next time.

Holiday first, enjoy:)

Tapatalked from my bricked TX
[Sony Xperia T, TL, TX, V] whalesplaho:
Yeap, Holls first!!!!

i manage to make this.... hope it works fine!!!!

http://www.mediafire.com/download/b2sa1ps0vns287p/matt4321_SystemUI_MOD.zip
[Sony Xperia T, TL, TX, V] Ticklefish:
Very useful! Thank you!
[Verizon Samsung Galaxy Note II] TonikJDK:
This isn't your usual battery thread. My drain is MASSIVE. 25 percent in 2 hours just sitting with the screen locked. I am unlocked with TWRP. It started out of the blue, no new apps installed when it happened. I wiped cach/data and then had TWRP wipe the system partition. Then installed a clean ROM, Beans mostly stock ROM, the one I have been running since it came out with no problems. The massive battery drain continues. I have installed very few apps after flash, none of them are out of the ordinary. All data sync and app syn is off except Gmail.

The maps usage is weird, very high, I have gps turned off. But even the maps usage does not explain the rapid drop. Battery stats snapshot attached.

I am almost thinking my battery is just fried.
[Verizon Samsung Galaxy Note II] ballisticn8:
Have you checked to see if history is turned off? Maps will try to locate you based on cell signal if gps isnt available which would still drain your battery pretty fast if it was consistantly running in the background.

MAPS>>>SETTINGS>>>LOCATION SETTINGS

There you'll see options for location reporting, location sharing, location history, etc.
[Verizon Samsung Galaxy Note II] TonikJDK:
Good call, history was on. Interesting that it stays active even though I had location reporting turned off. And I am in a building that gets a poor gps lock. You might have nailed it, I will let you/everyone know.
[Verizon Samsung Galaxy Note II] TonikJDK:
No joy, still dropping like a rock.
[Verizon Samsung Galaxy Note II] ballisticn8:
Search xda for better battery stats thread, download the apk and install. Maybe you're getting wakelocks somewhere causing it to drain. If that doesnt help maybe your battery just crapped out on you... o_0
[Verizon Samsung Galaxy Note II] joshm.1219:
And get Greenify it helps a ton especially with maps.
[Verizon Samsung Galaxy Note II] P2o8wer:
If u set ur automatic date and time and time zone off that will stop a lot of battery.
[Verizon Samsung Galaxy Note II] TonikJDK:
Thanks gang, BetterBatteryStats is awesome, and Greenify is looking pretty slick too.

Still struggling, but getting info. Battery is on order, really hope that is it but I am not hopeful. It really appears my Google Maps is out of control. During the screen shots below the phone was 95 percent just sitting. I did a little twitter, couple of emails. Never opened maps, location history, sharing and gps was off the whole time. Stand alone gps in locations was off, google and vz locations were on.

In four hours with only a little twitter/gmail it dropped 40 percent. For 3.5 hours of that time it was in deep sleep. I am not seeing any wakelock issues, that is attached. As is the 'current' stats from BetterBatteryStats.

The main battery stats from Android say Maps is using a good deal of this battery. I have uninstalled maps updates and cleared data on it. Maybe it is looking high because the battery is fu'bard. The new one wont be here for a few days because of the holidays.

I may be out of touch for a couple of days. Time to put some miles on the bike.
[Verizon Samsung Galaxy Note II] shangrila500:
What does the Partial Wakelock screenshot from BetterBatteryStats look like?
[Verizon Samsung Galaxy Note II] joshm.1219:
Did you hibernate maps in greenify? There's no way it could draw that much power if you have and you're not using the app at all.
[Verizon Samsung Galaxy Note II] TonikJDK:
Very clean, just the gmail syncs. It is attached.

Good point, I did not. I have now...but since uninstalling map updates and clearing it's data it is not showing up in the battery stats at all. But I will Greenify it. Battery drop is a little better, but still massive.

My next test is to recharge it and let it sit in airplane mode.
[Verizon Samsung Galaxy Note II] shangrila500:
When Maps was still updated was it showing under the Partial Wakelock tab?
[Verizon Samsung Galaxy Note II] jersey droid:
I dont know if this would help....but with my last phone.. the gnex, I would go outside and get a solid gps lock then turn off gps. It would stop the constant searching for a lock and battery drain. If I never got that initial lock, even with gps off it would drain it but not really show up in a better battery stats as a problem....just had to do it every time phone was rebooted of course but not that much of a pain.
[Verizon Samsung Galaxy Note II] joshm.1219:
He turned off his gps.
[Verizon Samsung Galaxy Note II] jersey droid:
Yes I know. But in the gnex days even if I turned it off, without first getting a lock, it would be the cause of battery drain. I don't even dare to think I understand the why of it, only that it was the solution that everyone on the gnex xda forums offered.