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!
IMPORTANT: If you run into any problems after flashing this, use the "revert" to go back to SynergyROM default, then try again. I didn't have to wipe any caches.
Install with this ZIP:
http://electron73.org/XDA/VZ_S3/VRLF...e_blueBatt.zip
Same thing but no brightness slider:
http://www.electron73.org/XDA/VZ_S3/...ueBatt_nbr.zip
Revert to default (if you don't like) with this ZIP:
http://electron73.org/XDA/VZ_S3/VRLF...gle_revert.zip
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!
IMPORTANT: If you run into any problems after flashing this, use the "revert" to go back to SynergyROM default, then try again. I didn't have to wipe any caches.
Install with this ZIP:
http://electron73.org/XDA/VZ_S3/VRLF...e_blueBatt.zip
Same thing but no brightness slider:
http://www.electron73.org/XDA/VZ_S3/...ueBatt_nbr.zip
Revert to default (if you don't like) with this ZIP:
http://electron73.org/XDA/VZ_S3/VRLF...gle_revert.zip
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>
Code:
<public type="id" name="exp_power_stat" id="0x7f0f00d9" />
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"
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