FORUMS

New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Making Your Own Xposed Modules Is Easier Than You Think

Close to the heart of XDA is the Xposed Framework by Rovo89. Most of … more

[GUIDE] [MOD] Animated PlatLogo

652 posts
Thanks Meter: 957
 
Post Reply Subscribe to Thread Email Thread
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 8 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: 957
 
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,595
 
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: 419
 
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: 957
 
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 ]
14th February 2014, 06:38 AM |#7  
Omkar Jadhav's Avatar
Junior Member
Flag Pune
Thanks Meter: 0
 
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: 957
 
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
 
More
Thumbs up
Thanks bro, it's nice
18th February 2014, 06:09 AM |#10  
ritikchanna's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 54
 
Donate to Me
More
Nice TUT but OP can you add some more animations ???
18th February 2014, 02:39 PM |#11  
Junior Member
Thanks Meter: 1
 
More
Thumbs up
Wow.. It's nice..

Read More
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes