[GUIDE][How-to] Enable 5 lockscreen shortcuts JB - Samsung Epic 4G Touch

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

Related

[GUIDE][How-To]Xperia Z Lockscreen for HDPI devices [For Xperia Lovers ! ]

Hi XDA !:silly:
Firstly, big thanks to Arsaw for his awesome mod
This MOD is compatible to any HDPI or XHDPI devices with Stock 4.1.2 ROM but so far only tested on
-Galaxy s2
-Galaxy s3
-Galaxy note
-Galaxy note 2
Requirement :
-android.policy.jar from your rom
-Smalis from the attachment
-Flashable zip that i provided
-At least 60 MB of system memory
-A little knowledge in decompiling using baksmali
So, let's start !
Step 1
1)Extract your phone/rom android.policy.jar and decompile it with baksmali/smali program. From the output, copy and paste the ExtendedKeyguardScreen.smali and the modified ExternalLockScreen.smali to smali/com/android/internal/policy/impl
2)Then open smali/com/android/internal/policy/impl/ LockPatternKeyguardView.smali. Add the codes (highlighted in blue) and replace the codes (highlighted in green) as below
Code:
.field private mHasDialog:Z
.field mInfoCallback:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$InfoCallbackImpl;
[COLOR=Blue].field private mIsExternallyLoadedLockScreenEnabled:Z[/COLOR]
.field private mIsTalkbackDrvModeOn:Z
Find # virtual methods.method public cleanUp()V
Code:
# virtual methods
.method public cleanUp()V
.locals 2
.prologue
const/4 v1, 0x0
[COLOR=blue]const/4 v0, 0x0
iput-boolean v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z[/COLOR]
.line 1096
iget-object v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockScreen:Landroid/view/View;
Find .method createLockScreen()Landroid/view/View;
Code:
.prologue
[COLOR=blue] iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;
iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;
invoke-static {v1, v2}, Lcom/android/internal/policy/impl/ExternalLockScreen;->getLockScreen(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)Landroid/view/View;
move-result-object v0
.local v0, lockView:Landroid/view/View;
if-eqz v0, :cond_1
const/4 v1, 0x1
:goto_0
iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z
.line 1038
iget-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mIsExternallyLoadedLockScreenEnabled:Z
if-nez v1, :cond_0[/COLOR]
.line 1268
new-instance v0, Lcom/android/internal/policy/impl/sec/LockScreen;
[COLOR=blue] .end local v0 #lockView:Landroid/view/View;[/COLOR]
iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;
iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mConfiguration:Landroid/content/res/Configuration;
iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;
iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;
iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;>mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;
invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/sec/LockScreen;->(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V
.line 1274
[COLOR=Lime] .restart local v0 #lockView:Landroid/view/View;[/COLOR]
[COLOR=blue] :cond_0[/COLOR]
invoke-direct {p0, v0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->initializeTransportControlView(Landroid/view/View;)V
.line 1275
return-object v0
[COLOR=Blue] :cond_1
const/4 v1, 0x0
goto :goto_0[/COLOR]
.end method
Step 2
- Flash the ZIP provided in the Download link and you are done.
Flashable ZIP : http://www.mediafire.com/?un6239axlgsqys6
HOW TO CHANGE XPERIA Z LOCKSCREEN WALLPAPER :
Thanks to MohamedAzi.
TRICK ON LOCKSCREEN WALLPAPER STAYING FOR 1 SECOND :
Apply this image as Samsung lockscreen wallpaper ( apply from Display > Wallpaper > Lockscreen ), not XPERIA LOCKSCREEN WALLPAPER that the method provided by Mohamed Azi
{
"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"
}
Then go Developer Option in the setting, change the Window Animation scale to 0.5 or Off.
Trick By ME
EnJoY !
Thanks.
Very Nice.
A week ago I have tried to port for GS2, but bootlooped.
I follow guide from GS3 forum by Arsaw.
dr30ma said:
Thanks.
Very Nice.
A week ago I have tried to port for GS2, but bootlooped.
I follow guide from GS3 forum by Arsaw.
Click to expand...
Click to collapse
Try this and giv feedback :laugh:
One word Wooooooooooooooooooooooooooooow
---------- Post added at 09:04 AM ---------- Previous post was at 08:57 AM ----------
How much time left to upload the xperia rom, I need to go to school soon but i want to have the rom on my phone, please be faster thx.
And one more thing in the screenshots I the dots on the xperia z launcher are wrong. You should use the fix fo HDPI 800x480 for galaxy s2
Im still waiting
tested on cm10 and AOKP, they are working too (Both of them 4.1.2)
thanks for your guide =)
skys415 said:
tested on cm10 and AOKP, they are working too (Both of them 4.1.2)
thanks for your guide =)
Click to expand...
Click to collapse
Can you please give me the file for CM10? I don't know how to do all of this ..
does this work with aokp 4.2.2?
Could anybody make a flashable zip for official Sammy roms (JB) ? (with modified files)
Thx
Nice work , thank you.
But I have one question. If i want to add my own wallpaper and use it as lock screen wallpaper, how can I do it ?
is there any incoming notification for xperia z lockscreen ?
Sir help
Sir help because my device is in stock JB 4.1.2 rom. i try to do your tutorials but it seems my android policy jar smali codes is different to the smali codes example given can you help me to change it because i really dont understand smali codes my android.policy.jar is attach to this post thanks this will be really much appreciated
Is int identical to the s3 one ??
Sent from my GT-I9100G using xda premium
ICS_XD said:
Is int identical to the s3 one ??
Sent from my GT-I9100G using xda premium
Click to expand...
Click to collapse
no, it isn't
jaderxiii said:
no, it isn't
Click to expand...
Click to collapse
Goto s3 themes n apps section
Search for it by arsaw
Sent from my GT-I9100G using xda premium
ICS_XD said:
Goto s3 themes n apps section
Search for it by arsaw
Sent from my GT-I9100G using xda premium
Click to expand...
Click to collapse
The tutorial in this thread is the same on that thread
http://forum.xda-developers.com/showthread.php?t=2168411
have a look
jaderxiii said:
The tutorial in this thread is the same on that thread
http://forum.xda-developers.com/showthread.php?t=2168411
have a look
Click to expand...
Click to collapse
I think i said same ?
Sent from my GT-I9100G using xda premium
Hello, this work on S3 mini and a big thanks for this, I love the lockscreen
Envoyé depuis mon GT-I8190 avec Tapatalk
hi!! this work on htc one xl? thanks.. i dont know how to do this on my device
voenta paves
How to get the lockscreen in settings
what to do with this line?
Hello sir,
I have problem to do last line. There are several lines before .end method
It can't be recompiled if i push those line after
.line 938
return-object v0
but if i delete these lines it can't be recompiled too. so please help me what i have to do. Thank you before
here are the last lines/paragraph
.line 938
return-object v0
.line 930
.end local v0 #lockView:Landroid/view/View;
:cond_23
new-instance v0, Lcom/android/internal/policy/impl/LockScreen;
iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;
iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;
iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;
iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;
iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;
invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/LockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallbackV
.restart local v0 #lockView:Landroid/view/View;
goto :goto_1f
.end method

[MOD / How To][5/11/13] - Extended Reboot Menu - De-Odex - MDL

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.

[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
{
"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:

[MOD][HOW-TO] Fully disable app verification (FOR USER APPS)

Now there are guides out there that will disable signature checking (such as THIS one)
But no guides (as far as I know) show you how to FULLY disable signature checking...including for user apps that have been modified and so had their original signatures broken
Here I will show you how to do just that :good:
Let's get started.
You will need the following:
core.jar from your rom (use core-libart.jar if you are on Lollipop)
services.jar
apktool/baksmali+smali
Click to expand...
Click to collapse
[SIZE=+1]Part 1: Allows installing apps with broken/mismatched signatures [/SIZE]
[SIZE=+1]Modding core.jar (or core-libart.jar if on Lollipop)[/SIZE]
Decompile core.jar and navigate to java/security
Open MessageDigest.smali and find the following method
Code:
.method public static isEqual([B[B)Z
At the beginning you will find code like this:
Code:
const/4 v1, [color=red]0x0[/color]
array-length v2, p0
Change the 0x0 to 0x1 so that it becomes
Code:
const/4 v1, [color=blue]0x1[/color]
array-length v2, p0
Now save and close MessageDigest.smali
In the same directory, open Signature.smali
Find the method
Code:
.method public final verify([B)Z
Find this code at the very end of the method:
Code:
invoke-virtual {p0, p1}, Ljava/security/SignatureSpi;->engineVerify([B)Z
[color=red]move-result v0[/color]
return v0
Change the move-result v0 to the following:
Code:
invoke-virtual {p0, p1}, Ljava/security/SignatureSpi;->engineVerify([B)Z
[color=blue]const/4 v0, 0x1[/color]
return v0
Now find the method
Code:
.method public final verify([BII)Z
Scroll to the end of the method and find this code:
Code:
invoke-virtual {p0, p1, p2, p3}, Ljava/security/SignatureSpi;->engineVerify([BII)Z
[color=red]move-result v0[/color]
return v0
And replace it with this:
Code:
invoke-virtual {p0, p1, p2, p3}, Ljava/security/SignatureSpi;->engineVerify([BII)Z
[color=blue]const/4 v0, 0x1[/color]
return v0
Now save and close Signature.smali
Recompile core.jar (core-libart.jar for Lollipop)
Click to expand...
Click to collapse
[SIZE=+1]Now move on to step 2[/SIZE]
[SIZE=+1]Part 2: Allows installing older versions on top of newer versions[/SIZE]
[SIZE=+1]Modding services.jar[/SIZE]
Decompile services.jar and navigate to com\android\server\pm
Open PackageManagerService$InstallParams.smali and find the following method
Code:
.method private installLocationPolicy(Landroid/content/pm/PackageInfoLite;I)I
Scroll down until you find code that looks like the following
Code:
if-nez v7, :cond_1
iget v7, p1, Landroid/content/pm/PackageInfoLite;->versionCode:I
iget v8, v3, Landroid/content/pm/PackageParser$Package;->mVersionCode:I
[color=red]if-ge v7, v8, :cond_1[/color]
const-string v4, "PackageManager"
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;->()V
const-string v7, "Can\'t install update of "
And change the highlighted part above to this (register numbers may vary, but just make sure that you change it to if-ge vXX, vXX)
Code:
if-nez v7, :cond_1
iget v7, p1, Landroid/content/pm/PackageInfoLite;->versionCode:I
iget v8, v3, Landroid/content/pm/PackageParser$Package;->mVersionCode:I
[color=blue]if-ge v8, v8, :cond_1[/color]
const-string v4, "PackageManager"
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;->()V
const-string v7, "Can\'t install update of "
Recompile services.jar. This is conjunction with disabling signature checking in services.jar (shown here for example) allows you to FULLY disable ALL app verification. Mod away :victory:
Click to expand...
Click to collapse
[SIZE=+1]Note that this mod also lets you install unsigned versions over other current versions, as well as installing older versions on top of newer versions of an app[/SIZE]
Nice man!!!
Thanks,
Chaz187
Sent from my SPH-L900 using Xparent UIS Tapatalk
A1 dude thanks
Sent from my One using Xparent Red Tapatalk 2
{
"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"
}
Nice. Did your brain explode today from all the genius it possessed? Lol. May give this a try tomorrow. Hangouts update killed me...
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
Cnex, you sir, are just awesome!!!!!
Dude you rock man!
Thanks so much for this.
Very nice sir
Sent from my SCH-I545 using Xparent BlueTapatalk 2
Epic guide
Sent from my One X using Tapatalk
Mod updated...accidentally left out the second part :silly:
@tdunham @Chad The Pathfinder...if you guys have already implemented, sorry but add the second part
CNexus said:
Mod updated...accidentally left out the second part :silly:
@tdunham @Chad The Pathfinder...if you guys have already implemented, sorry but add the second part
Click to expand...
Click to collapse
2 parts? This is getting out of hand. Lol
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
Thebear j koss said:
2 parts? This is getting out of hand. Lol
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
Click to expand...
Click to collapse
Lol but it's an easy edit
This is it though :thumbup:
Thebear j koss said:
2 parts? This is getting out of hand. Lol
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
Click to expand...
Click to collapse
my head is ready to explode lol
Thanks a ton, and thanks for the help Cnexus. Works as described.
Great mod man, this is actually pretty great!
Any way to make a flashable zip?
Md4 Rooted Modded....... Flawless
Robalboa said:
Any way to make a flashable zip?
Md4 Rooted Modded....... Flawless
Click to expand...
Click to collapse
Impossible as every ROM has different jar file mods.
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
Just updated to TW 4.4.2 and am wondering if this method would help with Google Play Services not playing nicely with some of my TBO themed apps?
Sent from my SPH-L710 using XDA Premium 4 mobile app
marcran75 said:
Just updated to TW 4.4.2 and am wondering if this method would help with Google Play Services not playing nicely with some of my TBO themed apps?
Sent from my SPH-L710 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Nope. It's caused by something in Google itself. Signatures are an easy fix as most of the time original signatures are used. The problem lies between gmail and the new updated Google settings.
[email protected]'$ [email protected]@XY- eliminate white backgrounds and any form of ics/holo blue.
CNexus said:
Mod updated...accidentally left out the second part :silly:
@tdunham @Chad The Pathfinder...if you guys have already implemented, sorry but add the second part
Click to expand...
Click to collapse
Hello Sir i have a problem with lewa rom.
When i try this method http://forum.xda-developers.com/showthread.php?t=1698352
my phone starts to bootloop and as you mentioned in the second part there is no such code that matches in the method
Here is the method
Code:
.method private installLocationPolicy(Landroid/content/pm/PackageInfoLite;I)I
.locals 8
.parameter "pkgLite"
.parameter "flags"
.prologue
const/4 v5, 0x2
const/4 v4, 0x1
.line 5949
iget-object v2, p1, Landroid/content/pm/PackageInfoLite;->packageName:Ljava/lang/String;
.line 5950
.local v2, packageName:Ljava/lang/String;
iget v0, p1, Landroid/content/pm/PackageInfoLite;->installLocation:I
.line 5951
.local v0, installLocation:I
and-int/lit8 v6, p2, 0x8
if-eqz v6, :cond_34
move v1, v4
.line 5953
.local v1, onSd:Z
:goto_b
iget-object v6, p0, Lcom/android/server/pm/PackageManagerService$InstallParams;->this$0:Lcom/android/server/pm/PackageManagerService;
iget-object v6, v6, Lcom/android/server/pm/PackageManagerService;->mPackages:Ljava/util/HashMap;
monitor-enter v6
.line 5954
:try_start_10
iget-object v7, p0, Lcom/android/server/pm/PackageManagerService$InstallParams;->this$0:Lcom/android/server/pm/PackageManagerService;
iget-object v7, v7, Lcom/android/server/pm/PackageManagerService;->mPackages:Ljava/util/HashMap;
invoke-virtual {v7, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/content/pm/PackageParser$Package;
.line 5955
.local v3, pkg:Landroid/content/pm/PackageParser$Package;
if-eqz v3, :cond_46
.line 5956
and-int/lit8 v7, p2, 0x2
if-eqz v7, :cond_56
.line 5958
iget-object v7, v3, Landroid/content/pm/PackageParser$Package;->applicationInfo:Landroid/content/pm/ApplicationInfo;
iget v7, v7, Landroid/content/pm/ApplicationInfo;->flags:I
and-int/lit8 v7, v7, 0x1
if-eqz v7, :cond_3b
.line 5959
if-eqz v1, :cond_36
.line 5960
const-string v4, "PackageManager"
const-string v5, "Cannot install update to system app on sdcard"
invoke-static {v4, v5}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 5961
const/4 v4, -0x3
monitor-exit v6
.line 5994
:goto_33
return v4
.line 5951
.end local v1 #onSd:Z
.end local v3 #pkg:Landroid/content/pm/PackageParser$Package;
:cond_34
const/4 v1, 0x0
goto :goto_b
.line 5963
.restart local v1 #onSd:Z
.restart local v3 #pkg:Landroid/content/pm/PackageParser$Package;
:cond_36
monitor-exit v6
goto :goto_33
.line 5988
.end local v3 #pkg:Landroid/content/pm/PackageParser$Package;
:catchall_38
move-exception v4
monitor-exit v6
:try_end_3a
.catchall {:try_start_10 .. :try_end_3a} :catchall_38
throw v4
.line 5965
.restart local v3 #pkg:Landroid/content/pm/PackageParser$Package;
:cond_3b
if-eqz v1, :cond_40
.line 5967
:try_start_3d
monitor-exit v6
move v4, v5
goto :goto_33
.line 5970
:cond_40
if-ne v0, v4, :cond_44
.line 5972
monitor-exit v6
goto :goto_33
.line 5973
:cond_44
if-ne v0, v5, :cond_4b
.line 5988
:cond_46
monitor-exit v6
.line 5991
if-eqz v1, :cond_59
move v4, v5
.line 5992
goto :goto_33
.line 5977
:cond_4b
#calls: Lcom/android/server/pm/PackageManagerService;->isExternal(Landroid/content/pm/PackageParser$Package;)Z
invoke-static {v3}, Lcom/android/server/pm/PackageManagerService;->access$2000(Landroid/content/pm/PackageParser$Package;)Z
move-result v7
if-eqz v7, :cond_54
.line 5978
monitor-exit v6
move v4, v5
goto :goto_33
.line 5980
:cond_54
monitor-exit v6
goto :goto_33
.line 5985
:cond_56
const/4 v4, -0x4
monitor-exit v6
:try_end_58
.catchall {:try_start_3d .. :try_end_58} :catchall_38
goto :goto_33
.line 5994
:cond_59
iget v4, p1, Landroid/content/pm/PackageInfoLite;->recommendedInstallLocation:I
goto :goto_33
.end method
I dont know how to take logcat when phone is bootlooping so i am sorry for that but i hope that you can help me.

[Tutorial][4.2+]Android L Platlogo With The Game

@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

Categories

Resources