Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
imnuts
Old
(Last edited by imnuts; 14th December 2010 at 11:49 PM.) Reason: Added download location
#1  
imnuts's Avatar
Recognized Developer - OP
Thanks Meter 2378
Posts: 3,123
Join Date: Jul 2007
Location: West Chester

 
DONATE TO ME
Default [MOD] Disable menu unlock for lockscreen

Since the issue was brought up in this thread, I decided to modify the necessary file to make this change happen for a bunch of themes that are available here.

Theme creators, feel free to uses the updated files in your respective themes if you feel users would appreciate this change. I'll also take down the file(s) if you wish as well.

The change will make it so that pressing the menu button while on the unlock screen will not unlock the phone. By default, this seems to happen. All files are for DJ05 and DJ05 themes. If you have a request for this for the theme/rom you are using, feel free to post here and I'll do my best to create an updated file for you.

The files are all CWM flashable zip files. Be aware that after applying the change, the first reboot will take significantly longer than normal, but subsequent restarts should be normal. As always, be sure to make a backup before applying this just in case. I have not tested all of these, but the same change was made to all files for each theme. Please post back with any issues.

Available Files
Stock DJ05
Gingerbread Grey theme
Gingerbread Black theme
AOSP Theme
Darkstart Theme
Incognito Remix Theme
Matted Blues Theme
NexTheme
SuperDark Theme

DOWNLOAD HERE

If you wish to perform this change yourself, you will to download the baksmali.jar and smali.jar files from here and then use the following steps to perform the change (adapted from this post)

1. Use adb to pull out /system/framework/android.policy.jar
2. Type the following command
Code:
java -jar baksmali.jar -x android.policy.jar -o android.policy
3. Open LockScreen.smali and find the .method shouldEnableMenuKey()
4. Change "return v4" so it reads "return v6"
5. Save LockScreen.smali
6. Use the following command to compile the changes back
Code:
java -jar smali.jar android.policy -o classes.dex
7. Copy the newly made file classes.dex into android.policy.jar
8. Push the file to /sdcard
10. On your phone, do:
Code:
$ su
# cd /sdcard
# cp android.policy.jar /system/framework/android.policy.jar
# sync

Setup a Development Environment
Setup and Use the Android SDK
Stock Odin Restore files

You can find the answer to all of your questions right here. If that doesn't work, then try this or this
The Following 3 Users Say Thank You to imnuts For This Useful Post: [ Click to Expand ]
 
dricacho
Old
#2  
Senior Member
Thanks Meter 3
Posts: 256
Join Date: Oct 2010
Location: Los Angeles
Thank you so much for doing this!
 
jamesbdh
Old
#3  
Member
Thanks Meter 0
Posts: 55
Join Date: Feb 2010
Does this work for other lock screens that can be dled from the market?
 
imnuts
Old
#4  
imnuts's Avatar
Recognized Developer - OP
Thanks Meter 2378
Posts: 3,123
Join Date: Jul 2007
Location: West Chester

 
DONATE TO ME
Quote:
Originally Posted by jamesbdh View Post
Does this work for other lock screens that can be dled from the market?
I have no idea. If the lockscreen changes the file /system/framework/android.policy.jar then odds are, applying any of these updates will break the market lockscreen. It all depends on how they make the change.

Setup a Development Environment
Setup and Use the Android SDK
Stock Odin Restore files

You can find the answer to all of your questions right here. If that doesn't work, then try this or this
 
chopper the dog
Old
#5  
chopper the dog's Avatar
Senior Member
Thanks Meter 660
Posts: 1,957
Join Date: Oct 2008
Location: The blood bath known as Chicago IL.
Good work. Does there happen to be an option buried in there that will enable vibrate instead of sound off?

good day. From the Fascinate sporting the XDA app.
$3 charging dock for the galaxy nexus. SEE HERE.

If I annoyed you. Hit the thanks button.
 
imnuts
Old
#6  
imnuts's Avatar
Recognized Developer - OP
Thanks Meter 2378
Posts: 3,123
Join Date: Jul 2007
Location: West Chester

 
DONATE TO ME
Quote:
Originally Posted by chopper the dog View Post
Good work. Does there happen to be an option buried in there that will enable vibrate instead of sound off?

good day. From the Fascinate sporting the XDA app.
I never even thought of looking for that. Thanks for the idea, I'll look into it and see if it can be done

Setup a Development Environment
Setup and Use the Android SDK
Stock Odin Restore files

You can find the answer to all of your questions right here. If that doesn't work, then try this or this
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more

Learn to Edit Graphics for your Development Work

The importance of good and appropriate graphics for your development work is undeniable. Be … more

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more