[Galaxy Ace S5830 Themes and Apps] SpaceCaker:
Guide To Add it to your settings.apk yourself

How to Build this mod yourself ;)

NOTE!! This Mod requires Smali edits in Const Codes for proper working

Files you will need to modify are :-

1. Arrays.xml

2. Strings.xml

3. AndroidManifest.xml

4. display_settings.xml

5. DisplaySettings.smali

6. DisplaySettings$OrientationObserver.smali

7. Display.smali

8. Display$1.smali

9. Public.xml

Files you will need to add ( modify ):-

1. screen_display.xml

2. screen_display_land.xml

3. ScreenDisplay.smali

1. We go and Modify Arrays.xml

open res/values/Arrays.xml and add :-

<string-array name="clock_position_entries">
<item>Top</item>
<item>Middle</item>
<item>Bottom</item>
</string-array>
<string-array name="clock_position_entries_land">
<item>Left</item>
<item>Center</item>
<item>Right</item>
</string-array>
<string-array name="clock_position_values">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>

Done :D

2. We go and Modify Strings.xml

Add

<string name="screen_display">Lockscreen and Fonts</string>
<string name="screen_display_summary" />
<string name="home_screen">Home screen</string>
<string name="wallpaper">Wallpaper</string>
<string name="lock_screen">Lock screen</string>
<string name="clock_position">Clock position</string>
<string name="clock_position_summary">Adjust clock position on lock screen</string>
<string name="weather">Weather</string>
<string name="weather_summary">Adjust weather information settings on lock screen</string>

Done :D

3. We go and Modify AndroidManifest.xml ( WHY ??? because if you dont you cant open the lockscreen options its sort of key ;) )

Find :-

<activity android:label="@string/wallpapers" android:name="Wallpapers">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>

And above it add

<activity android:label="@string/screen_display" android:name="ScreenDisplay">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>

so it will look like :-

<activity android:label="@string/screen_display" android:name="ScreenDisplay">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity android:label="@string/wallpapers" android:name="Wallpapers">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>

4. We Go and edit display_settings.xml

Open res/xml

Change :-

<PreferenceScreen android:title="@string/wallpapers" android:key="wallpapers" android:summary="@string/wallpapers_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.Wallpapers" />
</PreferenceScreen>

to

<PreferenceScreen android:title="@string/screen_display" android:key="screen_display" android:summary="@string/screen_display_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ScreenDisplay" />
</PreferenceScreen>

And DELETE !!

<com.android.settings.flipfont.FontListPreference android:title="@string/monotype_preference_title" android:key="MONOTYPE" android:summary="@string/monotype_preference_summary" />

5. Add Screen_display.xml and Screen_display_land.xml to res/xml

6. Add ScreenDisplay.smali to smali settings/smali/com/android/settings

7. Compile the Apk

8. Now decompile the compiled apk again

and now comes the hard part

in every smali listed

search for const

after it you will see a code like 0x7f03001e

7f03001e <- thats the code we need to change

in public.xml its mostly 07f03001e or 7f03001e

if it is the 07f03001e remove the 0 so it will look like this 7f03001e

after you decompiled the compiled apk you will need to compare every smali and search for these codes and recorrect them

and then you can compile the apk again

if you cant open the display option in settings.apk or it gives errors sign the apk or use ADB Long Logcat or Debug com.android.settings

You must use CTRL + F a lot while searching for correct codes

and i cant give a better guide then this sorry

Resources you will need to add are in the attachements