Quantcast
Channel: xda-developers - Verizon Galaxy S III Android Development
Viewing all articles
Browse latest Browse all 352

[MOD] 15 Toggle Mod in blue for the VZW S3 :)

$
0
0
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:
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 Thumbnails
Click image for larger version

Name:	Screenshot_2012-08-04-05-57-08.jpg
Views:	N/A
Size:	14.6 KB
ID:	1241137  
Attached Files
File Type: zip PhoneStatusBar.zip - [Click for QR Code] (56.2 KB)

Viewing all articles
Browse latest Browse all 352

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>