FORUMS

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

600 posts
Thanks Meter: 1,256
 
Post Reply Email Thread

Sorry My Bad English

Apktool Tutorial
http://forum.xda-developers.com/show....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.orochi_2013_tonypanduru_fish.themes"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" />
    <application android:label="Fish 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>

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:
.class public Lcom/orochi_2013_tonypanduru_fish/themes/orochiThemeService;
to

Code:
.class public Lcom/xperia_2011/themes/orochiThemeService;
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">Fish</string>
    <string name="orochi_theme_title">Fish</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
Attached Files
File Type: apk test_theme.apk - [Click for QR Code] (151.1 KB, 93 views)
The Following 5 Users Say Thank You to Orochixxx For This Useful Post: [ View ] Gift Orochixxx Ad-Free
23rd March 2013, 10:31 PM |#2  
Orochixxx's Avatar
OP Senior Member
Flag KAHRAMANMARAŞ (46)
Thanks Meter: 1,256
 
Donate to Me
More


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:
<?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" />
        <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">Silk</string>
    <string name="blue_theme_title">Sapphire</string>
    <string name="green_theme_title">Emerald</string>
    <string name="orange_theme_title">Gold</string>
    <string name="pink_theme_title">Ametyhst</string>
    <string name="rainbow_theme_title">Turquiose</string>
    <string name="red_theme_title">Ruby</string>
</resources>
go to DefaultThemes.apk folder res/values/public.xml add new drawable code

Code:
    <public type="drawable" name="icon" id="0x7f020028" />
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/sonyericsson/defaultruntimethemes/BlackThemeService;
to

Code:
.class public Lcom/new/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
Attached Images
 
The Following 8 Users Say Thank You to Orochixxx For This Useful Post: [ View ] Gift Orochixxx Ad-Free
24th March 2013, 08:12 AM |#3  
Junior Member
Thanks Meter: 4
 
More
Thanks again
Great work man,

will try.
The Following User Says Thank You to tonypanduru For This Useful Post: [ View ] Gift tonypanduru Ad-Free
25th March 2013, 12:18 AM |#5  
Orochixxx's Avatar
OP Senior Member
Flag KAHRAMANMARAŞ (46)
Thanks Meter: 1,256
 
Donate to Me
More
Thumbs up
[QUOTE=saqib nazm;39504635]Nice tutorial my friend [/QUOTE
thanks bro
30th March 2013, 03:46 PM |#7  
Junior Member
Thanks Meter: 0
 
More
Need root?
31st March 2013, 01:07 AM |#8  
Orochixxx's Avatar
OP Senior Member
Flag KAHRAMANMARAŞ (46)
Thanks Meter: 1,256
 
Donate to Me
More
Quote:
Originally Posted by Scythemore

Need root?

No Root Acces
31st March 2013, 07:47 AM |#9  
sandy7's Avatar
Inactive Recognized Developer
Flag bangalore
Thanks Meter: 6,932
 
Donate to Me
More
Quote:
Originally Posted by Orochixxx

No Root Acces

i always wondered how do this....but i know now....

btw nice tut
The Following User Says Thank You to sandy7 For This Useful Post: [ View ] Gift sandy7 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes