Xiaomi Business Model Unlike Usually Conceived

This article explains how Xiaomi sells phones not just to be a mobile OEM, but also to seed … more

Note 4 Launcher Theme Collection

If you like the features and integration of the TouchWiz Launcher on your Note 4, FrenchFamousTeam put … more

Verizon Allows Customers to Opt Out of Supercookies

Following the controversy that Verizon’s zombie “supercookies” … more

Note 3 Camera Mod Brings You Multi DPI

This mod for the Note 3 (SM-N9005) camera will give you multi DPI support as well as lift the … 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]25 Easy Grid Toggles (COPY PASTE WORK!)(NoobFriendly)

OP SpaceCaker

21st August 2014, 12:06 PM   |  #1  
SpaceCaker's Avatar
OP Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,848
13,406 posts
Join Date:Joined: Mar 2011
With ease!

As many people know porting the lidroid toggles to you're stock device is a lot of work especially when u port the grid toggles.
why ?
because these toggles all needs you to add all ids and such and then in all smali you need to fix 0x730254 etc values.
BUT NOW!!! that time is over i have been working on these toggles for a few days now and its set so it will get all values etc with only packagename
so you only need to copy paste the stuff i say you to


- Patient
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ etc,

1. Decomple SystemUI.apk
Add the following values to ids.xml
    <item type="id" name="spomc_toggle_toggle_button">false</item>
    <item type="id" name="spomc_toggle_icon_button">false</item>
    <item type="id" name="spomc_toggle_text_button">false</item>
2. SystemUI/res/values/strings.xml
Add the following strings to strings.xml
      <string name="spomc_always_use_accessory">Use by default for this USB accessory</string>
    <string name="spomc_bt">BT</string>
    <string name="spomc_data">Data</string>
    <string name="spomc_rotate">Rotate</string>
    <string name="spomc_wifi">Wi-Fi</string>
    <string name="spomc_gps">GPS</string>
    <string name="spomc_wifiap">Wi-Fi AP</string>
    <string name="spomc_airplane">Airplane</string>
    <string name="spomc_vibrate">Vibrate</string>
    <string name="spomc_silent">Silent</string>
    <string name="spomc_torch">Torch</string>
    <string name="spomc_sync">Sync</string>
        <string name="spomc_settings">Settings</string>
        <string name="spomc_control">Controller</string>
        <string name="spomc_ram">Clear RAM</string>
        <string name="spomc_brightness">Brightness</string>
        <string name="spomc_weather">Weather</string>
        <string name="spomc_volumes">Volume</string>
        <string name="spomc_widgets">Widget</string>
        <string name="spomc_reboot">Reboot</string>
        <string name="spomc_battery">Battery</string>
        <string name="spomc_troll">Troll</string>
        <string name="spomc_flash">Flash</string>
        <string name="spomc_prev">Previous</string>
        <string name="spomc_next">Next</string>
        <string name="spomc_play">Play/Pause</string>
        <string name="spomc_sleep">Sleep</string>      
        <string name="spomc_default_wifi">WIFI</string>
    <string name="spomc_default_bt">BT</string>
    <string name="spomc_default_gps">GPS</string>
    <string name="spomc_default_rotate">ROTATE</string>
    <string name="spomc_default_vibrate">VIBRATE</string>
        <string name="spomc_default_control">CONTROL</string>
    <string name="spomc_default_sync">SYNC</string>
        <string name="spomc_default_data">DATA</string>
    <string name="spomc_default_silent">SILENT</string>
        <string name="spomc_default_settings">SETTINGS</string>
        <string name="spomc_default_airplane">AIRPLANE_MODE</string>
        <string name="spomc_default_ram">CLEAR_RAM</string>
        <string name="spomc_default_brightness">BRIGHTNESS</string>
        <string name="spomc_default_weather">WEATHER</string>
        <string name="spomc_default_volumes">VOLUMES</string>
        <string name="spomc_default_widgets">WIDGETS</string>
        <string name="spomc_default_reboot">REBOOT</string>
        <string name="spomc_default_battery">BATTERY</string>
        <string name="spomc_default_troll">TROLL</string>
        <string name="spomc_default_flash">FLASH</string>
        <string name="spomc_default_prev">PREV</string>
        <string name="spomc_default_next">NEXT</string>
        <string name="spomc_default_play">PLAY</string>
        <string name="spomc_default_sleep">SLEEP</string>
        <string name="spomc_default_profile">PROFILE</string>
        <string name="spomc_default_cpu">CPU</string>
3. SystemUI/res/values/styles.xml
Add the following strings to styles.xml
    <style name="brucekey_icon">
        <item name="android:disabledAlpha">?android:disabledAlpha</item>
        <item name="android:background">@drawable/togglebtn_bg</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
3. Copy paste the Attached Content.zip to ur systemui/
This will add the resources,arrays.xml,layout and toggle smali's
4. SystemUI/res/layout/**** any layout you want.
add the following in it to load the toggles.
<com.spacey.xperiatabs.toggles.TogglesView android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" />
5. Now compile the systemui.apk and it should be working
6. Add the ToggleSettings.apk to system/app

  1. Data toggle Possibly working not sure yet
  2. DONT! change any png names or string names etc it wont work
  3. Profile Picture and Name are set blank if u select it pres sthe toggle and edit it to ur name and a picture. the picture will appear if you reboot.

  • AuliaYF
  • AOKP
  • CM
  • TentenPonce
  • TuxKids
  • Aryne
  • Potato Bro's
  • MOSP team
  • SonyXperiaZ2 for toggle pngs
  • Dedy Prayetno
  • SpaceCaker ofcourse!

Content.zip dl link https://dl.dropboxusercontent.com/u/.../ContentV9.zip
or see bottom of post for attached zip

ToggleSettings dl link https://dl.dropboxusercontent.com/u/...leSettings.apk
or see bottom of post for attached apk
Attached Files
File Type: apk ToggleSettings.apk - [Click for QR Code] (764.9 KB, 206 views)
File Type: zip ContentV9.zip - [Click for QR Code] (150.1 KB, 109 views)
Last edited by SpaceCaker; 26th August 2014 at 04:32 PM.
The Following 3 Users Say Thank You to SpaceCaker For This Useful Post: [ View ]
21st August 2014, 12:06 PM   |  #2  
SpaceCaker's Avatar
OP Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,848
13,406 posts
Join Date:Joined: Mar 2011
  • V9 Ninth release:
  • 10 new toggles! Yeah you heard it right !!! 10 NEW TOGGLES!
  • Play/Pause, Previous, Next Music buttons.
  • Cpu Toggle ( shows current cpu speed, update on press)
  • Profile Toggle ( Change name and Picture)
  • Reboot toggle
  • Battery toggle
  • Troll toggle
  • Flash Toggle
  • Sleep Toggle
  • Scrollview fixation.
  • Some bugfixes
  • More ??
  • V8 Eight release:
  • Private release this was for testers.
  • Unreleased on XDA
  • V7 Seventh release:
  • Add New Weather Toggle ( Need Google News And Weather app installed Also known as GenieWidget.apk)
  • Add Volumes Toggle ( Work In Progress ;P )
  • Brightness Popup Touch outside dialog will close it
  • Small Bug Fix
  • V6 Sixth release:
  • Possible Data on/off fix ( hope it works properly :P )
  • Fix Single time open Settings,Control and Brightness only.
  • Small Bugfixes in toggle code.
  • V5 Fifth release:
  • Add Brightness Toggle.
  • Layout fix for 2row toggles
  • Brightness Slider PopUp (MUAHHAHAHA Tricky way of doing it but works lol)
  • FC fix
  • V4 Fourth release:
  • Toggle Layout
  • Toggles JB switch look feel or 4 Row normal toggles
  • V3 Third release:
  • Added Reorder method. special thanks to Dedy
  • V2 Second release:
  • Added JB api version for collapsestatusbar
  • now on 4.1+ it will close statusbar onlongclick and settings/control toggle click aswell
  • V1 Initial Release:
  • firstbuild

  • Weather widget not working???:
  • This is possible cause of you not having set up ur location in Google News and Weather app.
  • You also might not have GenieWidget.apk installed. Try the attached apk
  • Profile Picture not working or updating???:
  • This is being worked on as of now reboot device or restart systemui to apply change.
Attached Files
File Type: apk GenieWidget.apk - [Click for QR Code] (746.5 KB, 17 views)
Last edited by SpaceCaker; 26th August 2014 at 04:31 PM.
23rd August 2014, 10:48 PM   |  #3  
SpaceCaker's Avatar
OP Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,848
13,406 posts
Join Date:Joined: Mar 2011
Guide Updated
Refollow the guide to make sure no problems happen
check changelogs
Last edited by SpaceCaker; 23rd August 2014 at 10:50 PM.
26th August 2014, 04:33 PM   |  #4  
SpaceCaker's Avatar
OP Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,848
13,406 posts
Join Date:Joined: Mar 2011
Guide Updated 10 new toggles some bugfixes and mure
30th August 2014, 03:37 PM   |  #5  
Viper The Ripper's Avatar
Recognized Contributor
Thanks Meter: 933
1,981 posts
Join Date:Joined: Nov 2012
Originally Posted by SpaceCaker

Guide Updated 10 new toggles some bugfixes and mure

Amazing work!
29th November 2014, 03:01 AM   |  #6  
Senior Member
Flag Coochbehar
Thanks Meter: 289
268 posts
Join Date:Joined: Aug 2014
Sir i follow ur amother guide it was awesome but..when i follow this i get recompile error..i mod ui for my galaxy star 5282 jb 4.1.2 Ur awesome themer
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes