[Q] Help in Modding/Theming - Samsung Galaxy Gio GT-S5660

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

Related

[GUIDE] [Advanced] How to make an IconPack for Samsung Touchwiz [JellyBean]

Hi
I found the simple way to change the icons and names of applications on Samsung's TouchWiz UI.
you need to know about how to edit an apk and also how to find the application's package and activity names.
0-Download my attached file.
1-Decompile CSCAppResource.apk
2-add all your favorite icons to drawable folder.
2a= if you want to change the application's name too, check this post! [updated 1st august 2013 ]
3-Compile and Sign it.
already , you have CSCAppResource.apk with all icons , you added from above steps.
now , you need to decompile your edited CSCAppResource.apk file, after decompiling, goto Values folder and open the public.xml file vith Notepad++.
now you will find it like this one,, this is an example;
PHP:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="drawable" name="amestris_test" id="0x7f020000" />
</resources>
------------------------------------------------------
4-now create a xml file and paste below lines into it.
PHP:
<?xml version="1.0"?>
<cscappresource>
</cscappresource>
save it with CSCAppResource.xml file name.
------------------------------------------------------
5-now we want to add Icon for specific application. for example we want to change the icon for Browser.
the Browser application activity name is " com.android.browser ".
now we will define the Icon for Browser activity. see below example.
back to "CSCAppResource.xml" file and add this line between cscappresource tag.
PHP:
<item name="com.android.browser" iconid="7f020000"/>
at final we have the "CSCAppResource.xml " like this one.
PHP:
<?xml version="1.0"?>
<cscappresource>
<item name="com.android.browser" iconid="7f020000"/>
</cscappresource>
--------------------------------------------
save the file and copy CSCAppResource.xml and CSCAppResource.apk to this folder:
Code:
/system/csc/appresource
** you need to create "appresource" folder, if not exists.
give permissions to folder and files then reboot your phone.
i will share some samples in post #two.
Best Regards.
original thread
http://www.pda-planet.com/forum/forum127/thread5929.html
CUSTOM ICON PACKS
1-Sence5 Icon Pack by wildstang83​--------------------------------------------------------
How to apply this iconpack from custom recovery mod? [CWM Update.zip file]
Download the attached file "IconPack_Sample_CWM.zip"
Extract it via WinRar or 7Zip, copy your edited files into " \system\csc\appresource" folder and zip it.
now you can install it from recovery.
it is compatible with all phones.
**custom recovery is need.
​--------------------------------------------------------
Icon Pack Convertor by LegendM
Click to view the post
​--------------------------------------------------------
This is an sample:
PHP:
<?xml version="1.0"?>
<cscappresource>
<item name="com.android.browser" iconid="7f020012"/>
<item name="com.android.settings" iconid="7f02004f" />
<item name="com.android.phone" iconid="7f020046" />
<item name="com.android.mms" iconid="7f02003a" />
<item name="com.android.email" iconid="7f02001d" />
<item name="com.android.providers.downloads.ui" iconid="7f02001c" />
<item name="com.android.provider.smemo" iconid="7f020045" />
<item name="com.sec.android.widgetapp.diotek.smemo" iconid="7f020045" />
<item name="com.android.contacts" iconid="7f020018" />
<item name="com.android.contacts.activities.DialtactsActivity" iconid="7f020046" />
<item name="com.android.contacts.activities.PeopleActivity" iconid="7f020018" />
<item name="com.sec.android.app.dialertab.calllog.CalllogTipsActivity" iconid="7f020034" />
<item name="com.sec.android.app.camera" iconid="7f02000f" />
<item name="com.sec.android.app.camera.Camera" iconid="7f02000f" />
<item name="com.sec.android.gallery3d" iconid="7f020024" />
<item name="com.sec.android.app.launcher" iconid="7f020003" />
<item name="com.sec.android.app.controlpanel" iconid="7f02002e" />
<item name="com.sec.android.app.videoplayer" iconid="7f02005d" />
<item name="com.sec.android.app.voicerecorder" iconid="7f020061" />
<item name="com.sec.android.app.music" iconid="7f02003f" />
<item name="com.sec.android.app.myfiles" iconid="7f02001f" />
<item name="com.sec.android.app.fm" iconid="7f020021" />
<item name="com.sec.android.app.popupcalculator" iconid="7f020008" />
<item name="com.sec.android.app.clockpackage" iconid="7f020015" />
<item name="com.android.vending.AssetBrowserActivity" iconid="7f02004a" />
<item name="com.android.vending" iconid="7f02004a" />
<item name="com.google.android.finsky.widget.recommendation.RecommendedWidgetProvider" iconid="7f02004a" />
<item name="com.google.android.finsky.FinskyApp" iconid="7f02004a" />
<item name="com.android.vending.MarketWidgetProvider" iconid="7f02004a" />
<item name="com.google.android.finsky.widget.consumption.NowPlayingWidgetProvider" iconid="7f02004a" />
<item name="com.opera.mini.android" iconid="7f020043" />
<item name="com.noshufou.android.su" />
<item name="com.sds.android.ttpod" iconid="7f020059" />
<item name="net.cactii.flash2" iconid="7f020020" />
<item name="com.android.calendar.launchactivity" iconid="7f02000b" />
<item name="com.android.calendar.LaunchActivity" iconid="7f02000b" />
</cscappresource>
I have a couple of quick questions first though. Does it matter what the icons are named? Like ic_launcher.png, etc...
Also, I see where you say place both the .apk and the .xml into /system/csc/appresource, but I don't have an appresource folder on my Note II. What should I do?
Looks interesting, can't wait to try it out after your reply
wildstang83 said:
I have a couple of quick questions first though. Does it matter what the icons are named? Like ic_launcher.png, etc...
Also, I see where you say place both the .apk and the .xml into /system/csc/appresource, but I don't have an appresource folder on my Note II. What should I do?
Looks interesting, can't wait to try it out after your reply
Click to expand...
Click to collapse
1- it doesn't matter about the names, you just link the icon's ID from public.xml to activity. also you can see the example from second post.
2-you need to create appresource folder manually, it doesn't exists on any firmware.
M_J_Nazari said:
1- it doesn't matter about the names, you just link the icon's ID from public.xml to activity. also you can see the example from second post.
2- if not exists , then create appresource folder manually.
Click to expand...
Click to collapse
Appreciate that. Gonna try it out right now :good:
wildstang83 said:
Appreciate that. Gonna try it out right now :good:
Click to expand...
Click to collapse
you're welcome , you can test the sample from second post.
M_J_Nazari said:
you're welcome , you can test the sample from second post.
Click to expand...
Click to collapse
Yea thats what I am doing, just having a look at how you did it and everything. It works btw. You did a good job with this bud.
EDIT: I have the VZW Samsung Galaxy Note II i605 and it works perfectly.
Trust me I'm searching for this long time
I try create an small windows app that read apex ,go launcher icons and convert them to touchwiz
wildstang83 said:
Yea thats what I am doing, just having a look at how you did it and everything. It works btw. You did a good job with this bud.
EDIT: I have the VZW Samsung Galaxy Note II i605 and it works perfectly.
Click to expand...
Click to collapse
:good: its my pleasure.
LegendM said:
Trust me I'm searching for this long time
I try create an small app that read apex ,go launcher icons and convert them to touchwiz
Click to expand...
Click to collapse
I'll hope you find it perfect.
we are waiting for your job.
i searching a long time for this method and finally find this way is working. it seems an hidden Touchwiz feature.
Edit:Here you go small tool ( may be buggy,report bugs via pm)
LegendM said:
Ok,I made a small app,It extract apk files
Read from xml file and create new one
Now main problem is how can I sign zip?
Click to expand...
Click to collapse
how you edit apk file?
How to setup APKTool & Decompile, Recomile, Sign, and Zipalign APKs
[Guide] [Apktool] [Drag2sign] guide for decompiling apks to edit xml files & sign apk
[GUIDE] Signing and zipaligning your app
LegendM said:
Ok,I made a small app,It extract apk files
Read from xml file and create new one
Now main problem is how can I sign zip?
Click to expand...
Click to collapse
Basically you will need to create a key to sign the apk with. Assuming you have the android sdk and the JDK installed and in your path, you need to open terminal and run a command to create a key:
Code:
keytool -genkey -v -keystore android-test.keystore
Now that that is created you need to create a directory in which to sign your apk. I created mine on my desktop and called it sign_apk. So then I moved my key to that sign_apk folder on my desktop, along with my unsigned apk. After that you need to run another terminal command to sign the apk:
Code:
cd [path to sign_apk]
jarsigner -verbose -keystore android-test.keystore CSCAppResource.apk mykey
It will ask for the password you used while you were setting up your key. After you enter your password, it will sign the apk and all will be good.
Keep in mind, I am an OSX user so certainly not all things may be the same for all users, but this should get you closer at least
wildstang83 said:
Basically you will need to create a key to sign the apk with. Assuming you have the android sdk and the JDK installed and in your path, you need to open terminal and run a command to create a key:
Code:
keytool -genkey -v -keystore android-test.keystore
Now that that is created you need to create a directory in which to sign your apk. I created mine on my desktop and called it sign_apk. So then I moved my key to that sign_apk folder on my desktop, along with my unsigned apk. After that you need to run another terminal command to sign the apk:
Code:
cd [path to sign_apk]
jarsigner -verbose -keystore android-test.keystore CSCAppResource.apk mykey
It will ask for the password you used while you were setting up your key. After you enter your password, it will sign the apk and all will be good.
Keep in mind, I am an OSX user so certainly not all things may be the same for all users, but this should get you closer at least
Click to expand...
Click to collapse
Check my post and report bugs please :laugh:
I skip sign zip,people can do that manually,it just create xml file
LegendM said:
Edit:Here you go small tool ( may be buggy,report bugs via pm)
Click to expand...
Click to collapse
could you please explain it better?
it will convert icon packs from another Launchers to Touchwiz?
:good::good::good::good::good: yaaaay amazing guide bro
Got my Note ll looking like Sense 5
M_J_Nazari said:
could you please explain it better?
it will convert icon packs from another Launchers to Touchwiz?
Click to expand...
Click to collapse
Yep
You have to read other launcher apk file
It automaticly read xml file and create new one for touchwiz
Also you can find extracted apk file in my documents/touchwiz icon converter folder
LegendM said:
Yep
You have to read other launcher apk file
It automaticly read xml file and create new one for touchwiz
Also you can find extracted apk file in my documents/touchwiz icon converter folder
Click to expand...
Click to collapse
its an amazing tool :X:good:
Good,
Work perfec in s3mini
Sent from my GT-I8190 using Xparent Blue Tapatalk 2
this is the easiest apk decompiler i know as of now
http://www.youtube.com/watch?v=5-u0UI9LsrY

[How To] Port Note keyboard to S2 [dedicated number row]

Christian ported this keyboard to S2 but this is a how to do it yourself, prepared it from scratch after a lot of research
1) Extract SamsungIME.apk from the ROM that you prefer that has the default S2 Samsung keyboard
2) decompile the apk
3) in the extracted/decompiled folder, browse to res\xml-sw320dp-hdpi\properties.xml
4) search for the following line and change the value to "true" as seen below
<Property key="USE_ADDTO_NUMBER_KEY_FIRST_LINE" value="true" type="bool" />
5) add the following line at the bottom of the same file
<Property key="NOTE_KEYPAD_TYPE" value="true" type="bool" />
6) next browse to /res/xml-sw320dp-hdpi/qwerty_en.xml and add the following code at the top. Blue color code is what was added to the top to add the numeric row. Modified file attached.
<Row android:keyHeight="0.0px" android:horizontalGap="0.0px" android:verticalGap="@dimen/qwerty_first_line_vertical_gap">
<Key android:keyWidth="100.0%p" android:codes="-257" android:keyLabel="StrEmpty" />
</Row>
<Row android:keyHeight="@dimen/qwerty_number_key_height" android:rowEdgeFlags="top">
<Key android:horizontalGap="@dimen/qwerty_first_col_horizontal_gap" android:codes="0x31" android:keyEdgeFlags="left" android:keyLabel="1" />
<Key android:codes="0x32" android:keyLabel="2" />
<Key android:codes="0x33" android:keyLabel="3" />
<Key android:codes="0x34" android:keyLabel="4" />
<Key android:codes="0x35" android:keyLabel="5" />
<Key android:codes="0x36" android:keyLabel="6" />
<Key android:codes="0x37" android:keyLabel="7" />
<Key android:codes="0x38" android:keyLabel="8" />
<Key android:codes="0x39" android:keyLabel="9" />
<Key android:codes="0x30" android:keyEdgeFlags="right" android:keyLabel="0" />
</Row>
<Row>
<Key android:horizontalGap="@dimen/qwerty_first_col_horizontal_gap" android:codes="113" androidopupCharacters="@string/default_umlaut_q" android:keyEdgeFlags="left" android:keyLabel="q" />
<Key android:codes="119" androidopupCharacters="@string/default_umlaut_w" android:keyLabel="w" />
<Key android:codes="101" androidopupCharacters="@string/default_umlaut_e" android:keyLabel="e" />
<Key android:codes="114" androidopupCharacters="@string/default_umlaut_r" android:keyLabel="r" />
<Key android:codes="116" androidopupCharacters="@string/default_umlaut_t" android:keyLabel="t" />
<Key android:codes="121" androidopupCharacters="@string/default_umlaut_y" android:keyLabel="y" />
<Key android:codes="117" androidopupCharacters="@string/default_umlaut_u" android:keyLabel="u" />
<Key android:codes="105" androidopupCharacters="@string/default_umlaut_i" android:keyLabel="i" />
<Key android:codes="111" androidopupCharacters="@string/default_umlaut_o" android:keyLabel="o" />
<Key android:codes="112" androidopupCharacters="@string/default_umlaut_p" android:keyEdgeFlags="right" android:keyLabel="p" />
</Row>
7) most of the ported keyboards did not have 5 rows in the symbols page. I preferred to match 5 rows on the symbols page like the note keyboard. So, I had to make changes to qwerty_number_symbols.xml file. I remapped the keys and hence attached xml file to the post.
8) Finally I preferred to increase the height of the numeric keys and so I change "qwerty_number_key_height" in dimens.xml to 48 from default value of 31 or 32
I change it both under \res\values\dimes.xml and also \res\values-sw320dp-hdpi\dimes.xml
9) decompile back the apk and then replace the original file with the modified apk file in \preload...\app\
Note: these are the steps to be performed to English language keyboard. For other languages, you need to edit the corresponding qwerty_xx.xml and qwerty_number_symbols_xx.xml file. Thanks to Christian for highlighting this.
Hoping not to missed anything. Got ideas from Korean website.
http://www.matcl.com/?m=bbs&bid=usermoim&cat=팁&uid=191755
josephpatrick said:
Christian ported this keyboard to S2 but this is a how to do it yourself, prepared it from scratch after a lot of research
1) Extract SamsungIME.apk from the ROM that you prefer that has the default S2 Samsung keyboard
2) decompile the apk
3) in the extracted/decompiled folder, browse to res\xml-sw320dp-hdpi\properties.xml
4) search for the following line and change the value to "true" as seen below
5) add the following line at the bottom of the same file
6) next browse to /res/xml-sw320dp-hdpi/qwerty_en.xml and add the following code at the top. Blue color code is what was added to the top to add the numeric row. Modified file attached.
7) most of the ported keyboards did not have 5 rows in the symbols page. I preferred to match 5 rows on the symbols page like the note keyboard. So, I had to make changes to qwerty_number_symbols.xml file. I remapped the keys and hence attached xml file to the post.
8) Finally I preferred to increase the height of the numeric keys and so I change "qwerty_number_key_height" in dimens.xml to 48 from default value of 31 or 32
I change it both under \res\values\dimes.xml and also \res\values-sw320dp-hdpi\dimes.xml
Click to expand...
Click to collapse
josephpatrick said:
9) decompile back the apk and then replace the original file with the modified apk file in \preload...\app\
Hoping not to missed anything. Got ideas from Korean website.
http://www.matcl.com/?m=bbs&bid=usermoim&cat=팁&uid=191755
Click to expand...
Click to collapse
Should not we recompile the apk at last?
BTW nice guide
Sent from my GT-I9100 using Tapatalk 2
corruptionfreeindia said:
[/hide]
Should not we recompile the apk at last?
BTW nice guide
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Corrected, thanks
Good job with the guide mate
But don't forget to type that they need to edit all the remaining querty_xx.xml (xx is the abbreviated language) or to edit their favorite language
Good job once again , I was too lazy to start making a guide for the extra row with the numbers
Sent from my PMP5880D using Tapatalk Pro v4
Touchwiz Independent
How to make it independent from Touchwiz or Samsung Firmware? In other words how to make it work on AOSP and other ROMs variations?
Thanks'
mma173 said:
How to make it independent from Touchwiz or Samsung Firmware? In other words how to make it work on AOSP and other ROMs variations?
Thanks'
Click to expand...
Click to collapse
Does not seem possible because of the Samsung framework
Thanks for very useful guide. I could edit the code and got number row working on my Samsung default keyboard on Galaxy S3 Korean variant. I was looking for this guide from many days. Thanks again bro.
One thing, there are no keys beneath the number rows, can you guide how to add these ? only number rows are seen
Thanks.
kmdangi said:
Thanks for very useful guide. I could edit the code and got number row working on my Samsung default keyboard on Galaxy S3 Korean variant. I was looking for this guide from many days. Thanks again bro.
One thing, there are no keys beneath the number rows, can you guide how to add these ? only number rows are seen
Click to expand...
Click to collapse
You might want to check "sip_key_bg_number.9.png" and "sip_key_bg_number_qwerty.9.png" under res\drawable-sw3**** folders. For landscape layout, you need to also make changes in folder "res\drawable-sw***-land***" folders
josephpatrick said:
You might want to check "sip_key_bg_number.9.png" and "sip_key_bg_number_qwerty.9.png" under res\drawable-sw3**** folders. For landscape layout, you need to also make changes in folder "res\drawable-sw***-land***" folders
Click to expand...
Click to collapse
thanks josephpatrick,
I deleted <Property key="USE_ADDTO_NUMBER_KEY_FIRST_LINE" value="true" type="bool" /> from properties.xml and the problem was solved !!
Can you help me, How to disable the secondary keylabels seen on the number buttons ?
kmdangi said:
thanks josephpatrick,
I deleted <Property key="USE_ADDTO_NUMBER_KEY_FIRST_LINE" value="true" type="bool" /> from properties.xml and the problem was solved !!
Can you help me, How to disable the secondary keylabels seen on the number buttons ?
Click to expand...
Click to collapse
Glad u figured it out. Normally the number row has a different background image/color.
For the symbol part, system/csc/feature.xml ==> remove following lines
<CscFeature_Sip_UseSymbolInCMKey>true</CscFeature_Sip_UseSymbolInCMKey>
<CscFeature_Sip_EnableSymbolInSecondary>de;en_US;en_GB</CscFeature_Sip_EnableSymbolInSecondary>
Use root explorer and edit the file
josephpatrick said:
Glad u figured it out. Normally the number row has a different background image/color.
For the symbol part, system/csc/feature.xml ==> remove following lines
<CscFeature_Sip_UseSymbolInCMKey>true</CscFeature_Sip_UseSymbolInCMKey>
<CscFeature_Sip_EnableSymbolInSecondary>de;en_US;en_GB</CscFeature_Sip_EnableSymbolInSecondary>
Use root explorer and edit the file
Click to expand...
Click to collapse
==============
deleted above lines from feature.xml but the secondary labels on number keys are still present
Note : labels are seen only during alphabet view of keyboard, during symbol view it does not show up.

[Guide][MOD] Network Traffic 4.x to 5.x (turn on/off, color, Display unit and more)

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.

[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