Post Reply

[GUIDE] [MOD] Animated PlatLogo

27th January 2014, 06:42 PM   |  #1  
MuSaddiq's Avatar
OP Senior Member
Thanks Meter: 924
 
650 posts
Join Date:Joined: Aug 2013
More
Hey Guys, I am back again . I think that you guys would have seen Hyperion GM Final's Animated Platlogo, So this time I will show you how to add Animated PlatLogo in your ROM.


Disclaimer: I and XDA are not responsible for the damage of your phone. Take necessary backup if you are indoubt.


Requirements:
  • framework.jar from your ROM
  • Know how to decompile APK
  • PlatLogo app attached below


Let's start


1. Decompile framework.jar

2. Go to smali/com/android/internal/app
and open PlatLogoActivity.smali

3. Select all and replace it with this code:

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, "musaddiq.animated.platlogo"

    const-string v4, "musaddiq.animated.platlogo.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 MuSaddiq 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
4. Recompile framework.jar
Push it into system/framework
Set correct permissions(rw-r--r--)

5. Install this app by me, it contains the Animated PlatLogo code and that smali above redirects to it:

Download

6. Now go to your Settings and multiple tap on Android Version





Credits:

AuliaYF
iamareebjamal
developer.android.com

If you liked this MOD then just click here and here
Last edited by MuSaddiq; 27th January 2014 at 06:46 PM.
The Following 7 Users Say Thank You to MuSaddiq For This Useful Post: [ View ]
27th January 2014, 06:43 PM   |  #2  
MuSaddiq's Avatar
OP Senior Member
Thanks Meter: 924
 
650 posts
Join Date:Joined: Aug 2013
More
Reserved 01
Reserved
The Following 3 Users Say Thank You to MuSaddiq For This Useful Post: [ View ]
28th January 2014, 01:54 AM   |  #3  
san122's Avatar
Senior Member
Flag Unavailable.
Thanks Meter: 1,561
 
1,229 posts
Join Date:Joined: Jan 2013
More
Nice keep it up.

Sent from my GT-S5360 using Tapatalk 2
28th January 2014, 05:57 AM   |  #4  
KnightlyNinja's Avatar
Senior Member
Flag Biratnagar
Thanks Meter: 416
 
652 posts
Join Date:Joined: Sep 2012
More
Thumbs up
Quote:
Originally Posted by MuSaddiq

Reserved

great job bro.U always come with clean and unique guides.
28th January 2014, 07:00 AM   |  #5  
MuSaddiq's Avatar
OP Senior Member
Thanks Meter: 924
 
650 posts
Join Date:Joined: Aug 2013
More
Quote:
Originally Posted by san122

Nice keep it up.

Sent from my GT-S5360 using Tapatalk 2

Quote:
Originally Posted by KnightlyNinja

great job bro.U always come with clean and unique guides.

Thanks guys..

Sent from my GT-S5360 using xda app-developers app
The Following User Says Thank You to MuSaddiq For This Useful Post: [ View ]
28th January 2014, 02:01 PM   |  #6  
GSculerlor's Avatar
Senior Member
Flag Malang
Thanks Meter: 84
 
430 posts
Join Date:Joined: Oct 2013
More
Nice :thumbup:
The Following User Says Thank You to GSculerlor For This Useful Post: [ View ]
14th February 2014, 06:38 AM   |  #7  
Omkar Jadhav's Avatar
Junior Member
Flag Pune
Thanks Meter: 0
 
5 posts
Join Date:Joined: Oct 2012
More
Will this work in any phone???

Sent from ATM using Debit Card
14th February 2014, 08:39 AM   |  #8  
MuSaddiq's Avatar
OP Senior Member
Thanks Meter: 924
 
650 posts
Join Date:Joined: Aug 2013
More
Quote:
Originally Posted by Omkar Jadhav

Will this work in any phone???

Sent from ATM using Debit Card

Ya... It will work on any device but the resolution of the device should be 240x320(ldpi) or else the animation will be pixelated.
15th February 2014, 02:49 AM   |  #9  
jesmarrie's Avatar
Junior Member
Thanks Meter: 0
 
9 posts
Join Date:Joined: Feb 2014
Thumbs up
Thanks bro, it's nice
18th February 2014, 06:09 AM   |  #10  
ritikchanna's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 41
 
124 posts
Join Date:Joined: Mar 2013
More
Nice TUT but OP can you add some more animations ???

Post Reply Subscribe to Thread

Tags
animated, platlogo
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy Y GT-S5360 General by ThreadRank