[Guide][MOD] Network Traffic 4.x to 5.x (turn on/off, color, Display unit and more) - Sony Cross-Device Development Themes and Apps

Today i came here with new Tut
This tut includes
Status bar traffic monitor
Disable
Outgoing
Incoming
Outgoing and Incoming
Color style
Display unit
Bits per second
Bytes per second
update interval
500 ms
1000 ms
1500 ms
2000 ms
Auto hide
Inactivity threshold
Before going to tutorial First you need to have these mods (If you already had these mods then go to post #2
Color picker settings by @05Gurpreet
and Seekbar Preferences by me
Thanks to carbon rom

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
Code:
<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
Code:
<item type="id" name="networkTraffic">false</item>
4. then open res\values\status_bar.xml
look for
Code:
<include layout="@layout/system_icons" />
Add this code above it
Code:
<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 SystemUI.zip 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
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
Code:
<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
Code:
<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
Code:
<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 Settings.zip 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 @iedafarha
Oh god finally you did it
Don't forget to mention me in your thread. If you tried my tut

venkat kamesh said:
8. compare the public ids to my one and replace yours
9. after that compile and replace the settings.apk
Oh god finally you did it
Don't forget to mention me in your thread. If you tried my tut
Click to expand...
Click to collapse
Awesome guide mate :good:, for compare the public ids , its easier to use public_id port
Try it ..

Good mode bro Tnx man

iedafarha said:
Awesome guide mate :good:, for compare the public ids , its easier to use public_id port
Try it ..
Click to expand...
Click to collapse
tnx bro you save my time alot

Nimadroid said:
tnx bro you save my time alot
Click to expand...
Click to collapse
welcome for editing xml especially for custom xml , this tools very usefull , xml validator
so save your time when recompile apk without error.
xml validato Application made with Mono 2.0, compatible with .Net Framework 2.0. It allows to load and modify xml, xsd and xsl docs and perform theirs validation, also using an embedded browser. Also, it allows to apply xsl to xml and to validate xml with xsd

Need Fix
Can you help me to fix it for me? Cause try and try but it always can't open Network Traffic menu on settings
I attach my apk
Sorry for my bad english
Thanks for help :angel:
Sloved.
I think you miss something for Public ID on NetworkTraffic.smali
For this publicID :
PHP:
<public type="integer" name="maskUp"
<public type="integer" name="maskDown"
<public type="integer" name="maskUnit"
<public type="integer" name="maskPeriod"
Keep Rockin :highfive:

iedafarha said:
welcome for editing xml especially for custom xml , this tools very usefull , xml validator
so save your time when recompile apk without error.
xml validato Application made with Mono 2.0, compatible with .Net Framework 2.0. It allows to load and modify xml, xsd and xsl docs and perform theirs validation, also using an embedded browser. Also, it allows to apply xsl to xml and to validate xml with xsd
Click to expand...
Click to collapse
ohhhh yeaaa
worked like chrm...

venkat kamesh said:
6. Compile it and decompile then open smali/com/android/systemui.statusbar/policy/NetworkTraffic.smali
Click to expand...
Click to collapse
i dont have networktraffic smali in my folder. can you mod my apk for me

uday94 said:
i dont have networktraffic smali in my folder. can you mod my apk for me
Click to expand...
Click to collapse
You don't have Networktraffic smali in ur folder because u did not follow the instructions in OP. This tutorial works perfectly.. Just try again. Read the full tutorial one time or two time then try..

venkat kamesh said:
Today i came here with new Tut
Click to expand...
Click to collapse
everything worked fine . but whenever i open network traffic option in settings it force closes.

uday94 said:
everything worked fine . but whenever i open network traffic option in settings it force closes.
Click to expand...
Click to collapse
Re check ids..

I used public id port app to change ids. There were some missing ids while editing.

uday94 said:
I used public id port app to change ids. There were some missing ids while editing.
Click to expand...
Click to collapse
There u go.. Try manual way. Find each ids and try again like me..

uday94 said:
I used public id port app to change ids. There were some missing ids while editing.
Click to expand...
Click to collapse
Download the compare_settings_systemui.zip http://forum.xda-developers.com/showthread.php?p=64516025
Decompile and check what you need (if the míssed public id is a attr= search into values/attr.xml and copy the línes you have míssed to your files and follow That way)

Who mod files for m2 2303?

djborek said:
Who mod files for m2 2303?
Click to expand...
Click to collapse
Tutorials is for learning my friend.. Just try it..

I dont know how do it.

djborek said:
I dont know how do it.
Click to expand...
Click to collapse
I made it from z5 style files

Pls send me on my PM files for 2303.

Related

[Q] Help in Modding/Theming

Hi,
Is there any one who can help me in modding and theming?
I asked this question from some Modders but I didn't get any answer
I just wanna Modify settings.apk, for example I add some menu/options to settings menu. Such as usb tether.
Can anyone help me?
Thanks
Is there anyone help me?
first you need to add
HTML:
<string name="usboptions">usb tether</string>
a string file in strings.xml
then you need to do something like this :
for example i used an app called usb tether
and the packagename of it is com.usb.tether
HTML:
<com.android.settings.IconPreferenceScreen android:title="@string/usboptions" settings:icon="@drawable/usbtethericon">
<intent android:targetPackage="com.usb.usbtether" android:action="android.intent.action.MAIN" android:targetClass="com.usb.usbtether.MainActivity" />
</com.android.settings.IconPreferenceScreen>
add that to settings.xml
then i need to add an icon called usbtethericon in drawable-mdpi
and then compile
and done
CoolCatGetHome said:
first you need to add
HTML:
<string name="usboptions">usb tether</string>
a string file in strings.xml
then you need to do something like this :
for example i used an app called usb tether
and the packagename of it is com.usb.tether
HTML:
<com.android.settings.IconPreferenceScreen android:title="@string/usboptions" settings:icon="@drawable/usbtethericon">
<intent android:targetPackage="com.usb.usbtether" android:action="android.intent.action.MAIN" android:targetClass="com.usb.usbtether.MainActivity" />
</com.android.settings.IconPreferenceScreen>
add that to settings.xml
then i need to add an icon called usbtethericon in drawable-mdpi
and then compile
and done
Click to expand...
Click to collapse
you no reply on PM?
voetbalremco said:
you no reply on PM?
Click to expand...
Click to collapse
Wich pm?
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
Wich pm?
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
from farzad?
CoolCatGetHome said:
first you need to add
HTML:
<string name="usboptions">usb tether</string>
a string file in strings.xml
then you need to do something like this :
for example i used an app called usb tether
and the packagename of it is com.usb.tether
HTML:
<com.android.settings.IconPreferenceScreen android:title="@string/usboptions" settings:icon="@drawable/usbtethericon">
<intent android:targetPackage="com.usb.usbtether" android:action="android.intent.action.MAIN" android:targetClass="com.usb.usbtether.MainActivity" />
</com.android.settings.IconPreferenceScreen>
add that to settings.xml
then i need to add an icon called usbtethericon in drawable-mdpi
and then compile
and done
Click to expand...
Click to collapse
Yeaaaah, Thanks CoolCatGetHome, You are awesome.
Really thanks to your help

[TEAM XPOSED][HOW-TO]7/18/12 SystemUI mods and how-tos (new: custom notif background)

This thread will be about various SystemUI modifications and how to achieve them. The first post will be full of screenshots and my personal mods and the second post will be the how-tos.
First of all, here is my modified SystemUI in its current form. It has been modded to do the following:
Blue ICS icons
Blue style quick toggle icons
Blue notification shade bottom from ICS
Remove clock
Remove carrier ID
Remove quick toggle text
Upcoming mods to it will be:
Battery precentages
Charging battery animations
1x display
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
HOW-TO
7/18/12: Custom notification pulldown background:
First, we're going to use a file that already exists in SystemUI that isn't being used by the system, so that we don't have to create IDs and anything else too difficult. Create your custom background and save it as a png. Yes, it also supports transparency right off the bat! Once you have your custom background selected, name it "status_bar_expand_default.png" and put it in the drawable-xhdpi folder in /res/drawable-xhdpi/ overwriting the current one.
Now navigate to /res/layout/tw_status_bar_tracking.xml and open it with editor
LOOK FOR:
Code:
<FrameLayout android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
CHANGE
Code:
android:background="#ff000000"
TO:
Code:
android:background="@drawable/status_bar_expand_default"
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
7/17/12: Remove battery full notification:
Navigate to /com/android/systemui/power/PowerUI$1.smali
LOOK FOR:
Code:
iget v14, v14, Lcom/android/systemui/power/PowerUI;->mBatteryStatus:I
if-ne v13, v14, :cond_1b3
move-object/from16 v0, p0
iget-object v13, v0, Lcom/android/systemui/power/PowerUI$1;->this$0:Lcom/android/systemui/power/PowerUI;
invoke-virtual {v13}, Lcom/android/systemui/power/PowerUI;->notifyFullBatteryNotification()V
:cond_da
:goto_da
const/4 v13, 0x4
REMOVE:
Code:
invoke-virtual {v13}, Lcom/android/systemui/power/PowerUI;->notifyFullBatteryNotification()V
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
How to decompile troublesome ICS apks on the GS3:
Start off by downloading the package I put together with APKTOOL v1.4.2 and v1.4.4: here
You also need to have Java installed, and WinRAR or a comparable archive manager installed.
Extract it and navigate there with a command prompt
Grab your framework-res.apk and SystemUI.apk from your ROM or ADB on your phone and place them in the same directory as your apktools
Open SystemUI with WinRAR or your archive manager and extract the META-INF folder and AndroidManifest.xml file and put them somewhere easy to find.
In command prompt type this command "apktool if framework-res.apk" and if done correct, you will have installed a dependency for whatever you're about to decompile.
The trick is to decompile with 1.4.2 which is named apktool142.jar, so rename that to apktool.jar
Now you're ready to decompile SystemUI. Type this command "apktool d SystemUI.apk" and if done correctly it will start the decompiling process and eventually finish with a new folder "SystemUI" being created.
Now you can make all of your edits.
The next trick is to recompile with 1.4.4 which is named apktool144.jar, but first rename your current apktool.jar back to apktool142.jar then rename apktool144.jar to apktool.jar.
Once done, recompile your SystemUI file by typing "apktool b SystemUI"
Once done, copy the folder and file from earlier "META-INF" and "AndroidManifest.xml" then open the "SystemUI" folder then open "build" then "apk" and paste them here, which will overwrite the current AndroidManifest.xml and create the META-INF folder in there.
Now type "apktool b SystemUI" again and this time it will build much faster than before. Once done your file is ready to be tested!
Open the "SystemUI" folder, go into "dist" and voila, your file is there, signed, and ready to be pushed back to your phone.
Go ahead and push it back with ADB, or with Root Explorer, OR create yourself a flashable zip. Whatever works for you.
Enjoy.
How to remove Quick settings toggle text or hide Quick Settinsg toggle:
I have seen inquiries about how to mod the quick toggle area to remove it. It's a fairly easy modification to make. Especially if you already know how to decompile and recompile SystemUI.apk
For the sake of making this HOW-TO short and to the point, I'm going to assume you already know how to successfully decompile and recompile SystemUI.apk. If you don't, I will be posting up another HOW-TO with all the necessary tools.
Let me first start out by apologizing because this is kind of sloppy. It may require less steps but once I got it, I didn't bother going back to figure out if it did require less steps or not.
Start off by decompiling SystemUI.apk
Next, navigate to /res/layout/tw_quick_setting_button.xml
Open it with your favorite editor
LOOK FOR:
Code:
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
CHANGE:
Code:
android:layout_height="@dimen/quick_setting_button_height"
For complete removal of quick toggle settings:
TO:
Code:
android:layout_height="0.0dip"
For text removal like my mod:
TO
Code:
android:layout_height="50.0dip"
LOOK FOR:
Code:
<TextView android:textSize="@dimen/quick_setting_button_text_size" android:textColor="#ff9eb2c3" android:gravity="center" android:id="@id/btn_text" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_text_height" android:includeFontPadding="false" android:shadowColor="#ff000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
CHANGE:
Code:
android:textSize="@dimen/quick_setting_button_text_size"
For complete or text removal:
TO:
Code:
android:textSize="0.0dip"
Save & close
Navigate to /res/layout/tw_status_bar_expanded.xml and open with editor
LOOK FOR:
Code:
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
CHANGE:
Code:
android:layout_height="wrap_content"
For complete removal:
TO:
Code:
android:layout_height="0.0dip"
For text removal like my mod:
TO:
Code:
android:layout_height="50.0dip"
If you want to remove the carrier ID (Sprint):
LOOK FOR and REMOVE:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
Save & close
These next parts probably aren't needed but I did them anyway. If you want to try compiling and using your SystemUI.apk, go for it and report back. If you want to follow exactly what I did, keep reading..
Navigate to /res/layout/tw_status_bar_toggle_slider.xml and open with editor
LOOK FOR:
Code:
<TextView android:textSize="15.0dip" android:textColor="#ffd7d7d7" android:id="@id/label" android:layout_width="46.0dip" android:layout_height="wrap_content" android:layout_marginRight="4.0dip" android:singleLine="false" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
CHANGE:
Code:
android:textSize="15.0dip"
For complete or text removal
TO:
Code:
android:textSize="0.0dip"
Save & Close
Navigate to /res/values/dimens.xml and open with editor
LOOK FOR:
Code:
<dimen name="quick_setting_button_text_height">30.0dip</dimen>
<dimen name="quick_setting_button_text_size">13.0dip</dimen>
For complete or text removal:
CHANGE TO:
Code:
<dimen name="quick_setting_button_text_height">0.0dip</dimen>
<dimen name="quick_setting_button_text_size">0.0dip</dimen>
Save & Close
Finally, navigate to /res/values/strings.xml and open with editor
LOOK FOR:
Code:
<string name="status_bar_settings_wifi_button">Wi-Fi</string>
<string name="status_bar_settings_airplane">Airplane mode</string>
<string name="status_bar_settings_auto_rotation">Auto-rotate screen</string>
<string name="status_bar_settings_mute_label">MUTE</string>
For complete or text removal:
CHANGE TO:
Code:
<string name="status_bar_settings_wifi_button"></string>
<string name="status_bar_settings_airplane"></string>
<string name="status_bar_settings_auto_rotation"></string>
<string name="status_bar_settings_mute_label"></string>
LOOK FOR:
Code:
<string name="quickpanel_wifi_text">Wi-Fi</string>
<string name="quickpanel_bluetooth_text">Bluetooth</string>
<string name="quickpanel_gps_text">GPS</string>
<string name="quickpanel_silent_mode_text">"Silent
mode"</string>
<string name="quickpanel_silent_mode_sound">Sound</string>
<string name="quickpanel_silent_mode_vibrate">Vibrate</string>
<string name="quickpanel_silent_mode_mute">Mute</string>
<string name="quickpanel_rotation_text">"Screen
rotation"</string>
<string name="quickpanel_mobile_data_text">"Mobile
data"</string>
<string name="quickpanel_notification_text">Notification</string>
<string name="quickpanel_airplane_mode_text">"Flight
mode"</string>
<string name="quickpanel_sync_text">Sync</string>
<string name="quickpanel_wifi_display_text">"AllShare
Cast"</string>
<string name="quickpanel_power_saving_text">"Power
saving"</string>
<string name="quickpanel_driving_mode_text">"Driving
mode"</string>
<string name="quickpanel_error_text">Error</string>
<string name="quickpanel_ctwap_text">CTWAP</string>
<string name="quickpanel_ctnet_text">CTNET</string>
For complete or text removal:
CHANGE TO:
Code:
<string name="quickpanel_wifi_text"></string>
<string name="quickpanel_bluetooth_text"></string>
<string name="quickpanel_gps_text"></string>
<string name="quickpanel_silent_mode_text"></string>
<string name="quickpanel_silent_mode_sound"></string>
<string name="quickpanel_silent_mode_vibrate"></string>
<string name="quickpanel_silent_mode_mute"></string>
<string name="quickpanel_rotation_text"></string>
<string name="quickpanel_mobile_data_text"></string>
<string name="quickpanel_notification_text"></string>
<string name="quickpanel_airplane_mode_text"></string>
<string name="quickpanel_sync_text"></string>
<string name="quickpanel_wifi_display_text"></string>
<string name="quickpanel_power_saving_text"></string>
<string name="quickpanel_driving_mode_text"></string>
<string name="quickpanel_error_text"></string>
<string name="quickpanel_ctwap_text"></string>
<string name="quickpanel_ctnet_text"></string>
LOOK FOR:
Code:
<string name="quickpanel_data_roaming_text">"Data
roaming"</string>
For complete or text removal:
CHANGE TO:
Code:
<string name="quickpanel_data_roaming_text"></string>
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
Now, a lot of these could have simply been removed from the XML, but I decided to mod their values to preserve structure in case I want to put things back the way they were. If you want to experiment with removing the entire "LOOK FOR:" line, please report back the results.
Enjoy.
How to change carrier label:
Navigate to /res/values/strings.xml and open with editor
LOOK FOR:
Code:
<string name="done">Done</string>
<string name="edit">Edit</string>
AKA at the bottom of the file.
ADD AFTER:
Code:
<string name="custom_carrier">INSERT_CUSTOM_CARRIER_LABEL_HERE</string>
Add what you want where it says "INSERT_CUSTOM_CARRIER_LABEL_HERE"
Save & Close.
Navigate to /res/layout/tw_status_bar_expanded.xml and open with editor
If you haven't removed the carrier label already:
LOOK FOR:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
REPLACE WITH:
Code:
<TextView android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:text="@string/custom_carrier" android:layout_centerVertical="true" />
If you have removed the carrier label:
LOOK FOR:
Code:
<com.android.systemui.statusbar.policy.DateView android:textSize="@dimen/status_bar_expanded_date_text_size" android:textColor="#ff1589d7" android:id="@id/date" android:paddingRight="12.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
ADD AFTER:
Code:
<TextView android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:text="@string/custom_carrier" android:layout_centerVertical="true" />
Save & Close
Compile, push to /system/app/ and change permissions to 644 and reboot or create flashable zip to flash in recovery.
Awesome. Thank you for your contribution to the community.
Sent from my SPH-L710 using Tapatalk 2
Wondering if this qualifies as one
http://forum.xda-developers.com/showthread.php?t=1740993
i thought that's what the theming sticky was for, stuff like this
thx
thank you for your help, thisthread is very useful
nest75068 said:
Wondering if this qualifies as one
http://forum.xda-developers.com/showthread.php?t=1740993
Click to expand...
Click to collapse
You can get shutter sound controls without any modifications to sound. I don't know why it's labeled as silent camera if you can get shutter sounds without modding anything.
Anyway to modify and remove the persistant wifi conmectee text from the notification bar
Awesome freeza TY
Nice to see you here freeza.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
FrankJL_ said:
Anyway to modify and remove the persistant wifi conmectee text from the notification bar
Click to expand...
Click to collapse
Most definitely. Verizon right? Send me a copy of your systemui.apk
freeza said:
Most definitely. Verizon right? Send me a copy of your systemui.apk
Click to expand...
Click to collapse
Been trying to get rid of the same thing. Do tell, if you know how.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
I am on Verizon too. I removed the wifi notification, but decided to put it back until there is a proper toggle. Can you make a flashable zip to make the toggles like the first post?
Thanks
lynseyw said:
I am on Verizon too. I removed the wifi notification, but decided to put it back until there is a proper toggle. Can you make a flashable zip to make the toggles like the first post?
Thanks
Click to expand...
Click to collapse
Yeah but you'll have to send me a copy of your systemui
Figured out how to change carrier ID
freeza said:
Figured out how to change carrier ID
Click to expand...
Click to collapse
I've been trying to figure it out myself.
Care to share?
Sent from my SGH-T999 using xda premium
uoY_redruM said:
I've been trying to figure it out myself.
Care to share?
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Sure will, Will be posting it up in the second post
Thanks for the thread.
I downloaded NinjaMorph Free and when viewing the xml files it seems, encrypted, a bunch of "?" and gibberish show. Is there a certain xml editor I'm suppose to use? Thanks for the help.
freeza said:
Figured out how to change carrier ID
Click to expand...
Click to collapse
was wondering what is that you have there under Ongoing?? with the cpu and memory and all that stuff.
Updated second post with instructions on how to change the carrier label
shadrach47 said:
Thanks for the thread.
I downloaded NinjaMorph Free and when viewing the xml files it seems, encrypted, a bunch of "?" and gibberish show. Is there a certain xml editor I'm suppose to use? Thanks for the help.
Click to expand...
Click to collapse
No problem. I think your problem is because you have to decompile the apk first, or the xmls will be encrypted.
concac858 said:
was wondering what is that you have there under Ongoing?? with the cpu and memory and all that stuff.
Click to expand...
Click to collapse
That's the app "Elixir2" free from the market.

[guide]How to add wifi and bluetooth toggles buttons in Settings like ics/jb

How to add wifi and bluetooth toggles button in Settings like ics
Click to expand...
Click to collapse
Tool you need:​1:apktool(apkmanager etc)
2:smali code and xml(look attached file)
3:notepad++
4:brain most important
Note:I am not gona teach you how to compile and decompile apk do it yourself And i am not gona responsible for any thing bad happened.
>>first Step:
Pull settings.apk from your phone and decompile it.
>>second Step:
download the attach file and open it there you will see res folder and smali folder now copy them and paste in your decompile settings apk folder.
>>Third Step:
now open id.xml (present in values folder of settings apk)
and add this lines in end just above this</resources>
Code:
<item type="id" name="toggle2">false</item>
<item type="id" name="toggle">false</item>
>>Forth Step:
compile the apk and sign it...now decompile new settings.apk
>>Fifth Step:
open public.xml file in notepad++ then goto smali/com/ion/settings/ and open the BTPreferencesScreen.smali and SwitchPreferenecScreen.smali notepad++.
firsts let play with BTPreferencesScreen.smali
now serach for this hexs value
Code:
"0x7f030056"--------and replace it with type="layout" name="preference_bt" ids value(hex value)
"0x7f0b0016"--------and replace it with type="id" name="icon" ids value(hex value)
"0x7f0b012e"--------and replace it with type="id" name="toggle2" ids value(hex value)
save,done and close...
now time to play with switchPreferenecScreen.smali
now serach for this hexs value
Code:
"0x7f030057"--------and replace it with type="layout" name="preference_switch" ids value(hex value)
"0x7f0b012f"--------and replace it with type="id" name="toggle" ids value(hex value)
Note:"0x7f0b012f" are use three times in smali code so replace it with type="id" name="toggle" ids three time at there respective place.
"0x7f0b0016"--------and replace it with type="id" name="icon" ids value(hex value)
>>Sixth Step:
Now open Settings.xmlin notepad++
now add this code in the <PreferenceScreen .....xxxx.... />
now add these two codes also where you want to place this codes this responsible for display wifi and bluetooth toggles button and string in settings menu
Code:
<com.ion.setting.SwitchPreferenceScreen android:title="wifi" android:key="wifi" />
<com.ion.setting.BTPreferenceScreen android:title="Bluetooth" android:key="btswitch" />
like this....just like i do and save the file
>>Seventh Step:
compile apk,sign it and push it on your phone and enjoy....
Screenshots:-
SETTINGS with ics toogle buttons:-
SETTINGS with ANDROID L toogle buttons :-
SETTINGS with kk/jb/twz style toogle button:-
Final SS?
samsoul16 said:
Final SS?
Click to expand...
Click to collapse
ss added sir...
if u want jb/kk/android l like toogle button u can replace :- switchon and switchoff png at drawable mdpi folder....
here is the whole tut for making ics settings for all gb devices
nice guide @OP
great guide
Superb guide...
i will also make my settings like "android L".... :highfive:

[GUIDE] [MOD] [LP/MM] [UPDATE :- 27.04.2016] How To Add Power Button To Lock Screen

Hello friends
Here is my latest simple tutorial for adding a power button in lock screen. With this you can acces ur power menu through Lock Screen.. Here you go ...
Things Needed :-
Latest Apktool
Notepad ++
PC
Deodexed SystemUI ( LP/MM )
Decompile SystemUI.apk
1) Go to res / values / ids.xml and add this line to last
<item type="id" name="lock">false</item>
Click to expand...
Click to collapse
Save it and close
2) Go to res / values / string.xml and add this line to last
<string name="accessibility_lock">Lock</string>
Click to expand...
Click to collapse
Save it and close
3) Go to res / layout / keyguard_bottom_area.xml and add this line before the last line
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="bottom|center" android:id="@id/lock" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" />
Click to expand...
Click to collapse
So it should be like this
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="bottom|center" android:id="@id/lock" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" />
</com.android.systemui.statusbar.phone.KeyguardBottomAreaView>
Click to expand...
Click to collapse
Save it and close
4) Move the attached png to res / drawable-hdpi-v4 or drawable-hdpi ( HERE )
Thats it. Done..
Recompile SystemUI and replace it by yours and enjoy...
No screen.??
johnsamte said:
No screen.??
Click to expand...
Click to collapse
Here u go. U can reduce the size of the png if u want...
Thank you. Do you know how to add power button menu to navi bar ?
devilmaycry2020 said:
Thank you. Do you know how to add power button menu to navi bar ?
Click to expand...
Click to collapse
There is one guide my friend.. U can get mine or spuri78..

[Guide][Lp-MM-N]Adv Rom control in to stock Settings

hello guys
After long day
i got free time
Today i am going to share Adv Rom control to Settings Integration....
Posting tuts and making settings for them ..... argh.........!
Wasting my time
So i am going to Share you This Easy Preferences.....!
Easy to work with and Easy to use .. thanks to @daxgirl for such a great work... thank you
Using that i had my personal changes to work in built settings and updated color picker and few
Ok lets start on integration of Rom control v1 to your Stock settings ( tested on my Kryptonian Roms )
so here guys, all you need
- Super User Mod ( MM/N, LP )
- Deodexed Stock settings
- Apktools ( i used apktool 2.x )
- and Patience
1. Decompile your Settings.apk
2. Now download this View attachment Settings.apk.zip
3. Extract them and Merge to Stock settings
4. Open Androidmanifest.xml and add these Persmissions
Code:
<uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" />
5. In Settings.apk/res/values/arrays.xml add this
Code:
<string-array name="dashboard_switches_entries">
<item>Switches off</item>
<item>Switches on</item>
</string-array>
<string-array name="dashboard_switches_values">
<item>0</item>
<item>1</item>
</string-array>
<string-array name="dashboard_columns_entries">
<item>One</item>
<item>Two</item>
<item>Three</item>
</string-array>
<string-array name="dashboard_columns_values">
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
6. In Settings.apk/res/values/attrs.xml add these
Code:
<attr name="colorPrimary" format="color" />
<attr name="colorPrimaryDark" format="color" />
<attr name="colorAccent" format="color" />
<declare-styleable name="ThumbnailListPreference">
<attr name="drawableArray" format="reference" />
<attr name="entryList" format="reference" />
<attr name="entryValuesList" format="reference" />
<attr name="entryDefault" format="string" />
</declare-styleable>
<attr name="switchClass" format="string" />
7. Open Settings.apk/res/values/colors.xml
add these
Code:
<color name="colorAccent">#ffff4081</color>
<color name="colorPrimary">#ff3f51b5</color>
<color name="colorPrimaryDark">#ff303f9f</color>
8. Open Settings.apk/res/values/dimens.xml
add this
Code:
<dimen name="button_size">30.0dip</dimen>
9. Open settings.apk/res/values/string.xml
add these
Code:
<string name="ok">OK</string>
<string name="app_reboot_required_title">App Reboot Required</string>
<string name="app_reboot_required_message">%1$s reboot is required for the changes to take effect.\n\nReboot now?</string>
<string name="dialog_color_picker">Color Picker</string>
<string name="press_color_to_apply">Press on Color to apply</string>
<string name="hex">Hex:</string>
<string name="hex_hint">\#ff000000</string>
Save and Close all
Continued in Next post
Final
Continuation
10. open settings.apk/res/xml/dashboard_categories.xml
add this Any where you like ( i had added under personal header setting )
If under Personal Header then follow this
Find this
Code:
<dashboard-category android:id="@+id/personal_section" android:title="@string/header_category_personal" android:key="@string/category_key_personal">
Below that add this
Code:
<dashboard-tile android:id="@+id/kryp_control" android:title="Kryptonian Menu" android:fragment="com.android.settings.kryp.krypton" />
If you want to add any logo then add this ( Example ) android:icon="@drawable/ic_settings_krypton"
it look like this
Code:
<dashboard-tile [COLOR="red"]android:icon="@drawable/ic_settings_krypton"[/COLOR] android:id="@+id/kryp_control" android:title="Kryptonian Menu" android:fragment="com.android.settings.kryp.krypton" />
and then place the icon in drawable folder in name of ic_settings_krypton and done...!
Now compile and Decompile ... now open
Settings.apk\smali\com\android\settings\kryp\krypton.smali
in that change the public id
Code:
<public type="xml" name="[COLOR="red"]krypton_settings[/COLOR]" id="[COLOR="red"]0x7f080089[/COLOR]" />
Done....!
Compile and Replace with your settings and test
And how this works will be explained in next post
Done Forget to mention me if you use my work
Adding more Preference xml layouts
Apologize for my explanation
The Krypton.smali is linked with krypton_settings.xml where it acts as Dashboard Header over settings part
example.smali is a preferenceScreen Fragments which is linked to kryp_example.xml
So handlerpreferences can be run trough the example.smali fragment
How to add more Preference settings in krypton Dashboard preference
1. copy the example.smali and paste in it with different name like.. displaysettings.smali
2. Open that displaysetting.smali and replace all example to displaysettings
3. the same way create a xml ( kryp_example / kryp_displaysettings )
4. Now in displaysetting.smali change kryp_example to kryp_displaysettings and save
and in krypton_settings.xml add this
add this
Code:
<PreferenceScreen android:id="@+id/example_control" android:title="Basic" android:summary="example of basic pref" android:fragment="com.android.settings.kryp.settings.[COLOR="Red"]displaysettings[/COLOR] " />
So in this Way you can add as many you like to have
How Preferences Work:-
Here The Complete mod work on Key preferences
android:key
android:title = write your title
android:defaultValue = it can be "true" (on) "false" (off) / "1" (on) "0" (off) by default
android:summary = summary msg never change on action.. static msg shown
android:summaryOn = summary msg below shown when status is enabled
android:summaryOff = summary msg below shown when status is disabled
android:icon="@null" will show no icon , if its android:icon="@drawable/ic_settings_krypton" then add an icon in drawable in name of ic_settings_krypton.
android:max="24" will end max to 24 from 1
android:min="2" will start from 1 till max given
unitsRight="" units may be dp/ dip / sec Right meant will Show on right side of seek bar pref
unitsLeft="" units may be dp/ dip / sec Right meant will Show on left side of seek bar pref
Switch preference
Code:
<SwitchPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="[COLOR="red"]true[/COLOR]" android:summaryOn="Shown" android:summaryOff="Hidden" />
CheckBox Preference
Code:
<CheckBoxPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="false" android:summaryOn="Shown" android:summaryOff="Hidden" />
SeekBar Preference
Code:
<com.android.settings.kryp.settings.prefs.SeekBarPreference android:max="24" android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="1" min="1" unitsRight="" />
ListPreferences
Code:
<com.android.settings.kryp.settings.prefs.MyListPreference android:entries="@array/entries" android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="8" android:dialogTitle="Dialog title" android:entryValues="@array/values" />
ColorPreferences color Hex code ff737373 change as you need
Code:
<com.android.settings.kryp.settings.prefs.ColorPickerPreference android:title="Title" android:key="[COLOR="Red"]Main_key[/COLOR]" android:defaultValue="\#ff737373" alphaSlider="true" />
EditText Preferences
Code:
<com.android.settings.kryp.settings.prefs..MyEditTextPreference android:defaultValue="simpletext" android:key="[COLOR="Red"]Main_key[/COLOR]" android:title="Title" />
ohppppppppppppp.... done.!
Have fun guys
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
nitesh9 said:
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
Click to expand...
Click to collapse
+1
Verstuurd vanaf mijn F8331 met Tapatalk
nitesh9 said:
Nice tut bro. It would be more awesome if you add some screenshots of the advanced rom control settings.
Click to expand...
Click to collapse
Pandemic said:
+1
Verstuurd vanaf mijn F8331 met Tapatalk
Click to expand...
Click to collapse
Its a complete Customized from your part bro
So it vary from device to device
Only so i havent gave any SS
If you want to see How my settings look like
Then Check These Screen shots
https://forum.xda-developers.com/showpost.php?p=68806751&postcount=2
Wow looks nice, status bar its great
When I decompile settings, and try to recompile, it doesnt work. I dont get a log, or anything! It just keeps on recompiling. Any ideas? I have used every version of apktool I could get my hands on.
Thanks
venkat kamesh said:
hello guys
After long day
i got free time
Today i am going to share Adv Rom control to Settings Integration....
Click to expand...
Click to collapse
great work.... :good:
i got succeeded on this
@venkat kamesh bro i want to make this but in android 7 ( on xperia z5 ) , there is no " dashboard_categories.xml " in " settings.apk/res/xml "
would you please tell me that correct xml name?
i searched a lot but couldnt found
thanks a lot
Hamidreza2010 said:
@venkat kamesh bro i want to make this but in android 7 ( on xperia z5 ) , there is no " dashboard_categories.xml " in " settings.apk/res/xml "
would you please tell me that correct xml name?
i searched a lot but couldnt found
thanks a lot
Click to expand...
Click to collapse
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
venkat kamesh said:
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
Click to expand...
Click to collapse
bro i have supersuer mod
but please tell me how can i do final part ?
https://forum.xda-developers.com/showpost.php?p=70574874&postcount=2
i mean part 10
wait for your help or please update second post.thanks
venkat kamesh said:
Now adding a tile with nougat you need to add with androidmanifest.xml
No more dashboard_category.xml bro from nougat
If you want edit androidmanifest.xml then you need superusermod bro hmm
Click to expand...
Click to collapse
@Hamidreza2010
What Venkat is saying is you need to add new tile on the android-manifest.xml file
it is the project manifest file for any standard android app.
Decompiling an apk would also decompile the manifest file in plain english.
you can look at the file with notepad++ and see that there are many activities and permissions and other primitive android class's objects are being manifested so that the delvik VM can know which class can run their objects and which cant.
Maybe a new tile needs to be mentioned [initialized] there somehow to add it 
 @venkat kamesh can explain the rest i think
@venkat kamesh PLEASE UPDATE FIRST PAGE
i want make this for android N
but second post has my problem
thanks
Hamidreza2010 said:
@venkat kamesh PLEASE UPDATE FIRST PAGE
i want make this for android N
but second post has my problem
thanks
Click to expand...
Click to collapse
What problem? You can do this on N
panzerox123 said:
What problem? You can do this on N
Click to expand...
Click to collapse
in android N there is no dashboard_category.xml and we should add into androidmanifest.xml
but i dont know where of androidmanifest.xml
for this i tell please update
Hamidreza2010 said:
in android N there is no dashboard_category.xml and we should add into androidmanifest.xml
but i dont know where of androidmanifest.xml
for this i tell please update
Click to expand...
Click to collapse
That I'm not sure of, sorry... I'm still on marshmallow unfortunately...
@venkat kamesh bro would you please give me your time for 5 min?
just please update final part for android N
i did some steps but cant do it in final part ( i want to make it in android 7 for z5 )
https://forum.xda-developers.com/showpost.php?p=70956230&postcount=10
thanks
Hamidreza2010 said:
@venkat kamesh bro would you please give me your time for 5 min?
just please update final part for android N
i did some steps but cant do it in final part ( i want to make it in android 7 for z5 )
https://forum.xda-developers.com/showpost.php?p=70956230&postcount=10
thanks
Click to expand...
Click to collapse
Sorry for late reply
Presently I don't have z5 or nougat
Once I get it.. I will update it bro
Sent from my C6902 using XDA-Developers Legacy app
venkat kamesh said:
Sorry for late reply
Presently I don't have z5 or nougat
Once I get it.. I will update it bro
Sent from my C6902 using XDA-Developers Legacy app
Click to expand...
Click to collapse
OK bro Thanks
Remember to you later
Have a nice day bro

Categories

Resources