yashsingh1/xdaforums huggingface dataset:
[Galaxy Y GT-S5360 Android Development] evanlocked:
Hello after learning some smali from CM7.2 with clues from b16h22 and percy finally i can implement this MOD to our device and i think it can be implemented too for other GB device soo big thanks goes to:

CREDIT:

Autoradio78

for smali sources and dev of new experiences rom

b16h22

aka lee panda for some references :p

percy for his ported new experiences cm7.2 with this smali :p

ok lets goto Guide:

first of all need some requirment for this MOD

REQUIRTMENT:

*BRAIN

*patient

*know how to decompile Apk file

*notepad++

*apkmanager/apktool/vts are fine

*attached file======== here

1.decompile systemui.apk

2.estract attached file copy attached smali file to smali/com/lidroid/systemui/qickpanel/HERE

and slider_brighness.smali $1,$2 to com/android/systemui/statusbar/here

copy brightness_setting_view.smali,$1,automaticObserver.smali,brightnessObserver.smali to com/android/systemi/statusbar/quickpanel/here

3.copy brightness_seekbar.xml to drawable folder

copy background_bg.png to drawable-ldpi folder

copy quickpanel_brightness_icon.png to drawable-hdpi(in my ui case) u can place it on mdpi foldere or ldpi

copy qp_brightness.xml to layout folder

copy quickpanel_brightness_settings.xml to layout folder

4.open statusbar_expanded.xml with notepad++ add this line

<include layout="@layout/qp_brightness" />

u can place it under linear layout or relative layout

5.go to values folder find string.xml open with notepad++ add this lineabove resources

<string name="brightness_settings_title" />
<string name="brightness_settings_automatic" />

6.open ids.xml open with notepad++ add this line

<item type="id" name="title">false</item>
<item type="id" name="brightness">false</item>
<item type="id" name="automatic">false</item>

7.save all change then recompile your UI project

8.test it on your phone

9.enjoiy

ss:

any problem aplying this mod please report here for sure i will help you:D

enjoy

regards evanlocked
[Galaxy Y GT-S5360 Android Development] percy_g2:
Cool

sent from Xperia P using xda-app
[Galaxy Y GT-S5360 Android Development] evanlocked:
WOOOW new signature new device thats cool :D

Here my modded system ui

U can compare with it

Saya suka file 4shared http://www.4shared.com/android/UsQDAGuu/unsignedunsignedSystemUIjkl__5.html

Give due some credits if u wanna add for this mod
[Galaxy Y GT-S5360 Android Development] raj.parekh07:
Coool
[Galaxy Y GT-S5360 Android Development] 74M3NUMB3RS:
LoL....

Mod Looks Great :thumbup:

Simplicity :thumbup:

Much more simpler than the 1st slider thing ( no offence? )

Thread Closed.

~jasonxD
[Galaxy Y GT-S5360 Android Development] d3cka:
Reserved will try it bro.
[Galaxy Y GT-S5360 Android Development] nvky71:
1.decompile systemui.apk

2.estract attached file copy attached smali file to smali/com/lidroid/systemui/qickpanel/HERE

3.copy brightness_seekbar.xml to drawable folder

copy background_bg.png to drawable-ldpi folder

copy quickpanel_brightness_icon.png to drawable-hdpi(in my ui case) u can place it on mdpi foldere or ldpi

copy qp_brightness.xml to layout folder

copy quickpanel_brightness_settings.xml to layout folder

4.open statusbar_expanded.xml with notepad++ add this line

I am cannot find file attached ?

thank you! I have seen it

no file attachments. smali
[Galaxy Y GT-S5360 Android Development] percy_g2:
:D hehe

---------- Post added at 07:48 PM ---------- Previous post was at 07:47 PM ----------

see requirement

below there its attached
[Galaxy Y GT-S5360 Android Development] alemad:
Reserved

I will apply it today!

Soo cool slider! You are one of the best themers out there/)

Sent from Nemesis HD
[Galaxy Y GT-S5360 Android Development] rio.:
awesome!! you got it bro! now i dont wanna install statusbargrepper.apk just to make it accurate when i slide the brightness :D

Sent from my Android System using Busybox Command.

My work

========================

- AndroBot SGY tweaks

- Nandroid md5 Fixer

- Ext4 to RFS Converter

- (CWM) kernel.tar Installer

- (CWM) Firmware Installer
[Galaxy Y GT-S5360 Android Development] b16h22:
Exellent guide.
[Galaxy Y GT-S5360 Android Development] evanlocked:
attached file attached now :D or can se media fire link heheheheh see post1
[Galaxy Y GT-S5360 Android Development] evanlocked:
im just implement it from yours:D lee panda:D
[Galaxy Y GT-S5360 Android Development] d3cka:
bro there is no smali file in our zip file
[Galaxy Y GT-S5360 Android Development] Manoj The Gamer:
Really cool!
[Galaxy Y GT-S5360 Android Development] evanlocked:
sorry my bad change it nao :( hehehehehe
[Galaxy Y GT-S5360 Android Development] d3cka:
lol take ur time bro no such a hurry
[Galaxy Y GT-S5360 Android Development] evanlocked:
done attached now:D
[Galaxy Y GT-S5360 Android Development] Shane:
SYTEMUI FC ON NEMESIS ONE CAN U MAKE A FLASHABLE ZIP FOR ALL ROMS

bY

SHANE
[Galaxy Y GT-S5360 Android Development] windows112009:
Don't show with my phone Galaxy y duos GT-S6102?

I had manually step by step follow your post.
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
You need to be rooted using a deodex stock or custom rom

if you have followed the steps correctly it will work
[Galaxy Y GT-S5360 Android Development] Fang Leone:
[MENTION=4491442]evanlocked[/MENTION] I decompiled SystemUI.apk and went into smali and com but I could not find lidroid
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
You won't do unless you are using a custom rom with lidroid parts already in the SystemUI.apk

just copy the folder from a systemui.apk that does or create it yourself
[Galaxy Y GT-S5360 Android Development] Fang Leone:
I am doing it on cm7

This guide is for cm7 right ?
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
Iv already done it for cm7

you can use my systemui.apk here

you just need the cm7 patch zip and you can either flash it or extract the SystemUI.apk if you wish to change anything
[Galaxy Y GT-S5360 Android Development] Fang Leone:
Actually I was going to add the slider to my rom called blackdroids lie v4 and provide it.So if possible can u help me ?
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
The simple way is just to decompile my systemui.apk and replace the statusbar Icons with yours if they are themed different

or just copy my lidroid folder to yours then follow the rest of this guide placing to correct files in layout and drawable & so on

you can use mine as reference for how iv edited the xml files mentioned
[Galaxy Y GT-S5360 Android Development] windows112009:
I used custom rom

My phone is rooted
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
Then as long as the rom is deodexed it will work unless

you have missed a step

you have made a mistake

decompile my systemui.apk from my status bar thread in theme section and compare with yours
[Galaxy Y GT-S5360 Android Development] windows112009:
My phone is duos sim.

In layout folder have status_bar_expannd_duos_sim.xml and status_bar_expannd.xml
[Galaxy Y GT-S5360 Android Development] windows112009:
It's working fine with my phone, but I don't see icon brightness. How to fix this?
[Galaxy Y GT-S5360 Android Development] Kenjboy:
can you share your systemui pls..

just wanna compare it with mine..

my statusbar was missing after i followed the steps..

dont know what ive missed..
[Galaxy Y GT-S5360 Android Development] isko95:
how can i have that 4.2.2 like status bar in cm7? looks good :) please reply if someone knows.
[Galaxy Y GT-S5360 Android Development] kid1519:
-->>> Thanks you very much but i think with red patch, we can not work. it is: quickpanel

i think patch of sources and smali you should to create:

SystemUI.apk:

smali\com\.....

res\....

-->>> then you use 7-zip or winrar compression ->> We download and replace, very easy

Notes: i think if any rom do not work because value at public.xml not same with value at .smali

-> For me:

I ATTACH FILE: my SystemUI.apk but i have already decompiled and compression with 7-zip

can you help me, please.

Add and change for me then compression with 7-zip and share me, i will compile.

i am wating for you, my love. :D
[Galaxy Y GT-S5360 Android Development] blackbeard:
:| not working. no slider for me. rest all statusbar working. here's my apk. stock rom
[Galaxy Y GT-S5360 Android Development] paul222008:
help me sir

hi sir thanks for ur guide but i really cant get it to work :'( can u help WID mY Ui

here

http://upfile.mobi/249649
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
see my status bar thread (link in my sig)

just download anyone of the status bars (either stock based or cm7 depending on your rom)

unizip it and decompile my SystemUI.apk

you can then compare it with yours and compare where I have placed the smali and how iv edited the xml in relation to this guide
[Galaxy Y GT-S5360 Android Development] paul222008:
okay thanks sir. im hyperion 8 final rom. can you help wid my UI ? :)

---------- Post added at 06:45 PM ---------- Previous post was at 06:43 PM ----------

im a newbie about this sir hehe mny errrors XD

---------- Post added at 06:48 PM ---------- Previous post was at 06:45 PM ----------

im a newbie sir :) many errors hehe sory sir but i need ur help in reco/deco ^_^
[Galaxy Y GT-S5360 Android Development] richard.elgh:
"2.estract attached file copy attached smali file to smali/com/lidroid/systemui/qickpanel/HERE

and slider_brighness.smali $1,$2 to com/android/systemui/statusbar/here

copy brightness_setting_view.smali,$1,automaticObserver .smali,brightnessObserver.smali to com/android/systemi/statusbar/quickpanel/here"

Can anyone help me with where all the smali-files are going?

I understand that slide_brightness.smali$1 and slide_brightness.smali$2 is going to com/android/systemui/statusbar/.

I guess that brightness_setting_view.smali,$1,automaticObserver is going to com/android/systemi/statusbar/quickpanel/.

Then there's still 5 smali's left. Where are all these going?

This file: brightnessObserver.smali is not even in the smali-zip file. :S

Confused. :)

Thanks for your help!
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
smali\com\lidroid\systemui\quickpanel

BrightnessSlider$BrightnessSettingsObserver.smali

BrightnessSlider.smali

smali\com\android\systemui\statusbar

SlideBrightness$1.smali

SlideBrightness$2.smali

SlideBrightness.smali

smali\com\android\systemui\statusbar\quickpanel

BrightnessSettingsView$1.smali

BrightnessSettingsView$AutomaticObserver.smali

BrightnessSettingsView$BrightnessObserver.smali
[Galaxy Y GT-S5360 Android Development] richard.elgh:
Thanks, will try that tonight. :)
[Galaxy Y GT-S5360 Android Development] richard.elgh:
Thanks, it worked! One question though, in the sources.zip there's a brightness image. A .png file.

Is that supposed to show in the statusbar? If that's the case, I failed somewhere.

EDIT: I might have found it. :)
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
dont think so - if you want an image next to your brightness slider add an image view to the linear layout in qp_brightness.xml
[Galaxy Y GT-S5360 Android Development] richard.elgh:
Wish I could do that. :)
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
open qp_brightness.xml

above

<SeekBar android:tag="slider" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />

put

<ImageView android:paddingLeft="3.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/[COLOR="Red"]ic_brightness[/COLOR]" />

change the drawable value shown in red to the name of your png you want next to your brightness slider (or just call your png ic_brightness) and place the png in res/drawable-ldpi
[Galaxy Y GT-S5360 Android Development] richard.elgh:
Thanks a lot! =)))
[Galaxy Y GT-S5360 Android Development] richard.elgh:
This messed up my brightness settings in a way.

The screen is darker each time until I touch the slider. Even though I don't change the value on the slider, it becomes much brighter if I touch it.

Bug or my fault? :)
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
your fault

I have no such problems

you can compare your status bar to one of mine - if on stock rom I suggest

http://xdaforums.com/showpost.php?p=46189065&postcount=2

In that one I dont use qp_brightness.xml and instead have the line for the brightness slider and all the other sliders directly in quickpanel_quick_settings_space.xml but still has the image view just in a different xml

if on cm7 look at

http://xdaforums.com/showthread.php?p=49468255

that one uses qp_brightness.xml with the image view in the place I said

you can decompile my systemui.apk and compare it with yours
[Galaxy Y GT-S5360 Android Development] richard.elgh:
I do like your SystemUI.apk from the CM7 page. :)

But I would like the slider to be a bit longer. :)
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
you can do that simply by moving the line

<include layout="@layout/qp_brightness" />

and then putting it in its own linear layout so it moves the slider from where it is under the header

so the top half of status bar expanded now looks something like

<LinearLayout android:orientation="vertical" android:id="@id/power_and_carrier" android:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="StatusBar.ClearButton" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/qp_brightness" />
</LinearLayout>

this should make the slider fill the whole width of the status bar under the date header
[Galaxy Y GT-S5360 Android Development] richard.elgh:
Sounds really easy and I understand the changing, still I don't get a statusbar after modded it. :)
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
you may need to resign the apk with zipsigner from playstore using a platform key if you mod a cm7 system apk

and I also made a mistake when typing where to place the line sorry

it should be

<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/qp_brightness" />
</LinearLayout>

I missed out the LinearLayout line
[Galaxy Y GT-S5360 Android Development] richard.elgh:
Acually, it doesn't matter. I realised that even with your SystemUI, I have still got the issue with the screen brigthness. It loses the settings until I touch the bar again.
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
strange - mine stays the same brightness no matter what I do until I change it

maybe you have some kind of auto brightness on

if on cm7 use bieltv.3 cm7 and bieltv.3 kernel
[Galaxy Y GT-S5360 Android Development] richard.elgh:
It is indeed strange. Same thing if I change brightess under settings.

Checked for an auto button for brightess, but found none.
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
dunno what to suggest other than if you are using cm7 use bieltv.3 rom and kernel as other kernels or tweaks maybe effecting the brightness settings

and you could always reflash the rom and test it
[Galaxy Y GT-S5360 Android Development] richard.elgh:
I'm on Rage Kernel, but can try FXP kernel. :)
[Galaxy Y GT-S5360 Android Development] natalya:
Help?

Hi guys,

was wondering if anyone could please help me mod this SystemUI.apk so it has this awesome brightness slider feature? :)

I have been trying but I get errors all the time, I need help, please. :fingers-crossed:

PS: OP is an awesome person, lots of kudos to [MENTION=4728903]marcussmith2626[/MENTION] for being so friendly!
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
flash this zip in cwm with system mounted

if you get status error0 its because your phone has a different update binary to mine

just unzip it and copy SystemUI.apk to system/app with a root brower and set permissions to rw-r-r and restart (its better to flash it though)

I havent tested it as iv no idea where your systemui has come from so make a nandroid backup in case it force closes or your statusbar goes walkies
[Galaxy Y GT-S5360 Android Development] natalya:
It actually works!

You did it in one go, amazing job! THANKS!
[Galaxy Y GT-S5360 Android Development] vikrantgmail:
i didn't understand the 2. step which is copy file attached file (smali) to com/lidroid/systeui/qickpanel/here .... do we need to add that all smali files again to that path after moving the files to the location given in 3rd and 4th step ...??
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
I wrote the list a few pages back add the smali at the following locations

smali\com\lidroid\systemui\quickpanel

BrightnessSlider$BrightnessSettingsObserver.smali

BrightnessSlider.smali

smali\com\android\systemui\statusbar

SlideBrightness$1.smali

SlideBrightness$2.smali

SlideBrightness.smali

smali\com\android\systemui\statusbar\quickpanel

BrightnessSettingsView$1.smali

BrightnessSettingsView$AutomaticObserver.smali

BrightnessSettingsView$BrightnessObserver.smali
[Galaxy Y GT-S5360 Android Development] acermedo:
Vikrantgmail

In step 2 you have to copy brightness slider, BrightnessSlider$BrightnessSettingsObserver smalis only

Edit

Srry.Didn't see marcussmith post
[Galaxy Y GT-S5360 Android Development] vikrantgmail:
Hope will get success this time

hello , i did proper coding , recompiled my project successfully , installed it through CWM Recovery ,,, but it gets force close ...:( i tried with and without status greper app .. both the time it gets force close ... ? any solution ,, though to be more clear i have attached my stock systemui.apk ..

hope you would help me out to get this brightness effect in my systemui.apk ... THANKS !!

Note :- i am a non samsung device user .

have a deodexed rom .
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
this mod doesnt require status greper

is that your unmodded systemui?

are you using gingerbread (although I know it works on ics as iv used it in cm9)
[Galaxy Y GT-S5360 Android Development] vikrantgmail:
yes i use gingerbread rom , and that is unmodded file .. stock clean .. systemui.apk ,,can you help me & try to add that brightness mod in my given systemui.apk ?? Thanks !!
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
try flashing the following in cwm with system mounted

if you get a status error 0 when flashing in cwm it means your phone uses a different update binary to mine - you can either unzip it and just push the SystemUI.apk to system/app and set permission to rw-r-r but its better to flash it so create a flashable zip with your phones update binary and updater script

iv no idea if it will work so as ever make a nandroid backup first
[Galaxy Y GT-S5360 Android Development] vikrantgmail:
:) its working , but just a small white vertical line is seen before my carrier ... no issues i will fix it myself... if not then i will surely contact you !! And Thanks again !! :D
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
thats good - iv done this mod so many times I can do it in my sleep lol
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
I have re-wrote this guide with simple step by step full english instructions including different layouts for stock gb cm7 and cm9

im just waiting on [MENTION=4491442]evanlocked[/MENTION] to give me permission in order to post it
[Galaxy Y GT-S5360 Android Development] vikrantgmail:
can you give some tutorial to add date in top of that brightness slider ... or you know some code to implement it in status_bar_expanded.xml file .... Hoping some help ... :D :)
[Galaxy Y GT-S5360 Android Development] Mranggapo:
[MENTION=4728903]marcussmith2626[/MENTION]

sir ive comparing your systemui and mine, but mine didnt showed up

statusbar lost but no fc

must i have lidroid button ?

im just having aokp button
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
A lost status bar normally means a sign missmatch

try signing your apk with a platform key using zipsigner (playstore)

lidroid isnt needed (although you will have a folder called lidroid in your smali but you dont need the toggles)

also compare on a like for like - eg if you are doing it on stock compare my stock same for cm7 asop and cm9

everything is the same except where I have put include @qp_brightness.xml

I have included this in my guide but still waiting on permission from [MENTION=4491442]evanlocked[/MENTION] to post it
[Galaxy Y GT-S5360 Android Development] Mranggapo:
and sir my expanded didnt have relative layout like you post above

and i dont understand what is relative layout,frame layout image view and such
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
that was for adding a data and clock header to the status bar - nothing to do with brightness slider

just copy all of that code including <relativelayout and place it under

<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
[Galaxy Y GT-S5360 Android Development] Mranggapo:
i can place it anywhere sir ?

and where do i put the smali ? in the op says put two smali in lidroid folder right ?

i didnt have that
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
directly under that line I gave

you are confusing two mods here

are we talking about the brightness slider or the clock and date mod I posted a few posts up

if we are now talking about the brightness slider ignore all what I said and follow the guide on the 1st post

to know where to put the smali look at my post on previous page

http://xdaforums.com/showpost.php?p=51984800&postcount=223

and if you dont have the lidroid folder simply create it
[Galaxy Y GT-S5360 Android Development] vikrantgmail:
force closed :(

I tried perfectly.. recompile but it force closed :( .. i use apk multitool .. which tool you prefer ?? ..if you get some time would you can add it in my apk (already Modded,just check it & fix if possible.) ?? :) ....THANKS for your quick reply and help ... !!
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
might be where you placed it in status_bar_expanded you just to copy and paste all that code and place under

<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">

here is one of my status_bar_expanded.xml from a stock rom so you can compare

I use apktool on my pc
[Galaxy Y GT-S5360 Android Development] vikrantgmail:
I edit my previous post, i have given my whole modded apk .. can you fix it out ?
[Galaxy Y GT-S5360 Android Development] TheFixItMan:
the reason im guessing its force closing is because of this line

<include android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/topwise_viewflow" />

you have said include that but its not within any layout

iv done two version moving that line around so you can try both see if it works
[Galaxy Y GT-S5360 Android Development] vikrantgmail:
Non of that versions are working .... :( ... if you have any final solution then give it ...other wise leave it ..already you have helped me too much ... :) :D