[GUIDE] [Advanced] How to make an IconPack for Samsung Touchwiz [JellyBean]

Search This thread

M_J_Nazari

Inactive Recognized Developer
Jul 14, 2010
1,545
2,578
38
Bushehr
pda-planet.com
Hi
I found the simple way to change the icons and names of applications on Samsung's TouchWiz UI.

you need to know about how to edit an apk and also how to find the application's package and activity names.

0-Download my attached file.
1-Decompile CSCAppResource.apk
2-add all your favorite icons to drawable folder.
2a= if you want to change the application's name too, check this post! [updated 1st august 2013 ]

3-Compile and Sign it.

already , you have CSCAppResource.apk with all icons , you added from above steps.

now , you need to decompile your edited CSCAppResource.apk file, after decompiling, goto Values folder and open the public.xml file vith Notepad++.

now you will find it like this one,, this is an example;
PHP:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <public type="drawable" name="amestris_test" id="0x7f020000" />
</resources>

------------------------------------------------------
4-now create a xml file and paste below lines into it.

PHP:
<?xml version="1.0"?>
<cscappresource>

</cscappresource>
save it with CSCAppResource.xml file name.

------------------------------------------------------
5-now we want to add Icon for specific application. for example we want to change the icon for Browser.

the Browser application activity name is " com.android.browser ".

now we will define the Icon for Browser activity. see below example.

back to "CSCAppResource.xml" file and add this line between cscappresource tag.
PHP:
<item name="com.android.browser" iconid="7f020000"/>

at final we have the "CSCAppResource.xml " like this one.
PHP:
<?xml version="1.0"?>
<cscappresource>
<item name="com.android.browser" iconid="7f020000"/>
</cscappresource>
--------------------------------------------
save the file and copy CSCAppResource.xml and CSCAppResource.apk to this folder:
Code:
/system/csc/appresource
** you need to create "appresource" folder, if not exists.

give permissions to folder and files then reboot your phone.


i will share some samples in post #two.

Best Regards.


original thread
http://www.pda-planet.com/forum/forum127/thread5929.html
 

Attachments

  • CSCAppResource.apk
    13.4 KB · Views: 4,625
Last edited:

M_J_Nazari

Inactive Recognized Developer
Jul 14, 2010
1,545
2,578
38
Bushehr
pda-planet.com

CUSTOM ICON PACKS

1-Sence5 Icon Pack by wildstang83
--------------------------------------------------------

How to apply this iconpack from custom recovery mod? [CWM Update.zip file]

Download the attached file "IconPack_Sample_CWM.zip"
Extract it via WinRar or 7Zip, copy your edited files into " \system\csc\appresource" folder and zip it.
now you can install it from recovery.
it is compatible with all phones.
**custom recovery is need.

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

Icon Pack Convertor by LegendM
Click to view the post

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

This is an sample:
PHP:
<?xml version="1.0"?>
<cscappresource>
<item name="com.android.browser" iconid="7f020012"/>
<item name="com.android.settings" iconid="7f02004f" />
<item name="com.android.phone" iconid="7f020046" />
<item name="com.android.mms" iconid="7f02003a" />
<item name="com.android.email" iconid="7f02001d" />
<item name="com.android.providers.downloads.ui" iconid="7f02001c" />
<item name="com.android.provider.smemo" iconid="7f020045" />
<item name="com.sec.android.widgetapp.diotek.smemo" iconid="7f020045" />
<item name="com.android.contacts" iconid="7f020018" />
<item name="com.android.contacts.activities.DialtactsActivity" iconid="7f020046" />
<item name="com.android.contacts.activities.PeopleActivity" iconid="7f020018" />
<item name="com.sec.android.app.dialertab.calllog.CalllogTipsActivity" iconid="7f020034" />
<item name="com.sec.android.app.camera" iconid="7f02000f" />
<item name="com.sec.android.app.camera.Camera" iconid="7f02000f" />
<item name="com.sec.android.gallery3d" iconid="7f020024" />
<item name="com.sec.android.app.launcher" iconid="7f020003" />
<item name="com.sec.android.app.controlpanel" iconid="7f02002e" />
<item name="com.sec.android.app.videoplayer" iconid="7f02005d" />
<item name="com.sec.android.app.voicerecorder" iconid="7f020061" />
<item name="com.sec.android.app.music" iconid="7f02003f" />
<item name="com.sec.android.app.myfiles" iconid="7f02001f" />
<item name="com.sec.android.app.fm" iconid="7f020021" />
<item name="com.sec.android.app.popupcalculator" iconid="7f020008" />
<item name="com.sec.android.app.clockpackage" iconid="7f020015" />
<item name="com.android.vending.AssetBrowserActivity" iconid="7f02004a" />
<item name="com.android.vending" iconid="7f02004a" />
<item name="com.google.android.finsky.widget.recommendation.RecommendedWidgetProvider" iconid="7f02004a" />
<item name="com.google.android.finsky.FinskyApp" iconid="7f02004a" />
<item name="com.android.vending.MarketWidgetProvider" iconid="7f02004a" />
<item name="com.google.android.finsky.widget.consumption.NowPlayingWidgetProvider" iconid="7f02004a" />
<item name="com.opera.mini.android" iconid="7f020043" />
<item name="com.noshufou.android.su" />
<item name="com.sds.android.ttpod" iconid="7f020059" />
<item name="net.cactii.flash2" iconid="7f020020" />
<item name="com.android.calendar.launchactivity" iconid="7f02000b" />
<item name="com.android.calendar.LaunchActivity" iconid="7f02000b" />
</cscappresource>
 

Attachments

  • CSCAppResource.apk
    1.1 MB · Views: 843
  • IconPack_Sample_CWM.zip
    145.1 KB · Views: 950
Last edited:

wildstang83

Inactive Recognized Developer / Themer
Oct 14, 2010
4,627
4,091
Nowheresville
xdaforums.com
I have a couple of quick questions first though. Does it matter what the icons are named? Like ic_launcher.png, etc...

Also, I see where you say place both the .apk and the .xml into /system/csc/appresource, but I don't have an appresource folder on my Note II. What should I do?

Looks interesting, can't wait to try it out after your reply :)
 

M_J_Nazari

Inactive Recognized Developer
Jul 14, 2010
1,545
2,578
38
Bushehr
pda-planet.com
I have a couple of quick questions first though. Does it matter what the icons are named? Like ic_launcher.png, etc...

Also, I see where you say place both the .apk and the .xml into /system/csc/appresource, but I don't have an appresource folder on my Note II. What should I do?

Looks interesting, can't wait to try it out after your reply :)


1- it doesn't matter about the names, you just link the icon's ID from public.xml to activity. also you can see the example from second post.
2-you need to create appresource folder manually, it doesn't exists on any firmware.
 
Last edited:

LegendM

Senior Member
Jun 18, 2012
1,045
466
Ankara
Trust me I'm searching for this long time

I try create an small windows app that read apex ,go launcher icons and convert them to touchwiz
 
Last edited:

M_J_Nazari

Inactive Recognized Developer
Jul 14, 2010
1,545
2,578
38
Bushehr
pda-planet.com
Yea thats what I am doing, just having a look at how you did it and everything. It works btw. You did a good job with this bud.

EDIT: I have the VZW Samsung Galaxy Note II i605 and it works perfectly.
:good: its my pleasure.
Trust me I'm searching for this long time

I try create an small app that read apex ,go launcher icons and convert them to touchwiz

I'll hope you find it perfect.
we are waiting for your job.

i searching a long time for this method and finally find this way is working. it seems an hidden Touchwiz feature. ;)
 
  • Like
Reactions: bungadudu

M_J_Nazari

Inactive Recognized Developer
Jul 14, 2010
1,545
2,578
38
Bushehr
pda-planet.com
Last edited:
  • Like
Reactions: overclock990

wildstang83

Inactive Recognized Developer / Themer
Oct 14, 2010
4,627
4,091
Nowheresville
xdaforums.com
Ok,I made a small app,It extract apk files
Read from xml file and create new one

Now main problem is how can I sign zip?

Basically you will need to create a key to sign the apk with. Assuming you have the android sdk and the JDK installed and in your path, you need to open terminal and run a command to create a key:

Code:
keytool -genkey -v -keystore android-test.keystore

Now that that is created you need to create a directory in which to sign your apk. I created mine on my desktop and called it sign_apk. So then I moved my key to that sign_apk folder on my desktop, along with my unsigned apk. After that you need to run another terminal command to sign the apk:

Code:
cd [path to sign_apk]
jarsigner -verbose -keystore android-test.keystore CSCAppResource.apk mykey

It will ask for the password you used while you were setting up your key. After you enter your password, it will sign the apk and all will be good.

Keep in mind, I am an OSX user so certainly not all things may be the same for all users, but this should get you closer at least :)
 

LegendM

Senior Member
Jun 18, 2012
1,045
466
Ankara
Basically you will need to create a key to sign the apk with. Assuming you have the android sdk and the JDK installed and in your path, you need to open terminal and run a command to create a key:

Code:
keytool -genkey -v -keystore android-test.keystore

Now that that is created you need to create a directory in which to sign your apk. I created mine on my desktop and called it sign_apk. So then I moved my key to that sign_apk folder on my desktop, along with my unsigned apk. After that you need to run another terminal command to sign the apk:

Code:
cd [path to sign_apk]
jarsigner -verbose -keystore android-test.keystore CSCAppResource.apk mykey

It will ask for the password you used while you were setting up your key. After you enter your password, it will sign the apk and all will be good.

Keep in mind, I am an OSX user so certainly not all things may be the same for all users, but this should get you closer at least :)

Check my post and report bugs please :laugh:

I skip sign zip,people can do that manually,it just create xml file
 

wildstang83

Inactive Recognized Developer / Themer
Oct 14, 2010
4,627
4,091
Nowheresville
xdaforums.com
Got my Note ll looking like Sense 5 :)
 

Attachments

  • Screenshot_2013-05-04-20-34-29.jpg
    Screenshot_2013-05-04-20-34-29.jpg
    30 KB · Views: 2,961
  • Like
Reactions: M_J_Nazari

CahBagoes354

Senior Member
Feb 13, 2013
81
168
Good,
Work perfec in s3mini


Sent from my GT-I8190 using Xparent Blue Tapatalk 2
 

Attachments

  • uploadfromtaptalk1367812866762.jpg
    uploadfromtaptalk1367812866762.jpg
    59.4 KB · Views: 450
  • uploadfromtaptalk1367812901433.jpg
    uploadfromtaptalk1367812901433.jpg
    56.4 KB · Views: 8,665

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    Hi
    I found the simple way to change the icons and names of applications on Samsung's TouchWiz UI.

    you need to know about how to edit an apk and also how to find the application's package and activity names.

    0-Download my attached file.
    1-Decompile CSCAppResource.apk
    2-add all your favorite icons to drawable folder.
    2a= if you want to change the application's name too, check this post! [updated 1st august 2013 ]

    3-Compile and Sign it.

    already , you have CSCAppResource.apk with all icons , you added from above steps.

    now , you need to decompile your edited CSCAppResource.apk file, after decompiling, goto Values folder and open the public.xml file vith Notepad++.

    now you will find it like this one,, this is an example;
    PHP:
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <public type="drawable" name="amestris_test" id="0x7f020000" />
    </resources>

    ------------------------------------------------------
    4-now create a xml file and paste below lines into it.

    PHP:
    <?xml version="1.0"?>
    <cscappresource>
    
    </cscappresource>
    save it with CSCAppResource.xml file name.

    ------------------------------------------------------
    5-now we want to add Icon for specific application. for example we want to change the icon for Browser.

    the Browser application activity name is " com.android.browser ".

    now we will define the Icon for Browser activity. see below example.

    back to "CSCAppResource.xml" file and add this line between cscappresource tag.
    PHP:
    <item name="com.android.browser" iconid="7f020000"/>

    at final we have the "CSCAppResource.xml " like this one.
    PHP:
    <?xml version="1.0"?>
    <cscappresource>
    <item name="com.android.browser" iconid="7f020000"/>
    </cscappresource>
    --------------------------------------------
    save the file and copy CSCAppResource.xml and CSCAppResource.apk to this folder:
    Code:
    /system/csc/appresource
    ** you need to create "appresource" folder, if not exists.

    give permissions to folder and files then reboot your phone.


    i will share some samples in post #two.

    Best Regards.


    original thread
    http://www.pda-planet.com/forum/forum127/thread5929.html
    10

    CUSTOM ICON PACKS

    1-Sence5 Icon Pack by wildstang83
    --------------------------------------------------------

    How to apply this iconpack from custom recovery mod? [CWM Update.zip file]

    Download the attached file "IconPack_Sample_CWM.zip"
    Extract it via WinRar or 7Zip, copy your edited files into " \system\csc\appresource" folder and zip it.
    now you can install it from recovery.
    it is compatible with all phones.
    **custom recovery is need.

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

    Icon Pack Convertor by LegendM
    Click to view the post

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

    This is an sample:
    PHP:
    <?xml version="1.0"?>
    <cscappresource>
    <item name="com.android.browser" iconid="7f020012"/>
    <item name="com.android.settings" iconid="7f02004f" />
    <item name="com.android.phone" iconid="7f020046" />
    <item name="com.android.mms" iconid="7f02003a" />
    <item name="com.android.email" iconid="7f02001d" />
    <item name="com.android.providers.downloads.ui" iconid="7f02001c" />
    <item name="com.android.provider.smemo" iconid="7f020045" />
    <item name="com.sec.android.widgetapp.diotek.smemo" iconid="7f020045" />
    <item name="com.android.contacts" iconid="7f020018" />
    <item name="com.android.contacts.activities.DialtactsActivity" iconid="7f020046" />
    <item name="com.android.contacts.activities.PeopleActivity" iconid="7f020018" />
    <item name="com.sec.android.app.dialertab.calllog.CalllogTipsActivity" iconid="7f020034" />
    <item name="com.sec.android.app.camera" iconid="7f02000f" />
    <item name="com.sec.android.app.camera.Camera" iconid="7f02000f" />
    <item name="com.sec.android.gallery3d" iconid="7f020024" />
    <item name="com.sec.android.app.launcher" iconid="7f020003" />
    <item name="com.sec.android.app.controlpanel" iconid="7f02002e" />
    <item name="com.sec.android.app.videoplayer" iconid="7f02005d" />
    <item name="com.sec.android.app.voicerecorder" iconid="7f020061" />
    <item name="com.sec.android.app.music" iconid="7f02003f" />
    <item name="com.sec.android.app.myfiles" iconid="7f02001f" />
    <item name="com.sec.android.app.fm" iconid="7f020021" />
    <item name="com.sec.android.app.popupcalculator" iconid="7f020008" />
    <item name="com.sec.android.app.clockpackage" iconid="7f020015" />
    <item name="com.android.vending.AssetBrowserActivity" iconid="7f02004a" />
    <item name="com.android.vending" iconid="7f02004a" />
    <item name="com.google.android.finsky.widget.recommendation.RecommendedWidgetProvider" iconid="7f02004a" />
    <item name="com.google.android.finsky.FinskyApp" iconid="7f02004a" />
    <item name="com.android.vending.MarketWidgetProvider" iconid="7f02004a" />
    <item name="com.google.android.finsky.widget.consumption.NowPlayingWidgetProvider" iconid="7f02004a" />
    <item name="com.opera.mini.android" iconid="7f020043" />
    <item name="com.noshufou.android.su" />
    <item name="com.sds.android.ttpod" iconid="7f020059" />
    <item name="net.cactii.flash2" iconid="7f020020" />
    <item name="com.android.calendar.launchactivity" iconid="7f02000b" />
    <item name="com.android.calendar.LaunchActivity" iconid="7f02000b" />
    </cscappresource>
    6
    Edit:Here you go small tool ( may be buggy,report bugs via pm)
    5
    I have a couple of quick questions first though. Does it matter what the icons are named? Like ic_launcher.png, etc...

    Also, I see where you say place both the .apk and the .xml into /system/csc/appresource, but I don't have an appresource folder on my Note II. What should I do?

    Looks interesting, can't wait to try it out after your reply :)


    1- it doesn't matter about the names, you just link the icon's ID from public.xml to activity. also you can see the example from second post.
    2-you need to create appresource folder manually, it doesn't exists on any firmware.
    4
    First of all, thank you so much
    But I have one question: How do i get iconid ???

    My exact questions. Is the iconid generated or just any id we decide to go with? and will this work for 3rd party apps downloaded from google play such as opera mini?

    If yes, how would I get the icon id for operamini?

    Ok guys, this is pretty simple. When you decompile the .apk file and you look inside, you need to go to res/values/public.xml. Open that up with a text editor. Inside the .xml you see a bunch of code, like this:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <public type="drawable" name="browser" id="0x7f020000" />
    </resources>

    The iconid is the part at the end of those lines. Using "browser" as an example we see: 0x7f020000 BUT without the first two characters, so: 7f020000.

    So when you are creating your CSCAppResource.xml, that is what you would put in your code line for the browser. Like this:
    Code:
    <?xml version="1.0"?> 
    <cscappresource>
        <item name="com.android.browser" iconid="7f020000" />
    </cscappresource>

    Does that help? :)