Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,513 Members 51,253 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] [MOD] Animated PlatLogo

Tip us?
 
MuSaddiq
Old
(Last edited by MuSaddiq; 27th January 2014 at 06:46 PM.)
#1  
MuSaddiq's Avatar
Senior Member - OP
Thanks Meter 880
Posts: 631
Join Date: Aug 2013
Default [GUIDE] [MOD] Animated PlatLogo

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
The Following 7 Users Say Thank You to MuSaddiq For This Useful Post: [ Click to Expand ]
 
MuSaddiq
Old
#2  
MuSaddiq's Avatar
Senior Member - OP
Thanks Meter 880
Posts: 631
Join Date: Aug 2013
Default Reserved 01

Reserved
The Following 3 Users Say Thank You to MuSaddiq For This Useful Post: [ Click to Expand ]
 
san122
Old
#3  
san122's Avatar
Senior Member
Thanks Meter 1541
Posts: 1,227
Join Date: Jan 2013
Location: Unavailable.
Nice keep it up.

Sent from my GT-S5360 using Tapatalk 2
 
KnightlyNinja
Old
#4  
KnightlyNinja's Avatar
Senior Member
Thanks Meter 415
Posts: 651
Join Date: Sep 2012
Location: Biratnagar
Quote:
Originally Posted by MuSaddiq View Post
Reserved
great job bro.U always come with clean and unique guides.


KnightlyNinja = samir basnet



 
MuSaddiq
Old
#5  
MuSaddiq's Avatar
Senior Member - OP
Thanks Meter 880
Posts: 631
Join Date: Aug 2013
Quote:
Originally Posted by san122 View Post
Nice keep it up.

Sent from my GT-S5360 using Tapatalk 2
Quote:
Originally Posted by KnightlyNinja View Post
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: [ Click to Expand ]
 
GSculerlor
Old
#6  
GSculerlor's Avatar
Senior Member
Thanks Meter 81
Posts: 412
Join Date: Oct 2013
Location: Malang
Nice :thumbup:
What You SEE Is What You GET
Quote:
Getting Close With My Work :

The Following User Says Thank You to GSculerlor For This Useful Post: [ Click to Expand ]
 
Omkar Jadhav
Old
#7  
Omkar Jadhav's Avatar
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Oct 2012
Location: Pune
Will this work in any phone???

Sent from ATM using Debit Card
 
MuSaddiq
Old
#8  
MuSaddiq's Avatar
Senior Member - OP
Thanks Meter 880
Posts: 631
Join Date: Aug 2013
Quote:
Originally Posted by Omkar Jadhav View Post
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.
 
jesmarrie
Old
#9  
jesmarrie's Avatar
Junior Member
Thanks Meter 0
Posts: 9
Join Date: Feb 2014
Thanks bro, it's nice
 
ritikchanna
Old
#10  
ritikchanna's Avatar
Senior Member
Thanks Meter 41
Posts: 123
Join Date: Mar 2013
Location: New Delhi
Nice TUT but OP can you add some more animations ???
HIT , IT DOES NOT HIT BACK !!!

MY DEVICES

 
Phone: Galaxy y
Model: GT-5360
Rom: Super Stock (My own RomStockHell_lock #50
Baseband version: S5360DDLF1

Phone: Xperia C
Rom: Stock
Kernel:Stock

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

Advanced Search
Display Modes