yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] ramsheart:
@sileshnair

ok i don't get it how to make it works.

i have a deodexed systemui.apk from stock XILA2

decompile it with command : apktool d SystemUI.apk

copy lidroidsystemui\smali\* to systemui\smali

editing StatusBarService.smali with notepad++

change it exactly right with the one you did before for me (the dxkl3 one)

done ? no need to change the androidmanifest.xml right ?

ok, apktool b SystemUI SystemUI.apk

(but i get a different size, my compiled SystemUI.apk = 290kb. yours from the attached for Dlez is = 285kb.)

get the new modified SystemUI.apk, push it to System\app via adb push (n also lidroid-res.apk and quickpanelsettings.apk)

restart the phone, but im not getting the statusbar to work. i don't know what is wrong.

please give me enlightenment...

do i have to sign it first before push it to system ?
[Galaxy S II Android Development] :
After recompiling pull out classes.dex file and replace it in the original SystemUI.apk. Then use that file.

Size difference is becoz of compression. I use apkmanager.

If it doesn't work, send me your modified SystemUI.apk. I'll take a look.

No need to resign.
[Galaxy S II Android Development] ramsheart:
thanks !!!

it works now... thanks for enlighten me xD
[Galaxy S II Android Development] berre:
Hi,

I'm a complete noob at this so bare with me

Some general info on my device:

I have a samsung galaxy S2, flashed it with clockworkmod recovery and rooted with superoneclick.

I am still running 2.3.3,

BB version I9100XXKE4

Kernel 2.6.35.7 codeworkx@cyagenmod #2

Build gingerbread.xwke7

Here we go

1. Download LidroidSystemUI.apk and decompile it whit apktool, then you get LidroidSystemUI dir.

done

2. Decompile SystemUI.apk, copy LidroidSystemUI/smali/* into SystemUI/smali.

I guess I have to take the SystemUI.apk from my device right? I've found it in system/app and decompiled it. Between the 2 files the only difference was that in the SystemUI.apk there was no "smali" directory so I've copied it over

3. Modify SystemUI/AndroidManifeset.xml, add this code before </Application>

I have a flashlight on my device so I can skip this part

4. Open SystemUI/smali/com/android/systemui/status/StatusBarService.smali. Find(Ctrl + F) QuickSettingsView, locate fellow codes

Here I have a problem: I can't find this file, I have "SystemUI/smali/com/lidroid/ directory" instead of "SystemUI/smali/com/android/" and in the "SystemUI\smali\com\lidroid\systemui" directory I don't have a "status" directory... a search for the "StatusBarService.smali" file shows no results

Help please :D

cheers

B
[Galaxy S II Android Development] ramsheart:
@berre

after decompile the original SystemUI.apk and LidroidSystemUI.apk

copy everything in LidroidSystemUI/smali/* (there is 2 folder, com and lidroid) to SystemUI/smali/

now you have SystemUI/smali/com and SystemUI/smali/lidroid

browse to SystemUI/smali/com/android/systemui/statusbar/ open "StatusBarService.smali" with notepad++ .

use find first : "QuickSettingsView"

.line 416 <<< CAN BE DIFFERENT
.local v3, qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
const v7, 0x7f030003

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

move-result-object v3

.end local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

.line 420 <<< CAN BE DIFFERENT
.restart local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;

now Edit

.line 416
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
const v7, 0x3030003

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

move-result-object v3

[B](deleted line .end local v3 .....)[/B]
check-cast v3, Lcom/lidroid/systemui/quickpanel/PowerWidget;

.line 420
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V

iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;

save.

then, compile back with a different name. example : apktool b SystemUI SystemUIedited.apk

and you get SystemUI.apk (original) and SystemUIedited.apk (edited)

use winrar, to open SystemUIedited.apk n extract "classes.dex"

and again use winrar to open SystemUI.apk, delete the original "classes.dex" and add the modified "classes.dex" from the extracted SystemUIedited.apk to SystemUI.apk

and the last is, push SystemUI.apk and QuickPanelSettings.apk to /system/app

and lidroid-res.apk to /system/framework

restart your phone to see if it work

just to make sure. backup original SystemUI.apk to another folder. just in case if its not working, you can go back.
[Galaxy S II Android Development] berre:
that's the problem, I don't have the "android" directory under "com", I only have a "lidroid" directory!

and under this "lidroid" dir I have a "systemui" dir but not a "statusbar" dir

did I maybe decompile incorrectly? I used following command:

apktool d LidroidSystemUI.apk

cheers

b
[Galaxy S II Android Development] :
Your rom is odexed, meaning you have a SystemUI.apk and SystemUI.odex file. Instructions are for a deodexed rom, meaning you have classes.dex inside SystemUI.apk.
[Galaxy S II Android Development] berre:
Indeed it is... sorry I missed this, I'm really really new at this :rolleyes:

Is there somewhere a simple guideline on how to deodex my current (stock) rom or is it easier just to flash a custom rom?

cheers

B
[Galaxy S II Android Development] :
Google xultimate. You can also do it using dsixda kitchen. But you need some basic skills.
[Galaxy S II Android Development] yagolicariao:
What is a deodexed rom? What is the difference, and what i'll change if i deodex my rom?
[Galaxy S II Android Development] :
http://lmgtfy.com/?q=odexed+vs+deodexed+roms
[Galaxy S II Android Development] sherpa25:
How is the 'Lockscreen' toggle suppose to function? Is it for the stock lockscreen to appear, when enabled? And does it have a bearing if I'm using Widgetlocker? Thanks.
[Galaxy S II Android Development] berre:
Hi,

I've flashed VillainROM which is deodexed so I've continued with this

I've replaced the following exactly as is

with

I then compiled and had one warning

I then pushed the files as mentionned but I'm not sure this worked (0 bytes)

After the reboot I don't get the notification bar anymore so I've restored the original one

Anybody any idea what's wrong?

Mainly I have 4 things I think might be the issue:

1) I have the \SystemUI\smali\com\android\systemui\statusbar\StatusBarService.smali directory instead of the SystemUI/smali/com/android/systemui/status/StatusBarService.smali

2) Should I replace the "const v7, 0x7f030003" part as well or should I keep this original and just replace the other lines

3) the warning when compiling

4) something is going wrong with the adb push (0 bytes)

Cheers

B
[Galaxy S II Android Development] :
Send me the systemui.apk. I'll mod it for you. Then decompile it and check the code.

Update

: Attached modded systemui. Note that you have to add lidroid-res.apk for the mod to work and QuickpanelSettings.apk to edit it.
[Galaxy S II Android Development] berre:
Works like a charm now! Thank you very much!

Cheers

B
[Galaxy S II Android Development] :
Yes. It is for enabling/disabling stock lockscreen.
[Galaxy S II Android Development] sherpa25:
Thanks.... but what should appear if the toggle is off? I ask because I still have the same lockscreen when the toggle is either on or off. Or is there a separate thing to setup? Thanks.
[Galaxy S II Android Development] :
You wont have the stock lockscreen if you set it off. Works only with the stock lockscreen.

Useful if you like to use another lockscreen like miui or magic locker. No double lock problems.
[Galaxy S II Android Development] sherpa25:
Thanks. I'm wondering why I still have a lockscreen even if it's toggled off. Might be a lockscreen when I activated ICS theme...hmmm.
[Galaxy S II Android Development] fdbailes:
my modded lines of statusbarservice.smali:

is ok? have some lines more? should i erase it or leave them like that

const v7, 0x3030003

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

move-result-object v3

.end local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

check-cast v3, Lcom/lidroid/systemui/quickpanel/PowerWidget;

.line 420

.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;

iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;

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

i have recompiled and pull out class.dex and put it into original systemui.apk i get status bar but no toggles icons

using stock deodex xila2 rom

any mistake on those lines?
[Galaxy S II Android Development] tossan:
Nice mod. Thank You!

Thanks for pointing this out. I've had a hard time to figure this one out by toggling it on and off on my stock rom with no visual feedback other than that the switch alters between green and white. :D

Another question:

I read through the whole thread and there seems nobody has ever succeeded in adding a toggle for WiFi and/or USB tether? If somebody eventually successfully applied the patch, please share or give some hints how one can achieve this too. I want to make this mod for the Galaxy Ace with stock deodexed rom.

Thanks.
[Galaxy S II Android Development] kedai:
Hi

Anybody has luck applying this on xxlp6? Care to share?
[Galaxy S II Android Development] TheLoonyRebel:
Thank you so much for this mod. This has been great for us on the Stratosphere since we are now starting to get some ROMs developed. Anyhow is there any suggestions as to how one could do theme work with this mod? Can I easily use something such as UOT to theme the look of the status bar with this mod or will I need to use something else? Any suggestions would be most appreciated. Thanks so much in advance.
[Galaxy S II Android Development] :
For individual toggles, you need to theme lidroid-res.apk. You can change only png's. Decompile/recompile not possible.

---------- Post added at 02:29 PM ---------- Previous post was at 02:27 PM ----------

Post the systemui. i'll take a look
[Galaxy S II Android Development] kedai:
attached is the apk
[Galaxy S II Android Development] gcrutchr:
Sileshnair,

Not sure you can integrate it into LP6 as the SystemUI.apk structure has changed and some method names within SystemUI. Systemui is now where the battery % stuff is - used to be framework-res.apk. Li has an LP2 rom with the scrollable quickpanel and has added some of his own .jar files but have not fully figured out what he did.
[Galaxy S II Android Development] :
Thanks for letting me know. I will take a look at his lp2 rom.
[Galaxy S II Android Development] mekhonte:
apparently xUltimate does not support my device (Build number: GINGERBREAD.JPKJ2). is that possible to just deodexed on file using dsixda kitchen? ie.SystemUI?

Could you plz take a look?
[Galaxy S II Android Development] :
I need SystemUI.apk and SystemUI.odex and all the files in your framework folder.

You will need to odex SystemUI.apk back after i add the lidroid mod.

On the other hand, if you want to deodex all system files, send me a zip of your system and framework folder.

or

the factoryfs.img from your rom tar file.
[Galaxy S II Android Development] lidroid:
you can try my newest ROM lidroid-ics-sgs2-0.9.3 (XXLP6): http://cnrdn.com/poZ4， thread: http://bbs.lidroid.com/t-91355-1-1.html
[Galaxy S II Android Development] :
I already did.
[Galaxy S II Android Development] mekhonte:
Thanks man.please check your hotmail.
[Galaxy S II Android Development] HTCDevil:
Works great on my XILA2 deodexed rom. Thanked ;)

Inviato dal mio GT-I9100 usando Tapatalk
[Galaxy S II Android Development] LegendK95:
I have successfully ported them to LP6 you can check my ROM and you're welcome to use my SYSTEMIC but you also need lk95-res.apk from my ROM's framework or lidroid-res.apk from lidroid's ROM (mine is based on lidroid's and removed unnecessary things and it contains my ROM toggles)

Anyway lidroid I hope you see my pm :) I really love your work man
[Galaxy S II Android Development] gcrutchr:
Hi Li,

I did try your newest ICS ROM last week. Very nice!

Did you get my email?

Do you have any instructions for including your quickpanel in the ICS ROMS?

Or is it done the same way as Gingerbread?

Thanks.
[Galaxy S II Android Development] kedai:
Different methinks. Anybody got a working systemui? Else gotta get legend rom and extract systemui. Better yet, documentations
[Galaxy S II Android Development] HTCDevil:
It would be nice if we can change strings.xml (for languages) in res/values of lidroid-res.apk. Waiting for a working apktool or other solution. Thank you very much lidroid and sileshnair.

Inviato dal mio GT-I9100 usando Tapatalk Pro
[Galaxy S II Android Development] gcrutchr:
Here is a donation for your work on this:

Confirmation number: 6E640364D9787822S.

Gary
[Galaxy S II Android Development] mekhonte:
What happend to this thread? The codes are different in JPJK2 I have problem in second code flash light some one please check it out for me
[Galaxy S II Android Development] :
Great attitude to display when you ask for help. :mad:

Attached is a deodexed version with the mods. Backup before trying. This is only for a deodexed rom. If you are running a odexed rom, you need to odex the attached SystemUI.apk. Procedure is available a few pages back. Search for it.
[Galaxy S II Android Development] :
Want to try again? Stock SystemUI.apk from DZKL3 for I9100G, deodexed with xultimate 2.3.3 and lidroid mod added.

You know what to do. Backup before trying.
[Galaxy S II Android Development] mekhonte:
man I didn't mean to be rude it just sometimes when you want to do something and you can't !! that eats you alive!!!!

it worked perfectly and there was no need to re odex it because I did deodexed my ROM.:)
[Galaxy S II Android Development] albsat:
Sorry for doing a question here. Lidroid modification is simply great.

I wonder if it will be possible in the future to have this modification available by downloading it through ODIN or CWM in stock roms?
[Galaxy S II Android Development] raycaster3:
Was wondering of you might be able to help me out with porting this to SGH-T989 samsung galaxy s2? Am wondering if I NEED to make the android manifest edits or if I can get by without it just because the resign every apk has me trippin.

Is it the same as the i9000 I saw posted a few times that they didn't have to make those edits. Thanks for your time.

.:†:.DARKSIDE.:†:.
[Galaxy S II Android Development] :
AndroidManifest.xml edit not required. Send me the SystemUI.apk & framework-res.apk if it is deodexed. I can mod it for you.

IF odexed, i need SystemUI.apk/SystemUI.odex and all files from your framework folder. You will then need to odex the files back after i deodex SystemUI.apk and add lidroid mod.
[Galaxy S II Android Development] sangosnip69:
Hi all!

I need a SystemUI with only the leedroid mod ( no 1% battery etc... ) for my customrom ( SaNgO Vizion ), so someone can made a SystemUI for me? That's with the LA4 baserom, I've attached the stock ( deodexed ) systemUI from the LA4, so please mod it and send me. Thanks
[Galaxy S II Android Development] :
Attached. Dont forget the other 2 files.
[Galaxy S II Android Development] sangosnip69:
Thanks, I will add you in my special thanks.
[Galaxy S II Android Development] raycaster3:
Cool thanks. Had a brain malfunction you need framework for apktool. Thank you though and I'll get em to you here shortly. Or maybe I won't need to... can I just make the edits in the tutorial to the smali file and recompile and push lidroid-res and Quick settings apk? I'll try that first and if I can't I'll post them. Is that cool? Thanks for your help.

EDIT: Ok I think I followed the tutorial correctly... I'm posting these. Would you be so kind as to let me know if I made the proper edits to the SystemUI.apk? Thanks in advance

Edit: I may have dragged the wrong file over to SystemUI.apk. lol not at my machine right now but I'll look ans make sure before you waste your time. Thanks again
[Galaxy S II Android Development] serajr:
sileshnair or lidroid

I have successfully ported this great work for SE Xperia Mini devices (mdpi), but I can't get Flashlight buttom. I have not edited SystemUI.apk AndroidManifest.xml, so it does not has the flashlight activity line. Could you help me solve this issue ?

Thanks... ;)
[Galaxy S II Android Development] yagolicariao:
Someone can help with my systemui.apk? thx!!
[Galaxy S II Android Development] txr33:
Hi I am wanting to have this mod for ICS LPB firmware but with the stock theme. I am trying to do it myself but whenever I try I just get no status bar. If anyone has a stock themed systemui for LPB could they share it or can someone help me with my systemui which I have attached. Sorry for asking but I am not sure what to try.

Thank you in advance for any help.
[Galaxy S II Android Development] :
Its already been done for LPB by someone else. Check the thread below.

http://xdaforums.com/showthread.php?t=1449000

---------- Post added at 05:31 AM ---------- Previous post was at 05:19 AM ----------

Which phone is this for? Lots of problems with your SystemUI. Can't recompile.
[Galaxy S II Android Development] :
Dont forget lidroid-res.apk and QuickpanelSettings.apk
[Galaxy S II Android Development] raycaster3:
Dang you work quick! haha I know I posted an unedited SystemUI.apk. Thanks. Now to compare this with what I did and see how close I am. I appreciate the help.

EDIT: Compared files and I actually did it right I just replaced the reources.arsc instead of classes.dex so I basically sent you an unedited SystemUI.apk. I GREATLY appreciate your generosity and willingness to help people like me who are trying to learn. Cheers.
[Galaxy S II Android Development] :
If you have no led, then you have to edit the AndroidManifest.xml and then sign SystemUI.apk and all other system apps with the same key. That's what Li has mentioned, though no one has got it working yet.
[Galaxy S II Android Development] yagolicariao:
I tried to recompile and doesnt worked here too. Its galaxy s2 with a cusyom rom based on kk1 jamaica stock 2.3.6. So i cant install this?
[Galaxy S II Android Development] :
Which rom?
[Galaxy S II Android Development] Sboulema:
Sileshnair: Could you please write a small tutorial on what edits have to be done to get this working on a 4.0.3 SystemUI.apk ?

I want to learn more smali and be able to do this edit myself for future versions.

Thanks in advance!
[Galaxy S II Android Development] :
I haven't tried it yet on an ics rom. Can you provide me with a ICS SystemUI.apk
[Galaxy S II Android Development] Sboulema:
Here you go!
[Galaxy S II Android Development] vince59it:
sei di terracina???

---------- Post added at 04:00 PM ---------- Previous post was at 03:50 PM ----------

sei di terracina???
[Galaxy S II Android Development] serajr:
Thanks...

I'm gonna try and than i will report here.
[Galaxy S II Android Development] yagolicariao:
mybastock rom. Its a brazilian rom.

http://zumbidroid.blogspot.com/2012/01/rom-mybastock-v111-base-kk1-236-por.html

So cant recompile?
[Galaxy S II Android Development] :
Nope. Not able to recompile.
[Galaxy S II Android Development] Siberian Tiger:
Hi sileshnair .I need your help too :).Can you help me with this?
[Galaxy S II Android Development] :
GB or ICS?
[Galaxy S II Android Development] Siberian Tiger:
Sorry is GB :)
[Galaxy S II Android Development] :
Attached. Backup before using.
[Galaxy S II Android Development] Siberian Tiger:
Thank you sileshnair.

I was trying to do it myself but something i'm missing

Maybe you could make a tutorial?

Thanks again :)
[Galaxy S II Android Development] F4bioo:
Li thanks good work!

[all right now thanks] MOD on \0/
[Galaxy S II Android Development] albsat:
sorry, wrong post..
[Galaxy S II Android Development] F4bioo:
Thanks got it!! the error was the line .line 420 substitutes .line 394

Li thanks this is a great job
[Galaxy S II Android Development] lactardjosh:
Lidroid - this is awesome. Got it working for the Captivate's stock KK4 following your directions.
[Galaxy S II Android Development] karandpr:
@sileshnair

Will this mod work on Samsung Galaxy 551 ? :confused:

I have attached deodexed framework-res.apk and systemUI.apk .

Thanks in advance
[Galaxy S II Android Development] :
I have attached modded SystemUI.apk. Code is a bit different, like Galaxy Note. Check if it works. If it doesn't, let me know theb problem. I'll have a look.

I am not sure if your phone has led flash. If yes, flashlight will work. If no, dont use the flashlight notification toggle. You'll get FC.

Dont forget to include lidroid-res.apk ( in /system/framework ) and QuickpanelSettings.apk ( in /system/app ).

BACKUP FIRST.
[Galaxy S II Android Development] SpaceCaker:
Can someone help me with it?

i cant compile

apk manager / tool/multi tool

isnt working for me -_-

ive attached my

framework res apk

and systemui apk

its from a deodexed rom
[Galaxy S II Android Development] karandpr:
Thank you for your efforts

The mod works flawlessly

:D :)
[Galaxy S II Android Development] :
Attached. Backup before trying. You have problematic .9 png fles in your SystemUI. That's why you can't compile. I have left them as they are.

--------------------------------------------------------------------------
|Tue 02/14/2012 -- 5:51:36.69|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
Could Not Find C:\Users\sileshn\Desktop\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\sileshn\Desktop\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\sileshn\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
[COLOR=Red][B]W: Cant find 9patch chunk in file: "drawable-mdpi/shade_header_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/shade_handlebar.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/quickpanel_plmn_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/quickpanel_title_background.9.png". Renaming it to *.png.[/B][/COLOR]
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
[Galaxy S II Android Development] LiLChris06:
Trying to get this on XWLA4 but I didn't get a status bar when I did.

I changed it before line 420 but maybe it wasn't the right one.

Not sure what to change, but here is the code. :)

const v7, 0x7f030003

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

move-result-object v3

.end local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

.line 420
.restart local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
[Galaxy S II Android Development] :
There are problems. Compare the attached file with yours after decompiling.
[Galaxy S II Android Development] LiLChris06:
Thanks, going to take a look at it now. :)
[Galaxy S II Android Development] SpaceCaker:
Ok thxi will try it :)

Ive moddiefied the systemui manually maybe that caused.th problem ?
[Galaxy S II Android Development] ElHechicero:
It posible make it in ICS?.

I haven´t the code indicate in post one in my SystemUI of ICS.

Any mod for ICS?.

THANKS.