Mms.apk - Skin Active + No MMS Convert + No contact Limit + Sent Time - Samsung Galaxy Gio GT-S5660

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

Related

[MOD/HOW-TO] Disable screen-on when receiving SMS Messages. Updated for Jelly Bean

Plenty of people have been asking me how to do this, SO I finally decided that it was time I figured it out, and here it is!
I've attached a flashable zip that will replace your MMS app with my modified one. It will enable the option to turn screen on or off when receiving messages.
HUGE thanks to shoman94 for giving us the link to his github where the option is.
Other mods this includes:
-Attempted removal of compression and resolution limits.
How to for devs
Coming soon!
How to for devs OLD METHOD (deprecated):
Decompile classes.dex or SecMms.apk and navigate to the smali file \com\android\mms\transaction\MessagingNotification.smali and open it with editor
LOOK FOR:
Code:
.method private static decideNotificationType(Landroid/content/Context;Landroid/content/SharedPreferences;Landroid/app/Notification;)V
LOOK AROUND:
Code:
move-result v4
if-eqz v4, :cond_2b
REMOVE BELOW:
Code:
const-string v13, "power"
move-object/from16 v0, p0
invoke-virtual {v0, v13}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v6
check-cast v6, Landroid/os/PowerManager;
const v13, 0x1000001a
const-string v14, "New message notification LCD on"
invoke-virtual {v6, v13, v14}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;
move-result-object v12
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v13
const/4 v15, 0x0
invoke-virtual {v6, v13, v14, v15}, Landroid/os/PowerManager;->userActivity(JZ)V
const-wide/16 v13, 0x1388
invoke-virtual {v12, v13, v14}, Landroid/os/PowerManager$WakeLock;->acquire(J)V
Recompile classes.dex or SecMms.apk and push to phone.
That is all
NOTE: This is for Jelly Bean LJ7 based DeOdex ROMs. If someone wants to Odex it, that would be awesome.
{
"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"
}
Thank you so much. I've definitely been looking for this.
Sent from my SGS3 while experiencing some Wicked Sensations™.
Great job figuring this out! Can i flash this on blazer 1.7?
freeza said:
Plenty of people have been asking me how to do this, SO I finally decided that it was time I figured it out, and here it is!
I've attached a flashable zip that will replace your MMS app with my modified one. It will disable the screen coming on when receiving messages, but will still alert you with a notification sound or vibrate or whatever you have it set to.
How to for devs:
Decompile classes.dex or SecMms.apk and navigate to the smali file \com\android\mms\transaction\MessagingNotification.smali and open it with editor
LOOK FOR:
Code:
.method private static decideNotificationType(Landroid/content/Context;Landroid/content/SharedPreferences;Landroid/app/Notification;)V
LOOK AROUND:
Code:
move-result v4
if-eqz v4, :cond_2b
REMOVE BELOW:
Code:
const-string v13, "power"
move-object/from16 v0, p0
invoke-virtual {v0, v13}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v6
check-cast v6, Landroid/os/PowerManager;
const v13, 0x1000001a
const-string v14, "New message notification LCD on"
invoke-virtual {v6, v13, v14}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;
move-result-object v12
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v13
const/4 v15, 0x0
invoke-virtual {v6, v13, v14, v15}, Landroid/os/PowerManager;->userActivity(JZ)V
const-wide/16 v13, 0x1388
invoke-virtual {v12, v13, v14}, Landroid/os/PowerManager$WakeLock;->acquire(J)V
Recompile classes.dex or SecMms.apk and push to phone.
That is all
Click to expand...
Click to collapse
Not sure if your MMS.apk has this but on at&t variant:
Look at this link in my github.... it enables a few options including a toggle for screen on when receiving a message.
https://github.com/shoman94/SHOstock2-XWLP7/commit/3348835cd8e6dc25dcc358c397e6c71b5cc8a2d2
shoman94 said:
Not sure if your MMS.apk has this but on at&t variant:
Look at this link in my github.... it enables a few options including a toggle for screen on when receiving a message.
https://github.com/shoman94/SHOstock2-XWLP7/commit/3348835cd8e6dc25dcc358c397e6c71b5cc8a2d2
Click to expand...
Click to collapse
Nice! Thanks man, I'm about to make those changes right now.
Freeze is the man! Thanks bro!
Sent from my SPH-L710 using XDA Premium App
Good **** Freeza
freeza said:
Plenty of people have been asking me how to do this, SO I finally decided that it was time I figured it out, and here it is!
I've attached a flashable zip that will replace your MMS app with my modified one. It will enable the option to turn screen on or off when receiving messages.
HUGE thanks to shoman94 for giving us the link to his github where the option is.
How to for devs
Coming soon!
How to for devs OLD METHOD (deprecated):
Decompile classes.dex or SecMms.apk and navigate to the smali file \com\android\mms\transaction\MessagingNotification.smali and open it with editor
LOOK FOR:
Code:
.method private static decideNotificationType(Landroid/content/Context;Landroid/content/SharedPreferences;Landroid/app/Notification;)V
LOOK AROUND:
Code:
move-result v4
if-eqz v4, :cond_2b
REMOVE BELOW:
Code:
const-string v13, "power"
move-object/from16 v0, p0
invoke-virtual {v0, v13}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v6
check-cast v6, Landroid/os/PowerManager;
const v13, 0x1000001a
const-string v14, "New message notification LCD on"
invoke-virtual {v6, v13, v14}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;
move-result-object v12
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v13
const/4 v15, 0x0
invoke-virtual {v6, v13, v14, v15}, Landroid/os/PowerManager;->userActivity(JZ)V
const-wide/16 v13, 0x1388
invoke-virtual {v12, v13, v14}, Landroid/os/PowerManager$WakeLock;->acquire(J)V
Recompile classes.dex or SecMms.apk and push to phone.
That is all
UPDATED: Added revised flashable which enables the option to turn on and off screen for notifications.
Click to expand...
Click to collapse
You are the man! Every dev needs to add this to their roms. I was getting tired of not being able to leave my phone on the table because people could read my messages.
Exactly was I was needing.
Sent from Pluto.
I love you man
Sent from my SPH-L710 using xda premium
Good job, Freeza! Been waiting for this one.
This is very tasty icing on a very tasty cake! Thanks Freeza.!
Sent from my SPH-L710 using xda premium
Am I missing something? Why is such a asked for mod ?
Sent from my SPH-L710 using xda app-developers app
Getting "Unfortunately, Messaging has stopped".
wildgamer100 said:
Getting "Unfortunately, Messaging has stopped".
Click to expand...
Click to collapse
Latest version? If you are using the first one without the toggle, it might do that.
freeza said:
Latest version? If you are using the first one without the toggle, it might do that.
Click to expand...
Click to collapse
Yup was on the latest 1. Just downloaded and installed last night and kept getting messaging has stopped so I had to restore my backup.
Any ideas as to why?
Thanks a lot freeza and will this work on stock rooted?
Just a quick observation, I am running stock rooted LG8, and my screen does not turn on when receiving text msgs. I have gotten about 20 texts sofar this morning, and the screen didn't turn on to display the lockscreen notification.
Thanks so much!!
Sent from my SPH-L710 using xda premium
DUDE YOU ARE A ****ING GENIUS!!! IT WORKSSSSSSS!!! :thumbup:
Sent from my SPH-L710 using xda premium

[GUIDE] Locking contacts/sms apps in memory on JB/cm10 (technical / baksmali way)

Hi everyone!
kanpurite made a great job giving us the easy way to locking apps in memory in this thread.
But, as i told in http://forum.xda-developers.com/showpost.php?p=31627356&postcount=23 there is other, a little bit harder, but still it can be done.
Requirements:
A Pc (this guide is made over Windows, but may work on linux as well)
notepad++
baksmali/smali tools (attached at this thread)
root explorer (or any file explorer with root capabilities)
Here is a step by step guide to do it:
1. Extract baksmali tools to a new folder
2. Extract services.jar from your phone (at /system/framework) and copy to your baksmali folder
3. Run baksmali manager.bat
4. select option 4 (select file to work), then select services.jar
5. select option 1 (baksmali) and wait (CAUTION: DON'T CLOSE THE BAKSMALI MANAGER WINDOW)
6. Go to your baksmali folder, there must be a new folder named "services"
7. enter to services folder and go to this sub-folder
Code:
\com\android\server\am
8. open ActivityManagerService.smali with notepad++
9. search for ".line 13892" and add the following after "if-lez v10, :cond_2af":
Code:
iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
const-string v5, "com.android.contacts"
invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_2b4
move-object/from16 v0, p1
iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
const-string v5, "com.android.mms"
invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2bf
.line 13894
:cond_2b4
const/4 v11, 0x0
(NOTE: You can change to any app you want, just give the proper name of the app process....)
10. add the following:
Code:
.line 13895
.end local v11 #adj:I
.end local v34 #schedGroup:I
:cond_2bf
11. change the subsequent numbers of ".line" (including the old .line 13895) like this:
Code:
.line 13896
move/from16 v11, p2
.line 13897
.restart local v11 #adj:I
const/16 v34, 0x0
.line 13898
.restart local v34 #schedGroup:I
const/4 v2, 0x1
move-object/from16 v0, p1
iput-boolean v2, v0, Lcom/android/server/am/ProcessRecord;->hidden:Z
.line 13899
const-string v2, "bg-activities"
move-object/from16 v0, p1
iput-object v2, v0, Lcom/android/server/am/ProcessRecord;->adjType:Ljava/lang/String;
goto/16 :goto_f1
12. Save the file.
13. Go to the baksmali manager window and select option 2 (smali) and wait, it will create a classes.dex file on your baksmali folder
14. Open up services.jar with 7zip or WinRAR and drag the newly created classes.dex into the window to refresh services.jar with the new
classes.dex
15. Copy the new services.jar file to your sdcard and from there, copy to /system/framework (use root explorer, mount read/write and copy the
file).
16. set proper permissions: set 644 permissions ((rw-r--r--) or (tick Read: owner, group, others / Write: owner)
17. Restart, make a wipe dalvik and cache and
18. Enjoy!
thx... but why not just upload a baked/moded ver of services.jar... it would be much easier just to replace this specific file ;p as i assume u did for youreself ;p
meilbox said:
thx... but why not just upload a baked/moded ver of services.jar... it would be much easier just to replace this specific file ;p as i assume u did for youreself ;p
Click to expand...
Click to collapse
I could do it, but I do prefer to share knowledge with everyone... I could upload a services.jar but it's more fun to learn new things.
Enviado desde mi MB525 usando Tapatalk 2
i dont have line 10429..
This is what is in my services.jar (Latest Build):
.line 10420
:cond_167
const/16 v48, 0x0
.line 10421
.local v48, mi:Landroid/os/Debug$MemoryInfo;
if-eqz v38, :cond_22a
.line 10423
:try_start_16b
move-object/from16 v0, v61
iget-object v5, v0, Lcom/android/server/am/ProcessRecord;->thread:Landroid/app/IApplicationThread;
move-object/from16 v0, p1
move/from16 v1, v43
move/from16 v2, v38
move-object/from16 v3, v42
invoke-interface {v5, v0, v1, v2, v3}, Landroid/app/IApplicationThread;->dumpMemInfo(Ljava/io/FileDescriptor;ZZ[Ljava/lang/StringLandroid/os/Debug$MemoryInfo;
:try_end_17a
.catch Landroid/os/RemoteException; {:try_start_16b .. :try_end_17a} :catch_21b
move-result-object v48
.line 10435
:cond_17b
:goto_17b
if-nez v43, :cond_26b
if-eqz v48, :cond_26b
.line 10436
invoke-virtual/range {v48 .. v48}, Landroid/os/Debug$MemoryInfo;->getTotalPss()I
move-result v5
int-to-long v7, v5
.line 10437
.local v7, myTotalPss:J
add-long v68, v68, v7
Click to expand...
Click to collapse
vaibhav palande said:
i dont have line 10429..
This is what is in my services.jar (Latest Build):
Click to expand...
Click to collapse
I'm not talking about ".line" on the code, I'm talking about the number of the line in the document. On notepad++ look at the numbers at the most left and you will find line 10429 with no problem
Enviado desde mi MB525 usando Tapatalk 2
Should i add here?
SO Should i add the code u gave above in line 10429 in the pic??
This is my services.jar:
{
"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"
}
vaibhav palande said:
SO Should i add the code u gave above in line 10429 in the pic??
This is my services.jar:
Click to expand...
Click to collapse
Ummm... Weird it's send that I have to polish my guide... I'm using last version of quarx too but my code it's aligned different. Don't add the code in that line cause could break all the code. Please, wait a little bit for me to be on my pc to check what is wrong...
Enviado desde mi MB525 usando Tapatalk 2
espaciosalter20 said:
Ummm... Weird it's send that I have to polish my guide... I'm using last version of quarx too but my code it's aligned different. Don't add the code in that line cause could break all the code. Please, wait a little bit for me to be on my pc to check what is wrong...
Enviado desde mi MB525 usando Tapatalk 2
Click to expand...
Click to collapse
I am using latest build 09-12.. U have latest build? or u want me to send u services.jar?
vaibhav palande said:
I am using latest build 09-12.. U have latest build? or u want me to send u services.jar?
Click to expand...
Click to collapse
ok, it was my bad... i was using an old services.jar as reference. I double check again that and the right code is:
Code:
iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
const-string v5, "com.android.contacts"
invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_2b4
move-object/from16 v0, p1
iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
const-string v5, "com.android.mms"
invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2bf
.line 13894
:cond_2b4
const/4 v11, 0x0
after this part:
Code:
[SIZE="5"][COLOR="Red"].line 13892[/COLOR][/SIZE]
.end local v11 #adj:I
.end local v34 #schedGroup:I
:cond_29c
if-lez v10, :cond_2af
.line 13892, it's the key....
espaciosalter20 said:
ok, it was my bad... i was using an old services.jar as reference. I double check again that and the right code is:
Code:
iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
const-string v5, "com.android.contacts"
invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_2b4
move-object/from16 v0, p1
iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
const-string v5, "com.android.mms"
invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_2bf
.line 13894
:cond_2b4
const/4 v11, 0x0
after this part:
Code:
[SIZE="5"][COLOR="Red"].line 13892[/COLOR][/SIZE]
.end local v11 #adj:I
.end local v34 #schedGroup:I
:cond_29c
if-lez v10, :cond_2af
.line 13892, it's the key....
Click to expand...
Click to collapse
So, where should i add this code? Which line?
vaibhav palande said:
So, where should i add this code? Which line?
Click to expand...
Click to collapse
I updated OP... Check in there
Enviado desde mi MB525 usando Tapatalk 2
espaciosalter20 said:
I updated OP... Check in there
Enviado desde mi MB525 usando Tapatalk 2
Click to expand...
Click to collapse
If i want to add some more apps, which part of the code needs to be repeated for new app?? Because difference in the upper part and lower part of code is highlighted with red color below and in the lower part green colored part is absent.. otherwise the code is same..
Code:
iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
const-string v5, "com.android.contacts"
invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-[COLOR="red"]nez[/COLOR] v2, :cond_2b[COLOR="red"]4[/COLOR]
[COLOR="Lime"]move-object/from16 v0, p1[/COLOR]
iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
const-string v5, "com.android.mms"
invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-[COLOR="red"]eqz[/COLOR] v2, :cond_2b[COLOR="red"]f[/COLOR]
.line 13894
:cond_2b4
const/4 v11, 0x0
Problem doing smali
Here is the problem i am getting while doing smali:
vaibhav palande said:
Here is the problem i am getting while doing smali:
Click to expand...
Click to collapse
OP UPDATED
add the following:
Code:
.line 13895
.end local v11 #adj:I
.end local v34 #schedGroup:I
:cond_2bf
if-lez v10, :cond_2d2
and change the subsequent numbers of ".line" (including the old .line 13895) like this:
Code:
.line 13896
move/from16 v11, p2
.line 13897
.restart local v11 #adj:I
const/16 v34, 0x0
.line 13898
.restart local v34 #schedGroup:I
const/4 v2, 0x1
move-object/from16 v0, p1
iput-boolean v2, v0, Lcom/android/server/am/ProcessRecord;->hidden:Z
.line 13899
const-string v2, "bg-activities"
move-object/from16 v0, p1
iput-object v2, v0, Lcom/android/server/am/ProcessRecord;->adjType:Ljava/lang/String;
goto/16 :goto_f1
espaciosalter20 said:
add the following:
Code:
.line 13895
.end local v11 #adj:I
.end local v34 #schedGroup:I
:cond_2bf
if-lez v10, :cond_2d2
and change the subsequent numbers of ".line" (including the old .line 13895) like this:
Code:
.line 13896
move/from16 v11, p2
.line 13897
.restart local v11 #adj:I
const/16 v34, 0x0
.line 13898
.restart local v34 #schedGroup:I
const/4 v2, 0x1
move-object/from16 v0, p1
iput-boolean v2, v0, Lcom/android/server/am/ProcessRecord;->hidden:Z
.line 13899
const-string v2, "bg-activities"
move-object/from16 v0, p1
iput-object v2, v0, Lcom/android/server/am/ProcessRecord;->adjType:Ljava/lang/String;
goto/16 :goto_f1
Click to expand...
Click to collapse
What about this? Sorry for so many questions but i really don't know a thing about smali files. I just learned one or 2 things by reading it here on xda..
vaibhav palande said:
What about this? Sorry for so many questions but i really don't know a thing about smali files. I just learned one or 2 things by reading it here on xda..
Click to expand...
Click to collapse
it's for resolve the problem that you commented earlier.... i do gave you the code in which i defined "cond_2b4" variable to be readed in the smali, but i forgot to give you the define of "cond_2bf" variable... this is what you have to do in order to make the variable work properly and avoid the error in compile the service.jar again
I mean what about the question below..
vaibhav palande said:
If i want to add some more apps, which part of the code needs to be repeated for new app?? Because there is some in upper and lower part of code.. difference in the upper part and lower part of code is highlighted with red color below and the text in green color is absent in lower part.. So little confused about which part of code to be repeated for locking more apps in memory... otherwise the code is same..
Code:
iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
const-string v5, "com.android.contacts"
invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-[COLOR="red"]nez[/COLOR] v2, :cond_2b[COLOR="red"]4[/COLOR]
[COLOR="Lime"]move-object/from16 v0, p1[/COLOR]
iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->processName:Ljava/lang/String;
const-string v5, "com.android.mms"
invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-[COLOR="red"]eqz[/COLOR] v2, :cond_2b[COLOR="red"]f[/COLOR]
.line 13894
:cond_2b4
const/4 v11, 0x0
Click to expand...
Click to collapse
espaciosalter20 said:
it's for resolve the problem that you commented earlier.... i do gave you the code in which i defined "cond_2b4" variable to be readed in the smali, but i forgot to give you the define of "cond_2bf" variable... this is what you have to do in order to make the variable work properly and avoid the error in compile the service.jar again
Click to expand...
Click to collapse
This is not working.. :crying:
I get this error while doing smali:
Easier version?
http://forum.xda-developers.com/showthread.php?t=1889300
Sent from my MB525 using xda app-developers app
vaibhav palande said:
This is not working.. :crying:
I get this error while doing smali:
Click to expand...
Click to collapse
delete "if-lez v10, :cond_2d2"

[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

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

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

[MOD][HOW-TO] 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