yashsingh1/xdaforums huggingface dataset:
[Xperia Arc Themes and Apps] Envious_Data:
posible

could you give me an example of adding a new menu entirely, , (if posible a new headder / splitter or what name they have)

ps could you color code your example

pps mentioned in a previous message

ppps credtis will be given on my Website
[Xperia Arc Themes and Apps] Saqib Nazm:
http://xdaforums.com/showthread.php?t=2389332 here is the answer of all your question :) :good:
[Xperia Arc Themes and Apps] abo hani:
Thanks mate :D but how to change bluetooth-wifi field from white to black ?

Thanks again :)
[Xperia Arc Themes and Apps] Gnome:
I want to try this on my Nexus 4, just want to ask if this will work. Thanks!
[Xperia Arc Themes and Apps] Sahaab:
It most probably will dont worry ;)

Sent from my LT18i
[Xperia Arc Themes and Apps] Saqib Nazm:
Welcome :) but I am extremely sorry I couldn't understand your Qs.

Yes it should work for everything :) try it
[Xperia Arc Themes and Apps] mi-425:
Hi saqib,

Can u help me to find the function in which it opens a window to select the sim from two for 3g mode. For that I'll attach the settings.apk and some screenshots which will clear the doubt.:o
[Xperia Arc Themes and Apps] Saqib Nazm:
Nah man that needs smali when you want to switch between 2g/3g & I don't know the codes
[Xperia Arc Themes and Apps] ifyouwant:
Hi man, I have a small problem here. Where is the target class in this file?
[Xperia Arc Themes and Apps] Saqib Nazm:
android:targetClass="com.hi.tools.studio.control.center.SplashActivity"

look in the android:name=".SplashActivity" in the 2nd line of acitvity. So in those case we need to add the package name before target class :)
[Xperia Arc Themes and Apps] ifyouwant:
Thanks, man:D:D:D
[Xperia Arc Themes and Apps] mi-425:
Please...please...just tell me how can I add that dialog to chose between two sim ....remaining work is done but the main problem is ...I can't found where is that line or activity in attached apk file I want to copy and paste into my settings.apk. Dear saqib I hv both apks one I attached is with this feature and another is mine both are same I tally both but I can't found that line which opens third window which I attached image. Just help me to open that window in my setting no matter it works or not remaining I'll manage..please..
[Xperia Arc Themes and Apps] xylu:
Tried this and it does hide the app but when launching it on setting gave me settings "unfortunately settings stopped working".. any help?

Running jb 4.1.1 MT6577
[Xperia Arc Themes and Apps] davidben73:
hello saqib, I was trying this with your tutorial.

I have successfully decompiling my settings.apk but I can't found settings_header.xml in /res/xml

there is just settings.xml without "_header" in the last line.

I'm so confuse :confused:

Would you help me please :o
[Xperia Arc Themes and Apps] Saqib Nazm:
which device & which firmware r you using?
[Xperia Arc Themes and Apps] davidben73:
I'm using LWW with .62 FW :)
[Xperia Arc Themes and Apps] Saqib Nazm:
Ohk I think it's like that in GB so just make the changes there as I made in settings_header.xml
[Xperia Arc Themes and Apps] sieuan:
Hi sir!

I want to add new power settings, so I created a new xml file with name advance_power_setting.xml, put it in the xml folder

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/power_settings_title"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceScreen android:title="@string/power_usage_summary_title" android:key="battery" android:fragment="com.android.settings.fuelgauge.PowerUsageSummary" />
<PreferenceScreen android:title="@string/battry_style_title" android:summary="@string/battry_style_summary">
<intent android:action="com.ghareeb.battery.Settings" />
</PreferenceScreen>
</PreferenceScreen>

then I add this code in settings_headers.xml

<header android:icon="@drawable/ic_settings_battery" android:id="@id/power_settings" android:title="@string/power_settings_title" android:fragment="com.android.settings.PowerSettings" />

and I add in strings.xml

<string name="battry_style_title">Battery Style</string>
<string name="battry_style_summary">Choose battery icon</string>
<string name="power_settings_title">Battery settings</string>

then i recompile settings.apk and sign it. I push this new settings.apk to my phone, and open the settings normal.

But when I click on "Battery settings", the settings was FORCE CLOSE.

What things wrong, sir? Please help me. Thanks!
[Xperia Arc Themes and Apps] Sahaab:
Use this guide to add a new activity ;)

P.s this is a new activity ur trying to make

http://xdaforums.com/showthread.php?p=44208248

Sent from my LT18i
[Xperia Arc Themes and Apps] sieuan:
ok sir, I success add a new activity in settings. and now, that activity was display in display-settings, sir. I dont like that, I want it display in battery-setting, beside the power-ussage-sumary sir. How to make it display in battery-setting sir?

/// sorry for my bad english.
[Xperia Arc Themes and Apps] Sahaab:
Change the xml file where u placed the code

U probably placed in display_settings.xml

Change it to some xml related to battery or power

I do not know exact xml at this moment, maybe saqib can help at this point

Sent from my LT18i
[Xperia Arc Themes and Apps] Saqib Nazm:
You added in display_settings.xml, add it in somc_power_settings.xml
[Xperia Arc Themes and Apps] sieuan:
OK sir!

I created a new xml file with name somc_power_settings.xml and put it in the xml folder

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/power_settings_title"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceScreen android:title="@string/power_usage_summary_title" android:key="battery" android:fragment="com.android.settings.fuelgauge.PowerUsageSummary" />
<PreferenceScreen android:title="@string/battry_style_title" android:summary="@string/battry_style_summary">
<intent android:action="com.ghareeb.battery.Settings" />
</PreferenceScreen>
</PreferenceScreen>

then I add this code in settings_headers.xml

<header android:icon="@drawable/ic_settings_battery" android:id="@id/power_settings" android:title="@string/power_settings_title" android:fragment="com.android.settings.PowerSettings" />

and I add in strings.xml

<string name="power_settings_title">Battery settings</string>

then i recompile settings.apk and sign it. I push this new settings.apk to my phone, and open the settings normal.

But when I click on "Battery settings", the settings was FORCE CLOSE.

What things wrong, sir? Please help me. Thanks!
[Xperia Arc Themes and Apps] ifyouwant:
Hi men, Can you introduce me to add the apllication settings to system settings? Thanks so much. :good::laugh::good::laugh::good::laugh:
[Xperia Arc Themes and Apps] Saqib Nazm:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/power_settings_title"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceScreen android:title="@string/power_usage_summary_title" android:key="battery" android:fragment="com.android.settings.fuelgauge.PowerUsageSummary" />
<PreferenceScreen android:title="@string/battry_style_title" android:summary="@string/battry_style_summary">
[COLOR="Red"] <intent android:action="com.ghareeb.battery.Settings" />[/COLOR]
</PreferenceScreen>
</PreferenceScreen>

as you can see in the line there is no target package, target class, & android:action is also wrong, find all those in the AndroidManifest of the app like I guided in the 1st page, & all will be good

You are welcome, but I couldn't understand what you asked for
[Xperia Arc Themes and Apps] Sahaab:
He is saying to move it down under the system category in settings_headers.xml

Sent from my LT18i
[Xperia Arc Themes and Apps] xylu:
Is there a way to run the app you added then not seeing it in the drawer?
[Xperia Arc Themes and Apps] Sahaab:
if u mean to hide it from app drawer

try this
[Xperia Arc Themes and Apps] xylu:
tried it sir, guess does not work on every app, it does hide the app in app drawer but when trying to launch the app it gives me "unfortunately settings has stopped" :confused:
[Xperia Arc Themes and Apps] Sahaab:
that is probably bcuz some code is messed up from where u gave the link to open the app
[Xperia Arc Themes and Apps] Matx13:
Thank'you for mod, it works :)

But as xylo as soon as I change the manifest with the apk method jader13254 = FC ! :confused:

- settings.apk :

- and apk GravityBox :

sorry for my english
[Xperia Arc Themes and Apps] Saqib Nazm:
Hmm..try just removing that line of intent. try again though I cannot guarantee success cause even I get fc sometimes :p try with no other tool but apktool
[Xperia Arc Themes and Apps] ifyouwant:
Please help me with this. I would like to open This app Settings in System Settings. Can you guide me? Thanks so so so much.:good::fingers-crossed::good::fingers-crossed::good:
[Xperia Arc Themes and Apps] Saqib Nazm:
So if I didn't get you wrong you want this SemcPhone settings to be added in Settings.apk. So for that you need to write the resources in settings_header.xml, you can do that by taking help from 1st page(don't forget about strings.xml & icon). ANyway I will tell you the resources here,

android:targetPackage="com.android.phone"

android:action="android.intent.action.MAIN"

android:targetClass="com.android.phone.CallFeaturesSetting.ADD_VOICEMAIL" (probably I am not sure, there are thousands on actions :p)

try it & let me know, I think its a miui Semc Phone? So you can easily find it's target class by decompiling it's settings & look in settings_header
[Xperia Arc Themes and Apps] ifyouwant:
It's not working, guy, Fc happened. :(. Help me, please, thanks
[Xperia Arc Themes and Apps] Saqib Nazm:
tell me what did you do? Like for Settings_header & also strings & icon. write the header you wrote in xml
[Xperia Arc Themes and Apps] ifyouwant:
Yess, I did what you said. But it's not working. here's my setting_header.xml

Thanks so much for your help. thanks
[Xperia Arc Themes and Apps] Saqib Nazm:
Ohk so can you tell me on which Rom you're trying this thing on? As I can see from Manifest it is SemcPhone of MIUI isn't it? Does it work on the Rom you're trying on?
[Xperia Arc Themes and Apps] ifyouwant:
I'm also using Miui rom and I'm trying to add it to settings.
[Xperia Arc Themes and Apps] Saqib Nazm:
The problem might be either in the android:targetClass I have told you (which are many in this manifest, so I am confised) other thing is there are two targetpackage, that is com.android.phone. I never used MiUi so I have limited knowledge about it, what is the other com.android.phone here?
[Xperia Arc Themes and Apps] ifyouwant:
Hey men, I found it, The targetclass is com.android.phone.CallFeaturesSetting. Thanks for your help. Thnaks man
[Xperia Arc Themes and Apps] mi-425:
Help...:rolleyes:
[Xperia Arc Themes and Apps] Saqib Nazm:
I am really sorry man, but I have no idea what you asked for :(
[Xperia Arc Themes and Apps] devilmaycry2020:
hi all

I want to add an item to Xperia Menu but i didn't see any xml file related to Xperia. someone know help me please. thanks
[Xperia Arc Themes and Apps] Sahaab:
its in SEMCSettings.apk
[Xperia Arc Themes and Apps] devilmaycry2020:
thanks for the info. but i decompile SEMCSettings.apk i didn't see any xml have the text "internet setting, screen mirroring,...
[Xperia Arc Themes and Apps] Sahaab:
those stuff are usually added via java coding, depending on the apk's being present or not
[Xperia Arc Themes and Apps] devilmaycry2020:
So no way to do that
[Xperia Arc Themes and Apps] Sahaab:
There probably is

Wait for saqib_nazm to reply, he probably knows

I think it should be same, there are xml files, just add the code into them

Sent from my LT18i
[Xperia Arc Themes and Apps] devilmaycry2020:
thanks. my AndroidManifest.xml of ReadyToRun.apk have permission like as your. so what' next ?

each of option in Xperia call to its own apk , such as ReadyToRun.apk (internet setting),enhancedusbux.apk(USB connectivity), IddAgent.apk ( Usage info setting)... so i want to know which xml file is main file contain the code to call to these apk . Because in SemcSettings.apk don't have xml folder. thanks
[Xperia Arc Themes and Apps] Saqib Nazm:
Thats why I wrote & pasted AndroidManifest.xml bro
[Xperia Arc Themes and Apps] devilmaycry2020:
my AndroidManifest.xml of SemcSettings.apk is same like yours but AndroidManifest.xml of ReadyToRun.apk is different so i change it like yours. But after recompile ReadyToRun, it didn't show Media Server Setting in Xperia menu.
[Xperia Arc Themes and Apps] Saqib Nazm:
Bro Ready2Run is not media server, you need to check media server apps android manifest & put the correct permission link in AndroidManifest of SemcSettings, you can decompile & check what permission is given on the one which has media server in it. I used Ready2Run just to show you an example how this things work
[Xperia Arc Themes and Apps] devilmaycry2020:
ok. thanks. AndroidManifest.xml of SemcDlna have many permission i dont know which one, please help me.

<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="com.sonyericsson.permission.FMRADIO" />
<uses-permission android:name="com.sonyericsson.permission.MUSIC" />
<uses-permission android:name="com.sonymobile.dlna.permission.READ_DATA" />

i've tried to add all but nothing added to Xperia option. Just add permission is not enough

i added these code to AndroidManifest.xml and added all related to string.xml, style.xml ,public.xml and R$string.smali, R$style.smali,Manifest$permission.smali and one smali file ApplicationSettingsActivity.smali i dont know how to edit but when i press to Media Server Setting it said unfortunately Application settings has stopped.

<activity android:theme="@style/MDMS" android:name=".server.DMSMainActivity" android:excludeFromRecents="true" android:launchMode="singleTask" android:screenOrientation="user" android:configChanges="keyboardHidden|orientation|screenSize" android:windowSoftInputMode="adjustPan">
<intent-filter>
<action android:name="com.sonymobile.dlna.intent.action.START_DMS_ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="com.sonymobile.settings.preference.TITLE" android:resource="@string/mdms_strings_settings_list_item_title_txt" />
<meta-data android:name="com.sonymobile.settings.preference.SUMMARY" android:resource="@string/mdms_strings_settings_list_item_summary_txt" />
</activity>

<activity android:theme="@style/WelcomeGuideActivity" android:name=".WelcomeGuideActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="@style/Home" android:label="@string/dlna_strings_new_app_name_txt" android:name=".HomeActivity" android:finishOnTaskLaunch="true" android:excludeFromRecents="true" android:configChanges="keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
[Xperia Arc Themes and Apps] aau_rhmn:
Very nice tutorial

Hei masters..

I get tired to editing settings_headers.xml

i want adding app to settings. but more app needed more than one.

My script on settings header to add

</header>
<header android:title="@string/header_category_advanced" />
<header android:icon="@drawable/ic_settings_xposed" android:title="@string/xposed_app">
<intent android:targetPackage="de.robv.android.xposed.mods.appsettings" android:action="android.intent.action.MAIN" android:targetClass="de.robv.android.xposed.mods.appsettings.XposedModActivity" />
<header android:icon="@drawable/ic_settings_xblast" android:title="@string/xblast_tools">
<intent android:targetPackage="ind.fem.black.xposed.mods" android:action="android.intent.action.MAIN" android:targetClass="ind.fem.black.xposed.mods.XblastSettings" />
<header android:icon="@drawable/ic_settings_xtheme" android:title="@string/xtheme_engine">
<intent android:targetPackage="sg.ruqqq.XThemeEngine" android:action="android.intent.action.MAIN" android:targetClass="sg.ruqqq.XThemeEngine.ThemeChooserActivity" />
</header>
<header android:title="@string/header_category_sound" />
<header android:icon="@drawable/ic_settings_viper" android:title="@string/viper_soundmod">
<intent android:targetPackage="com.vipercn.viper4android" android:action="android.intent.action.MAIN" android:targetClass="com.vipercn.viper4android.activity.ViPER4Android" />
<header android:icon="@drawable/ic_settings_volumeplus" android:title="@string/volume_plus">
<intent android:targetPackage="com.TEST.android.lvh" android:action="android.intent.action.MAIN" android:targetClass="com.TEST.android.lvh.activity.Manager" />
</header>
<header android:title="@string/header_category_engine" />
<header android:icon="@drawable/ic_settings_cpucontrol" android:title="@string/cpu_control">
<intent android:targetPackage="it.sineo.android.noFrillsCPU" android:action="android.intent.action.MAIN" android:targetClass="it.sineo.android.noFrillsCPU.activity.MainActivity" />

isnt right like that?

because when i recompile error says mismatched settings_headers.xml

Please give me a perfect answer :good::D
[Xperia Arc Themes and Apps] Saqib Nazm:
It's neither related to smali, now I know it is related to the app's AndroidManifest which you want to add. I couldn't get sufficient time to get deep into this matter but If you have seen somewhere/some rom that SemcDlna is added in semc_settings then look in it's manifest & compare with the one you want to add. If you don't understand send it the whole apk to me.

</header>
<header android:title="@string/header_category_advanced" />
<header android:icon="@drawable/ic_settings_xposed" android:title="@string/xposed_app">
<intent android:targetPackage="de.robv.android.xposed.mods.appsettings" android:action="android.intent.action.MAIN" android:targetClass="de.robv.android.xposed.mods.appsettings.XposedModActivity" />
[COLOR=Red] </header>[/COLOR]
<header android:icon="@drawable/ic_settings_xblast" android:title="@string/xblast_tools">
<intent android:targetPackage="ind.fem.black.xposed.mods" android:action="android.intent.action.MAIN" android:targetClass="ind.fem.black.xposed.mods.XblastSettings" />
[COLOR=Red] </header>[/COLOR]
<header android:icon="@drawable/ic_settings_xtheme" android:title="@string/xtheme_engine">
<intent android:targetPackage="sg.ruqqq.XThemeEngine" android:action="android.intent.action.MAIN" android:targetClass="sg.ruqqq.XThemeEngine.ThemeChooserActivity" />
</header>
<header android:title="@string/header_category_sound" />
<header android:icon="@drawable/ic_settings_viper" android:title="@string/viper_soundmod">
<intent android:targetPackage="com.vipercn.viper4android" android:action="android.intent.action.MAIN" android:targetClass="com.vipercn.viper4android.activity.ViPER4Android" />
<header android:icon="@drawable/ic_settings_volumeplus" android:title="@string/volume_plus">
<intent android:targetPackage="com.TEST.android.lvh" android:action="android.intent.action.MAIN" android:targetClass="com.TEST.android.lvh.activity.Manager" />
</header>
<header android:title="@string/header_category_engine" />
<header android:icon="@drawable/ic_settings_cpucontrol" android:title="@string/cpu_control">
<intent android:targetPackage="it.sineo.android.noFrillsCPU" android:action="android.intent.action.MAIN" android:targetClass="it.sineo.android.noFrillsCPU.activity.MainActivity" />

you miss a header between every intent, add them like I did in two of yours
[Xperia Arc Themes and Apps] aau_rhmn:
Thanks master. I wanna try.

I report if that's work soon.. :D

Thanks for repplying me
[Xperia Arc Themes and Apps] aau_rhmn:
Thanks master :D

I get finished with that. And THATS WORK!! Thank you very much :D

PA Rom wanna be :thumbup::D
[Xperia Arc Themes and Apps] devilmaycry2020:
thanks. here is my files http://d-h.st/6Hn
[Xperia Arc Themes and Apps] devilmaycry2020:
[MENTION=4930226]Ayush Singh[/MENTION]

Thank you for helps. it worked like a charm . But why edit AndroidManifest.xml of SemcDlna.apk can add an option in SemcSettings.apk ?

Here is my result.
[Xperia Arc Themes and Apps] sieuan:
Hi sir!

I am trying to add call settings (dialer settings) into main settings:

<header android:icon="@drawable/ic_settings_call" android:title="@string/call_title">
<intent android:targetPackage="com.android.[COLOR="Red"]xxx[/COLOR]" android:action="android.intent.action.MAIN" android:targetClass="com.android.[COLOR="red"]xxx.yyy[/COLOR]" />
</header>

I tried to look in androidmanifest of Phone.apk or Contacts.apk, but I don't know what the targetPackage and targetClass of the CALL-SETTINGS. Can you help me? Here is my androidmanifest.xml:

///sorry: I attached 2 file of Phone&Contact in txt, because the forum limit the post in 30000 characters long.

Thanks sir!
[Xperia Arc Themes and Apps] Saqib Nazm:
android:targetPackage="com.android.phone"

android:targetClass="com.android.phone.CallFeaturesSetting"
[Xperia Arc Themes and Apps] sieuan:
Thanks sir!

But with targetClass="com.android.phone.CallFeaturesSetting", it enter into Voice Call Settings (sub-setting of call settings), its not right the call settings I need.

In Dialer interface, when I press menu button, its appear menu popup, then I press on "Settings", it enter into Call Settings, include Voice call settings, video, internet call, and other <--- I need add that call settings, but I dont know what the right targetClass.

/// Edit: SOLVED: the right targetClass is "com.android.phone.CallSettings"
[Xperia Arc Themes and Apps] leito824:
Hi mate, I have the following problem that I can not solve:

image 1: ok all lines, packages and targetclass

image 2: ok

imaje 3: when you tap the option produces FC

I followed to the letter the tutorial, but I can not make it work in the submenu cm10.2 settings ...!

any idea ..?
[Xperia Arc Themes and Apps] Saqib Nazm:
Sorry but I didn't understand a thing, the screenshot you put for xml is blurry I can't see it properly. All other screenshot are in your native language. You also didn't tell me which option you are trying to add, is it an app or something?
[Xperia Arc Themes and Apps] leito824:
hello mate. sorry for not expressing myself well ...!

already solved ..! I honestly do not know what happened, but today I went back to try from scratch, and worked perfectly ..! Your guide is very well explained and detailed ..! thank you ..!

puedes ver el video de el mod en mi settings en este link: https://www.youtube.com/watch?v=2GWMUNWwesY&feature=youtu.be

=D =D
[Xperia Arc Themes and Apps] Panneer Selvam:
Very Helpful..

Very nice tutorial... i like it..

keep it up.. and add the more type of tut.....
[Xperia Arc Themes and Apps] jereMarfil24:
how to change the background of the settings ?

it will be great if you will add that guide too

because now Z1 and ZU has white settings and all wanna mod it in their device like me

:D
[Xperia Arc Themes and Apps] Sahaab:
making settings white can be found here

http://xdaforums.com/showthread.php?t=2391932
[Xperia Arc Themes and Apps] devilmaycry2020:
hi all

i want to add volume icon to menu option of Walkman app for easy adjust while play music. please help. i tried to add

<uses-permission android:name="com.sonyericsson.permission.SETTINGS" />

to AndroidManifest.xml

but it didn't work, please help. thanks