[Sony Cross-Device Development Themes and Apps] venkat kamesh:
settings.apk final part

Easy part

1. Decompile Settings.apk

2. Download this View attachment 3655915 merge it (public.xml to compare ids )

3. Now open settings.apk/res/values/string.xml

add these strings

<string name="aokp_animation_title">System animations</string>
<string name="aokp_animation_summary">AOKP custom animation</string>
<string name="title_animation_no_override">Prevent App Overrides</string>
<string name="summary_animation_no_override">Prevent apps from overriding transitions.</string>
<string name="animation_exit_only_title">Enter only animation</string>
<string name="animation_reverse_exit_title">Reverse exit animation</string>
<string name="activity_open_title">Activity open animation</string>
<string name="activity_close_title">Activity close animation</string>
<string name="task_open_title">Task open animation</string>
<string name="task_close_title">Task close animation</string>
<string name="task_move_to_front_title">Move to front animation</string>
<string name="task_move_to_back_title">Move to back animation</string>
<string name="wallpaper_open_title">Wallpaper open animation</string>
<string name="wallpaper_close_title">Wallpaper close animation</string>
<string name="wallpaper_intra_open_title">Wallpaper intra open animation</string>
<string name="wallpaper_intra_close_title">Wallpaper intra close animation</string>
<string name="task_open_behind_title">Task open behind animation</string>
<string name="animation_duration_title">Animation duration</string>
<string name="animation_duration_default">Default</string>

4. Now open Settings.apk\smali\com\android\settings\SettingsPreferenceFragment.smali

Look for this

# instance fields

Add these

.field protected mContentRes:Landroid/content/ContentResolver;
.field protected mContext:Landroid/content/Context;

Find this method

.method public onCreate(Landroid/os/Bundle;)V

in that method look for this line

invoke-super {p0, p1}, Lcom/sonymobile/settings/preference/util/SomcSettingsPreferenceFragment;->onCreate(Landroid/os/Bundle;)V

After that line add these lines

invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getActivity()Landroid/app/Activity;

move-result-object v1

invoke-virtual {v1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

move-result-object v1

iput-object v1, p0, Lcom/android/settings/SettingsPreferenceFragment;->mContext:Landroid/content/Context;

.line 95
invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getActivity()Landroid/app/Activity;

move-result-object v1

invoke-virtual {v1}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

iput-object v1, p0, Lcom/android/settings/SettingsPreferenceFragment;->mContentRes:Landroid/content/ContentResolver;

Now look for this method

.method protected showDialog(I)V

Before that method add this method

.method public setTitle(I)V
.locals 1
.param p1, "resId" # I

.prologue
.line 526
invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getActivity()Landroid/app/Activity;

move-result-object v0

invoke-virtual {v0, p1}, Landroid/app/Activity;->setTitle(I)V

.line 527
return-void
.end method

save it and close

5. In any part of settings ( example Display_settings.xml ) add this line

<PreferenceScreen android:title="@string/aokp_animation_title" android:key="aokp_animation" android:summary="@string/aokp_animation_summary" android:fragment="com.android.settings.aicp.AnimationControls" />

6. Now compile and decompile and replace public ids

then recompile and sign it

Finally

Replace all these files

framework-res.apk

framework.jar

service.jar and

settings.apk

Credits

CyanogenMod

AOKP

Aicp

maaadr group

Dont forgot to mention me in your thread if you use my work

Good Luck​