[Sony Cross-Device Development Themes and Apps] vikash1994b:
Hello Friends

After Getting a Lot of PMs and Requests on How to Make so-and-so Icon Pack Compatible with Xperia Home and me Telling Everyone the Same Thing;).

So i Thought to make a Guide/tutorial:cool: for the same.

So Guys i will be Dividing This Guide into Two Parts, Part-1 will Guide You to Make any IconPack Compatible with Xperia Home and Part-2 will Guide You to Edit IconPack.

So lets Start with Part-1

PART-1

In This Part i will be guiding you to make any icon pack compatible with Latest Xperia Home with IconPack Support.

This is the easiest and quickest way to make any icon pack compatible with Xperia Home it literally take few Minutes :D

So lest get started....

Things needed :-

PC

Apktool ( i recomed Apktool by Bdfreak)

Icon Pack which is to be edited

Notepad++

STEPS

STEP 1

Decompile Ur Icon Pack using Apktool.

STEP 2

Go to the Decompiled Folder and edit AndroidManifest.xml

and add this code just after </intent-filter> as shown below in the Picture and Save the File.

<intent-filter>

<action android:name="com.sonymobile.home.ICON_PACK"/>

<category android:name="android.intent.category.DEFAULT"/>

</intent-filter>

STEP 3

Recompile and Sign the apk using Apktool.

Move to Phone then Install.

Enjoy....:laugh:

[/HIDE]

PART-2

So Guys Here is the Part-2,In This i Will Guide You to Edit Any IconPack Which Includes

Removing an Icon from the Icon Pack

Replacing a Icon with a New Icon

Adding a New Icon in IconPack

In this Part we will assume that u have Decompiled ur Icon pack and you dont like music icon and want to Edit it.

1. Removing an Icon from the Icon Pack

STEP-1

First Find ComponentInfo of the app whose icon u want to remove. you can easily get ComponentInfo of any app by either google or use Application Reader app,its free on playstore and works all the time:)

STEP-2

Go to Res/xml folder and edit appfilter.xml using notepad++.

STEP-3

Remove the Item Component line which Correspond to the ComponentInfo of the Mucic App whose icon u want to Remove from IconPack and save.

for example: lets say u dont like music icon and u want to remove so u will be deleting " <item component="ComponentInfo{com.sonyericsson.music/com.sonyericsson.music.MusicActivity}" drawable="music" /> " this line.

STEP-4

Recompile and Sign the APK and enjoy..

2. Replacing a Icon with a New Icon

STEP-1

first we will have to find the music icon from the icon pack. you can do this by two ways

Open the Folder where all icons are stored usually it is in res/Drawable-nodpi-v4 folder and find the Music Icon u Want to Replace

Get the CompontInfo of music app and search for it in appfilter.xml. lets say the line u got after search is " <item component="ComponentInfo{com.sonyericsson.music/com.sonyericsson.music.MusicActivity}" drawable="music12" /> " so the icon associated with music app is music12(which is given at the end of the line in drawable="music12")

STEP-2

Now Replace the New Icon with the Old Music Icon and Keep the Name Same Ofcource.

STEP-3

Recompile and Sign the APK nd enjoy...

3. Adding a New Icon in IconPack

Lets Say you Want to Add Music Icon to your Icon Pack.

STEP-1

Paste the Music icon in the folder where all Icons Are placed usually its Drawable-nodpi-v4

STEP-2

Edit Appfiler.xml and the this line at the end

<item component="" drawable="" />

add ur component info after <item component="HERE"

and add the of the icon which u r adding in drawable="HERE" />

STEP-3

Recompile,Sign,install and enjoy...:laugh:

CREDITS

BDfreak for his awesome Apktool.

Developer of Notepad++