[Upgrading, Modifying and Unlocking] themike10452:
How to enable usb mass storage and on-screen buttons in Android 4.x (Windows Users Only)

====================================================

UPDATE:

My new tool is out! Check it out, it does the work for you

http://xdaforums.com/showthread.php?p=40031460#post40031460

A) How:

======

It consists of editing some lines in framework-res.apk which you can extract from your ROM zip (/system/framework) or by using this command with adb (With phone connected via USB)

> adb pull /system/framework/framework-res.apk framework-res.apk

B) Tools:

=======

- Framework Toolkit by Themike10452 ( Me ;) ) ==> http://www.mediafire.com/?j6ndniep6h8iwch

- XML Editor. I recommend FirstObject XML Editor (Freeware) ==> http://www.firstobject.com/dn_editor.htm

- Java Development Kit ==> http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

C) Steps:

=======

Video Tutorial: http://www.youtube.com/watch?v=9V-Ukles6w0

1 - Download and extract Framework Toolkit, then place your framework-res.apk inside [place-apk-here-for-modding] folder.

2 - Run Apk-Multi-Tool.bat as administrator, press any key to enter options menu, then use option (9) to decompile the apk

3 - Head to [projects] folder > res

4 -

a)

Enabling USB Mass Storage:

- Now you are in [res] folder, go to [xml] folder, open [storage_list.xml] with an xml editor

- The 4th line looks like this:

<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:maxFileSize="4096" />

Replace it with the following line:

<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:allowMassStorage="true" android:maxFileSize="4096" />

- Save and go back to [res] folder

b)

Enabling On-screen Buttons:

- Now you are in [res] folder, go to [values] folder

- Open bools.xml and look for the following line:

<bool name="config_showNavigationBar">[COLOR=Red]false[/COLOR]</bool>

Replace false with true, the new line should look like this:

<bool name="config_showNavigationBar">[COLOR=Green]true[/COLOR]</bool>

;; ;; Now navigation bar is enabled, we can change the bar size by editing [dimens.xml] in the same folder ;; ;;

- To do so, edit lines 14 and 16, set the dip to whatever you like

5 - Save and exit, go back to main folder, re-open Apk-Multi-Tool.bat, this time use option 11 to compile the edited apk

6 - After it's done compiling it will ask you if you want to add some more files, reply with n

7 - Close Apk-Multi-Tool, run Create_zip.bat as administrator, read on-screen instructions it's very simple

8 - After it's done successfully you can collect your flash-able zip from [final-zip-here] folder

9 - Move the zip to your sd card and flash it via CWM Recovery, reboot, if you enabled USB Mass Storage make sure to change connection

method from MTP to Mass Storage in System Settings

10 - Use ##Cleanup.bat to cleanup all folders (Important if you want to use it again)

Important Do NOT use this toolkit with any other apk, just framework apk

#####################################################################################################################

////////////

Credits

:

\\\\\\\\\\\\

My Toolkit includes Apk-Multi-Tool written by raziel23x ==> http://xdaforums.com/showthread.php?t=1310151

Zip creator script was written by me