Sony Xperia Z3 Lollipop Framework Ported to CM12

Android 5.0 for Xperia has a unique look and feel. You don’t have to get a Sony … more

Do You Use Recents as a Task Switcher?

Google introduced a revamped Recents interface with Lollipop in the hopes of making it easier for … more

YU Yureka All-in-One ToolBox (CM12S Only)

This packed toolbox by XDA Senior Member gohel.vishal makes many useful tweaks … more

Sony Xperia Z4 Forum Now Available

Sony’s Xperia line has seen plenty of development on XDA, and now that the Xperia Z4 has been … more
Thread Deleted Subscribe to Thread Email Thread

[4.4] True Quick Settings

Prev Previous Post   Next Post Next
24th March 2014, 06:34 AM |#1  
AndroPlus's Avatar
OP Senior Member
Flag Kyoto
Thanks Meter: 1,833
789 posts
Join Date:Joined: Mar 2013
Donate to Me
Sony divided notification and quick settings in 4.4, but it's not easy to use quick settings with one finger now.
I managed to show quick settings in notification tab!
Click image for larger version

Name:	Screenshot_2014-03-24-14-03-20.png.png
Views:	14329
Size:	43.7 KB
ID:	2646930

SystemUI Patcher can do same thing!

1. Decompile SystemUI.apk

2. Open SystemUI.apk\res\layout\somc_tabs_status_bar_expan ded.xml, then edit
             <  android:orientation="horizontal" android:id="@android:id/tabs"  android:layout_width="fill_parent" android:layout_height="wrap_content"  />
<  android:orientation="horizontal" android:id="@android:id/tabs"  android:layout_width="fill_parent" android:layout_height="0.0dip"  />
This will hide tabs.

3. Open SystemUI.apk\res\layout\somc_quick_settings_tab.xm l and copy LinearLayout
For example (.681),
    <LinearLayout  android:orientation="vertical" android:id="@id/tools_rows"  android:layout_width="fill_parent" android:layout_height="wrap_content"  />
4. Open SystemUI.apk\res\layout\somc_notifications_tab.xml and paste "3."'s LinearLayout above
<include layout="@layout/status_bar_expanded_stylus_actions" />
For example (.681),
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout  android:orientation="vertical" android:id="@id/notifications_tab"  android:layout_width="fill_parent" android:layout_height="wrap_content"  android:animateLayoutChanges="false"
<LinearLayout  android:orientation="vertical" android:id="@id/tools_rows"  android:layout_width="fill_parent" android:layout_height="wrap_content"  />
    <include layout="@layout/status_bar_expanded_stylus_actions" />
5. Now quick settings should be shown on notification tab, but tiles are too big.
To make them smaller, open SystemUI.apk\res\values\dimens.xml and edit
    <dimen name="notification_panel_tools_row_height">100.0dip</dimen>
to 50.0dip or something you like.
Attached image is 50.0dip

If you want to change items per row,
open SystemUI.apk\res\values\integers.xml and edit
<integer name="config_maxToolItemsInARow">4</integer>
6. Save all and compile.

7. Install SystemUI.apk with adb or recovery, Done!

Modded SystemUI.apk for Z1 .681 deodexed can be downloaded from here (Xperia logo home ver.) (flashable)
Note this apk will not work on custom rom.

I added quick settings tile setting to SystemUI Patcher.
I have no knowledge to integrate list preference, so tiles per low is fixed to 6 at the moment
Last edited by AndroPlus; 22nd September 2014 at 09:07 AM.
The Following 23 Users Say Thank You to AndroPlus For This Useful Post: [ View ]
Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes