yashsingh1/xdaforums huggingface dataset:
[Nexus S Themes and Apps] raiderep:
Now that's progress, good work!
[Nexus S Themes and Apps] dreamsforgotten:
Care to join in? I need fresh eyes mine are stumped I can catch you up to where I am
[Nexus S Themes and Apps] raiderep:
I know what you mean, sometimes you need to step back for a bit. Not sure where you're at on it but I'd be glad to have a look.
[Nexus S Themes and Apps] dreamsforgotten:
I'll make you a zip matter of fact pm your email and I'll invite you in my dropbox share to centralize the work. I'll add in a txt change log of what files are modded tell you where I'm stuck, need to track down quick panel container its referenced in id and public
[Nexus S Themes and Apps] raiderep:
pm ur way...
[Nexus S Themes and Apps] suomaf:
Quick question, when you are done.do you think this would work on a nexus s i9100 t? The non 4g version?
[Nexus S Themes and Apps] dreamsforgotten:
I'm sure you'll have to mod the files to match. It won't hurt to flash it and test but you'll have to compare the public.xml hex codes, the smali hex values inthe quick panel smali files.
[Nexus S Themes and Apps] dreamsforgotten:
Progress update:

I'm am definitely on the verge of a release. I was hoping to contain all the code right inside the SystemUi.apk and there is still a slim chance I can mod the smali in there to speak with our framework.jar right. If not you'll have to flash SystemUi.apk and a modded framework.jar. Porting this to the non 4g version should be no harder than this was. I'm not going to port it, however I'll help out anyone who is willing to each step of the way. What works, auto rotation is done, works on and off. Gps is done, works just fine. Sound works 100%. Bluetooth, and wifi; however, do not work. Bluetooth turns on and off but the icon jumps over 1 slot and covers up the gps icon. You can then click the gps icon and get it to return to a gps image but I need to work this out. Wifi, don't work at all. It force closes the entire SystemUi.apk and you loose your status bar. I was able to get some good clean logcats and know where all the issues are located. It's only a matter of time to get this 100%. Now the last thing which is non important and will only take a second, is the length of the widget taking up all the real estate. That will be worked out as well.
[Nexus S Themes and Apps] suomaf:
I would like to have a go at it, but I got no (ZERO/NADA/KAPUT) experience with this at all. I am the sort that believes in learn by doing however, if you are willing to help out, I could always do the grunt work. I have done a few android development tutorials but I don't think that they will help in this.
[Nexus S Themes and Apps] raiderep:
Very nice progress on this, I'm sure you'll get it done for us ;)
[Nexus S Themes and Apps] dreamsforgotten:
I'm trying my ass off I'm using smali compiled for the i9000 sgs, and the handling of bluetooth and wifi are the only two settings that are different however searching through the decompiled frameworks.jar from both I'm just not seeing it.
[Nexus S Themes and Apps] dreamsforgotten:
You can do it with my help you just have to edit what I tell you so far its not too much to edit to point to our phones its hours of searching for the java files that the app is using. When its done there is no searching left I just show you the files. You have to edit public only cause your phone don't have 4g hex codes. Its not hard when you have a guide to do it.
[Nexus S Themes and Apps] decalex:
Ya man, this is looking awesome. I asked this before, and asking again :) have u looked at the ns4g cm7 systemui and framework? I wonder if that could help with the issues you're still workin on, since, other than wimax toggle, all is working well.

. . NS4G . . CM7 . .
[Nexus S Themes and Apps] dreamsforgotten:
Completely different set up, won't work with what I've done so far
[Nexus S Themes and Apps] wild1z:
Eat some boiled crawfish and drink a beer on me. ;) Thanks for doing this.
[Nexus S Themes and Apps] dreamsforgotten:
Thanks for the support! Bluetooth works all I have left is wifi!
[Nexus S Themes and Apps] dreamsforgotten:
95% of the way!!!! I just fixed the smali code on displaying the quick panel. The previous method I had placed the quick panel in the status_bar_expanded.xml file using linear layouts. This caused a hideously large widget because the smali code still defined the height. I was able to merge the display of the widget into the Nexus smali code in systemui.apk in a file called StatusBarService.smali. The only thing left is to fix the wifi button then I'm ready to release this bad boy. As of now the other four buttons function and the wifi does nothing but the light will light up if you turn on the wifi via settings. Hang in there guys it's almost there!
[Nexus S Themes and Apps] sunder74:
Well done man. I think its cool you figured it all out on your own instead of porting one of the various versions from CM, or jchisurf. Can't wait to put it through the paces. :D
[Nexus S Themes and Apps] ljmeli:
Looks awesome man! I've been forum stalking this thread since it started. Can't wait to give it a go :)
[Nexus S Themes and Apps] raiderep:
Ohhh so close, get it dreams!

sent from the nexus of the 4g universe
[Nexus S Themes and Apps] dreamsforgotten:
Gonna take alot of reading, there are methods called the ns doesn't have easy fix is add them in the framework.jar, but

I'm taking the long route so we can just flash and theme the system ui apk
[Nexus S Themes and Apps] dreamsforgotten:
Someone send me a gsm systemui.apk I'll do it too.
[Nexus S Themes and Apps] suomaf:
Do I have to deoxed to pull the systemui.apk?
[Nexus S Themes and Apps] dreamsforgotten:
Yes you do
[Nexus S Themes and Apps] dreamsforgotten:
Project Complete:

http://xdaforums.com/showthread.php?p=14278042#post14278042
[Nexus S Themes and Apps] suomaf:
Hey man,

Flashed to http://xdaforums.com/showthread.php?t=1060192 which is a deoxed 2.3.4 and pulled the SystemUI.apk I left it here if you want to pick it up and have a look at.

http://www.infernova.com/SystemUI.apk

***** updated

Just flashed it my man, and it works just fine on the Nexus S GSM

Any chance of giving a walkthrough on how you did it? thinking of adding brightness there instead of bluetooth for myself as I do not use bluetooth.. Great work !
[Nexus S Themes and Apps] dreamsforgotten:
No problem will post a walk through
[Nexus S Themes and Apps] nitsuajd:
I too want a walkthrough. Days ago, I was trying to do but I was looking in wrong file (framework-res.apk) maybe influenced because in CM7 and other roms the change is here.

Thanks for this great job dude!
[Nexus S Themes and Apps] dreamsforgotten:
Thread modded, it's now a guide (walkthrough) on how I did it.
[Nexus S Themes and Apps] raiderep:
Very good of you to share how it was done, its hard enough on your own digging through the code and scratching your head so this is good insight on how it all goes together. Cheers!

sent from the nexus of the 4g universe
[Nexus S Themes and Apps] dreamsforgotten:
The big question is how do you know what values to mod in the smali to work on your phone, any step you want to know how I figured that out and I'll attempt to explain lol
[Nexus S Themes and Apps] krylon360:
did you leave out a step? res/layout/quickpanel_quick_settings.xml............
[Nexus S Themes and Apps] dreamsforgotten:
Sure did!
[Nexus S Themes and Apps] wild1z:
Dreams, I thank you for this you're awesome. Would it be possible to add an additional slot for the 4G in lieu of replacing the screen location? I know that is basically a whole other ball of wax, but for me, I like the screen rotation and 4G.

Or replace GPS or Bluetooth with 4G.

If this is way out of line or putting the cart before the horse, please disregard and carry on. Beer on me in any case. ;) Cheers.
[Nexus S Themes and Apps] dreamsforgotten:
I can try as time allows
[Nexus S Themes and Apps] wild1z:
I guess I just learned that 4G sleeps on this model. I know, I live under a rock. I can live with a short cut. Continue on sir. ;)
[Nexus S Themes and Apps] dreamsforgotten:
The wimax manager isn't where I thought it would be but I'm still at it
[Nexus S Themes and Apps] krylon360:
Dream, you rock man, thanks so much for your work, and guide. Successfully ported to the G2x 2.3.4 AOSP
[Nexus S Themes and Apps] dreamsforgotten:
Awesome good deal! I'm glad I could help!
[Nexus S Themes and Apps] krylon360:
Dream, found something else, will cause errors for anyone following the guide.

WifiSettingButton.smali

.line 130
iget-object v0, p0, Lcom/android/systemui/statusbar/quickpanel/WifiSettingButton;->mWifiManager:Landroid/net/wifi/WifiManager;

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/net/wifi/WifiManager;->setWifiEnabledDialog(Z)Z

Should be

.line 130
iget-object v0, p0, Lcom/android/systemui/statusbar/quickpanel/WifiSettingButton;->mWifiManager:Landroid/net/wifi/WifiManager;

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/net/wifi/WifiManager;->setWifiEnabled(Z)Z

I would get a FC when trying to disable Wifi through the QuickPanel on the G2x.

Changing this fixed it.
[Nexus S Themes and Apps] dreamsforgotten:
You are correct I need to modify two things for it to be complete

Good eye though I've been posting all this between shifts at work I will note the op tomorrow
[Nexus S Themes and Apps] dreamsforgotten:
You had me thinking I was slipping lol, Look at the OP. Above this line, "In the above two codes, the first is the i9000 wifisettingsbutton, notice the line >setWifiEnabledDialogue(Z)Z and under it the >setWifiEnabled(Z)Z, you must edit out the dialogue to keep it from erroing on the Nexus. "

The only thing I forgot was to explain to copy the .xml file from the i9000 quickpanelsettings.xml from the res/layout to the Nexus S res/layout/. I'll be noting that here shortly.
[Nexus S Themes and Apps] nitsuajd:
Doesn't work for me... when I flash original zip my status bar disapear and when I port to my SystemUI.apk I have the same problem

Help please!;) I've uploaded my SystemUI if you can take a look please... maybe you see anything that I not...

I'm using apkmanager 4.9 to recompile without any issue (I set the compression to 0 and memory size to 512), but I've tried with apktool too with the same result

My Nexus is a i9020t (GSM) and i'm trying to use in my beta rAv 1.3 (stock, with batery, theme, kernel modded & more, but stock)

Thanks in advance
[Nexus S Themes and Apps] dreamsforgotten:
Try this open it, open the stock apk from what rom your on. Grab the manifest and meta inf from stock and apply over the modded apk then flash
[Nexus S Themes and Apps] nitsuajd:
Yeah man! you're right, now is working! thanks a lot...

I hope I can use this in the next version of my rom (Giving you credits of course)

Regards
[Nexus S Themes and Apps] dreamsforgotten:
Awesome I'm glad that took care of it the signature definitely changes when building from source (meta inf) and for some reason the manifest has as well but fortunately the mod is exactly the same
[Nexus S Themes and Apps] snandlal:
? How hard would it be to have systemui.apk reference a "widget.txt" to identify which widgets you have on that "widget.txt" and use those? Once you get more working of course. Idk
[Nexus S Themes and Apps] dreamsforgotten:
Thats a feature of cm built in java to build that from smali would be rediculous. If anyone got them kind of smali skills please pm me! Lol.
[Nexus S Themes and Apps] snandlal:
Im sorry. I was way outta line
[Nexus S Themes and Apps] dreamsforgotten:
No not at all, I'm new too smali but I'm sure someone out there can! It's just a ton easier in java. I can't even write that in java right now.
[Nexus S Themes and Apps] ptfdmedic:
Really nice dreams. Really nice.....
[Nexus S Themes and Apps] dreamsforgotten:
Thanks Rob?
[Nexus S Themes and Apps] XDA_Badman:
@dreamsforgotten I have sorted out my problems now mate, i read most of you posts and threads and this is what ive accomplished.

http://www.4shared.com/photo/9Wdv2gFK/snap20110606_105910.html

Edit: Cannot find the thanks button to thank you, i would like to.

--XDA-App--4--Nexus-S-
[Nexus S Themes and Apps] snandlal:
Running this on opensoju with opensoju's stock androidmanifest.xml & meta-inf. Works great. When i plug in the usb instead of the usb symbol it has a battery .png. also it says "select input method" instead of the regular message about usb. And the sync icon looks like the sim toolkit .png. any idea what controls that type of stuff in systemui.apk?
[Nexus S Themes and Apps] dreamsforgotten:
Not a problem, glad your having success! Not to be rude can you explain what's in the picture I haven't flashed cm to know what's diff
[Nexus S Themes and Apps] dreamsforgotten:
Looks like I might have to do open souja what I did to stock :(. Before that let me ask you this did you delete open souja files before you copied over the modded files or did you copy my files right in top the stock ones? Ive had zip files merge instead of overwriting in me before
[Nexus S Themes and Apps] snandlal:
I used ninjamorph to replace the files inside meta-inf and androidmanifest.xml

Uncle Jimmy says hello
[Nexus S Themes and Apps] dreamsforgotten:
I would do it manually and flash sounds like the files are merging together
[Nexus S Themes and Apps] snandlal:
Ok. Last time i tryed with 7zip it kept saying "not implemented" after i would confirm the changes. Oh well. Will try again when i get home. Thanks
[Nexus S Themes and Apps] ptfdmedic:
Yeah that was a compliment. May not have come across that way though. My bad. ;)
[Nexus S Themes and Apps] dreamsforgotten:
Sorry Rob. Swype-O it should read Thanks Rob!

You already know acs's spelling record!
[Nexus S Themes and Apps] snandlal:
Its still doing the same thang. I give up. I cant figure it out. Thanks so much for this mod it is really sweet
[Nexus S Themes and Apps] dreamsforgotten:
Post me your stock file, and give me a few days. Have you ever logcatted the boot when it didn't work? That would be a huge help
[Nexus S Themes and Apps] snandlal:
Its like systemui.apk isnt talking to framework-res.apk correctly with some things. most are correct tho. It installs now everytime but its diplaying the wrong .pngs in some instances. I know your busy and i don't want to bug you with such petty things.
[Nexus S Themes and Apps] dreamsforgotten:
No bother, I'm here to help you enjoy your experience, please, post me your systemui I can't start today but I might be able to help you its def worth me trying.
[Nexus S Themes and Apps] snandlal:
This is the stock opensoju 0.2.5 systemui.apk
[Nexus S Themes and Apps] snandlal:
Well I tryed to modify the above attached SystemUI.apk with no success. Spent a good while following the guide and a big failure. Kept getting stupid errors with apkmanager:mad:
[Nexus S Themes and Apps] dreamsforgotten:
The problem is most likey the framework not installed. Let me tell you how I was able to decompile and recompile properly. I navigated to the c:/android-sdk-windows/other/ folder. Inside there is aapt.exe and apktool.jar. I copied the both of these to the root of my hard drive at c:\. I also copied the systemui.apk and framework-res.apk from my rom to c:\. Next I ran this command from dos.

apktool d SystemUI.apk if framework-res.apk

This installed the framework-res.apk into the apk tool folder on my pc C:\windows\"user"\Documents\

From then on out I can decompile and recompile the apk successfully no issue. I have two different versions of apk manager 4.7 and 4.9. I use 4.7 just for the systemui.apk although others have said after doing this they use 4.9. Whatever works for you. BTW I am not blowing modding that off for you I'm just really making progress with my next port. Here's a teaser screen shot for you
[Nexus S Themes and Apps] snandlal:
Man you have got a whole lotta skill! Looks great. Dont worry about my personal problem. I would rather you to get YOUR stuff out to the community instead of working on something for one person(me). That is way over my head. Im just gonna have to wait for an update from opensoju. Hopefully he will implement your mod in his rom. Thanks again for everything. I would say good luck on your future project but....it looks like you dont need luck :-)
[Nexus S Themes and Apps] dreamsforgotten:
Thanks for the support! I got you on the back burner I would love for the rom devs to contact me so we can have a working version on each rom posted in the thread for ease of access but I might have to just post all versions in my thread
[Nexus S Themes and Apps] snandlal:
As far as i know, opensoju is the only rom this doesnt completely work on. Without modding it of course. So when or if you decide to do that, shouldnt have to be that many versions. This works on all stock based and cm based already have it. Opensoju and any other built from source should need a modded one.

Uncle Jimmy says hello
[Nexus S Themes and Apps] shabbypenguin:
yea but the cm7 ones are ugly >.>

on a side note this project and the next one may bring me back to aosp from cm7....
[Nexus S Themes and Apps] dazednconfused:
I agree. This version is 100 times better looking than CM7. I've been editing mine with the UOT kitchen, and this version is still better looking than the best one that they offer. But with Dreams working on it, it always looks nice. Keep up the awesome work man.
[Nexus S Themes and Apps] dreamsforgotten:
Lol thanks guys!
[Nexus S Themes and Apps] sunder74:
@dreamsforgotten...what would you think of incorporating rori's status bar mod into this great piece of work you have here?

The one that minimizes the carrier name and repositions the clear button? Just a thought to further spice up the stock rom. :)
[Nexus S Themes and Apps] dreamsforgotten:
Can you link me?
[Nexus S Themes and Apps] sunder74:
Here you go...im working on it for froyo on the fascinate. Its a cool little mod imo.

http://xdaforums.com/showthread.php?t=814890
[Nexus S Themes and Apps] dreamsforgotten:
Yeah thats def doable, its just a layout edit
[Nexus S Themes and Apps] snandlal:
I still can't get opensoju's systemui.apk to work correctly. I tryed decompiling classes.dex to do it but the changes never showed. Frustrating.

Uncle Jimmy says hello
[Nexus S Themes and Apps] dreamsforgotten:
You mean the panel never showed up after following the guide to mod yours?
[Nexus S Themes and Apps] snandlal:
Yes

Uncle Jimmy says hello
[Nexus S Themes and Apps] snandlal:
That guide is way over my head anyways. I give up

Uncle Jimmy says hello
[Nexus S Themes and Apps] dreamsforgotten:
lol its ok it was over my head too when I started you gotta learn where to start. look at the guides and look at the stock files. Notice everything thats changed and slowly change yours. Don't try to do it all at once
[Nexus S Themes and Apps] krylon360:
There's 2 spots. One for turning Wifi On, and one for turning it off. The OP has the section for turning it on, but not off, that's further down the smali

.line 123 (OP) is for turning on wifi

.line 130 is for turning off wifi.
[Nexus S Themes and Apps] dreamsforgotten:
Good eye you did catch me slipping XD
[Nexus S Themes and Apps] snandlal:
@Dreamsforgotten...wondering if you could modify the systemui.apk with your skill for opensoju?
[Nexus S Themes and Apps] gypsy214:
Tried this on CM7 with my G2X and the phone wouldn't do nothing it kept saying force close and that sit i couldn't do nothing pass that good thing i have a nandroid backup. and restore with cwm cause if i wouldn't have a backed up my rom i couldn't mount to pc to drag the rom and reflash it :) to all make sure before you start doing stuff with ur phone.. first have a back up with cwm
[Nexus S Themes and Apps] dreamsforgotten:
If you do make that mistake and don't have a back up adb push the rom or a working systemui.apk . Now what you mean you tried this on cm7? This its a guide to port a quick panel to aosp, cm7 already has this feature called power control widgets.
[Nexus S Themes and Apps] gypsy214:
that one cm7 comes with it looks ugly i would like to have some color on it some desing on it
[Nexus S Themes and Apps] dreamsforgotten:
Alright I get you, the problem is the power control widgets use the framework from the aosp build and it's modded on the cm7 version. You better off using images like these in this mod over the images in your system ui .apk
[Nexus S Themes and Apps] herraemppu:
Thanks for this guide! Although I have had some problems porting this quickpanel to my SE ARC. I have managed to compile the APK with success and it is working on my mobile, BUT it does not show the quickpanel :confused:

Any idea if it would be possible to get it working on the ARC also, does it possibly need some other tweaking also apart from the smali and xml mentioned in the guide?
[Nexus S Themes and Apps] dreamsforgotten:
Status bar service.smali is the file that actually displays the widget. The public id points to the xml file quick panel settings, as long as that xml is inside of your layout folder and your status bar service smali file around line 371 has the same id you should be seeing it
[Nexus S Themes and Apps] herraemppu:
Hi,

Thanks for this, now I actually got it finally working. I had to remove SystemUI from dalvik-cache. it works great. Thanks again!
[Nexus S Themes and Apps] dreamsforgotten:
Awesome glad you up and running! lockscreens next? Lol
[Nexus S Themes and Apps] jboxer:
Need help with LG P999 (G2X)

I've got the Quickpanel displaying in the notification bar on the LG P999 (G2X) running semi-stock 2.3.4. I have a few bugs I am trying to figure out. I hope you can help me.

1. The on/off indicator (green line) for the Auto Rotation button is being placed on the top of the GPS button and making the GPS icon go away. If I press the GPS button, the icon comes back. I did not make any changes to your layout file so that should not be the issue.

2. Wifi force closes the statusbar service when I click on it. Does anyone know what I have to change to make the wifi toggle work on an LG P999 (G2x). I thought I made the appropriate changes but obviously what I did didn't work.

Here are screenshots. One shows the indicator on/off for autorotation being displayed on the top of the GPS icon.
[Nexus S Themes and Apps] dreamsforgotten:
Sounds like public.xml ids to me
[Nexus S Themes and Apps] jboxer:
Do you think that could be causing the wifi force close issue also? I'll double check them all in the two smali files.

I appreciate your efforts here, your easy to follow guide and willingness to respond to messages.
[Nexus S Themes and Apps] dreamsforgotten:
No problem, I'm not in a position to help too much I'm in the road right now either you're public.xml is pointed to the wrong images it calls for or the smali ids are wrong as far as the wifi its def in the wifi smali I'm guessing there is a method named different for your phone than what the nexus uses. You need to run an adb logcat on your phone then make the fc happen to find the exact reason
[Nexus S Themes and Apps] dreamsforgotten:
Look into where on the nexus I had to remove the word dialog from the setwifienabledDialog(z)
[Nexus S Themes and Apps] jboxer:
The logcat did the trick on the WiFi. I have gone back and forth so much on editing these files I would up with the function call the wrong name as you mentioned. In the logcat it was easy to find.

Wifi works now but when it is changing the bar changes white at the top of the icon instead of the bottom of the icon, and the icon disappears until the status change is finished and then it reappears. It is late here so I guess I will check it again tomorrow. All the public ids look good gut tomorrow I will have fresher eyes.

I double checked the public ids of the autorotation smali and everything looks as it should be, but I am still getting that weird bug with its indicator going on top of the GPS button. I compared the layout.xml and mine is identical to the original from the Samsung. I hope I can figure this out. Other than this issue the project is complete, except for changing the graphics.

Thanks again for your help.