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/synergy17/Electron_Toggles_4_Synergy.zip
Wifi tether entitlement check bypass for SynergyROM 1.6:
http://electron73.org/XDA/S3/synergy16/Electron_Tethering_4_Synergy16.zip
Wifi tether entitlement check bypass for SynergyROM 1.7:
http://electron73.org/XDA/S3/synergy17/Electron_Tethering_4_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:
3) Open res/values/public.xml and add as last line before closing tag:
4) Open res/layout/tw_status_bar_expanded.xml and change
to:
Also in this same file the brightness slider can be turned on by removing the android:visibility="gone" from the following line:
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
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/synergy17/Electron_Toggles_4_Synergy.zip
Wifi tether entitlement check bypass for SynergyROM 1.6:
http://electron73.org/XDA/S3/synergy16/Electron_Tethering_4_Synergy16.zip
Wifi tether entitlement check bypass for SynergyROM 1.7:
http://electron73.org/XDA/S3/synergy17/Electron_Tethering_4_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"
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
Attachments
Last edited: