• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

How to add android M Developer Preview Easter Egg In your ROM .

Droidbuster

Senior Member
Jan 20, 2014
166
331
0
www.facebook.com
How to add android M Developer Preview Easter Egg In your ROM .

Hi friends .How are you. I am Back with another Guide .How to add Android M Platlogo in your Roms.

Well I Made it from Scratch . So it working on GingerBread too .
[FONT=Arial, Helvetica, sans-serif]Disclaimer : I and AndroStarkDeveloper are not responsible for any Meteor attacks :laugh:[/FONT]
[FONT=Arial, Helvetica, sans-serif]if you got Success . and Not responsible for any Nuclear Bomb Blast From Google:laugh: .[/FONT]



Requirements :
1.framework2.jar from your Rom ( for Kitkat ROMS).
2.framework.jar for (GB + ROM).
3.Have Knowledge How To Decompile and compile jar file
and i also attaching
jar decompiler Romtoolpcv3 .


My advice is to use Romtoolpcv3 because may be you got .parameter erors while recompiling .


Easter Egg app Attached Below.
And Most Important Have Intention Never to Give up.:highfive:

Lets Stop Laughing hahaha. Time to Start and Focus on our Task.


1. Decompile framework2.jar if you adding Mplatlogo In your Kikat ROM. if you are using GB+ device then you have to decompile framework.jar ok friends.

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

3. Select all and replace it with this code:

[FONT=Arial, Helvetica, sans-serif]
[/FONT]
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.androstark.droidbuster.mplatelogo"

const-string v4, "com.androstark.droidbuster.mplatelogo.MainActivity"

    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 Droidbuster 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
[FONT=Arial, Helvetica, sans-serif]4. Recompile framework.jar[/FONT][FONT=Arial, Helvetica, sans-serif] Push it into system/framework[/FONT][FONT=Arial, Helvetica, sans-serif] Set correct permissions(rw-r--r--)[/FONT]

[FONT=Arial, Helvetica, sans-serif] 5. Install this app by me, it Contain important the Easter Egg code and that smali above redirects to it:[/FONT]

[FONT=Arial, Helvetica, sans-serif]Download Android M Developer Preview Easter Egg = MDeveloperEasterEgg.apk[/FONT]
[FONT=Arial, Helvetica, sans-serif]If you want to taste sample of this easter egg then try this sample app = MdeveloperEasterEggSample.apk[/FONT]

[FONT=Arial, Helvetica, sans-serif]Download Source Code of this Easter Egg = https://github.com/Droidbuster/Android-M-Easter-Egg

[/FONT]​




Enjoy In your Rom and Dont forget for Giving Credits .Friends if you are using in your ROM[FONT=Arial, Helvetica, sans-serif]. [/FONT]​


If you want to Join our Fb community https://www.facebook.com/groups/1457587231221310/



Contributors
Droidbuster,
ROM OS Version: 2.3.x Gingerbread

Version Information
Status: Stable
Current Beta Version: 1.0

Created 2015-06-10
Last Updated 2015-06-10
 
Last edited:
  • Like
Reactions: BRoy_98