[Sony Cross-Device Development Themes and Apps] venkat kamesh:
mod [settings/systemui]

First you need Deodexed SystemUI.apk and Settings.apk

Lets first start with SystemUI.apk

1. Decompile the SystemUI.apk

2. Open res\values\dimens.xml and add these below codes

<dimen name="net_traffic_single_text_size">12.0dip</dimen>
<dimen name="net_traffic_multi_text_size">9.0dip</dimen>
<dimen name="network_stats_text_size">10.0dip</dimen>

3. then open res\values\id.xml and these below code

<item type="id" name="networkTraffic">false</item>

4. then open res\values\status_bar.xml

look for

<include layout="@layout/system_icons" />

Add this code above it

<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@+id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />

5. Download this View attachment 3566689 and merge them

6. Compile it and decompile then open smali/com/android/systemui.statusbar/policy/NetworkTraffic.smali

7. After replace the public ids ( by comparing one i gave in zip

8. after compared and replace... compile the app and replace in system

Now time for settings.apk

1. Decompile the settings.apk

2. open settings.apk/res/values/arrays.xml and this below code

<string-array name="show_network_traffic_state_entries">
<item>@string/show_network_traffic_disable</item>
<item>@string/show_network_traffic_up</item>
<item>@string/show_network_traffic_down</item>
<item>@string/show_network_traffic_all</item>
</string-array>
<string-array name="show_network_traffic_state_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
<string-array name="show_network_traffic_unit_entries">
<item>@string/show_network_traffic_bit</item>
<item>@string/show_network_traffic_byte</item>
</string-array>
<string-array name="show_network_traffic_unit_values">
<item>0</item>
<item>1</item>
</string-array>
<string-array name="show_network_traffic_frequency_entries">
<item>@string/show_network_traffic_500</item>
<item>@string/show_network_traffic_1000</item>
<item>@string/show_network_traffic_1500</item>
<item>@string/show_network_traffic_2000</item>
</string-array>
<string-array name="show_network_traffic_frequency_values">
<item>500</item>
<item>1000</item>
<item>1500</item>
<item>2000</item>
</string-array>

3. now open settings.apk/res/values/strings.xml and add these codes

<string name="default_string">Default</string>
<string name="network_traffic_summary">Enable various network traffic options in statusbar</string>
<string name="network_traffic_title">Network traffic</string>
<string name="show_network_traffic_state">Status bar traffic monitor</string>
<string name="show_network_traffic_unit">Display unit</string>
<string name="show_network_traffic_frequency">Update interval</string>
<string name="show_network_traffic_disable">Disabled</string>
<string name="show_network_traffic_up">Outgoing</string>
<string name="show_network_traffic_down">Incoming</string>
<string name="show_network_traffic_all">Outgoing and incoming</string>
<string name="show_network_traffic_bit">Bits per second</string>
<string name="show_network_traffic_byte">Bytes per second</string>
<string name="show_network_traffic_500">500 ms</string>
<string name="show_network_traffic_1000">1000 ms</string>
<string name="show_network_traffic_1500">1500 ms</string>
<string name="show_network_traffic_2000">2000 ms</string>
<string name="network_traffic_autohide">Auto hide</string>
<string name="network_traffic_autohide_summary">Hide the traffic monitor when there is no activity</string>
<string name="network_traffic_autohide_threshold">Inactivity threshold</string>
<string name="network_traffic_color_style">Color style</string>
<string name="network_traffic_color_reset">Reset color</string>
<string name="network_traffic_color_reset_message">Reset network traffic color to default?</string>

4. now open settings.apk/res/values/attrs.xml and add these codes

<attr name="unitsLeft" format="reference|string" />
<attr name="min" format="float" />
<attr name="unitsRight" format="reference|string" />

5. Add this to any of your xml

for example i had add to my personal settings (res/xm/rstatusbar.xml)

you can add in display_settings.xml or as you wish

<PreferenceScreen android:title="@string/network_traffic_title" android:key="network_traffic_state " android:summary="@string/network_traffic_summary" android:fragment="com.android.settings.rz.NetworkTraffic" />

6. download this View attachment 3565779 and merge to your settings

7. compile and decompile so you will get ids

8. open smali/com/android/settings/rz/NetworkTraffic.smali

9. compare the public ids to my one and replace yours

10. after that compile and replace the settings.apk

Best way to compare the Public ids go here shared by [MENTION=4503187]iedafarha[/MENTION]

Oh god finally you did it :p

Don't forget to mention me in your thread. If you tried my tut :p