Fight the Heat and Conserve Battery with EaseUS Coolphone

Memory hungry Android applications are often responsible for making our device … more

Battery Charged in 30 Seconds? Maybe in 2016

Phones and tablets are getting more and more power hungry with each passing generation. Their … more

ZArchive Manages Your File Archives

Today smartphones are quite powerful devices that can handle multiple processes at once. In fact, some of … more

Regain Double Tap to Wake Functionality on the Nexus 6

A few months ago, Google announced its newest flagship device, the Nexus 6, alongside … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD][GUIDE] How to move Quickpanel toggle button to bottom

OP d3cka

7th December 2012, 08:30 PM   |  #1  
d3cka's Avatar
OP Senior Member
Thanks Meter: 338
 
546 posts
Join Date:Joined: Jul 2012
More
Hi guys...

i just wanna share to you all, this guide about how to move quickpanel toggle button to bottom.

how to do this, u have to decompile SystemUI.apk and edit StatusBarService.smali.

search this code :

Code:
const v7, 0x7f030002

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 352
.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;

invoke-virtual {v7, v3, v12}, Lcom/android/systemui/statusbar/ExpandedView;->addView(Landroid/view/View;I)V
and change mExpandedView & ExpandedView to mCloseView & CloseDragHandle

your new code should be :

Code:
const v7, 0x7f030002

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 352
.restart local v3       #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mCloseView:Lcom/android/systemui/statusbar/CloseDragHandle;

invoke-virtual {v7, v3, v12}, Lcom/android/systemui/statusbar/CloseDragHandle;->addView(Landroid/view/View;I)V
save and close. now compile your SystemUI.apk.

i hope you like it, and dont forget to press thanks

credit : .x.x.x.Peria@xda


Attached Thumbnails
Click image for larger version

Name:	SC20121208-014252.png
Views:	7982
Size:	17.8 KB
ID:	1544852  
Attached Files
File Type: apk bottom-SystemUI.apk - [Click for QR Code] (180.9 KB, 321 views)
Last edited by d3cka; 8th December 2012 at 04:54 PM.
The Following 15 Users Say Thank You to d3cka For This Useful Post: [ View ]
8th December 2012, 02:19 AM   |  #3  
kentoi me's Avatar
Senior Member
Flag lost city
Thanks Meter: 38
 
410 posts
Join Date:Joined: Feb 2012
More
Wew.. again... spices for my mod.. hitted mr. Op.. thanks a lot...

Sent from my GT-S5360 using xda premium
8th December 2012, 02:39 AM   |  #4  
deathnotice01's Avatar
Recognized Themer
Flag Cebu
Thanks Meter: 3,203
 
8,253 posts
Join Date:Joined: Feb 2012
Donate to Me
More
i dunno what the hell is wrong with my systemui but this does not work for me,
tried changing also the versions in smali codes,
still does not work
8th December 2012, 03:18 AM   |  #5  
d3cka's Avatar
OP Senior Member
Thanks Meter: 338
 
546 posts
Join Date:Joined: Jul 2012
More
Yeah first time i edit my moded systemui its really confusing and lil bit different. But i try with stock systemui, only those lines will take effect. Maybe u edit the wrong lines. Try again bro.

Sent from my GT-S5360 using xda premium
8th December 2012, 03:50 AM   |  #6  
deathnotice01's Avatar
Recognized Themer
Flag Cebu
Thanks Meter: 3,203
 
8,253 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by d3cka

Yeah first time i edit my moded systemui its really confusing and lil bit different. But i try with stock systemui, only those lines will take effect. Maybe u edit the wrong lines. Try again bro.

Sent from my GT-S5360 using xda premium

the lines are correct even b16h22 checked it,
i give up on that thing,

this post is biodegradable,
save the trolls from extinction,
be biodegradable
8th December 2012, 10:15 AM   |  #7  
Senior Member
Thanks Meter: 36
 
356 posts
Join Date:Joined: Feb 2012
Where u get this guide?
From temporary grup galyounger?

If yes plis add credit

Sent from my GT-S5360 using xda app-developers app
The Following User Says Thank You to shoutokuyaki For This Useful Post: [ View ]
8th December 2012, 10:19 AM   |  #8  
deathnotice01's Avatar
Recognized Themer
Flag Cebu
Thanks Meter: 3,203
 
8,253 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by shoutokuyaki

Where u get this guide?
From temporary grup galyounger?

If yes plis add credit

Sent from my GT-S5360 using xda app-developers app

I think a lot of people knew this already,
But evan was the first to make it work

this post is biodegradable,
save the trolls from extinction,
be biodegradable
8th December 2012, 11:15 AM   |  #9  
d3cka's Avatar
OP Senior Member
Thanks Meter: 338
 
546 posts
Join Date:Joined: Jul 2012
More
Quote:
Originally Posted by shoutokuyaki

Where u get this guide?
From temporary grup galyounger?

If yes plis add credit

Sent from my GT-S5360 using xda app-developers app

No. I search on xda. Im on mobile cant give u the link.

Sent from my GT-S5360 using xda premium
8th December 2012, 01:46 PM   |  #10  
Senior Member
Thanks Meter: 36
 
356 posts
Join Date:Joined: Feb 2012
ok
i respect ur work...

i'am not troll :screwy:

Sent from my GT-S5360 using xda app-developers app

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes