FORUMS

Sunday Debate: Custom ROMs vs. Modular Tweaks

Join us in a fun Sunday Debate on Mods and ROMs. Come with your opinions and feel free to … more

AOSP 5.1 Lollipop for Nexus Q

Google Nexus Q is an intriguing device released with Android 4.0 Ice Cream Sandwich. It was abandoned by … more

XDA Picks: Best Apps of the Week (Apr 17 – 24)

Apps are at the front and center of any smartphone experience, and with over a … more

Glimpse Notifications: Easier Lockscreen Notifications

Lollipop brought a revamp to the lockscreen, taking away custom widgets but … more
Post Reply Subscribe to Thread Email Thread

[GUIDE] [MOD] Animated PlatLogo

18th February 2014, 02:39 PM |#11  
Junior Member
Thanks Meter: 1
 
More
Thumbs up
Wow.. It's nice..
 
 
20th February 2014, 10:35 PM |#12  
Ma.Style10's Avatar
Junior Member
Flag São Manuel - SP
Thanks Meter: 5
 
More
Nice bro, thanks for share : Good:
11th May 2014, 07:31 AM |#13  
cradonale's Avatar
Member
Flag Kathmandu
Thanks Meter: 8
 
More
nice one, is there any way to put a gif image as in the app ??
14th May 2014, 08:43 PM |#14  
Guilhermel07's Avatar
Junior Member
Flag São Paulo
Thanks Meter: 1
 
More
Great job!
4th October 2014, 10:13 PM |#15  
darw andi's Avatar
Junior Member
Flag Gresik
Thanks Meter: 0
 
More
Thumbs up
Quote:
Originally Posted by MuSaddiq

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

tanks sir
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes