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

Cool [MOD][Guide/How to]Increase QuickSettings Maximum number (Android 4.4.2, 4.4.4, 5.0)

OP daxgirl

17th January 2015, 12:40 PM   |  #1  
daxgirl's Avatar
OP Senior Member
Flag Jerusalem
Thanks Meter: 4,128
 
2,073 posts
Join Date:Joined: Jun 2012
More
Hello guys!

Little guide for your use. We will increase the maximum number of quick setting items to... (well I prefer 15, but really - to whatever).
This mod will work on any device with quicksettings. It will work from android 4.4.2 to android 5 no problem.

You will need:
1. SecSettings.apk
2. Knowledge in how to decompile/baksmali
3. Any text editor (using Kate here, yay kubuntu)
4. About like... 5 minutes for the entire mod

Let's get crackin':

1. Decompile SecSettings.apk and navigato to smali/com/android/settings/Utils.smali
2. Find the following method:

Code:
.method public static getMaxFavoriteItemNumber()I
    .locals 1

    .prologue
    .line 4459
    invoke-static {}, Lcom/android/settings/Utils;->isGridListUIEnabeld()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4460
    const/16 v0, 0x9

    .line 4462
    :goto_0
    return v0

    :cond_0
    const/16 v0, 0xc

    goto :goto_0
.end method
As you can see it's pretty straight forward: if grid is enabled (in boolean, not by default), set max number to 9 (in green). if it's disabled, set max number to 12 (in red). That's why on s5 it's set to 12 (comes by default with grid, boolean set to false) and on note 4 it's set to 9.

Basically you can just change both numbers to what you want or just the one that fits your needs. Or you can just remove the entire "innerts" of the method and write const/16 v0, 0xf return v0 and be done with it.

No matter what you do, just keep the register 16 bit large (for number greater than 7, which it is already) and stick to hexadecimal format (you can find conversion online).

I personally like the 15 Quick Settings items best (most comfortable for me).

So I just do this (on s5) (in blue is what I change to set the max number to 15):

Code:
.method public static getMaxFavoriteItemNumber()I
    .locals 1

    .prologue
    .line 4459
    invoke-static {}, Lcom/android/settings/Utils;->isGridListUIEnabeld()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4460
    const/16 v0, 0x9

    .line 4462
    :goto_0
    return v0

    :cond_0
    const/16 v0, 0xf

    goto :goto_0
.end method
That's it, recompile and push back (duh!)

Cheers guys, if you find this helpful, use and enjoy!
Attached Thumbnails
Click image for larger version

Name:	2015-01-17 15.37.50.jpg
Views:	4276
Size:	95.6 KB
ID:	3119626  
Last edited by daxgirl; 17th January 2015 at 02:38 PM.
The Following 15 Users Say Thank You to daxgirl For This Useful Post: [ View ]
17th January 2015, 12:56 PM   |  #2  
Senior Member
Thanks Meter: 449
 
635 posts
Join Date:Joined: Oct 2010
Your guides are always the best. Unlike others you don't keep the knowledge just to yourself. Thanks for helping us to mod our roms !

Sent from my SM-N9005 using Tapatalk
The Following 2 Users Say Thank You to DaOldMan For This Useful Post: [ View ]
17th January 2015, 12:57 PM   |  #3  
daxgirl's Avatar
OP Senior Member
Flag Jerusalem
Thanks Meter: 4,128
 
2,073 posts
Join Date:Joined: Jun 2012
More
Thumbs up
Quote:
Originally Posted by DaOldMan

Your guides are always the best. Unlike others you don't keep the knowledge just to yourself. Thanks for helping us to mod our roms !

Sent from my SM-N9005 using Tapatalk

It's always my pleasure, my friend!!! Use and enjoy! Although I don't remember, in the end you guys have the quicksettings on note 3 lolli?
The Following 3 Users Say Thank You to daxgirl For This Useful Post: [ View ]
17th January 2015, 01:47 PM   |  #4  
Senior Member
Thanks Meter: 449
 
635 posts
Join Date:Joined: Oct 2010
Quote:
Originally Posted by daxgirl

It's always my pleasure, my friend!!! Use and enjoy! Although I don't remember, in the end you guys have the quicksettings on note 3 lolli?

In the leaked lp the note 3 settings are terrible. We have only the Tab view and no quick settings whose I terribly miss. I hope the final rom will have more settings then this.
Thomas

Sent from my SM-N9005 using Tapatalk
The Following User Says Thank You to DaOldMan For This Useful Post: [ View ]
17th January 2015, 04:24 PM   |  #5  
Wuby986's Avatar
Senior Member
Thanks Meter: 1,667
 
1,629 posts
Join Date:Joined: Oct 2013
Quote:
Originally Posted by daxgirl

[COLOR="Navy"]
.....
We will increase the maximum number of quick setting items to... (well I prefer 15, but really - to whatever).

you quick setting weirdo :P

nice guide
The Following User Says Thank You to Wuby986 For This Useful Post: [ View ]
17th January 2015, 06:31 PM   |  #6  
daxgirl's Avatar
OP Senior Member
Flag Jerusalem
Thanks Meter: 4,128
 
2,073 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by Wuby986

you quick setting weirdo [emoji14]

nice guide

Sure! At least I have SYSTEM! 😛😛😛 ALL THE TIME! (Well most if the time...)
17th January 2015, 07:19 PM   |  #7  
Member
Thanks Meter: 19
 
46 posts
Join Date:Joined: Jul 2013
More
Quote:
Originally Posted by daxgirl

Hello guys!

Little guide for your use. We will increase the maximum number of quick setting items to... (well I prefer 15, but really - to whatever).
This mod will work on any device with quicksettings. It will work from android 4.4.2 to android 5 no problem.

You will need:
1. SecSettings.apk
2. Knowledge in how to decompile/baksmali
3. Any text editor (using Kate here, yay kubuntu)
4. About like... 5 minutes for the entire mod

Let's get crackin':

1. Decompile SecSettings.apk and navigato to smali/com/android/settings/Utils.smali
2. Find the following method:

Code:
.method public static getMaxFavoriteItemNumber()I
    .locals 1

    .prologue
    .line 4459
    invoke-static {}, Lcom/android/settings/Utils;->isGridListUIEnabeld()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4460
    const/16 v0, 0x9

    .line 4462
    :goto_0
    return v0

    :cond_0
    const/16 v0, 0xc

    goto :goto_0
.end method
As you can see it's pretty straight forward: if grid is enabled (in boolean, not by default), set max number to 9 (in green). if it's disabled, set max number to 12 (in red). That's why on s5 it's set to 12 (comes by default with grid, boolean set to false) and on note 4 it's set to 9.

Basically you can just change both numbers to what you want or just the one that fits your needs. Or you can just remove the entire "innerts" of the method and write const/16 v0, 0xf return v0 and be done with it.

No matter what you do, just keep the register 16 bit large (for number greater than 7, which it is already) and stick to hexadecimal format (you can find conversion online).

I personally like the 15 Quick Settings items best (most comfortable for me).

So I just do this (on s5) (in blue is what I change to set the max number to 15):

Code:
.method public static getMaxFavoriteItemNumber()I
    .locals 1

    .prologue
    .line 4459
    invoke-static {}, Lcom/android/settings/Utils;->isGridListUIEnabeld()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4460
    const/16 v0, 0x9

    .line 4462
    :goto_0
    return v0

    :cond_0
    const/16 v0, 0xf

    goto :goto_0
.end method
That's it, recompile and push back (duh!)

Cheers guys, if you find this helpful, use and enjoy!


but what about 4.2.2 can you please say how to enable them just give instructions..
17th January 2015, 09:09 PM   |  #8  
daxgirl's Avatar
OP Senior Member
Flag Jerusalem
Thanks Meter: 4,128
 
2,073 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by manikar

but what about 4.2.2 can you please say how to enable them just give instructions..

The quick settings in Secsettings.apk is a new function first introduced in samsung galaxy s5 on android 4.4.2. So there is absolutely no way you can have that on 4.2.2.
Cheers!
18th January 2015, 02:03 AM   |  #9  
FelipeGG's Avatar
Member
Flag Guatemala
Thanks Meter: 11
 
43 posts
Join Date:Joined: Jul 2014
More
as you put the settings with white background Note4 style?
18th January 2015, 02:06 AM   |  #10  
daxgirl's Avatar
OP Senior Member
Flag Jerusalem
Thanks Meter: 4,128
 
2,073 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by FelipeGG

as you put the settings with white background Note4 style?

Hey, this is not note 4 style. This is s5 with official lollipop

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

Advanced Search
Display Modes