Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,283 Members 38,194 Now Online
XDA Developers Android and Mobile Development Forum

[TUTORIAL] [MOD] How to Add Colorey Platlogo

Tip us?
 
AndroidFire
Old
(Last edited by AndroidFire; 25th July 2014 at 11:41 AM.) Reason: Changing The Title
#1  
AndroidFire's Avatar
Member - OP
Thanks Meter 120
Posts: 56
Join Date: Jul 2014
Location: Near Equator
Default [TUTORIAL] [MOD] How to Add Colorey Platlogo

Note: Do at your own risk, I won't take responsibility


Required
  • Framework.jar
  • Deodex ROM
  • Colorey Platlogo
  • Apktool or other tool to decompile

[B]Instructions:[b]
1) Decompile Your framework.jar
2)Go in /smali/com/android/internal/app/PlatLogoActivity.smali
3)Remove All Lines
4) Add This
Code:
.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source "PlatLogoActivity.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 12
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .registers 7
    .parameter "savedInstanceState"

    .prologue
    .line 16
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 18
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.MAIN"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 19
    .local v1, intent:Landroid/content/Intent;
    new-instance v2, Landroid/content/ComponentName;

    const-string v3, "com.androidfire.colorey"

    const-string v4, "com.androidfire.colorey.PlatLogoActivity"

    invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 23
    :try_start_16
    invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_19
    .catch Landroid/content/ActivityNotFoundException; {:try_start_16 .. :try_end_19} :catch_1d

    .line 39
    :goto_19
    invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V

    .line 41
    return-void

    .line 31
    :catch_1d
    move-exception v0

    .line 35
    .local v0, e:Landroid/content/ActivityNotFoundException;
    const-string v2, "First install that app iamareebjamal told you to!"

    const/4 v3, 0x0

    invoke-static {p0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    goto :goto_19
.end method
5)Recompile Push to /system/framework
6)Install ColoreyPlatlogo as Normal App
7)Reboot Your Phone
8)Go to Settings\About Section
9)Click 3.x Times on Android Version Shake Your Phone

Credits:
iamareebjamal
Attached Files
File Type: apk ColoreyPlatlogo.apk - [Click for QR Code] (271.3 KB, 11 views)
The Following User Says Thank You to AndroidFire For This Useful Post: [ Click to Expand ]
 
AndroidFire
Old
#2  
AndroidFire's Avatar
Member - OP
Thanks Meter 120
Posts: 56
Join Date: Jul 2014
Location: Near Equator
Reserved

 
GSculerlor
Old
#3  
GSculerlor's Avatar
Senior Member
Thanks Meter 84
Posts: 428
Join Date: Oct 2013
Location: Malang
Could you give some SS of your work ?
What You SEE Is What You GET
Quote:
Getting Close With My Work :

 
SHA20
Old
#4  
Member
Thanks Meter 10
Posts: 55
Join Date: Jul 2014
Location: Surakarta, Indonesia
Nice share bro
 
AuliaYF
Old
#5  
AuliaYF's Avatar
Senior Member
Thanks Meter 143
Posts: 140
Join Date: Jun 2013
Location: Bekasi, Indonesia
wanna see first before decompile? try this
Quote:
>adb shell
>am start -n com.androidfire.colorey/.PlatLogoActivity
The Following User Says Thank You to AuliaYF For This Useful Post: [ Click to Expand ]
 
AndroidFire
Old
#6  
AndroidFire's Avatar
Member - OP
Thanks Meter 120
Posts: 56
Join Date: Jul 2014
Location: Near Equator
Quote:
Originally Posted by SHA20 View Post
Nice share bro
Don't need To Say Anything just press

The Following User Says Thank You to AndroidFire For This Useful Post: [ Click to Expand ]
 
SHA20
Old
#7  
Member
Thanks Meter 10
Posts: 55
Join Date: Jul 2014
Location: Surakarta, Indonesia
Quote:
Originally Posted by AndroidFire View Post
Don't need To Say Anything just press
Ok sir

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Increase Your Multitasking Workflow with C-Floating Windows

Technology has put life on the fast track. Lazy, relaxed days have turned into … more

Compile Your Own Kernel From Source with Comprehensive Tutorial

One glance at any developer section of any device forum on XDA and youll find … more

WowWee Mip – Android Accessory Review – XDA Developer TV

The holidays will be here in no time, so why not start thinking about … more

Stream Your Media Files with the New Version of Droid Sync Manager

Android is a Linux-based operating system, but this fact doesn’t put … more