FORUMS
Remove All Ads from XDA

[MOD] 15 Toggles in ICS blue for the VZW S3 and Tether Bypass *UPDATE 8/12*

281 posts
Thanks Meter: 545
 
By electron73, Senior Member on 4th August 2012, 02:16 PM
Post Reply Email Thread
Hey guys,

I just successfully ported the 15 toggle mod with blue toggles and blue battery icon to the VZ S3 (Deodexed VRLF2 ROM).

I did this before on the NOTE, so now for the Verizon S3 VRLF2 and VRLG1 based ROMs I present: My "official" port with brightness slider,
painstakingly "transplanted" from an existing version I found for the I9300 into the SynergyRom for I535.
This should work with all deodexed VRLF2/VRLG1 ROMs though!


Update 8/12:

Toggles with theming for SynergyROM 1.5, 1.6 and 1.7 (SystemUI was unchanged between these three ROMs):
http://electron73.org/XDA/S3/synergy..._4_Synergy.zip

Wifi tether entitlement check bypass for SynergyROM 1.6:
http://electron73.org/XDA/S3/synergy..._Synergy16.zip

Wifi tether entitlement check bypass for SynergyROM 1.7:
http://electron73.org/XDA/S3/synergy..._Synergy17.zip


The tethering bypass completely removes the entitlement check from the built in stock WIFI hotspot feature, so it can be used freely via the regular menu switch (usually pops up a message asking for separate subscription) or the blue 15 toggle WIFI AP switch. No more need to use a separate
app for the hotspot. I always found the internal one more stable and turns on/off faster.
Newest version also completely deletes the SPG.apk which is responsible for the entitlement check and tethering management.
So I would assume (NO guarantees, of course!) that this is the best way to tether without VZ knowing.
My personal advice, especially for unlimited plans: Use occasionally and in moderation or pay for the official feature!



As always: Flash at your own risk! IF you like it, PLEASE massage that THANKS button for me
----------------------------------------------------------------------------------------------------------------------


Attached is a screenshot of the result on my phone.



The following steps I found out by doing file comparisons between a modded and an unmodded SystemUI, so here is what I found in hopes of being helpful to anyone interested in porting or transplanting the toggle mod the way I did. I later found out there is an existing guide by wanam here.

The Toggle-Mod explained - How to transplant the toggled from a (foreign) ROM or add-on ZIP (containing a SystemUI.apk) to YOUR ROM:

Using apktool I decompiled both my SystemUI.apk and the one from AndroidGX in the I9300 forum.

1) Copy the entire smali/com/wanam folder over. It contains all the scripts for the toggles. We need those.

2) Open res/values/ids.xml and add as the last line before the closing tag:
Code:
<item type="id" name="exp_power_stat">false</item>
3) Open res/values/public.xml and add as last line before closing tag:
Code:
<public type="id" name="exp_power_stat" id="0x7f0f00d9" />
4) Open res/layout/tw_status_bar_expanded.xml and change
Code:
    <HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="wrap_content"
to:
Code:
    <com.wanam.systemui.quickpanel.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
    <HorizontalScrollView android:id="@id/quicksetting_scroller" android:visibility="gone" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="wrap_content"
Also in this same file the brightness slider can be turned on by removing the android:visibility="gone" from the following line:
Code:
            <LinearLayout android:orientation="horizontal" android:focusable="true" android:visibility="gone" android:clickable="true" android:layout_width="fill_parent" android:layout_height="56.0dip">

5) Now comes the trickiest part, editing the SMALI code for the statusbar. It can be found at smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali.
Describing the exact edits (inserts) here would turn this into a monster, so I attached a ZIP with the PhoneStatusBar.smali BEFORE and AFTER. Feel free to use TotalCommander or any other file compare tool to see what was inserted where. All I had to do was insert code in the right spots. Nothing needs to be deleted.


6) With all the changes in place, I used APKTOOL again to compile the whole thing and then used zipalign on the resulting file to get a nice, zipaligned, distributable SystemUI.apk.

ZIP files that install everything along with the other needed parts (lidroid.res and QuickPanelSettings.apk) can be found everywhere, so I just took one of these and dropped my SystemUI.apk in there.

Well.. I hope this information was helpful and can be used by more devs to offer this great mod in their ROMs

Credits go to:
lidroid, wanam for the original toggle code and AndroidGX for the i9300 version
Attached Files
File Type: zip PhoneStatusBar.zip - [Click for QR Code] (56.2 KB, 233 views)
The Following 43 Users Say Thank You to electron73 For This Useful Post: [ View ] Gift electron73 Ad-Free
 
 
4th August 2012, 02:32 PM |#2  
skiddingus's Avatar
Senior Member
Flag Canton Ohio
Thanks Meter: 44
 
More
Sweet. Flashing now.

Update. Works great so far. I'm still on Synergy 1.1. Thank you!!!
4th August 2012, 02:40 PM |#3  
thunderbread's Avatar
Senior Member
Flag Orlando
Thanks Meter: 110
 
More
Thanks man. This is working perfect.

Sent from my SCH-I535 using Tapatalk 2
4th August 2012, 02:41 PM |#4  
Jay Evans's Avatar
Senior Member
Flag York, PA
Thanks Meter: 147
 
More
Great! Precisely what I was looking for. Love the Torch and Brightness

Sent from my GT-P7510 using Tapatalk 2
4th August 2012, 03:00 PM |#5  
Jurassitol's Avatar
Senior Member
Thanks Meter: 64
 
More
Ah, here it is...good deal!

Sent from my SCH-I535 using xda premium
4th August 2012, 04:45 PM |#6  
Junior Member
Thanks Meter: 1
 
More
Is it possible to have this exact same toggle but to disable the brightness slider?
4th August 2012, 04:58 PM |#7  
Senior Member
Flag Mankato, MN
Thanks Meter: 255
 
Donate to Me
More
Quote:
Originally Posted by biggd963

Is it possible to have this exact same toggle but to disable the brightness slider?

+1.... since I always leave the brightness on auto this would be nice

Sent from my SCH-I535 using Tapatalk 2
4th August 2012, 05:13 PM |#8  
Senior Member
Thanks Meter: 256
 
More
This is great. Thanks

VERIZON GALAXY S 3
4th August 2012, 05:36 PM |#9  
Account currently disabled
Thanks Meter: 1,768
 
More
Has any brave soul tried this on stock? :-\

Sent from my SCH-I535 using Tapatalk 2
4th August 2012, 06:23 PM |#10  
thunderbread's Avatar
Senior Member
Flag Orlando
Thanks Meter: 110
 
More
Quote:
Originally Posted by 1ManWolfePack

Has any brave soul tried this on stock? :-\

Sent from my SCH-I535 using Tapatalk 2

I just wanna say nice pic. Breaking Bad is amazing.

Sent from my SCH-I535 using Tapatalk 2
The Following User Says Thank You to thunderbread For This Useful Post: [ View ] Gift thunderbread Ad-Free
4th August 2012, 07:25 PM |#11  
Jay Evans's Avatar
Senior Member
Flag York, PA
Thanks Meter: 147
 
More
Quote:
Originally Posted by 1ManWolfePack

Has any brave soul tried this on stock? :-\

I'm stock. Works perfectly.

Sent from my SCH-I535 using Tapatalk 2
The Following 2 Users Say Thank You to Jay Evans For This Useful Post: [ View ] Gift Jay Evans Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes