[Xperia Arc Themes and Apps] sandy7:
More TUTS here

Adding options in settings.apk

well friends today iam going to show u have to add options like CPU control, panel settings , navigation bar in ur settings.apk

SO lets start

1-STEP

install the frameworks from the rom from where u are taking the settings.apk

2-STEP

hope u guys know how to decompile iam not going to explain it

so decompile the settings.apk (make sure u set the compression level 128mb)

3-STEP

once decompiled

goto res\values

1)strings.xml

add the lines at the end

creating a header name

add this line at the end

[B]<string name="header_category_advanced">[COLOR="Red"]Sandy's mod[/COLOR]</string>[/B]

note:u can change the red colored highlighted name to any thing..

for CPU control

[B]<string name="overclocktool_title">CPU control</string>[/B]

for quickpanel

[B]<string name="quickpanel_location">Quick panel</string>[/B]

for navigation bar

[B]<string name="nav_title">Navigation button</string>[/B]

for sim card option

<string name="sim_title">SIM card</string>

For sms counter

<string name="sms_title">SMS counter</string>

for lockscreen changer

<string name="lockscreen_title">Lock screen</string>

for audio effect

<string name="audio_title">Audio</string>

for LED control app

<string name="led_title">LED control</string>

so one u add all these lines in strings.xml it should look like this

2)Public.xml

now add these lines at the end of <public type="string" line

for CPU control

[B]<public type="string" name="overclocktool_title" id="0x7f0b0658" />[/B]

for quickpanel

[B]<public type="string" name="quickpanel_location" id="0x7f0b065b" />[/B]

for navigation bar

[B]<public type="string" name="nav_title" id="0x7f0b065c" />[/B]

for sim card option

<public type="string" name="sim_title" id="0x7f0b062d" />

For sms counter

<public type="string" name="sms_title" id="0x7f0b062e" />

for lockscreen changer

<public type="string" name="lockscreen_title" id="0x7f0b0633" />

for audio effect

<public type="string" name="audio_title" id="0x7f0b062b" />

for LED control app

<public type="string" name="led_title" id="0x7f0b062f" />

IMP:- make sure the hex codes are in order

so one u add all these lines in public.xml it should look like this

4-STEP

goto res/xml/settings_headers.xml

and add the following lines.

For add the header that u created.

[B]<header android:title="@string/header_category_advanced" />[/B]

now placing the option that u have created

for CPU control

[B]<header android:icon="@drawable/ic_overclocktool" android:title="@string/overclocktool_title">
<intent android:targetPackage="it.sineo.android.noFrillsCPUClassic" android:action="android.intent.action.MAIN" android:targetClass="it.sineo.android.noFrillsCPUClassic.activity.MainActivity" />
</header>[/B]

for quickpanel

[B]<header android:icon="@drawable/ic_settings_quickpanel" android:id="@id/quickpanel_location_settings" android:title="@string/quickpanel_location">
<intent android:targetPackage="com.lidroid.quickpanel" android:targetClass="com.lidroid.quickpanel.MainActivity" />
</header>[/B]

for navigation bar

[B]<header android:icon="@drawable/ic_nav" android:title="@string/nav_title">
<intent android:targetPackage="cn.kyle.gn.NavBar" android:action="android.intent.action.MAIN" android:targetClass="cn.kyle.gn.NavBar.GnNavBarActivity" />
</header>[/B]

for sim card option

<header android:icon="@drawable/ic_sim" android:title="@string/sim_title">
<intent android:targetPackage="com.gsmdev.simcard" android:action="android.intent.action.MAIN" android:targetClass="com.gsmdev.simcard.MainActivity" />
</header>

For sms counter

<header android:icon="@drawable/ic_sms" android:title="@string/sms_title">
<intent android:targetPackage="org.kknd.android.smscounter" android:action="android.intent.action.MAIN" android:targetClass="org.kknd.android.smscounter.SmsCounterActivity" />
</header>

for lockscreen changer

<header android:icon="@drawable/ic_settings_lockstyle" android:title="@string/lockscreen_title">
<intent android:targetPackage="com.gagan.style" android:targetClass="com.gagan.style.LockscreenStyleActivity" />
</header>

for audio effect

<header android:icon="@drawable/ic_audio" android:title="@string/audio_title">
<intent android:targetPackage="org.nocrew.tomas.headsetnotifierfree" android:action="android.intent.action.MAIN" android:targetClass="org.nocrew.tomas.headsetnotifierfree.HeadsetNotifierActivity" />
</header>

for LED control app

<header android:icon="@drawable/ic_led" android:title="@string/led_title">
<intent android:targetPackage="com.koo.lightmanager" android:action="android.intent.action.MAIN" android:targetClass="com.koo.lightmanager.MainActivity" />
</header>

so one u add all these lines in settings_headers.xml it should look like this

5-STEP

now we have to add some png's for these options in settings..

i have provided the pngs in 'settings_resources.rar' attached below

add the png's in this place like this

MDPI- res\drawables-mdpi

HDPI- res\drawables-hdpi

6-STEP

recompile it new its done

7-STEP

new u need th push the settings with options apk's (like cpu OC ,panel settings ' nav bar)

i have provided the apk's in settings_resources.rar

8-STEP

now push these settings.apk and other apks using a flashable zip formate i have attached below

HOW TO ADD PER APP DPI IN DISPLAY SETTINGS​

1-STEP

decompile settings.apk

open res/values/strings.xml

and add these lines at the end

<string name="dpi_enable">per app dpi</string>
<string name="dpi_enable_summary">Tablet UI</string>
<string name="dpi_settings">dpi settings</string>
<string name="dpi_settings_summary">change dpi of each app</string>

2-STEP

open res/xml/display_settings.xml

and add the red marked lines..

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/display_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<CheckBoxPreference android:title="@string/swiqi_strings_swiqi_txt" android:key="swiqi_strings_swiqi_txt" android:summary="@string/swiqi_strings_swiqi_desc_txt" />
<com.android.settings.BrightnessPreference android:title="@string/brightness" android:key="brightness" android:dialogTitle="@string/brightness" />
<PreferenceScreen android:title="@string/wallpaper_settings_title" android:key="wallpaper" android:fragment="com.android.settings.WallpaperTypeSettings" />
<CheckBoxPreference android:title="@string/accelerometer_title" android:key="accelerometer" />
<ListPreference android:persistent="false" android:entries="@array/screen_timeout_entries" android:title="@string/screen_timeout" android:key="screen_timeout" android:summary="@string/screen_timeout_summary" android:entryValues="@array/screen_timeout_values" />
<ListPreference android:entries="@array/font_size_entries" android:title="@string/title_font_size" android:key="font_size" android:summary="@string/summary_font_size" android:dialogTitle="@string/dialog_title_font_size" android:entryValues="@array/font_size_values" />
<CheckBoxPreference android:persistent="false" android:title="@string/notification_pulse_title" android:key="notification_pulse" />
<PreferenceCategory android:title="@string/display_category_personalisation_title" android:key="personalisation_category">
<PreferenceScreen android:title="@string/theme_label" android:key="theme" android:summary="@string/theme_summary" />
<PreferenceScreen android:title="@string/lockscreen_label" android:key="lockscreen" android:summary="@string/lockscreen_summary" />
[COLOR="red"]<PreferenceScreen android:title="@string/dpi_enable" android:key="dpi" android:summary="@string/dpi_enable_summary">
<intent android:targetPackage="de.robv.android.xposed.installer" android:action="android.intent.action.MAIN" android:targetClass="de.robv.android.xposed.installer.XposedInstallerActivity" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/dpi_settings" android:key="dpi" android:summary="@string/dpi_settings_summary">
<intent android:targetPackage="de.robv.android.xposed.mods.appsettings" android:action="android.intent.action.MAIN" android:targetClass="de.robv.android.xposed.mods.appsettings.XposedModActivity" />
</PreferenceScreen>[/COLOR]
</PreferenceCategory>
</PreferenceScreen>

3-STEP

push the xposed apps provided in settings_resoures_new.rar to system/app

so thats it..

CREDITS

Serajr

Till-Kurpse

gagan

so thats it..hope its understandable

if u like my contributions hit the thanks button or buy me a beer (make me drunk :p)