yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] sajidmkhan:
XWJVU

Try to impliment on XWJVU and my Statusbar dissapeared.
[Galaxy S II Android Development] :
You are using a odexed SystemUI. You can do this only in a deodexed rom.
[Galaxy S II Android Development] :
Attached. Backup before trying. Not a flashable zip. I presume you have flashlight led, so androidmanifest.xml not modded.
[Galaxy S II Android Development] sajidmkhan:
I had I9000 and it didnt had Flashlight but someone mod flahslight for screen light and thats i trying to impliment.

p.s. using attached file giving same result so attaching untouch stock file.
[Galaxy S II Android Development] nobrakes:
Hi Li,

Here are my files if you can take a look at them. Someone did port this to Sprint's GS2 but it didn't have the 4G icon on the statusbar and no 4G toggle button. The 3G signal bar also wasn't working. Thanks I really appreciate your help.
[Galaxy S II Android Development] :
What are you referring to? Li's mod is to add quickmenu to dropdown notification bar.
[Galaxy S II Android Development] yoderk:
Quick question for you. So I modded mine the same exact way as yours but when I install the SystemUI.apk I get no statusbar. Im coming from the I777 and had it working before but on KJ3 I'm having no luck. Is there a signature or anything oddball that you do when re-compiling the apk?
[Galaxy S II Android Development] :
Did you resign the apk after recompiling? If yes, that's your problem. System apps should not be signed.
[Galaxy S II Android Development] yoderk:
Nah I didn't resign it as I didn't make any edits to the AndroidManifest xml, that's what I can't figure out. I'll keep working at and see what I come up with.
[Galaxy S II Android Development] nobrakes:
I pm'd Li and he asked me to post these files. He said he can't visit mediafire from China so I'm posting it here. I'm trying to learn to do this myself but having problems. I appreciate yours and Li's help, thanks
[Galaxy S II Android Development] shoman94:
I applied this mod but it doesn't have the fade on the sides when scrolling. Any idea?
[Galaxy S II Android Development] barnacles10:
Already ported them for sprint today. Seeing what I can do with 4g now. Beautiful work lidroid!
[Galaxy S II Android Development] nobrakes:
Ok thanks
[Galaxy S II Android Development] $omator:
i was holding back to even test this for so long ;)

but i must say very handy and good lookin after few touches :]
[Galaxy S II Android Development] Siberian Tiger:
I hope to see those among others eg Jkay,multiple lockscreens,tsm in the next

stock + for my SGS1 :)

Thanks $omator :D
[Galaxy S II Android Development] shoman94:
It would be nice though if he allowed us to perform some changes and recompile without issue.
[Galaxy S II Android Development] SenseiSimple:
I've ported this for the Samsung Galaxy S Epic 4G, and all but the flashlight work - it's not a big issue. However, i would like to include the 4G button, is this strictly a lidroid-res.apk concern or can it be done in systemui.apk

attached is my SystemUI.apk with the working mod in place. The Wimax/4g button files for the original bar when decompiled are located in

SystemUI.apk/smali/com/android/systemui/statusbar/quickpanel/WimaxSettingButton.smali

and the 4g icon is located in SystemUI.apk/res/drawable-hdpi/

any advice would be very appreciated
[Galaxy S II Android Development] sajidmkhan:
Hi,

I am again here and attaching BVJVC file of SGS I9000

I try many time but didnt got sucess, may be someone will do this for me.

Thanks and Regards
[Galaxy S II Android Development] $omator:
you can mod it as you wish as long main credit will go to him

i do not see a problem in that

worked on first attempt
[Galaxy S II Android Development] :
You cannot recompile lidroid-res.apk using standard apktool becoz it changes the resource ids which result in statusbar FC.

Li uses a modified apktool which he has not shared.
[Galaxy S II Android Development] $omator:
wierd, worked for me
[Galaxy S II Android Development] sajidmkhan:
if you had working file for JVC then pls attach for me.

Thanks and Regards
[Galaxy S II Android Development] IlluminatedOne:
Hey Li and other guys,

I am calling QuickPanelSettings.apk through Settings and I dont want to see QuickPanelSettings in my app drawer. I am able to call it successfully through settings.apk, but I dont know how to hide it from app drawer. Can anyone point me in the right direction?
[Galaxy S II Android Development] barnacles10:
Your edit will be in the apps manifest.xml.

"android.intent.category.LAUNCHER"
[Galaxy S II Android Development] IlluminatedOne:
and change it what? One other mod app which does not appear in app drawer has following line instead -

<category android:name="android.intent.category.DEFAULT" />

Also, if I change AndroidManifest.xml, do I need to sign the app? (This is what I dont want to do :( )
[Galaxy S II Android Development] barnacles10:
You remove it. And yes.
[Galaxy S II Android Development] splattx_x:
Would this mod work in Froyo? Maybe with some additional tweaking?
[Galaxy S II Android Development] saszseb:
Hi,

I'd like to have statusbar toogles on pawitp's ICS. I've just tried this Method being on first page but the SystemUI.apk is not the same as on Samsung's ROM.

Thanks.
[Galaxy S II Android Development] willam71:
I successfully decompiled SystemUI.apk, coming from a deodexed ROM (2.3.6) for the Galaxy Note. However, StatusBarService.smali contains no

const v7, 0x7f030002

line. Any suggestions please? TIA.
[Galaxy S II Android Development] barnacles10:
Yeah, look for similar code. It might not be 'exact'. The actual code being executed is more important then the resource id since you'll be changing that anyway.
[Galaxy S II Android Development] D3abL3:
Hey all, would this work for non-samsung devices but still being hdpi or the coding is specific?
[Galaxy S II Android Development] willam71:
Ok, I did a search for

invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

There are 6 occurences ... do I have to modify each of them?

I really appreciate your help.
[Galaxy S II Android Development] barnacles10:
No, because that line is not even required to be edited. You must look for lines that have play in what you're doing.

You might start with

check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

Notice it is referencing a quicksettingsview at said location. Well, you're adding code from lidroid located elseware. So this is the line you point to alternate code. Same with the other edits required.

Short answer, no. But anything is possible. =P
[Galaxy S II Android Development] splattx_x:
Hi, is there anyway this could work in Froyo? It doesn't have a SystemUI.apk but it makes references to the status bar through services.odex. I haven't found the exact snippets posted in the OP anywhere but I found several references to "statusbar/quickpanel/QuickSettingsView;" should changing all of those references to you lidroid/quicksettings replacement work?
[Galaxy S II Android Development] GadgetCheck:
Dint try this on froyo mate!

But then you can always try and make it work ;)
[Galaxy S II Android Development] acras:
Hello!

Could someone help me to compile apk's (in attachments). Framework and original files attached too. I always get an error. Thanks!

View attachment 809372

View attachment 809373

View attachment 809374

View attachment 809375

View attachment 809376

View attachment 809377
[Galaxy S II Android Development] :
Attached. Flash in recovery.
[Galaxy S II Android Development] acras:
Thanx! It works. But could you compile QuickPanelSettings.apk? Because i tried to translate it in Russian.
[Galaxy S II Android Development] :
Send me the russian strings.xml after editing the attached one. I'll try.
[Galaxy S II Android Development] :
Added 2 versions. One re-signed, other not. Try the non re-signed one first. If it doesn't work, then try re-signed one.
[Galaxy S II Android Development] acras:
Thanx! I've managed to do it myself.
[Galaxy S II Android Development] willam71:
Ok, I made the modifications to the smali code ... recompiled the apk ... didn't resign ... and no statusbar :-(

Any ideas/suggestions please?
[Galaxy S II Android Development] barnacles10:
Are you using lidroid-res.apk in framework-res? Did you add the necessary files to SystemUI per OP? If those are both yes then you might not have edited that smali correctly.

I can't remember off the top of my head, but I believe

invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V

is a new line and doesn't replace anything. I replaced a particular line in this file and the statusbar wouldn't load either.
[Galaxy S II Android Development] saszseb:
I'm on jetpack_v7 (XWJVZ) and decompiled/compiled SystemUI.apk. I did 2 version: zipaligned and non-zipaligned. I didn't edit AndroidManifest. Used zipaigned got FCs. Used non-zipaligned, didn't get any FCs, but lost status bar. (TW3 launcher).

What to do?

Thanks.
[Galaxy S II Android Development] :
Post your unmodified systemui.apk files here and I'll take a look at it this evening my time.

That's about 5 hours from now.
[Galaxy S II Android Development] willam71:
Thanks a lost ... will post soon. As in my case this is a rom for Galaxy Note, will you need framework-res.apk too?
[Galaxy S II Android Development] :
Yes. Both framework and twframework.
[Galaxy S II Android Development] willam71:
Please find the files attached. I also included in a separate text file the modifications I attempted to the smali code. Would be eternally grateful if you could tell me where I went wrong.
[Galaxy S II Android Development] saszseb:
siles,

pls. check my modified apk, too. I'd like to know where making the mistake.

Thanks. (SGS1, TW3).
[Galaxy S II Android Development] :
Forgot to mention that i need the framwork files as well to decompile systemui.apk
[Galaxy S II Android Development] saszseb:
Dou you need both?

I used only framework-res.apk to decompile SystemUI.apk.
[Galaxy S II Android Development] shoman94:
You don't need twframework to decompile systemui.
[Galaxy S II Android Development] :
Try this and let me know if it worked.
[Galaxy S II Android Development] :
I am looking into it. Didn't get time yesterday. A bit more confusing than the SGSII.
[Galaxy S II Android Development] saszseb:
Thanks siles for great work.

It works.
[Galaxy S II Android Development] ardatdat:
deleted...
[Galaxy S II Android Development] saszseb:
@silesh,

1. Having built the SystemUI did you get an aapt-warning?

2. Your SystemUI.apk is 256972 bytes, mine is 253060. I think you should do more thing than cut and paste the code.

Could you share the "secret"?
[Galaxy S II Android Development] :
No warning and no secret. I only changed

.line 394 to .line 379 and recompiled.
[Galaxy S II Android Development] willam71:
Do you think you can figure out something with my files? Thanks.

Sent from my GT-N7000
[Galaxy S II Android Development] saszseb:
There isn't ".line 394" (ctrl+F) in the StatusBarService.Smali. The last one is .line 392.

Do you use "apktool"? or "apk manager"?
[Galaxy S II Android Development] :
I am referring to the code that you copy.
[Galaxy S II Android Development] saszseb:
1. Do you think, I use a not appropriate apktool?

2. apktool b SystemUI

I: Checking whether sources has changed...

I: Smaling...

W: Unknown file type, ignoring: SystemUI/smali/com/android/systemui/statusbar/StatusBarService.smali~

I: Checking whether resources has changed...

I: Building resources...

aapt: warning: string 'quickpanel_dc_text' has no default translation in /home/hegyi/SystemUI/res; found: cs da de el es fr it ko nl pl pt ru sv tr

I: Building apk file...

What is this and why getting this message?

I use Ubuntu 11.10.
[Galaxy S II Android Development] walter79:
Could you maybe patch attached files?

I tried it by my own. But it will not work. (6h of work)

Thanks for your help.
[Galaxy S II Android Development] toadlife:
Hey lidroid,

Just wanted to say that you're awesome!

I took this mod and added a 4G (WiMax) toggle button to it and integrated it into my Epic 4G ROM. I removed the flashlight since it would crash SystemUI when the screen went off and removed the reboot and power down buttons, since I already have those in my power menu.
[Galaxy S II Android Development] silver311:
Hm.. i'm not sure what i did wrong but i cant seem to get the statusbar working. It is suddenly gone... >.< Can anybody help me to mod the file? I'm using Galaxy S+. Below are my SystemUI.apk, framework-res.apk and twframework-res.apk

The files

Thank you
[Galaxy S II Android Development] :
Which phone is this for? You don't seem to have a quicksettings panel.
[Galaxy S II Android Development] :
Try the attached file. Dont forget to include the quickpanelsettings.apk and lidroid-res.apk.
[Galaxy S II Android Development] silver311:
owh.. it works now. Thank you so much =D
[Galaxy S II Android Development] :
No problem. Enjoy.
[Galaxy S II Android Development] saszseb:
@silesh,

is it possible to put this statusbar on an odexed ROM,too?

(I9000, custom ROM-XWJW1)

Thanks.
[Galaxy S II Android Development] :
Can try. Procedure would be deodex, make changes and odex back, i guess.

I heard someone tried with no success.
[Galaxy S II Android Development] SunnyOK:
Oh, Lidroid also posts thread here. Support you!

This instruction is quite useful. I have successfully added 14-key statusbar.

Thank you!
[Galaxy S II Android Development] D3abL3:
@sileshnair since you're the man around here (:)) you think you can make this for non-samsung devices?

I leave my SystemUI here, hope you can cuz I tried and tried and tried and tried...well I tried.

Thanks in advance.
[Galaxy S II Android Development] saszseb:
@silesh,

what do line 379 and line394 do? I'm asking, because you changed "line 394" with "line 379" in SystemUI.apk (TW3,JV1 based jetpack7),

but

you didn't change "line 394" in SYstemUI.apk (TW4.5, JV1 based Hybrid ROM).

Do you use apktool1.4.X? Which one?

Thanks.
[Galaxy S II Android Development] :
Regarding what line numbers in smali code mean, refer link below.

http://code.google.com/p/android-apktool/wiki/SmaliDebugging

The line number is changed depending on what the original was.

I use apktool 1.4.2
[Galaxy S II Android Development] aggelosd:
does i work in stock rom with cf root?
[Galaxy S II Android Development] :
Only deodexed roms.
[Galaxy S II Android Development] saszseb:
silesh,

it doesn't work with me.

I did some tests:

a. framework-res.apk and SystemUI.apk of MIUI ROM and ICS.

hegyi@saszseb:~$ apktool if framework-res.apk

I: Framework installed to: /home/hegyi/apktool/framework/1.apk

hegyi@saszseb:~$ apktool d SystemUI.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: /home/hegyi/apktool/framework/1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

hegyi@saszseb:~$ apktool b SystemUI

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

I: Building apk file...

hegyi@saszseb:~$

b. framework-res.apk and SystemUI.apk of jetpack and Hybrid (XWJW1 based):

hegyi@saszseb:~$ apktool if framework-res.apk

I: Framework installed to: /home/hegyi/apktool/framework/1.apk

hegyi@saszseb:~$ apktool d SystemUI.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: /home/hegyi/apktool/framework/1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

hegyi@saszseb:~$ apktool b SystemUI

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

aapt: warning: string 'quickpanel_dc_text' has no default translation in /home/hegyi/SystemUI/res; found: cs da de el es fr it ko nl pl pt ru sv tr

I: Building apk file...

hegyi@saszseb:~$ clear

Why doesn't work on any Samsung ROMs?

What does this "aapt:warning...." mean?

Thanks.

---------- Post added at 08:30 PM ---------- Previous post was at 08:26 PM ----------

odexed,too.
[Galaxy S II Android Development] velenoso84:
Ciao. Sto provando a fixare il problema del flashlight nel SGS ma qualsiasi metodo utilizzi non riesco a visualizzare la statusbar, e se signo tutti gli apk il sistema fa in loop.

Qual'è il metodo giusto?

Google Translate

Hello. I'm trying to fixare flashlight in the SGS of the problem, but using any method I can not see the statusbar, and if all signo apk the system is looped.

What is the proper method?

The mod can make it work but not the flashlight
[Galaxy S II Android Development] :
Try the attached file. Don't forget to include lidroid-res.apk and QuickpanelSettings.apk.

Backup first.

Note to others. Not for sgsii.
[Galaxy S II Android Development] lyduythinh:
Hello @Sileshnair i have the same issue, could you please let me know how to solve?

Kind regards,

Thinh
[Galaxy S II Android Development] :
What is the problem?
[Galaxy S II Android Development] lyduythinh:
When i decompile SystemUI.apk i get an error at below.

Do you know how to solve?

Thanks in advance
[Galaxy S II Android Development] :
You have messed up. 9 PNG images. That's why you are having these issues. If you know to use drawnine patch tool, you can decompile then correct them and recompile.

Or

Extract problem PNG images to desktop, replace them with good ones, decompile, make changes, compile and add back the images that you extracted earlier.

Or

Send the apk to me.
[Galaxy S II Android Development] lyduythinh:
Hello Sileshnair,

I send you two apk file.

Could you please help me to make a change?

Thank you very much.
[Galaxy S II Android Development] :
Attached. Backup first.
[Galaxy S II Android Development] lyduythinh:
Hello Silishnair,

It worked on my phone.

Thank you very much.

If can, could you please let me know, how did you do?

Best regards.
[Galaxy S II Android Development] :
I used option 2 from my previous post.
[Galaxy S II Android Development] micheled:
@sileshnair:

Hi sileshnair,

can you please add the toggle buttons to my SystemUI.apk?

I get always errors.

Thank you very much.

Here are my 2 files.

edit:

I have a GT-I9100 and as ROM XXKL1

Thank you.
[Galaxy S II Android Development] micheled:
Thank you very much...it works!:)
[Galaxy S II Android Development] lyduythinh:
Hello Sileshnair,

1. Extract problem PNG images to desktop: I can use 7Zip to extract and copy them

2. Replace them with good ones: Could you please let me know the detail of this step?

3. Decompile: That means the original SystemUI.apk will be decompiled with an error (about PNG)

4. Make changes: I can

5. Compile: That mean the folder SystemUI will be compiled with error (because the step 3 is still not fixed)

6. Add back the images that you extracted earlier: Could you please let me know how to do it.

Or

The step 5 and 6 should be

5. Step 5: Add back the images that you replaced with good ones

6. Step 6: Compile and Enjoy :)

Any your feedback will be appreciated.

Thank you very much.
[Galaxy S II Android Development] Qobok:
I found another way regarding decompile system with png error.

Decompile the systemUI.apk with error from png file. Make the changes to smali files then compile back the systemUI.apk. It will be an error or more regarding the files but in the build folder you will find classes.dex.

Now open original systemUI.apk with rar/zip and replace the classes.dex with the new classes.dex from build folder.

I tested this procedure and it worked for me.
[Galaxy S II Android Development] lyduythinh:
Hello

For this step

Now open original systemUI.apk with rar/zip and replace the classes.dex with the new classes.dex from build folder.

Do you mean the "original systemUI.apk" it is a apk file before make a change into smali file or this is a systemUI.apk after changed and complied?

Thanks for share.
[Galaxy S II Android Development] kedai:
i might be dense, but all my tries resulted in no statusbar

here's what i did for i9100 DXKL3:

- decompile LidroidSystemUI (apktool d LidroidSystemUI.apk)

- decompile SystemUI.apk (apktool d SystemUI.apk)

- copy -rp LidroidSystemUI/smali/* SystemUI/smali

- compile SystemUI (apktool b SystemUI)

- push lidroid-res.apk /system/framework

- push QuickPanelSettings.apk /system/app

- push SystemUI/dist/SystemUI.apk /system/app

- reboot

no status bar

i know i must've missed a step. didn't change AndroidManifest.xml
[Galaxy S II Android Development] :
Where is the StatusbarService.smali edit ?
[Galaxy S II Android Development] kedai:
initially i edited the AndroidManifest.xml, but still the same result. the next few tries, i didn't edit AndroidManifest.xml since i'm not adding flashlight?

I cant find similar code in the StatusBarService.smali
[Galaxy S II Android Development] :
Attach the systemui.apk and which phone is this for?

Update

:

Replace lines 1072 to 1082 with the modified code from OP. Then replace .line 394 with. line 420

Recompile.
[Galaxy S II Android Development] kedai:
Thanks for the advice. i think i'm still missing something.

i attach my SystemUI.apk for gti9100 dxkl3.

i think once i see the diff between yours and my edit, i'll get it next time?

thanks
[Galaxy S II Android Development] :
Attached. Dont forget to use the QuickpanelSettings.apk and lidroid-res.apk.

Forgot to tell you not to edit lidroid-res.apk in any way. It will result in statusbar FC, at least for me.
[Galaxy S II Android Development] kedai:
thanks. it works. i missed a line ..

thanks again
[Galaxy S II Android Development] Alexban:
@sileshnair

can you help me please?

I'm trying to do a mod for I9000 JVZ ODEX but I get no status bar...

here are my steps:

1. decompile LidroidSystemUI (apktool d LidroidSystemUI.apk)

2. deodex SystemUI.odex (baksmali -x SystemUI.odex)

3. decompile SystemUI.apk (apktool d SystemUI.apk)

4. copy the folder resulted from deodex (com/*) to SystemUI/smali

5. copy LidroidSystemUI/smali/* to SystemUI/smali

6. edit StatusbarService.smali ( here I thing I might have done something wrong)

7. compile SystemUI (apktool b SystemUI); use dexopt-wrapper on the phone to odex SystemUI.apk

8. zipalign SystemUI.apk

9. copy lidroid-res.apk to /system/framework with root explorer

10. copy QuickPanelSettings.apk to /system/app with root explorer

11. copy SystemUI.apk /system/app with root explorer

12. reboot

I've attached StatusbarService.smali

if you need anything else please let me know. I would really appreciate your help!
[Galaxy S II Android Development] :
Nevermind. I'll take a look.

update

: Try the attached StatusbarService.smali
[Galaxy S II Android Development] kedai:
i missed step 6 too. just wasn't sure what to look for. :P
[Galaxy S II Android Development] Alexban:
unfortunately still no status bar... do you think the steps I've described in the previous post are ok?

Thank you so much for your help!

---------- Post added at 03:13 PM ---------- Previous post was at 03:12 PM ----------

I didn't miss it but I wasn't sure about the edits. I don't understand yet that .smali file ( especially the line number convention...)
[Galaxy S II Android Development] :
It should definetely work with the file I uploaded.

The problem might be with your dexopt part.

Can you try it on a deodexed rom?