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
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Credits:
AuliaYF
iamareebjamal
developer.android.com
If you liked this MOD then just click here and here
Reserved 01
Reserved
Nice keep it up.
Sent from my GT-S5360 using Tapatalk 2
MuSaddiq said:
Reserved
Click to expand...
Click to collapse
great job bro.U always come with clean and unique guides.:laugh::angel:
san122 said:
Nice keep it up.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
KnightlyNinja said:
great job bro.U always come with clean and unique guides.:laugh::angel:
Click to expand...
Click to collapse
Thanks guys..
Sent from my GT-S5360 using xda app-developers app
Nice :thumbup:
Will this work in any phone???
Sent from ATM using Debit Card
Omkar Jadhav said:
Will this work in any phone???
Sent from ATM using Debit Card
Click to expand...
Click to collapse
Ya... It will work on any device but the resolution of the device should be 240x320(ldpi) or else the animation will be pixelated.
Thanks bro, it's nice
Nice TUT but OP can you add some more animations ???
Wow.. It's nice..
Nice bro, thanks for share : Good:
nice one, is there any way to put a gif image as in the app ??
Great job!
MuSaddiq said:
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
Click to expand...
Click to collapse
tanks sir :good:
Related
Enable 5 lockscreen shortcuts in Jellybean.
Credits to Mirko DDD and Jeboo for this.
SecSettings.apk - smali edit
smali\com\android\settings\lockscreenshortcut\Lock ScreenShortcutSettings.smali
Before:
Code:
# direct methods
.method static constructor <clinit>()V
.registers 2
.prologue
const/4 v1, 0x0
.line 79
[COLOR="Red"]const/4 v0, 0x3[/COLOR]
sput v0, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->MAX_SHORTCUT_ICON:I
.line 80
sput v1, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->DEFAULT_CURSOR_WIDTH:I
.line 81
sput v1, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->ICON_5_CURSOR_WIDTH:I
return-void
.end method
After:
Code:
# direct methods
.method static constructor <clinit>()V
.registers 2
.prologue
const/4 v1, 0x0
.line 79
[COLOR="Red"] const/4 v0, 0x5[/COLOR]
sput v0, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->MAX_SHORTCUT_ICON:I
.line 80
sput v1, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->DEFAULT_CURSOR_WIDTH:I
.line 81
sput v1, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->ICON_5_CURSOR_WIDTH:I
return-void
.end method
Before:
Code:
const-string v30, "SPR"
invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;
move-result-object v31
invoke-virtual/range {v30 .. v31}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v30
if-eqz v30, :cond_99
.line 160
:cond_29b
[COLOR="Red"]const/16 v30, 0x4[/COLOR]
After:
Code:
const-string v30, "SPR"
invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;
move-result-object v31
invoke-virtual/range {v30 .. v31}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v30
if-eqz v30, :cond_99
.line 160
:cond_29b
[COLOR="Red"]const/16 v30, 0x5[/COLOR]
Framework-res.apk edit:
res/values/dimens.xml
Change:
Code:
<dimen name="keyguard_lockscreen_application_shortcut_icon_width">52.0dip</dimen>
<dimen name="keyguard_lockscreen_application_shortcut_icon_height">50.0dip</dimen>
Is there any way to get a flashable zip of this mod. Just asking
Sent from my SPH-D710 using Tapatalk 2
tdunham said:
Enable 5 lockscreen shortcuts in Jellybean.
Credits to Mirko DDD and Jeboo for this.
SecSettings.apk - smali edit
smali\com\android\settings\lockscreenshortcut\Lock ScreenShortcutSettings.smali
Before:
Code:
# direct methods
.method static constructor <clinit>()V
.registers 2
.prologue
const/4 v1, 0x0
.line 79
[COLOR="Red"]const/4 v0, 0x3[/COLOR]
sput v0, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->MAX_SHORTCUT_ICON:I
.line 80
sput v1, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->DEFAULT_CURSOR_WIDTH:I
.line 81
sput v1, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->ICON_5_CURSOR_WIDTH:I
return-void
.end method
After:
Code:
# direct methods
.method static constructor <clinit>()V
.registers 2
.prologue
const/4 v1, 0x0
.line 79
[COLOR="Red"] const/4 v0, 0x5[/COLOR]
sput v0, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->MAX_SHORTCUT_ICON:I
.line 80
sput v1, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->DEFAULT_CURSOR_WIDTH:I
.line 81
sput v1, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->ICON_5_CURSOR_WIDTH:I
return-void
.end method
Before:
Code:
const-string v30, "SPR"
invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;
move-result-object v31
invoke-virtual/range {v30 .. v31}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v30
if-eqz v30, :cond_99
.line 160
:cond_29b
[COLOR="Red"]const/16 v30, 0x4[/COLOR]
After:
Code:
const-string v30, "SPR"
invoke-static {}, Lcom/android/settings/Utils;->readSalesCode()Ljava/lang/String;
move-result-object v31
invoke-virtual/range {v30 .. v31}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v30
if-eqz v30, :cond_99
.line 160
:cond_29b
[COLOR="Red"]const/16 v30, 0x5[/COLOR]
Framework-res.apk edit:
res/values/dimens.xml
Change:
Code:
<dimen name="keyguard_lockscreen_application_shortcut_icon_width">52.0dip</dimen>
<dimen name="keyguard_lockscreen_application_shortcut_icon_height">50.0dip</dimen>
Click to expand...
Click to collapse
is this is for tw only?
christian devs01 said:
is this is for tw only?
Click to expand...
Click to collapse
Yes.
Sent from my SPH-D710 using xda premium
TD, Can you post a quick link on how to do this? I assume RTB can do it.
byrdcfmma said:
TD, Can you post a quick link on how to do this? I assume RTB can do it.
Click to expand...
Click to collapse
Both files need to be decompiled to be edited and this cannot be done on the phone. Apktool is the weapon of choice for many devs and there are guides specific to using it (or what versions work best) with Jellybean around the forums.
tdunham said:
Both files need to be decompiled to be edited and this cannot be done on the phone. Apktool is the weapon of choice for many devs and there are guides specific to using it (or what versions work best) with Jellybean around the forums.
Click to expand...
Click to collapse
Okay, Thanks!! I thought it was the same process as doing the lockscreen and launcher edits when JB first came on the scene so our phone would act like the S3.
@tdunham, can i use this tutorial for xperia s jb?
slink722 said:
@tdunham, can i use this tutorial for xperia s jb?
Click to expand...
Click to collapse
Probably not, but that's what nandroids are for
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
bilgerryan said:
Probably not, but that's what nandroids are for
Click to expand...
Click to collapse
awts! so sad but is it possible to have on my device? or do you know how to do it? help me please :crying:
slink722 said:
awts! so sad but is it possible to have on my device? or do you know how to do it? help me please :crying:
Click to expand...
Click to collapse
Follow the guide
Reboot options as show :good:
Pre-requisites
De-Odex'ed devices only! Will not work on stock ROM!
Must have the the MDL De-Odex mod by Nottach to use this mod!
Installation
I used similar install method as Nottach to apply this mod.
Download the attachment. Unzip it to your desktop.
Simply copy the "Mods" folder to your internal storage
Run the "Mod Me.bat" file after copying
It will copy the mod to the correct location, clear cache, then reboot phone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Feel free to use this in any mod or ROM you make.
Hit Thanks!
To make this mod your self or further modify it do the following;
First decompile classes.dex in android.policy.jar. I wont get into that part as this mini tutorial assumes you know how to modify smali code.
Add the following BOLD ITALIC code to \com\android\internal\policy\impl\GlobalActions$SinglePressAction.smali
Modded Code:
Code:
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/android/internal/policy/impl/GlobalActions;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x40a
name = "SinglePressAction"
.end annotation
[B][I]# static fields
.field protected static rebootMode:I
.field protected static final rebootOptions:[Ljava/lang/String;
[/I][/B]
# instance fields
.field private final mIcon:Landroid/graphics/drawable/Drawable;
.field private final mIconResId:I
.field private final mMessage:Ljava/lang/CharSequence;
.field private final mMessageResId:I
# direct methods
[B][I].method static constructor <clinit>()V
.registers 3
const/4 v0, 0x4
new-array v0, v0, [Ljava/lang/String;
const/4 v1, 0x0
const-string v2, "Reboot"
aput-object v2, v0, v1
const/4 v1, 0x1
const-string v2, "Restart Shell"
aput-object v2, v0, v1
const/4 v1, 0x2
const-string v2, "Download"
aput-object v2, v0, v1
const/4 v1, 0x3
const-string v2, "Recovery"
aput-object v2, v0, v1
sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
return-void
.end method[/I][/B]
.method protected constructor <init>(II)V[I][/I]
FYI: You can change the string names to what you like best. For example most people word the second string as "Hot reboot" but I think that sounds lame so I call it what it is and that is a shell restart. Another example would be to change "Download" to "Download Mode"
Then change \com\android\internal\policy\impl\GlobalActions.smali
right below .line 566
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$5;
to
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$99;
Then create three smali files as shown below and add them to: \com\android\internal\policy\impl\
GlobalActions$99.smali
Code:
.class Lcom/android/internal/policy/impl/GlobalActions$99;
.super Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;
.source "GlobalActions.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/android/internal/policy/impl/GlobalActions;->createDialog()Landroid/app/AlertDialog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/android/internal/policy/impl/GlobalActions;
# direct methods
.method constructor <init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
.registers 4
iput-object p1, p0, Lcom/android/internal/policy/impl/GlobalActions$99;->this$0:Lcom/android/internal/policy/impl/GlobalActions;
invoke-direct {p0, p2, p3}, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;-><init>(II)V
return-void
.end method
# virtual methods
.method public onPress()V
.registers 7
const/4 v5, 0x4
new-instance v1, Landroid/app/AlertDialog$Builder;
iget-object v2, p0, Lcom/android/internal/policy/impl/GlobalActions$99;->this$0:Lcom/android/internal/policy/impl/GlobalActions;
#getter for: Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
invoke-static {v2}, Lcom/android/internal/policy/impl/GlobalActions;->access$000(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;
move-result-object v2
invoke-direct {v1, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
const-string v2, "Reboot Menu"
invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
move-result-object v1
sget-object v2, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
const/4 v3, 0x0
new-instance v4, Lcom/android/internal/policy/impl/GlobalActions$99$2;
invoke-direct {v4, p0}, Lcom/android/internal/policy/impl/GlobalActions$99$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions$99;)V
invoke-virtual {v1, v2, v3, v4}, Landroid/app/AlertDialog$Builder;->setSingleChoiceItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
move-result-object v1
const v2, 0x104000a
new-instance v3, Lcom/android/internal/policy/impl/GlobalActions$99$1;
invoke-direct {v3, p0}, Lcom/android/internal/policy/impl/GlobalActions$99$1;-><init>(Lcom/android/internal/policy/impl/GlobalActions$99;)V
invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
move-result-object v1
const/high16 v2, 0x104
const/4 v3, 0x0
invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
move-result-object v1
invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/AlertDialog;->getWindow()Landroid/view/Window;
move-result-object v1
const/16 v2, 0x7d9
invoke-virtual {v1, v2}, Landroid/view/Window;->setType(I)V
iget-object v1, p0, Lcom/android/internal/policy/impl/GlobalActions$99;->this$0:Lcom/android/internal/policy/impl/GlobalActions;
#getter for: Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
invoke-static {v1}, Lcom/android/internal/policy/impl/GlobalActions;->access$000(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;
move-result-object v1
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x111000f
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getBoolean(I)Z
move-result v1
if-nez v1, :cond_58
invoke-virtual {v0}, Landroid/app/AlertDialog;->getWindow()Landroid/view/Window;
move-result-object v1
invoke-virtual {v1, v5, v5}, Landroid/view/Window;->setFlags(II)V
:cond_58
invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V
return-void
.end method
.method public showBeforeProvisioning()Z
.registers 2
.prologue
.line 307
const/4 v0, 0x1
return v0
.end method
.method public showConditional()Z
.registers 2
.prologue
.line 311
const/4 v0, 0x1
return v0
.end method
.method public showDuringKeyguard()Z
.registers 2
.prologue
.line 304
const/4 v0, 0x1
return v0
.end method
GlobalActions$99$1.smali
Code:
.class Lcom/android/internal/policy/impl/GlobalActions$99$1;
.super Ljava/lang/Object;
.source "GlobalActions.java"
# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/android/internal/policy/impl/GlobalActions$99;->onPress()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/android/internal/policy/impl/GlobalActions$99;
# direct methods
.method constructor <init>(Lcom/android/internal/policy/impl/GlobalActions$99;)V
.registers 2
.parameter
.prologue
.line 281
iput-object p1, p0, Lcom/android/internal/policy/impl/GlobalActions$99$1;->this$1:Lcom/android/internal/policy/impl/GlobalActions$99;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
.registers 7
.parameter "dialog"
.parameter "whichButton"
.prologue
const/4 v2, 0x1
const/4 v3, 0x0
.line 282
sget v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I
const/4 v1, -0x1
if-le v0, v1, :cond_20
.line 291
sget v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I
const/4 v1, 0x4
if-eq v0, v1, :cond_4d
.line 283
sget v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I
if-eq v0, v2, :cond_2c
.line 284
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions$99$1;->this$1:Lcom/android/internal/policy/impl/GlobalActions$99;
iget-object v0, v0, Lcom/android/internal/policy/impl/GlobalActions$99;->this$0:Lcom/android/internal/policy/impl/GlobalActions;
#getter for: Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
invoke-static {v0}, Lcom/android/internal/policy/impl/GlobalActions;->access$000(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;
move-result-object v0
sget v1, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I
if-nez v1, :cond_21
const/4 v1, 0x0
:goto_1d
invoke-static {v0, v1, v3}, Lcom/android/server/power/ShutdownThread;->reboot(Landroid/content/Context;Ljava/lang/String;Z)V
.line 291
:cond_20
:goto_20
return-void
.line 284
:cond_21
sget-object v1, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
sget v2, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I
aget-object v1, v1, v2
invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;
move-result-object v1
goto :goto_1d
.line 288
:cond_2c
:try_start_2c
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
move-result-object v0
const/4 v1, 0x4
new-array v1, v1, [Ljava/lang/String;
const/4 v2, 0x0
const-string v3, "pkill"
aput-object v3, v1, v2
const/4 v2, 0x1
const-string v3, "-TERM"
aput-object v3, v1, v2
const/4 v2, 0x2
const-string v3, "-f"
aput-object v3, v1, v2
const/4 v2, 0x3
const-string v3, "system_server"
aput-object v3, v1, v2
invoke-virtual {v0, v1}, Ljava/lang/Runtime;->exec([Ljava/lang/String;)Ljava/lang/Process;
:try_end_4a
.catch Ljava/lang/Exception; {:try_start_2c .. :try_end_4a} :catch_4b
goto :goto_20
.line 290
:catch_4b
move-exception v0
goto :goto_20
:cond_4d
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions$99$1;->this$1:Lcom/android/internal/policy/impl/GlobalActions$99;
iget-object v0, v0, Lcom/android/internal/policy/impl/GlobalActions$99;->this$0:Lcom/android/internal/policy/impl/GlobalActions;
#getter for: Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
invoke-static {v0}, Lcom/android/internal/policy/impl/GlobalActions;->access$000(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;
move-result-object v0
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/android/server/power/ShutdownThread;->shutdown(Landroid/content/Context;Z)V
goto :goto_20
.end method
GlobalActions$99$2.smali
Code:
.class Lcom/android/internal/policy/impl/GlobalActions$99$2;
.super Ljava/lang/Object;
.source "GlobalActions.java"
# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/android/internal/policy/impl/GlobalActions$99;->onPress()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/android/internal/policy/impl/GlobalActions$99;
# direct methods
.method constructor <init>(Lcom/android/internal/policy/impl/GlobalActions$99;)V
.registers 2
iput-object p1, p0, Lcom/android/internal/policy/impl/GlobalActions$99$2;->this$1:Lcom/android/internal/policy/impl/GlobalActions$99;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
.registers 3
sput p2, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootMode:I
return-void
.end method
Recompile and done!
You can also change the names of the reboot method to your liking!
Slowly but surely here comes the goodies. Cant wait for flashy time for AT&T.
ATT S4 Rooted. Beastin.
4.2.2
Scrosler you are the man! Hell ya dude thanks!! I envy your talent
"Tettering" ay, right. Slow down a little, I can't keep up. Very usefull reboot menu. Works for me.
sent from my SGH-i317
Dean1650 said:
"Tettering" ay, right. Slow down a little, I can't keep up. Very usefull reboot menu. Works for me.
sent from my SGH-i317
Click to expand...
Click to collapse
Hehehehe.... It was a tough choice my friend. Hardest phone choice I had to make but then after owning both I decided this was going to be a power house!
Me slow down? Never! :angel:
Did you see my launcher mod in themes and apps?
scrosler said:
Hehehehe.... It was a tough choice my friend. Hardest phone choice I had to make but then after owning both I decided this was going to be a power house!
Me slow down? Never! :angel:
Did you see my launcher mod in themes and apps?
Click to expand...
Click to collapse
No, but I'm headed over there now.
sent from my SGH-i317
scrosler said:
Hehehehe.... It was a tough choice my friend. Hardest phone choice I had to make but then after owning both I decided this was going to be a power house!
Me slow down? Never! :angel:
Did you see my launcher mod in themes and apps?
Click to expand...
Click to collapse
Thought you were going back to Verizon?
Sent from my HTC One using Tapatalk 2
powerwagon said:
Thought you were going back to Verizon?
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
I did. The people on Verizon bought me a Note II (when it came out). But I wanted the SGS4 so I broke into my donation fund and bought (part of it anyways).
I now develop for 4 phones, SGS4, Note II (All carriers), SGS3, and HTC One X... and the Nexus 10 Tablet.
scrosler said:
I did. The people on Verizon bought me a Note II (when it came out). But I wanted the SGS4 so I broke into my donation fund and bought (part of it anyways).
I now develop for 4 phones, SGS4, Note II (All carriers), SGS3, and HTC One X... and the Nexus 10 Tablet.
Click to expand...
Click to collapse
Cant wait to be running cleanrom on this! Def one of the best devs in the game, glad you kept it
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Can't wait for mine to come in the mail... Thanks to you guys who able to do this awesome work. Hope I can help out or at least test some stuff out for you guys.
Sent from my SGS3 using xda premium
Deodexed System Installer ran from Noattach but i am still not able to get this mod to work i am updated to the lastest AMDL and deodexed verifiyed by checking build info Nottach.JDQ39.I337UCUAMDL anyone have any ideas ? as to what the problem is .
tokoam said:
Deodexed System Installer ran from Noattach but i am still not able to get this mod to work i am updated to the lastest AMDL and deodexed verifiyed by checking build info Nottach.JDQ39.I337UCUAMDL anyone have any ideas ? as to what the problem is .
Click to expand...
Click to collapse
And you used the installer with this mod?
Yes I did
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
tokoam said:
Yes I did
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
Did you get an error messages?
scrosler said:
Did you get an error messages?
Click to expand...
Click to collapse
No error message in cmd batch file
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
i try right
It does not work for me either
Just says waiting for s4. The other installer works fine I even tried just pushing me jar file but that did not work either
Sent from my SAMSUNG-SGH-I337 using xda premium
And you have ADB installed and in the Windows path?
I have updated the instructions to be more specific and included an alternate installer with the ADB executables.
Good day fellow, I am here again with some new guide.
People want the message skin and gray is boring. So lets make something new. As far as i know, there is no guide of this, as I searched for a guide to "Message background" and I dont see any. I dont know the right term/title for this but see the screenies. That will describe most.
Disclaimer:
I and XDA dont take the responsibility for your phone damage. If you dont trust my guide do a nandroid backup first.
Click to expand...
Click to collapse
Requirements:
Brains.apk
Notepad++
APKTool(any apk decompiling tool will do)
Click to expand...
Click to collapse
Instruction:
1. Decompile your Mms.apk
2. Now I think you made the Message Skin enabled already but if its not do this first, here. (No MMS Convert No contact Limit Sent Time aren't compulsory)
3. Now you are finish with the message skin chooser so we gonna move on to the main part.
4. Go to /smali/com/android/mms/ui/ComposeMessageActivity.smali
5. Before this
Code:
.line 6091
return-void
.line 5981
:cond_6
if-eq v0, v6, :cond_7
const/16 v1, 0x10
if-ne v0, v1, :cond_8
.line 5982
:cond_7
iget-object v1, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mSendButton:Landroid/widget/Button;
const/high16 v2, 0x4160
invoke-virtual {v1, v3, v2}, Landroid/widget/Button;->setTextSize(IF)V
goto/16 :goto_0
.line 5984
:cond_8
iget-object v1, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mSendButton:Landroid/widget/Button;
const/high16 v2, 0x4180
invoke-virtual {v1, v3, v2}, Landroid/widget/Button;->setTextSize(IF)V
goto/16 :goto_0
.end method
.method private initializeContactInfo()V
add this,
Code:
[COLOR="Red"].line 6062
:cond_5
invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->setMessageSkinToBody()V[/COLOR]
Remider : The background will have no effect if, the blue text below have "cond_5". Delete it, it is necessary.
If cant understand what I am sayin, do this
Turn this
.line 6091
cond_5
return-void
to this
.line 6091
return-void
So it will be like this,
Code:
iput-object v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mAttachmentLayout:Landroid/widget/LinearLayout;
[COLOR="Red"].line 6062
:cond_5
invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->setMessageSkinToBody()V[/COLOR]
[COLOR="Blue"].line 6091
return-void[/COLOR]
.line 5981
:cond_6
if-eq v0, v6, :cond_7
const/16 v1, 0x10
if-ne v0, v1, :cond_8
.line 5982
:cond_7
iget-object v1, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mSendButton:Landroid/widget/Button;
const/high16 v2, 0x4160
invoke-virtual {v1, v3, v2}, Landroid/widget/Button;->setTextSize(IF)V
goto/16 :goto_0
.line 5984
:cond_8
iget-object v1, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mSendButton:Landroid/widget/Button;
const/high16 v2, 0x4180
invoke-virtual {v1, v3, v2}, Landroid/widget/Button;->setTextSize(IF)V
goto/16 :goto_0
.end method
.method private initializeContactInfo()V
6. Below
Code:
.method public static setIsHideExplict(Z)V
.locals 0
.parameter "hide"
.prologue
.line 7798
sput-boolean p0, Lcom/android/mms/ui/ComposeMessageActivity;->isHideExplict:Z
.line 7799
return-void
.end method
Add this method
Code:
[COLOR="Red"].method private setMessageSkinToBody()V
.locals 3
.prologue
.line 7493
invoke-virtual {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/android/mms/ui/MessagingPreferenceActivity;->getMessageSkin(Landroid/content/Context;)I
move-result v0
.line 7494
invoke-virtual {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->getResources()Landroid/content/res/Resources;
move-result-object v1
invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v1
iget v1, v1, Landroid/content/res/Configuration;->orientation:I
const/4 v2, 0x2
if-ne v1, v2, :cond_0
const/4 v1, 0x1
.line 7496
:goto_0
packed-switch v0, :pswitch_data_0
.line 7517
:goto_1
return-void
.line 7494
:cond_0
const/4 v1, 0x0
goto :goto_0
.line 7499
:pswitch_0
iget-object v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mMsgListView:Lcom/android/mms/ui/MessageListView;
if-eqz v1, :cond_1
const v1, 0x7f020181
:goto_2
invoke-virtual {v0, v1}, Lcom/android/mms/ui/MessageListView;->setBackgroundResource(I)V
goto :goto_1
:cond_1
const v1, 0x7f020180
goto :goto_2
.line 7503
:pswitch_1
iget-object v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mMsgListView:Lcom/android/mms/ui/MessageListView;
if-eqz v1, :cond_2
const v1, 0x7f020183
:goto_3
invoke-virtual {v0, v1}, Lcom/android/mms/ui/MessageListView;->setBackgroundResource(I)V
goto :goto_1
:cond_2
const v1, 0x7f020182
goto :goto_3
.line 7507
:pswitch_2
iget-object v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mMsgListView:Lcom/android/mms/ui/MessageListView;
if-eqz v1, :cond_3
const v1, 0x7f020185
:goto_4
invoke-virtual {v0, v1}, Lcom/android/mms/ui/MessageListView;->setBackgroundResource(I)V
goto :goto_1
:cond_3
const v1, 0x7f020184
goto :goto_4
.line 7511
:pswitch_3
iget-object v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mMsgListView:Lcom/android/mms/ui/MessageListView;
if-eqz v1, :cond_4
const v1, 0x7f020187
:goto_5
invoke-virtual {v0, v1}, Lcom/android/mms/ui/MessageListView;->setBackgroundResource(I)V
goto :goto_1
:cond_4
const v1, 0x7f020186
goto :goto_5
.line 7496
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
:pswitch_2
:pswitch_3
.end packed-switch
.end method[/COLOR]
7.Next, After this code
Code:
invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object v0
.line 3602
if-eqz v0, :cond_4
.line 3603
invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z
.line 3609
:cond_4
iget-boolean v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mIsKeyboardOpen:Z
invoke-direct {p0, v0}, Lcom/android/mms/ui/ComposeMessageActivity;->onKeyboardStateChanged(Z)V
add this
Code:
[COLOR="Red"].line 3440
invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->setMessageSkinToBody()V[/COLOR]
So it will be like this,
Code:
invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
move-result-object v0
.line 3602
if-eqz v0, :cond_4
.line 3603
invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z
.line 3609
:cond_4
iget-boolean v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mIsKeyboardOpen:Z
invoke-direct {p0, v0}, Lcom/android/mms/ui/ComposeMessageActivity;->onKeyboardStateChanged(Z)V
[COLOR="red"].line 3440
invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->setMessageSkinToBody()V[/COLOR]
.line 3614
return-void
8. Save it. Recompile and push/flash.
Note:
You can edit the background at drawables-ldpi/view*.png
Click to expand...
Click to collapse
Happy modding.!
SS:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Credits to this man for following his mms.apk:
[email protected]
Click to expand...
Click to collapse
Wow haha
Sent from my GT-S5360 using xda premium
Thats awesome sir :thumbup:, actually i want to share this guide but don't have much time.... thanks b4
blu3m4n said:
Thats awesome sir :thumbup:, actually i want to share this guide but don't have much time.... thanks b4
Click to expand...
Click to collapse
Thanks to you sir, after this i learned something, adding message skin and backgroud. Still in development..
PineappleOwl said:
Thanks to you sir, after this i learned something, adding message skin and backgroud. Still in development..
Click to expand...
Click to collapse
there is one my friend at fb can add more than 5 skin into mms.apk....! you can ask him if you want to... pm me
blu3m4n said:
there is one my friend at fb can add more than 5 skin into mms.apk....! you can ask him if you want to... pm me
Click to expand...
Click to collapse
Thanks sir but I figured it out already.
how to make stock mms.apk background to be transparent following framework-res.apk also make a enter message layout to be small?
nice guide....
Is This Applicable In Y Duos Mms..
coz i tryd codes are totally difernt
.line 6091 etc etc
nice guide.... and it work
i hope there is a guide for s7500..
Hmmmm. good thread sir :good:
Note: Do at your own risk, I won't take responsibility
Required
Framework.jar
Deodex ROM
Colorey Platlogo
Apktool or other tool to decompile
Instructions:
1) Decompile Your framework.jar
2)Go in /smali/com/android/internal/app/PlatLogoActivity.smali
3)Remove All Lines
4) Add This
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.androidfire.colorey"
const-string v4, "com.androidfire.colorey.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 iamareebjamal 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
5)Recompile Push to /system/framework
6)Install ColoreyPlatlogo as Normal App
7)Reboot Your Phone
8)Go to Settings\About Section
9)Click 3.x Times on Android Version Shake Your Phone
Credits:
iamareebjamal
Reserved
Could you give some SS of your work ?
Nice share bro
wanna see first before decompile? try this
>adb shell
>am start -n com.androidfire.colorey/.PlatLogoActivity
Click to expand...
Click to collapse
SHA20 said:
Nice share bro
Click to expand...
Click to collapse
Don't need To Say Anything just press
AndroidFire said:
Don't need To Say Anything just press
Click to expand...
Click to collapse
Ok sir
@mods I did not write the smali code for platlogoactivity,I got it from another forum but it was for KitKat so i edited it some changes were made to this code in order to Bring up the game and platlogo.Hope you understand.
Click to expand...
Click to collapse
Hello Everyone
I recently posted how to get the Z2 Battery Mod With percentage inside icon Here but I'm unhappy with no responses. But No-Problem here I have brought you another awesome Tutorial for getting the
|||| ANDROID L PLATLOGO ||||
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Pre-Requestes
1-)Framework.jar
2-)Apktool with the knowledge of De-compiling-Re-Compiling
3-)Notepad++ for editing files.
Instructions
1-)Decompile your framework.jar
2-)Navigate to framework.jar/smali/com/android/internal/app/ and open the file PlatLogoActivity.smali with Notepad++
3-)Delete everything inside the file and copy the following code there
Code:
.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source "PlatLogoActivity.java"
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 12
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
.locals 5
.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, "areeb.xposed.eggster"
const-string v4, "areeb.xposed.eggster.lp.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_0
invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.line 39
:goto_0
invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V
.line 41
return-void
.line 31
:catch_0
move-exception v0
.line 35
.local v0, e:Landroid/content/ActivityNotFoundException;
const-string v2, "First install that app abhishekr700 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_0
.end method
4-)Now save the file and exit.
5-)Recompile your framework.jar and push to /system/framework
6-)Wait not yet ,you are damn excited ,but just few more moments.
Download the tw file in the attchment and push to /system/app with correct permissions
7-)Polite req that please report here if you succeed with/without screenshot .
Press the THANKS button...LOL
If you face any problems Post here. :laugh:
Good job buddy... keep rocking!! \m/
abhishekr700 said:
Hello Everyone
I recently posted how to get the Z2 Battery Mod With percentage inside icon Here but I'm unhappy with no responses. But No-Problem here I have brought you another awesome Tutorial for getting the
|||| ANDROID L PLATLOGO ||||
Screenshots
Pre-Requestes
1-)Framework.jar
2-)Apktool with the knowledge of De-compiling-Re-Compiling
3-)Notepad++ for editing files.
Instructions
1-)Decompile your framework.jar
2-)Navigate to framework.jar/smali/com/android/internal/app/ and open the file PlatLogoActivity.smali with Notepad++
3-)Delete everything inside the file and copy the following code there
Code:
.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source "PlatLogoActivity.java"
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
.line 12
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
.locals 5
.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, "areeb.xposed.eggster"
const-string v4, "areeb.xposed.eggster.lp.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_0
invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.line 39
:goto_0
invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V
.line 41
return-void
.line 31
:catch_0
move-exception v0
.line 35
.local v0, e:Landroid/content/ActivityNotFoundException;
const-string v2, "First install that app abhishekr700 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_0
.end method
4-)Now save the file and exit.
5-)Recompile your framework.jar and push to /system/framework
6-)Wait not yet ,you are damn excited ,but just few more moments.
Download the tw file in the attchment and push to /system/app with correct permissions
7-)Polite req that please report here if you succeed with/without screenshot .
Press the THANKS button...LOL
If you face any problems Post here. :laugh:
Click to expand...
Click to collapse
Hey what is this can you tell me in detail and its work in my xperia e1
Sent from my D2105 using XDA Free mobile app
G.Pawar said:
Hey what is this can you tell me in detail and its work in my xperia e1
Sent from my D2105 using XDA Free mobile app
Click to expand...
Click to collapse
When u press multiple times on ur android version in about phone then u see a animation that's the platlogo
This code has been tested on various device so it will most probably work for u
serajr said:
Good job buddy... keep rocking!! \m/
Click to expand...
Click to collapse
Thanks sir!!
abhishekr700 said:
When u press multiple times on ur android version in about phone then u see a animation that's the platlogo
This code has been tested on various device so it will most probably work for u
Click to expand...
Click to collapse
Ohhh thanks bro I'll try now
Sent from my D2105 using XDA Free mobile app
G.Pawar said:
Ohhh thanks bro I'll try now
Sent from my D2105 using XDA Free mobile app
Click to expand...
Click to collapse
Have you tried it..
Sent from my C2305 using Tapatalk
I am too lazy to do it all but thank you for your work ! If you manage to make it flashable it'd be great
D5503 UB Dstriker ROM KK.157
Funkmasterchilla said:
I am too lazy to do it all but thank you for your work ! If you manage to make it flashable it'd be great
D5503 UB Dstriker ROM KK.157
Click to expand...
Click to collapse
Umm not possible... Its a mod that needs to be implemented... It cannot be made flashable
Sent from my C2305 using Tapatalk