[GUIDE][How-To]Xperia Z Lockscreen for HDPI devices [For Xperia Lovers ! ] - Galaxy S II Themes and Apps

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

Related

[GUIDE][How-to] Enable 5 lockscreen shortcuts JB

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

[PORT][27 FEB] XperiaZ Lockscreen for I9300 & Porting Guide

Hello,
This is Xperia Z lockscreen ported for Galaxy S3 I9300. Mod is currently based on Samsung rom version ZSEMA1 & XXEMR2. I will try to add more rom version whenever possible.
This modified android.policy.jar. So please do not try it on other phone models.
If you have other mods in your android.policy.jar, this mod will break it.
This mod doesn't gives you toggle between Samsung Ripple lockscreen and Xperia Z lockscreen. You will get only Xperia Z lockscreen.
If you do not know how Xperia Z lockscreen looks like, watch this video prepared by MohammedAzi (included a guide to change lockscreen wallpaper) : YOUTUBE Thank you MohamedAzi.
How to install
1) Download the main mod zipfile below. Then choose the right framework for your phone. I'll try to add more
2) Backup your rom (Nandroid backup)
3) Flash the main mod zipfile first and then flash the chosen framework in CWM (Don't reboot in between)
4) Done
Bugs
1) Upon unlocking, Samsung lockscreen's wallpaper is still visible for about 0.3-0.5 second. Solution by JoFury: set fully black wallpaper for samsung lockscreen. Then go to settings - developers option and set windows animation to 0.5 or off. Thanks JoFury.
2) The music control/widget in lockscreen doesn't works with Samsung music player. Install third party apps as workaround.
3) The music control/widget always show "No Tracks Available". Maybe installing Sony music player would solve it.
4) No shortcut to change Xperia Z lockscreen wallpaper. Workaround:
Solution by RocketSauce83
Replace the UxpNxtLockscreen.apk with this version : http://forum.xda-developers.com/showthread.php?p=39354512
Thanks RocketSauce83
Solution by Hyperrunner :
http://forum.xda-developers.com/showthread.php?p=38960185
Thanks Hyperrunner
5) Samsung Ripple Effects will cause screen to freeze, so please turn it off when you're using XZ lockscreen.
That's it. Thanks
Download
Main Mod
http://www.mediafire.com/?un6239axlgsqys6
Choose framework based
XXEMB5
ZSEMA1
XXEMR2
XXEMB1
ELLC
Screenshot
{
"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"
}
Guide
How to add XperiaZ lockscreen to Samsung based rom. I use stock rom 4.1.2 for this guide.
This is my method to mod XperiaZ lockscreen for Samsung based rom. This guide assume you already familiar with apktool/baksmali/smali process.
Required tools
1)Apktool and baksmali/smali program
2)7zip
3)Notepad ++
Required files from XperiaZ rom
1)UxpNxtLockScreen.apk (need to be modified)
2)WallpaperPicker.apk
3)com.sonyericsson.navigationbar_impl.jar from system/framework
4)SoMADigitLight.ttf from system/fonts
5)customization folder from system/etc
6)com.sonyericsson.navigationbar.xml from system/etc/permissions
7)XperiaZ framework-res.apk & SemcGenericUxpRes.apk from system/framework
8)XperiaZ android.policy.jar (for source code)
I already packed Item 1-6 into flashable zipfile as “main mod”. Download at OP. You can skip to step 2 if you want to use my main mod.
Step 1
1)Install XperiaZ frameworks in apktool
2)Decompile UxpNxtLockScreen.apk with apktool.
3)Find smali/com/sonyericsson/lockscreen/uxpnxt/UxpNxtLockScreen.smali and open it up
4)Find invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->isIccInvalidCard()Z
5)Samsung framework doesn’t support this method. So
6)Change it to invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->hasIccCard()Z
That’s it, recompile it with apktool
Step2
1)Decompile XperiaZ android.policy.jar with baksmali/smali program
2)From the output, go to smali/com/android/internal/policy/impl and copy ExtendedKeyguardScreen.smali and ExternalLockScreen.smali
3)ExternalLockScreen.smali need to be modified to prevent package validation
4)I’m sure there is easy way to turn package validation off but here’s what I did:
Find invoke-static {p0, v4}, Lcom/android/internal/policy/impl/ExternalLockScreen;->validateExternalLockScreen(Landroid/content/Context;Landroid/content/ComponentNameZ
Delete the red one
Code:
.line 238
sget-object v9, Lcom/android/internal/policy/impl/ExternalLockScreen;->sLockScreenInfoLock:Ljava/util/concurrent/locks/Lock;
invoke-interface {v9}, Ljava/util/concurrent/locks/Lock;->unlock()V
[COLOR="Red"] .line 241
if-nez v4, :cond_2[/COLOR]
.line 242
invoke-static {p0}, Lcom/android/internal/policy/impl/ExternalLockScreen;->getExternalLockScreenPackage(Landroid/content/Context;)Landroid/content/ComponentName;
move-result-object v4
[COLOR="red"].line 246
:cond_2
invoke-static {p0, v4}, Lcom/android/internal/policy/impl/ExternalLockScreen;->validateExternalLockScreen(Landroid/content/Context;Landroid/content/ComponentName;)Z
move-result v8
.line 250
if-eqz v8, :cond_3[/COLOR]
.line 251
invoke-virtual {v4}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v9
Find .method private static validateExternalLockScreen(Landroid/content/Context;Landroid/content/ComponentNameZ
Delete the red one
Code:
.method private static validateExternalLockScreen(Landroid/content/Context;Landroid/content/ComponentName;)Z
.locals 4
.parameter "context"
.parameter "info"
.prologue
const/4 v1, 0x0
.line 131
[COLOR="red"] if-eqz p1, :cond_0[/COLOR]
invoke-virtual {p1}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;
move-result-object v2
[COLOR="red"] if-eqz v2, :cond_0[/COLOR]
invoke-virtual {p1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v2
[COLOR="red"] if-nez v2, :cond_1
.line 132
:cond_0
const-string v2, "ExternalLockScreen"
const-string v3, "External lockscreen name and package info has not been set correctly!"
invoke-static {v2, v3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
[/COLOR]
.line 147
:goto_0
return v1
.line 140
:cond_1
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
.line 141
.local v0, pm:Landroid/content/pm/PackageManager;
const-string v2, "com.sonyericsson.permission.EXTERNAL_LOCKSCREEN"
invoke-virtual {p1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v2, v3}, Landroid/content/pm/PackageManager;->checkPermission(Ljava/lang/String;Ljava/lang/String;)I
move-result v2
[COLOR="red"] if-nez v2, :cond_2[/COLOR]
.line 143
const/4 v1, 0x1
goto :goto_0
[COLOR="red"] .line 146
:cond_2
const-string v2, "ExternalLockScreen"
const-string v3, "Validation of external lockscreen failed!!"
invoke-static {v2, v3}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0[/COLOR]
.end method
That's it. Save it.
Step 3
1)Next 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 amend 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
That's it. Recompile it and push it together with all the required files (item1 - item6) mentioned above into your phone and reboot.
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
Any plan for XXEMB1
Sent from my GT-I9300
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
freddy1991 said:
Any plan for XXEMB1
Sent from my GT-I9300
Click to expand...
Click to collapse
You mind share the XXEMB1 android.policy.jar to me so that I can mod it
Sent from my GT-N7100 using Tapatalk 2
Here is the policy jar for XXEMB1 please if you could that would be great. Thank you..
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
Meemo23 said:
Here is the policy jar for XXEMB1 please if you could that would be great. Thank you..
Click to expand...
Click to collapse
Thanks. I'll get it done.
Sent from my GT-N7100 using Tapatalk 2
After the installing your mod, can I re-install and use my old mods?
Nice! Can you also mod the android.policy.jar file from the latest JKay release?
So the JKay framework will still work after flashing this.
Then it would be a really great add-on for my own rom (if I get your permission of course!)
EDIT: added the android.policy.jar from the latest JKay framework.
Hope you can do something with it!
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
I forgot to ask
Will this work on odexed firmware
Sent from my GT-I9300
Amazing work ! i will add more mods into android.policy.jar
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
Firaristt said:
After the installing your mod, can I re-install and use my old mods?
Click to expand...
Click to collapse
No if it is related to android.policy.jar unless you manually decompile it and apply other mods.
Sent from my GT-I9300 using Tapatalk 2
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
edgarf28 said:
Nice! Can you also mod the android.policy.jar file from the latest JKay release?
So the JKay framework will still work after flashing this.
Then it would be a really great add-on for my own rom (if I get your permission of course!)
EDIT: added the android.policy.jar from the latest JKay framework.
Hope you can do something with it!
Click to expand...
Click to collapse
Yes. No problem.
I'll try to mod your android.policy.jar
Sent from my GT-I9300 using Tapatalk 2
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
freddy1991 said:
I forgot to ask
Will this work on odexed firmware
Sent from my GT-I9300
Click to expand...
Click to collapse
No. I always screwed up with odexed files
Sent from my GT-I9300 using Tapatalk 2
Nice work :good:
mind posting a tutorial(so whenever an update to either fw or jkay comes we can do it our self)
& tipped for portal news
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
What about buema1..?
---------- Post added at 04:24 PM ---------- Previous post was at 04:20 PM ----------
What about BUEMA1..?
Yes, post a tutorial how we can modify the android.policy.jar file by our self please!
So that I can keep the lockscreen with every rom update.
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
ThilinaC said:
Nice work :good:
mind posting a tutorial(so whenever an update to either fw or jkay comes we can do it our self)
& tipped for portal news
Click to expand...
Click to collapse
edgarf28 said:
Yes, post a tutorial how we can modify the android.policy.jar file by our self please!
So that I can keep the lockscreen with every rom update.
Click to expand...
Click to collapse
Yes, I will try to write a guide to add this lockscreen into android.policy.jar
Sent from my GT-I9300 using Tapatalk 2
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
Sheik.AlQla said:
What about buema1..?
---------- Post added at 04:24 PM ---------- Previous post was at 04:20 PM ----------
What about BUEMA1..?
Click to expand...
Click to collapse
I need the android.policy.jar too. Can you send it to me.
Sent from my GT-I9300 using Tapatalk 2
Meemo23 said:
Here is the policy jar for XXEMB1 please if you could that would be great. Thank you..
Click to expand...
Click to collapse
Added the mod for XXEMB1. Download at OP.
Note: Signature is missing in your android.policy.jar. Hopefully it works fine for others user.
thx!
Re: [PORT][27 FEB] XperiaZ Lockscreen for I9300
Nice work mate
Sent from my GT-I9300 using xda app-developers app

[MOD][CM11] TRANSPARENT STATUS BAR on Lockcreen

{
"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"
}
Download attached file
available for CM11 build 3 by hadidjafri & for KK Bean Kat rom v.2.1
flash from CWM - wipe cache - install it - reboot
Done reboot android will upgrading for about 3 minutes and that's normal
Credit :
- @hadidjapri
- @evilisto
reserved
This is just what i wanted! Thanks!
Sent from my GT-I8150 using XDA Premium 4 mobile app
---------- Post added at 06:45 AM ---------- Previous post was at 06:27 AM ----------
Hey
I got a white status bar when opening dialer,messaging etc
Sent from my GT-I8150 using XDA Premium 4 mobile app
ahaiqali said:
This is just what i wanted! Thanks!
Sent from my GT-I8150 using XDA Premium 4 mobile app
---------- Post added at 06:45 AM ---------- Previous post was at 06:27 AM ----------
Hey
I got a white status bar when opening dialer,messaging etc
Sent from my GT-I8150 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
yes , the status bar background will depends on what is the color of the apps ..
Adi Aisiteru Reborn said:
yes , the status bar background will depends on what is the color of the apps ..
Click to expand...
Click to collapse
how to transparent statusbar at the anylauncher?
edit bools.xml? not work
zie.do2y said:
how to transparent statusbar at the anylauncher?
edit bools.xml? not work
Click to expand...
Click to collapse
have you tried this
in build prop :
before
Code:
ro.config.low_ram=true
change it to
Code:
ro.config.low_ram=false
reboot
if the build prop doesn't work
try this
decompile android.policy.jar
com/android/internal/policy/impl/PhoneWindowManager.smali
find this
Code:
.method public getSystemDecorLayerLw()I
.registers 2
.prologue
.line 3374
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_b
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
.line 3376
:goto_a
return v0
.line 3375
:cond_b
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_16
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
goto :goto_a
.line 3376
:cond_16
const/4 v0, 0x0
goto :goto_a
.end method
remove that all and
change it to like this
Code:
.method public getSystemDecorLayerLw()I
.registers 2
.prologue
.line 3374
const/4 v0, 0x0
return v0
.end method
next decompile your systemui
and set your transparent status bar background to transparent value
Adi Aisiteru Reborn said:
if the build prop doesn't work
try this
decompile android.policy.jar
com/android/internal/policy/impl/PhoneWindowManager.smali
find this
Code:
.method public getSystemDecorLayerLw()I
.registers 2
.prologue
.line 3374
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_b
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
.line 3376
:goto_a
return v0
.line 3375
:cond_b
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_16
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
goto :goto_a
.line 3376
:cond_16
const/4 v0, 0x0
goto :goto_a
.end method
remove that all and
change it to like this
Code:
.method public getSystemDecorLayerLw()I
.registers 2
.prologue
.line 3374
const/4 v0, 0x0
return v0
.end method
next decompile your systemui
and set your transparent status bar background to transparent value
Click to expand...
Click to collapse
OK dude ganteng thanks for help i can trying thats guide...
:highfive:
anytime i will go u home :victory:
Adi Aisiteru Reborn said:
Download attached file
available for CM11 build 3 by hadidjafri & for KK Bean Kat rom v.2.1
flash from CWM - wipe cache - install it - reboot
Done reboot android will upgrading for about 3 minutes and that's normal
Credit :
- @hadidjapri
- @evilisto
Click to expand...
Click to collapse
Does it works for other rom?? I'm kinda curious. Thanks!
Hello everyone!
Okay...so I f*cked up things a bit...just installed the transparent status bar but didn't pay attention that is for Galaxy i8150 and not for i9000
anyway , installed it correctly , the bar was transparent BUT the problem is that if I try to go in my Settings , the phone just reboots.
So my main question is: Is there a way that I can bring back my old status bar and restore from this error ? Links maybe ? ( I run CM11 KitKat4.4.2 )
Struvie said:
Hello everyone!
Okay...so I f*cked up things a bit...just installed the transparent status bar but didn't pay attention that is for Galaxy i8150 and not for i9000
anyway , installed it correctly , the bar was transparent BUT the problem is that if I try to go in my Settings , the phone just reboots.
So my main question is: Is there a way that I can bring back my old status bar and restore from this error ? Links maybe ? ( I run CM11 KitKat4.4.2 )
Click to expand...
Click to collapse
i got the same problem with galaxy w.. the phone reboots whenever i open any apps.. im on cm11 latest build from arco.
Struvie said:
Hello everyone!
Okay...so I f*cked up things a bit...just installed the transparent status bar but didn't pay attention that is for Galaxy i8150 and not for i9000
anyway , installed it correctly , the bar was transparent BUT the problem is that if I try to go in my Settings , the phone just reboots.
So my main question is: Is there a way that I can bring back my old status bar and restore from this error ? Links maybe ? ( I run CM11 KitKat4.4.2 )
Click to expand...
Click to collapse
lipanz said:
i got the same problem with galaxy w.. the phone reboots whenever i open any apps.. im on cm11 latest build from arco.
Click to expand...
Click to collapse
Re flash your ROM without wipes.

[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