[Android Themes] BlueSharky:
Finally! Figured out how to fix the SystemUI FC error and got it to run on my JB 4.1 Slim Bean ROM. Yay!

To all those who are having issues with their SystemUI FCing, these are all the steps you have to follow :

1. Get Apktool apktool1.5.2.tar.bz2 and apktool-install-windows-r05-ibot.tar.bz2 from here (https://code.google.com/p/android-apktool/downloads/list). Extract the files, and place all three files in any folder on your computer (lets name the folder apktool).

2. Take original SystemUI.apk and framework-res.apk from your device and place them both in the apktool folder along with the 3 files downloaded earlier.

3. Open command prompt and navigate to your apktool directory, and enter the following command :

apktool if framework-res.apk

This installs your framework-res.apk file to your system so you can mod your SystemUI without any problems.

4. After the framework-res.apk files have been installed, enter the following command to decompile your SystemUI.apk :

apktool d SystemUI.apk

5. When the process ends, a SystemUI folder should be created in the apktools folder, where you can add the smali files and add the lines of code as mentioned by the OP. The order of the line matters in res/layout/status_bar.xml as this determines where in the status bar the traffic meter appears.

6. (Optional) For those who have been asking to change the font size and the color, you have to modify these lines in res/values/styles.xml :

<style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
[B][U]<item name="android:textSize">14.0dip</item>[/U][/B]
<item name="android:textStyle">normal</item>
[B][U]<item name="android:textColor">#ffffffff</item>[/U][/B]
<item name="android:textAllCaps">false</item>
</style>

I personally used a text size of 10.0dip and since I wanted holo blue instead of white color, I replaced the line

<item name="android:textColor">#ffffffff</item>

with

<item name="android:textColor">@*android:color/holo_blue_light</item>

You can google for the hex code if you want any other color.

7. After you are done editing the files, recompile it with the following command in the command prompt :

apktool b SystemUI

8. A folder called dist will be created inside SystemUI folder in apktool folder, which contains the modded SystemUI.apk.

9. You have to open this modded SystemUI.apk file using winrar/7zip, and also open the original SystemUI.apk file witn winrar/7zip.

10. Drag and drop the META-INF folder and AndroidManifest.xml file from the original to the modded apk.

11. <IMPORTANT> Since this is a system app, you do not need to sign it. But you should zipalign the apk before pushing it to your device. For zipaligning, see the following steps :

1. You should have the Android SDK

2. Go to C:\Program Files\Android\android-sdk\tools

3. Copy zipalign.exe and draw9patch.bat and make a new folder and paste them both there.

4. Paste the modded SystemUI.apk file in the zipalign folder

5. Open cmd and nagivate to the zipalign folder and enter the command :

zipalign -fv 4 SystemUI.apk SystemUI-new.apk

6. Rename SystemUI-new.apk to SystemUI.apk and push to system/app in your phone, set permissions and reboot!

Edit : Check out the screenshot in the attachment!

Click thanks if you found this helpful! :)