Documente Academic
Documente Profesional
Documente Cultură
Settings.apk
I looked back and remembered that Sniper Killer suggested me to try custom layout and smali
editing. I knew, it was nothing to do with smalis, duh. Just a simple ImageView Tag it was. But the
Custom Layout thing was true
Guide
1. Download the SettingsSource.zip
2. Decompile your Settings.apk
3. Extract contents of SettingsSource.zip to respective folders in Settings.apk
4. Open /res/xml/device_info_settings.xml
You'll see several <Preference android:title tags
Add this just a line above the first Preference tag:
Code:
<PreferenceCategory android:layout="@layout/areebisawesome" android:key="blah"
android:title="" />
<Preference android:title="@string/model_number"
android:key="device_model" android:summary="@string/device_info_default"
style="?android:preferenceInformationStyle" />
Suggestion......
Areeb Awesome guide but i already ported it from ur modded settings to my rom [ actually i
never thought u will post this guide
]
i ported it but i was not happy as on clicking picture nothing happens....
so i added a onclick functionality ....
it means when we click on picture then it will Display a new picture there.....
so here is my mod :--->
abhi922isawesome.xml [ actually u are awsm too
Code:
<?xml version="1.0" encoding="utf-8"?>
<ImageView android:layout_gravity="center" android:paddingBottom="6.0dip"
android:clickable="true" android:layout_width="fill_parent"
android:layout_height="400.0px" android:src="@drawable/about"
android:scaleType="fitXY"
xmlns:android="http://schemas.android.com/apk/res/android" />
</selector>
Tutorial:
1. Decompile Settings.apk
2.Open to res/xml/settings_headers.xml
3.Lets take an example i want to Add "Maddy" as a activity header
<header android:icon="@drawable/ic_settings_applications"
android:id="@id/application_settings"
android:title="@string/applications_settings"
android:fragment="com.android.settings.applications.ManageApplications" />
<header android:icon="@drawable/ic_settings_maddy"
android:id="@id/maddy_settings" android:title="@string/maddy_settings"
android:fragment="com.android.settings.Maddy" />
Add the string you wish to see in settings Submenu in place of 'Your String
Here'
Brightness
Screen timeout
etc etc
options when you click Display in Settings Menu
an example of what maddy_settings.xml may contain
PHP Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/maddy_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.sonymobile.settings.preference.PreferenceCategory android:title="@str
ing/uipref_title">
<PreferenceScreen android:icon="@drawable/cust_bar_wallpapers" android
:title="@string/wallpaper_settings_title" android:key="wallpaper" android:frag
ment="com.android.settings.WallpaperTypeSettings" />
<com.sonymobile.settings.preference.IntentPreference android:icon="@dr
awable/ic_lighteffects" android:title="@string/light_effects_settings_title" a
ndroid:key="light_effects" settings:dependOnIsValidIntent="true" settings:afte
r="theme">
<intent android:targetPackage="com.sonymobile.settings.illuminatio
n" android:action="android.intent.action.MAIN" android:targetClass="com.sonymo
bile.settings.illumination.IlluminationSetting" />
</com.sonymobile.settings.preference.IntentPreference>
<com.sonymobile.settings.preference.IntentPreference android:icon="@dr
awable/homescreen_application_launcher" android:key="lockscreen" settings:depe
ndOnIsValidIntent="true" settings:hasMetaData="true">
<intent android:action="com.sonyericsson.settings.intent.action.LO
CKSCREEN" />
</com.sonymobile.settings.preference.IntentPreference>
</com.sonymobile.settings.preference.PreferenceCategory>
<com.sonymobile.settings.preference.PreferenceCategory android:title="@str
ing/systemuipref_title">
<com.sonymobile.settings.preference.IntentPreference android:icon="@dr
awable/ic_systemui1" android:key="quicksettings" settings:dependOnIsValidInten
t="true" settings:hasMetaData="true">
<intent android:action="com.sonymobile.intent.action.TOOLBAR_SETTI
NGS" />
</com.sonymobile.settings.preference.IntentPreference>
<com.sonymobile.settings.preference.IntentPreference android:icon="@dr
awable/ic_systemui2" android:key="power_toggles" settings:dependOnIsValidInten
t="true" settings:hasMetaData="true">
<intent android:action="com.serajr.powertoggles.preferences.intent
.PREFERENCES" />
</com.sonymobile.settings.preference.IntentPreference>
</com.sonymobile.settings.preference.PreferenceCategory>
</PreferenceScreen>
Note:
Should work with any versions of Xperia.
Also may work on other Devices,Please try and report.
Credits:
Saqib nazm : For teaching me all this!
DbcCabuslay : For Smali ideas
Jishnu Sur : For some Advice