[TUTORIAL] GB/ICS How To Create New Theme & Convert Default Themes App To Normal App

Orochixxx

Senior Member
Jul 25, 2011
600
1,249
0
38
KAHRAMANMARAŞ (46)
[TUTORIAL] GB/ICS How To Create New Theme & Convert Default Themes App To Normal App


Sorry My Bad English

Apktool Tutorial
http://forum.xda-developers.com/showthread.php?t=2011254

Notepad Plus
http://notepad-plus-plus.org/download

Tutorial Create New Theme



Download test_theme.apk
decomplie test_theme to Apktool

Go to projects test_theme.apk folder Open Android Manifest.xml to notepad Plus


Code:
[/<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="1.0" package="com.[COLOR="Red"]orochi_2013_tonypanduru_fish[/COLOR].themes"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
    <application android:label="[COLOR="red"]Fish By Orochi[/COLOR]" android:icon="@drawable/icon">
        <uses-library android:name="com.sonyericsson.privateapis_1p" />
        <service android:label="@string/orochi_theme_title" android:name=".orochiThemeService">
            <intent-filter>
                <action android:name="com.sonyericsson.theme.RuntimeThemeService" />
            </intent-filter>
            <meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/orochi_themeinfo" />
        </service>
    </application>
</manifest>

Edit red Sections

Sample

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="1.0" package="com.xperia_2011.themes"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
    <application android:label="xperia 2011 By Orochi" android:icon="@drawable/icon">
        <uses-library android:name="com.sonyericsson.privateapis_1p" />
        <service android:label="@string/orochi_theme_title" android:name=".orochiThemeService">
            <intent-filter>
                <action android:name="com.sonyericsson.theme.RuntimeThemeService" />
            </intent-filter>
            <meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/orochi_themeinfo" />
        </service>
    </application>
</manifest>
And Save Androidmanifest.xml

Go to projects test_theme.apk/smali/com Folder Rename orochi_2013_tonypanduru_fish folder to xperia_2011

go to projetcs test_theme.apk/smali\com\xperia_2011\themes open orochiThemeService.smali to notepad plus
edit First Line

Code:
[COLOR="red"].class public Lcom/orochi_2013_tonypanduru_fish/themes/orochiThemeService;[/COLOR]
to

Code:
[COLOR="red"].class public Lcom/xperia_2011/themes/orochiThemeService;[/COLOR]
save files

Go to test_theme.apk/res/values folder string.xml open notepad plus edit Theme Name

Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">[COLOR="red"]Fish[/COLOR]</string>
    <string name="orochi_theme_title">[COLOR="red"]Fish[/COLOR]</string>
</resources>
to

Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">Xperia 2011</string>
    <string name="orochi_theme_title">Xperia 2011 </string>
</resources>
Go to projects test_theme.apk/res drawable-mdpi and drawable-land-mdpi Change All İmg

and Finish open APKTOOL Set 14 Create+Sign New App Created Signed_test_theme.apk :good:
 

Attachments

Last edited:

Orochixxx

Senior Member
Jul 25, 2011
600
1,249
0
38
KAHRAMANMARAŞ (46)


Tutorial Convert Defaultthemes App to Normal install App

DefaultThemes.apk Decomplie to Apktool

go to projects DefaultThemes.apk folder Open Android Manifest.xml note pad plus

orginal Android Manifest.xml
Code:
[COLOR="Red"]<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="2.0" package="com.sonyericsson.defaultruntimethemes"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
    <application>
        <uses-library android:name="com.sonyericsson.privateapis_1p" />[/COLOR]
        <service android:label="@string/green_theme_title" android:name=".GreenThemeService">
            <intent-filter>
                <action android:name="com.sonyericsson.theme.RuntimeThemeService" />
            </intent-filter>
            <meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/green_themeinfo" />
        </service>
        <service android:label="@string/black_theme_title" android:name=".BlackThemeService">
            <intent-filter>
                <action android:name="com.sonyericsson.theme.RuntimeThemeService" />
            </intent-filter>
            <meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/black_themeinfo" />
        </service>
        <service android:label="@string/orange_theme_title" android:name=".OrangeThemeService">
            <intent-filter>
                <action android:name="com.sonyericsson.theme.RuntimeThemeService" />
            </intent-filter>
            <meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/orange_themeinfo" />
        </service>
        <service android:label="@string/blue_theme_title" android:name=".BlueThemeService">
            <intent-filter>
                <action android:name="com.sonyericsson.theme.RuntimeThemeService" />
            </intent-filter>
            <meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/blue_themeinfo" />
        </service>
        <service android:label="@string/pink_theme_title" android:name=".PinkThemeService">
            <intent-filter>
                <action android:name="com.sonyericsson.theme.RuntimeThemeService" />
            </intent-filter>
            <meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/pink_themeinfo" />
        </service>
        <service android:label="@string/rainbow_theme_title" android:name=".RainbowThemeService">
            <intent-filter>
                <action android:name="com.sonyericsson.theme.RuntimeThemeService" />
            </intent-filter>
            <meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/rainbow_themeinfo" />
        </service>
        <service android:label="@string/red_theme_title" android:name=".RedThemeService">
            <intent-filter>
                <action android:name="com.sonyericsson.theme.RuntimeThemeService" />
            </intent-filter>
            <meta-data android:name="com.sonyericsson.service.theme" android:resource="@xml/red_themeinfo" />
        </service>
    </application>
</manifest>
delete red section
Copy New text save xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2000" android:versionName="1.0" package="com.new.defaultruntimethemes"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
    <application android:label="new Themes" android:icon="@drawable/icon">
        <uses-library android:name="com.sonyericsson.privateapis_1p" />
go to DefaultThemes.apk folder res/values/strings.xml Edit Theme Name

Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="black_theme_title">[COLOR="Red"]Silk[/COLOR]</string>
    <string name="blue_theme_title">[COLOR="red"]Sapphire[/COLOR]</string>
    <string name="green_theme_title">[COLOR="red"]Emerald[/COLOR]</string>
    <string name="orange_theme_title">[COLOR="red"]Gold[/COLOR]</string>
    <string name="pink_theme_title">[COLOR="red"]Ametyhst[/COLOR]</string>
    <string name="rainbow_theme_title">[COLOR="red"]Turquiose[/COLOR]</string>
    <string name="red_theme_title">[COLOR="red"]Ruby[/COLOR]</string>
</resources>
go to DefaultThemes.apk folder res/values/public.xml add new drawable code

Code:
    [COLOR="red"]<public type="drawable" name="icon" id="0x7f020028" />[/COLOR]
Download icon.png Copy projetcs DefaultThemes.apk\res\drawable-mdpi folder or Add your İcon 48x48 or 72x72 png Format İmg

goto projetcs DefaultThemes.apk/smali/com Folder Rename to sonyericsson folder (new)

Go to DefaultThemes.apk/smali/com/new/defaultruntimethemes edit 7 smali files change First line
blackThemeService.smali
blueThemeService.smali
greenThemeService.smali
orangeThemeService.smali
redThemeService.smali
rainbowThemeService.smali
pinkThemeService.smali


Sample
Code:
.class public Lcom/[COLOR="red"]sonyericsson[/COLOR]/defaultruntimethemes/BlackThemeService;
to

Code:
.class public Lcom/[COLOR="red"]new[/COLOR]/defaultruntimethemes/BlackThemeService;
Edit 7 Smali File And

DefaultThemes.apk\res\drawable-mdpi + DefaultThemes.apk\res\drawable-land-mdpi folder Change All İmage

Finish open Apktool Set 14 ( Recomplie+Sign ) new app Created signed_DefaultThemes.apk rename new app install :)
 

Attachments

Last edited: