[PORT][27 FEB] XperiaZ Lockscreen for I9300 & Porting Guide - Galaxy S III Themes and Apps

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

Related

Mms.apk - Skin Active + No MMS Convert + No contact Limit + Sent Time

MMS.apk mod for Samsung Galaxy Gio by greg_h_w (me)
First of all, I have to say Thanks to muveszur for his guide on Galaxy S2 thread
The Mms.apk has the following moddings:
- Message Skin (Default, Edge, Gloss, Sticky Note, Memo)
- Sent Time displayed instead of the Received Time
- No AutoConverting messages to MMS after 4 SMS. In my mod, it will be converted to MMS after 200 SMS.
- Possible to add to the message 200 contacts instead of 10 contacts.
Click to expand...
Click to collapse
{
"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"
}
Click to expand...
Click to collapse
HOW TO - For Developers
Change the AutoConverting:
In /res/xml/mms_config.xml change the following values
Code:
<int name="smsToMmsTextThreshold">4</int>
to:
Code:
<int name="smsToMmsTextThreshold">200</int>
Increase Contacts adding for the message
In /res/xml/mms_config.xml change the following values
Code:
<int name="recipientLimit">10</int>
to:
Code:
<int name="recipientLimit">200</int>
Display Sent Time instead of the Received Time
In /smali/com/android/mms/transaction/SMSReceiverService.smali there are 2 following value like this
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
change the first one to:
Code:
invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
then the second one to:
Code:
invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
Activated Message Skin:
In /res/xml/preferences.xml add the following values
Code:
<ListPreference android:entries="@array/pref_entries_message_skin" android:title="@string/pref_title_message_skin" android:key="pref_key_message_skin" android:defaultValue="Default" android:dialogTitle="@string/pref_dialog_title_message_skin" android:entryValues="@array/pref_entry_values_message_skin" />
after
Code:
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
In /smali/com/android/mms/ui/MessagingPreferenceActivity.smali
Change the following values
Code:
.method public static getMessageSkin(Landroid/content/Context;)I
.locals 1
.parameter "context"
.prologue
.line 631
const/4 v0, 0x0
return v0
.end method
to :
Code:
.method public static getMessageSkin(Landroid/content/Context;)I
.locals 6
.parameter "context"
.prologue
.line 631
const/4 v4, 0x0
const-string v5, "Default"
.line 578
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
.line 579
.local v0, pref:Landroid/content/SharedPreferences;
const-string v2, "pref_key_message_skin"
const-string v3, "Default"
invoke-interface {v0, v2, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 580
.local v1, skinType:Ljava/lang/String;
const-string v2, "Default"
invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_0
move v2, v4
.line 591
:goto_0
return v2
.line 582
:cond_0
const-string v2, "Edge"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_1
.line 583
const/4 v2, 0x1
goto :goto_0
.line 584
:cond_1
const-string v2, "Gloss"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2
.line 585
const/4 v2, 0x2
goto :goto_0
.line 586
:cond_2
const-string v2, "Sticker note"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_3
.line 587
const/4 v2, 0x3
goto :goto_0
.line 588
:cond_3
const-string v2, "Memo"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_4
.line 589
const/4 v2, 0x4
goto :goto_0
:cond_4
move v2, v4
.line 591
goto :goto_0
.end method
Click to expand...
Click to collapse
For Stock Rom
1. Download the modified Mms.apk (Attached file)
2. Backup your Mms.apk and mms.odex in /system/app (Use Root Explorer).
3. Mount /system/app as R/W
3. Copy the modified Mms.apk to /system/app
4. Set the permissions to rw-r--r--
5. Delete mms.odex
6. Reboot
Click to expand...
Click to collapse
For Deodexed Rom
1. Download the modified Mms.apk (Attached file)
2. Backup your Mms.apk in /system/app (Use Root Explorer).
3. Mount /system/app as R/W
3. Copy the modified Mms.apk to /system/app
4. Set the permissions to rw-r--r--
5. Reboot
Click to expand...
Click to collapse
Note :
- Don't forget to Clear Messaging Data on Manage Application
- If you are using TouchWizLauncher, you have to erase the data of the launcher in the Settings
Click to expand...
Click to collapse
This mod working on Stock and Deodexed Rom
I tested on DXKT8 on Galaxy Gio and DXKK2 on Galaxy Y​
If you like my work, give me a beer, or just hit the the Thanks button
DONATE
Thanks for the upload, that works with cm 7.2?
thexavier said:
Thanks for the upload, that works with cm 7.2?
Click to expand...
Click to collapse
I don't know. I don't try it yet. Maybe you can report it to me later.
But don't forget to backup your mms.apk before try it
The thems didnt work in stock... And its only in english?
greg_h_w said:
I don't know. I don't try it yet. Maybe you can report it to me later.
But don't forget to backup your mms.apk before try it
Click to expand...
Click to collapse
I tried, sadly don't works. i hope for an update.
I need to delete all the messages I already received, right?
This mod works on odex rom?
MatZ69 said:
The thems didnt work in stock... And its only in english?
Click to expand...
Click to collapse
I have try it on my stock rom DXKP6 without deodexed. I'm sorry, what do you mean only in english?
thexavier said:
I tried, sadly don't works. i hope for an update.
Click to expand...
Click to collapse
I'm so sorry. Maybe I can give the guide to Mod it.
Josenhans said:
I need to delete all the messages I already received, right?
Click to expand...
Click to collapse
Only need to clear the cache and I think it didn't delete all the message. cmiiw
Rausio said:
This mod works on odex rom?
Click to expand...
Click to collapse
yup..
I have update the first post. I give the tutorial how to mod it.
Ask it if someone have a question.
Hope it helpful
greg_h_w said:
I have try it on my stock rom DXKP6 without deodexed. I'm sorry, what do you mean only in english?
Click to expand...
Click to collapse
The definitions are in english while my room are in portuguese,but i will try to modify my own application
Thanks
MatZ69 said:
The definitions are in english while my room are in portuguese,but i will try to modify my own application
Thanks
Click to expand...
Click to collapse
you're welcome
MatZ69 said:
The definitions are in english while my room are in portuguese,but i will try to modify my own application
Thanks
Click to expand...
Click to collapse
Boas!
Chegaste a modificar o teu mms.apk para Portugues?
Se sim, podes enviar-me?
Obrigado!
Can this modified apk solves this problem;
not work on cyanogen 7.2 rc5.6
DarkShadow69 said:
Can this modified apk solves this problem;
Click to expand...
Click to collapse
according to your screenshot. You using go sms. So it can't solve your problem
iman1396 said:
not work on cyanogen 7.2 rc5.6
Click to expand...
Click to collapse
Have you try to mod it by your self ??
greg_h_w said:
Have you try to mod it by your self ??
Click to expand...
Click to collapse
i'm not, where is problem ?
I tried to change the skin but does not happen.
stock ROM DXKT4.
thank you so much you helped me a lot
thx for your share
thanks
thanks very much

[MOD] [LIH/LJ1/LJ2/LJ4/LJ5/LK4/LKC deodex] back/menu long press kills foreground app

Thanks to Sorg, Poppuri, Pako, Wanam.
2 level reboot menu from Wanam also included.
The mod actually developed by sorg and implemented into poppuri ROM with 2 another mods. One of them is too complicated idnd changes whole logic of hard buttons behavior. I just separated it from another ones.
Warning:
Installing of this mod will:
1. Remove another hard keys related mods like volume long press etc.
2. Remove old TV effect.
I dislike this mods, so they are not implemented.
3. Replace power menu with one from WanamLite ROM.
If you need tis mods, please ask autors of mod or ROM for implementing this one or do it yourself.
v2 Update.
Always vibrate, also if nothing killed.
Kills launchers.
Excluded App list:
com.android.providers.applications
com.sec.android.app.clockpackage
com.sec.android.widgetapp.alarmclock
com.sec.phone
com.android.settings
com.android.defcontainer
com.android.contacts
com.sec.android.app.factorymode
v3 - Will not kill launchers, but always provide feedback
To implement into another ROM/file:
1. Decompile android.policy.jar (both from attachment and from your ROM).
2. Copy PhoneWindowManager$BackLongPress.smali into
\android.policy.jar.out\com\android\internal\policy\impl\
3. Merge changes from \android.policy.jar.out\com\android\internal\policy\impl\PhoneWindowManager.smali to your file.
You can use original file from LIH ROM to find differences.
4. Recompile.
hi, just flash the zip in cwm? Criskelo I LIH.?
You can.
Make backup first.
Better - ask Kriskello for implementing this mod.
It simple.
I hope that will work.
---------- Post added at 08:17 PM ---------- Previous post was at 08:13 PM ----------
So I already have and it seems fully functional, many thanks for your work, it's ok
Doesn't work in my custom LIH rom.
well i don.t have a notebook or a desktop system in the next few days,and i really like this feature...so can someone compile one for wanam 4.0 XXDLJ1?tx
Work in omega 29
Enviado desde mi GT-I9300 usando Tapatalk 2
Work on hyper light DLJ1 1.1.5
finally I don't need to install jkay
Tap talk killed now with kill back key
Envoyé depuis mon GT-I9300 avec Tapatalk
You may name my babies
Insert coin 2.0.0 XDLID. works perfectly, wanted this so long. if i could thousand thank i would
akelon said:
Work in omega 29
Enviado desde mi GT-I9300 usando Tapatalk 2
Click to expand...
Click to collapse
I tried on omega 29 and its not worked any solution will be appriciated. Thanks..
There is no differences in android.policy.jar between LIH and LJ1.
So, the mod should work on LJ1.
akelon said:
Work in omega 29
Enviado desde mi GT-I9300 usando Tapatalk 2
Click to expand...
Click to collapse
Have you recompiled it or just flashed it directly?
I am on Omega v29 and it didn't work after flashing. Could you please share the modded file? Thanks in advance.
tczhang said:
Have you recompiled it or just flashed it directly?
I am on Omega v29 and it didn't work after flashing. Could you please share the modded file? Thanks in advance.
Click to expand...
Click to collapse
Worked here on v29. Just flashed
Sent from my GT-I9300 using Xparent Green Tapatalk 2
d8389 said:
To implement into another ROM/file:
1. Decompile android.policy.jar (both from attachment and from your ROM).
2. Copy PhoneWindowManager$BackLongPress.smali into
\android.policy.jar.out\com\android\internal\policy\impl\
3. Merge changes from \android.policy.jar.out\com\android\internal\policy\impl\PhoneWindowManager.smali to your file.
You can use original file from LIH ROM to find differences.
4. Recompile.
Click to expand...
Click to collapse
Plz give us the guide about "the changes of PhoneWindowManager.smali"
androidphone2012 said:
Plz give us the guide about "the changes of PhoneWindowManager.smali"
Click to expand...
Click to collapse
You should add
Code:
.field private final mBackLongPress:Ljava/lang/Runnable;
.field public mBackLongPressed:I
somewhere in
# instance fields
---
Code:
new-instance v0, Lcom/android/internal/policy/impl/PhoneWindowManager$BackLongPress;
invoke-direct {v0, p0}, Lcom/android/internal/policy/impl/PhoneWindowManager$BackLongPress;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;)V
iput-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPress:Ljava/lang/Runnable;
in
Code:
.method public constructor <init>()V
i do it in another similar group
---
in
Code:
.method public interceptKeyBeforeDispatching(Landroid/view/WindowManagerPolicy$WindowState;Landroid/view/KeyEvent;I)J
I increased number of registers by 1 (not sure it's necessary)
and after something like
Code:
const-string v41, "RemoteException when showing recent apps"
move-object/from16 v0, v40
move-object/from16 v1, v41
invoke-static {v0, v1, v10}, Landroid/util/Slog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_521
.line 3110
.end local v10 #e:Landroid/os/RemoteException;
:cond_532
add
Code:
const/16 v40, 0x4
move/from16 v0, v21
move/from16 v1, v40
if-ne v0, v1, :cond_569
.line 2281
if-eqz v9, :cond_556
if-nez v30, :cond_55f
move-object/from16 v0, p0
const v1, 0x0
iput v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPressed:I
if-nez v22, :cond_569
iget-object v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPress:Ljava/lang/Runnable;
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;
invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J
move-result-wide v2
const-wide/16 v4, 0x5
mul-long/2addr v2, v4
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
goto :goto_569
:cond_556
move-object/from16 v0, p0
iget-object v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPress:Ljava/lang/Runnable;
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
:cond_55f
move-object/from16 v0, p0
iget v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPressed:I
if-eqz v1, :cond_569
const-wide/16 v40, -0x1
goto/16 :goto_ad
:cond_569
:goto_569
check also for conflicting goto & cond
d8389 said:
You should add
Code:
.field private static final LONG_PRESS_TIMEOUT:I = 0x190
somewhere in
# static fields
---
Code:
.field private final mBackLongPress:Ljava/lang/Runnable;
.field public mBackLongPressed:I
somewhere in
# instance fields
---
Code:
new-instance v0, Lcom/android/internal/policy/impl/PhoneWindowManager$BackLongPress;
invoke-direct {v0, p0}, Lcom/android/internal/policy/impl/PhoneWindowManager$BackLongPress;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;)V
iput-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPress:Ljava/lang/Runnable;
in
Code:
.method public constructor <init>()V
i do it in another similar group
---
in
Code:
.method public interceptKeyBeforeDispatching(Landroid/view/WindowManagerPolicy$WindowState;Landroid/view/KeyEvent;I)J
I increased number of registers by 1 (not sure it's necessary)
and after something like
Code:
const-string v41, "RemoteException when showing recent apps"
move-object/from16 v0, v40
move-object/from16 v1, v41
invoke-static {v0, v1, v10}, Landroid/util/Slog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_521
.line 3110
.end local v10 #e:Landroid/os/RemoteException;
:cond_532
add
Code:
const/16 v40, 0x4
move/from16 v0, v21
move/from16 v1, v40
if-ne v0, v1, :cond_569
.line 2281
if-eqz v9, :cond_556
if-nez v30, :cond_55f
move-object/from16 v0, p0
const v1, 0x0
iput v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPressed:I
if-nez v22, :cond_569
iget-object v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPress:Ljava/lang/Runnable;
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;
invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J
move-result-wide v2
const-wide/16 v4, 0x5
mul-long/2addr v2, v4
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
goto :goto_569
:cond_556
move-object/from16 v0, p0
iget-object v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPress:Ljava/lang/Runnable;
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
:cond_55f
move-object/from16 v0, p0
iget v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mBackLongPressed:I
if-eqz v1, :cond_569
const-wide/16 v40, -0x1
goto/16 :goto_ad
:cond_569
:goto_569
check also for conflicting goto & cond
Click to expand...
Click to collapse
Thanks, but PhoneWindowManager.smali in Nexus S differs from SGS III Could you give me some tips?
d8389 said:
Thanks to Sorg, Poppuri, Pako, Wanam.
2 level reboot menu from Wanam also included.
The mod actually developed by sorg and implemented into poppuri ROM with 2 another mods. One of them is too complicated idnd changes whole logic of hard buttons behavior. I just separated it from another ones.
Click to expand...
Click to collapse
also working on CheckROM 5.5 DLIB!
@D8329,can you make Pin Code Unlock without pressing OK button mod too ?
works perfectly on foxhound 1.0

[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

[APP] [KK PORT] [4.3] Original ZU 4.4.2 SystemUI / Home (Fullscreen) - v1.2, 16/03/14

Here are original apk's from Xperia ZU system dump, ported to work on JB 4.3.
Whole porting process was done on my Xperia ZQ (ZL) running lastest JB 4.3 firmware, but they should work on any JB 4.3 device/firmware (to be confirmed)!
Warning:
As you know (I hope so), every device has its own framework-res.apk with its own resources/ids and the SystemUI.apk inherits a lot of them at run-time, so, if you install on a "non-ZQ" device 4.3 and face some wrong resources (pngs, strings, animations, ...) at your screen, it is a normal behavior, and this means that some SystemUI.apk edits are necessary to match your framework-res.apk resources.
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"
}
.
Theme accent colored SystemUI
.
.
.
Others...
.
.
.
.
.
.
.
Warning:
- If you have Serajr Xperia Xposed v2 installed, uninstall it and then install module KK version and reboot!
- If you have any other xposed module that hooks SystemUI.apk, disable it!!!
You´re warned - TRY AT YOUR OWN RISK!!
Install instructions:
1. Update Xperia Xposed from above link (if applicable)
2. Backup your files (You´re warned again)
3. Download and put .zip at your sdcard
Download Mirrors:
v1.1 - Dev-Host <<< White SystemUI (original version)
(YOU CAN APPLY ACCENT COLOR UNDER EXPANDED CONTENTS WITH NEW XPERIA XPOSED KK MODULE)
v1.2 - Dev-Host <<< Runtime theme accent colored SystemUI
(DO NOT USE THIS VERSION WITH NEW XPERIA XPOSED KK MODULE !!!)
4. Flash it!
If you have problems with a big "back" key, get fixed version here or here.
Thanks @funky0308 and @Soheil_rf
Known Issues:
- Some minor issues causing fc on some devices!
Special Thanks:
- Sony
- @MN-Ming for Xperia ZU system dump
- @DooMLoRD for Xperia Z2 system dump
If you like it, press thanks... Simple so!!
.
Changelog
v1.2 - 16/03/2014
- Runtime theme accent colored SystemUI version (no reboot or restart required)
- Colored active tab glow
- Colored active tab title
- Colored expanded big clock
- Colored Clear recents button title (white border)
- Colored Edit quick settings button title (white border)
- Colored active quick settings toggles
- Fixed Recents empty background gap
v1.1 - 11/03/2014
- Fixed Wifi Hotspot and Location (GPS) toggles
- Fixed Search Panel at landscape orientation
- Removed vibration by taping near to home soft key
v1 - 10/03/2014
- Initial release
[Guide] Give your system bars a gradient immersive KK flag
WARNING: just do it if you are using OP 4.4 SystemUI.apk on JB 4.3 firmware (backup your files too)​
Lockscreen Status Bar:
1. Decompile your JB 4.3 android.policy.jar
2. Go to \com\android\internal\policy\impl\keyguard\ folder and open (with Notepad++) KeyguardViewManager.smali file
3. Look for this method:
Code:
[B].method public declared-synchronized show(Landroid/os/Bundle;)V[/B]
4. Inside the method look for something like:
Code:
.line 126
iget-object v2, p0, Lcom/android/internal/policy/impl/keyguard/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
invoke-virtual {v2}, Landroid/widget/FrameLayout;->getSystemUiVisibility()I
move-result v2
[COLOR="Red"]const/high16 v3, 0x20
or-int v1, v2, v3[/COLOR]
.line 128
.local v1, visFlags:I
iget-object v2, p0, Lcom/android/internal/policy/impl/keyguard/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
invoke-virtual {v2, v1}, Landroid/widget/FrameLayout;->setSystemUiVisibility(I)V
5. Found! Now change above red lines to blue ones below:
Code:
.line 126
iget-object v2, p0, Lcom/android/internal/policy/impl/keyguard/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
invoke-virtual {v2}, Landroid/widget/FrameLayout;->getSystemUiVisibility()I
move-result v2
[COLOR="Blue"]const/high16 v3, -0x1000
or-int/2addr v3, v2
move/from16 v1, v3[/COLOR]
.line 128
.local v1, visFlags:I
iget-object v2, p0, Lcom/android/internal/policy/impl/keyguard/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
invoke-virtual {v2, v1}, Landroid/widget/FrameLayout;->setSystemUiVisibility(I)V
6. Save, compile, replace it and DONE!
Walkman both Bars (I think the same can be applied on more Semc??? and Somc??? apks):
1. Decompile your JB 4.3 SemcMusic.apk
2. If you open smali folder and face folders/files titled like a, b, c... you have a "Proguarded version" (obfuscated code)!!! I've never thought Sony would encrypt its sources.. but It did it!! Mine is!!!!!
Words from Proguard page:
ProGuard now has a sibling optimizer and obfuscator for Android: DexGuard. It focuses on code protection, with additional features like string encryption and class encryption. It directly targets Dalvik bytecode and streamlines the Android build process.
Click to expand...
Click to collapse
3. Go to \com\sonymobile\ui\support\ folder and open (with Notepad++) SystemUiVisibilityWrapper.smali file
3 (Prograrded version). Go to \com\sonymobile\c\a\ folder and open (with Notepad++) a.smali file
4. Look for this method:
Code:
[B].method public setTranslucentBackground(Z)Lcom/sonymobile/ui/support/SystemUiVisibilityWrapper;[/B]
4 (Prograrded version). Look for this method:
Code:
[B].method public a(Z)Lcom/sonymobile/c/a/a;[/B]
5. Found! Now replace whole method from red to blue:
Code:
[COLOR="Red"].method public setTranslucentBackground(Z)Lcom/sonymobile/ui/support/SystemUiVisibilityWrapper;
.locals 1
.parameter "value"
.prologue
.line 309
sget v0, Lcom/sonymobile/ui/support/SystemUiVisibilityWrapper;->SYSTEM_UI_FLAG_TRANSPARENT:I
invoke-direct {p0, v0, p1}, Lcom/sonymobile/ui/support/SystemUiVisibilityWrapper;->setFlag(IZ)V
.line 310
return-object p0
.end method[/COLOR]
Code:
[COLOR="Blue"].method public setTranslucentBackground(Z)Lcom/sonymobile/ui/support/SystemUiVisibilityWrapper;
.locals 3
.parameter "value"
.prologue
.line 309
iget-object v0, p0, Lcom/sonymobile/ui/support/SystemUiVisibilityWrapper;->mView:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getSystemUiVisibility()I
move-result v0
const/high16 v1, -0x1000
or-int/2addr v1, v0
move/from16 v2, v1
invoke-direct {p0, v2, p1}, Lcom/sonymobile/ui/support/SystemUiVisibilityWrapper;->setFlag(IZ)V
.line 310
return-object p0
.end method[/COLOR]
5 (Prograrded version). Found! Now replace whole method from red to blue:
Code:
[COLOR="Red"].method public a(Z)Lcom/sonymobile/c/a/a;
.locals 1
.parameter
.prologue
.line 309
sget v0, Lcom/sonymobile/c/a/a;->b:I
invoke-direct {p0, v0, p1}, Lcom/sonymobile/c/a/a;->b(IZ)V
.line 311
return-object p0
.end method[/COLOR]
Code:
[COLOR="Blue"].method public a(Z)Lcom/sonymobile/c/a/a;
.locals 3
.parameter
.prologue
.line 309
iget-object v0, p0, Lcom/sonymobile/c/a/a;->h:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getSystemUiVisibility()I
move-result v0
const/high16 v1, -0x1000
or-int/2addr v1, v0
move/from16 v2, v1
invoke-direct {p0, v2, p1}, Lcom/sonymobile/c/a/a;->b(IZ)V
.line 311
return-object p0
.end method[/COLOR]
6. Save, compile, replace it and DONE!
Album both Bars:
1. Decompile your JB 4.3 SemcAlbum.apk
2. Go to \com\sonyericsson\album\util\ folder and open (with Notepad++) BarUtils.smali file
3. Look for this method:
Code:
[B].method public static setDefaultSystemUiVisibility(Landroid/view/Window;)V[/B]
4. Insert blue lines
Code:
.method public static setDefaultSystemUiVisibility(Landroid/view/Window;)V
.locals 2
.parameter "window"
.prologue
.line 306
sget-boolean v1, Lcom/sonyericsson/album/util/BarUtils;->sIsKitKat:Z
if-eqz v1, :cond_0
.line 307
const/16 v0, 0xe00
.line 310
.local v0, flags:I
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/view/View;->setSystemUiVisibility(I)V
.line 315
.end local v0 #flags:I
:goto_0
return-void
.line 312
:cond_0
invoke-static {p0}, Lcom/sonyericsson/album/util/BarUtils;->enableStatusBar(Landroid/view/Window;)Z
.line 313
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v1
invoke-static {v1}, Lcom/sonyericsson/album/util/BarUtils;->showNavigationBar(Landroid/view/View;)V
[COLOR="blue"].line 314
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v0
invoke-virtual {v0}, Landroid/view/View;->getSystemUiVisibility()I
move-result v0
const/high16 v1, -0x1000
or-int/2addr v1, v0
move/from16 v0, v1
.line 315
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/view/View;->setSystemUiVisibility(I)V[/COLOR]
goto :goto_0
.end method
5. Save, compile, replace it and DONE!
Warning: if you are having any problem on compile/fc, try to put -0x100000 value instead of -0x1000 (thanks @niaboc79)
Screenshots:
.
Thumbs
Thumbs...
1st to sayyy woooowwwww great mate !!
Sent from my C6603 using Tapatalk
Awesome....I'm gonna flash it right away.
So, only "bug" you have in released version is that search bar bug?
Great work...!
Nice....mate...absolutely amazing..
Everything is working incredibly well...fast and fluid.
BTW - only "bug" I could found is that I should apply my theme again to get back my navigation bar icons...
I don't know is this is placebo or what but everything seems more fluid and smooth...
Also...do you maybe know how to fix this back icon (it's bigger that rest icons)
That was problem with some 136 firmwares on Z1 but I just used different systemUI - and I don't want to use another one anymore
Sent from my C6903 using Tapatalk
The new home is really great works in all theme ...i gues this is the first fully functional home without problems !! I like the drawer its now full screen
Edit: im still trying to get work the systemui
Sent from my C6603 using Tapatalk
Z1 users - don't enable systemUI customisation in Xperia Xposed - you'll end in systemUI FC.
Everything seems excellent for me.
Sent from my C6903 using Tapatalk
funky0308 said:
Z1 users - don't enable systemUI customisation in Xperia Xposed - you'll end in systemUI FC.
Everything seems excellent for me.
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Mate i also have that hjge back button hene
Sent from my Transformer TF101 using Tapatalk now Free
lyndonguti said:
Mate i also have that hjge back button hene
Sent from my Transformer TF101 using Tapatalk now Free
Click to expand...
Click to collapse
@niaboc79 had solution for that.
Mate, could you help a bit here...
I could resize it but that's not solution...that's improvising
In landscape is O.K but portrait is odd...
Sent from my C6903 using Tapatalk
funky0308 said:
@niaboc79 had solution for that.
Mate, could you help a bit here...
I could resize it but that's not solution...that's improvising
In landscape is O.K but portrait is odd...
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Yeah niaboc fix that....sure sera will know that too...anway yeah its odd but hey the system notification is just out of the box hehe
Sent from my Transformer TF101 using Tapatalk now Free
lyndonguti said:
Yeah niaboc fix that....sure sera will know that too...anway yeah its odd but hey the system notification is just out of the box hehe
Sent from my Transformer TF101 using Tapatalk now Free
Click to expand...
Click to collapse
Absolutely... @serajr knows that I didn't mean nothing bad, just reporting and because he did so much tonight I asked another Android wizard
Sent from my C6903 using Tapatalk
This one works freaking well on XT! Recommended
Sent from my LT30p using Tapatalk
funky0308 said:
Absolutely... @serajr knows that I didn't mean nothing bad, just reporting and because he did so much tonight I asked another Android wizard
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Yeah he know us such a huge supporters of those two gigantic hehe.….anyway i think im gonna enjoy the home for now ..so nice
Sent from my Transformer TF101 using Tapatalk now Free
I know it isn't made for such a different device, but I tried it anyway on my Tablet Z.
It half works. If I slide down the notification side, it doesn't show anything. The toggles side works nicely, except for the Location toggle, which thinks it is off, when everything is on.
Other thing is the bugged navigation bar. It is completely huge and requires a lot of tries to work. The rest seems to work somewhat well.
Once again, I know it isn't meant for such a different device, but it worth a try
Sent from my SGP311 using Tapatalk
@serajr could you port it to 4.1.2 please? it'd be really cool! I like that notification panel I want to make my Ion better until I get my Z2
funky0308 said:
@niaboc79 had solution for that.
Mate, could you help a bit here...
I could resize it but that's not solution...that's improvising
In landscape is O.K but portrait is odd...
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
navigation_bar.xml
for all line with:
Code:
android:id="@id/back"
remove
Code:
android:scaleType="center"
niaboc79 said:
navigation_bar.xml
for all line with:
Code:
android:id="@id/back"
remove
Code:
android:scaleType="center"
Click to expand...
Click to collapse
As I said...he knows
Thanks mate - will do that tomorrow.
Tnx for fast answer
Sent from my C6903 using Tapatalk
@serajr
Amazing work my friend
Here's already my little variation with some theme accent color
Edit: GPS and Hotspot toggles are not working proprely
@serajr first thanks for your awesome work
Little bug : useless vibration when touch above navigation keys
Sent from my C6503 using Tapatalk

[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.

Categories

Resources