[Galaxy Y GT-S5360 Themes and Apps] hell_lock:
Modding apps

Requirements:

1.Apk decompiler

2.Notepad++(recommended)

3.Settigns.apk

4.Phone with spare parts installed.

MODDING SETTINS.APK

Over here I will show how to add more apps in settings.apk

1.Decompile settings.apk

2.Go to res/xml/settings.xml and open it with notepad++

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Before editing something you need to know what all tags we would be dealing with:

a)android:title="PATH OF STRING" : Strings tell the system what name should be designated for that space.It would be something like "@string/xxxx" to know what this"xxxx" tells to the system go to values/strings.xml and find the string name. After the string name you will see what it actually means.Instead of putting a string in it, you can directly put the text you want but it should be in this format "xxx"

b)android:summary="xxx" :Is similar to string function but it shows the subtitle of the string and its optional to use.Over here also you can put anything you want but in "xxx"

c) <intent android:targetPackage="NAME OF PACKAGE" :It is used for directing any app to show in settings. It is like the internal name of the app

d)android:targetClass="FILE TO BE EXECUTED" :As you know a app has alot of files in it. This tag tells the system to execute 'x' command when the above tag is pressed.If you are going to use the tag I showed above then putting this is a MUST.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

3.Decompile the app you want to add in settings. I take 'SpareParts' as an example.

4.Open the decompiled file and go to AndroidManifest.xml and look for something like this

"com.android.spare_parts" is the internal package name and every app has it.

5.Now we need the target class of the apk. For that download adw launcher and keep pressing anywhere on the background to open desktop settings.

6.Go to custom shortcut-->pick your activity-->Activity-->Find SpareParts and click on it.You will see something like this:

7.The things in the brackets is the class of the package. To convert it into target class you need to first copy the targetpackage and then add the things in brackets to it.The final targetclass would be "com.android.spare_parts.SpareParts"

8.We are now done with the difficult part.Now we need to put this in settings.xml. For that copy any COMPLETE tag over there are make the modifications in it.Here is how it should look:

Original code(I copied the last code)
- <com.android.settings.IconPreferenceScreen android:title="@string/about_settings" settings:icon="@drawable/ic_settings_about">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.DeviceInfoSettings" />
</com.android.settings.IconPreferenceScreen>

And put the corresponding values to it:

- <com.android.settings.IconPreferenceScreen android:title="Spareparts" android:summary="Few modifications" settings:icon="@drawable/spareparts">
<intent android:targetPackage="com.android.spare_parts" android:action="android.intent.action.MAIN" android:targetClass="com.android.spare_parts.SpareParts" />
</com.android.settings.IconPreferenceScreen>

9.Place the modified code at last before /PreferenceScreen.After this put a icon for that app in drawable-ldpi folder with the name spareparts or whatever name you want

Compile it. If there are errors then post below I will provide solutions. If successfully compiled then copy the /res folder , resources.arsc in the original Settings.apk and flash it.