screen lock issue - Android Software/Hacking General [Developers Only]

Hi guys
I have an maybe simple question but havent find anything satisfying.
The thing is, that I don't like the Lock Screen when turn off my Desire. With the Extended Control and some other apps its simple to disable the lock screen, but from there on all hardware keys (home, back, volume, ...) turn on the device, which is not really what I want.
So my question is, is it generally possible to disable the screen lock and just use the power-button to wake the device.
I currently use the LeeDroid Mod v1.4. The standard behavior is the same like obove with disabled screen lock. I found to disable it I just have to remove /system/usr/keylayout/curcial-oj.kl. Worked great with enabled screen lock.
Modifying the other *.kl files doesn't help.
Hopefully you understand what I mean
and could give me some hints
bye

Related

[REQ] A way to desactivate call button ?

I personally never use the hard call button to make a call, and it is still often a source of accidental calls.
I use Exidler's Hd2ProximityScreenOff, so i don't need in theory a screen lock. Very, very usefull. Some accidental calls have been made though.
Here is what i found so far :
- Vangrieg InCall Lock is great, but works only when a call is received.
- Aebutton plus doesn't help for long press on call button.
- I searched on whole registry for "cprog.exe" (The dialer processus) without interesting founds.
I would be so grateful if someone find a way to remove this call function when pressing the button, if possible using with no process in background ...
Why dont you just enable the lock screen that way you cant accidentally make a call when it comes on.
thank for your reply optiknerv.
with hd2proximityscreenoff, I think we are in a new and intuitive way to use phones, something apple did not patent already ! ;-)
we dont need anymore a screen lock, but kind of key lock can be, in very rare cases, useful.
I guess it is impossible to map this button ...
Have you ever tried AEBPlus??
It locks every kind of key - software keys too - and make them addressable to other application
You'll find it on http://ae.inc.ru
Sichroteph said:
thank for your reply optiknerv.
with hd2proximityscreenoff, I think we are in a new and intuitive way to use phones, something apple did not patent already ! ;-)
we dont need anymore a screen lock, but kind of key lock can be, in very rare cases, useful.
I guess it is impossible to map this button ...
Click to expand...
Click to collapse
Why insist to map the button? Screen lock solves your problem. Try S2U2 or TLP. They will make sure you don't press the green hard key by accident. If you use proximity to auto unlock, there is no extra action on your side. The green hard key (and the phone) is locked whenever the phone is in your bag or pocket.
thanks you very much alex. touch lock pro solved my problem and can use well proximity sensor after some settings.

Lock screen with password, but only when I say so

Hello,
I'm using a stock HTC Desire with Android 2.2 and would like to lock the screen with password, but only when I say so.
I don't want the screen to be locked with password after timeout. I want to be able to lock the screen with password, but only when I want it to be password protected.
Is this possible?
In devices lower than 2.2, you can use a toggle to turn password protection on/off. I'm pretty sure you can't with 2.2 (for security reasons). The toggles will take you to the settings page, where you could do it manually. I don't know of an actual way to do it, although it may be possible with Tasker. Probably not though, due to the limitation in the OS.
hmm..that would have been a cool feature, hopefully might be able to figure this out sometime, if it is even possible :/
Or just to be able to set the timeout for like 1 hour and then to be able to lock it when I want to (when I know I won't be near it and don't wont for somebody else to read my messages).
BlackBerry, for instance, has the lock icon which locks both the screen and password protects it. Nokia has the lock option when you hit the power switch. Android, which has an enormous amount of cool features, doesn't have this?! :/
I will take a look at this later, it might be possible to just call the lock screen from a widget, without permanently enabling it.
interesting idea, toggling the password every time im surrounded with people, and untoggle it when im alone )
The only other alternative to this is to have it set to be locked immediately & then use No Lock to entirely disable the lockscreen when you don't need it to be password protected. The only problem with this is you won't have a lockscreen at all & your phone will wake up with the volume buttons.
What I do, which isn't nearly as protected as password protection, but does the job for most situations, is use Widgetlocker. You can use a transparent slider so you know where to drag & unlock but no one else does. Or you can go with no sliders & just use the back button to unlock and set the back press duration to a couple seconds. No one will know unless they know Android & Widgetlocker well. Just don't put any shortcuts on the screen as once you're in an app you can press the home button. Or you could use a transparent slider to toggle interactions. When you want to be able to launch your shortcuts, toggle interactions on & then toggle them off when you want it locked.
If you need more help with this, feel free to pm me.
Also note that Widgetlocker is a paid app... $2-$3, I can't remember how much exactly. But it's totally worth the money.

Widget Locker and CM7/Gingerbread-Evo-Deck

I used to have Widget Locker before I started rooting and using custom ROMs on my EVO 4G, and it worked very well.
I have tried CM7 and Gingerbread-EVO-Deck(1.2), and both have issues with Widget Locker. This first is that not all widgets function properly. I can deal with that and make adjustments. The second, however, is that the "native" unlock screen stays active, so that I actually have to unlock and then unlock again to access the phone. Any ideas for fixes? Or is this just an incompatability with AOSP Gingerbread ROMs?
mevensen said:
I used to have Widget Locker before I started rooting and using custom ROMs on my EVO 4G, and it worked very well.
I have tried CM7 and Gingerbread-EVO-Deck(1.2), and both have issues with Widget Locker. This first is that not all widgets function properly. I can deal with that and make adjustments. The second, however, is that the "native" unlock screen stays active, so that I actually have to unlock and then unlock again to access the phone. Any ideas for fixes? Or is this just an incompatability with AOSP Gingerbread ROMs?
Click to expand...
Click to collapse
Ok, here's where it gets tricky, but not so much.
I found a way to make the WidgetLocker lockscreen completely replace the stock lockscreen and to make the volume keys work without waking the phone.
A little background info: The stock lockscreen is what prevents the volume buttons from turning on the screen (ie when you're highering/lowering volume of music with the screen off). Once you disable the stock lockscreen, using the volume keys will turn on the screen. Here's how to fix everything:
1. Disable the stock lockscreen in CyanogenMod/Advanced Settings -> Tablet Tweaks -> Disable lockscreen.
2. In WidgetLocker settings, go into, I believe the Behavior menu, and check the Allow Volume Control (or whatever it's called).
3. Download ButtonRemapper. Open it up and find Volume Up and Volume Down. It'll say "W" next to them. Change it to NONE. Hit apply, your phone will Hot Reboot. Even if you decide to stop using WidgetLocker and use the stock lockscreen instead, you shouldn't need to change these back since the stock lockscreen disables volume button waking anyway.
4. Enable Root Helper in WidgetLocker settings so that there isn't a delay when turning the screen on and off.
The only "issue" is that when you first turn on/reboot the phone, you'll hit the homescreen, since the homescreen is disabled and WidgetLocker starts up after the phone turns on. But that's it. After that, everything works perfectly.
---------------------------------------------------------------------------
Which widgets aren't behaving properly? There are some settings in WidgetLocker to disable the "Dragging Disabled" tooltip and to adjust widget space and disable widget interaction, etc. Just look through; it took me a while to notice.
Product F(RED) said:
Ok, here's where it gets tricky, but not so much.
I found a way to make the WidgetLocker lockscreen completely replace the stock lockscreen and to make the volume keys work without waking the phone.
A little background info: The stock lockscreen is what prevents the volume buttons from turning on the screen (ie when you're highering/lowering volume of music with the screen off). Once you disable the stock lockscreen, using the volume keys will turn on the screen. Here's how to fix everything:
1. Disable the stock lockscreen in CyanogenMod/Advanced Settings -> Tablet Tweaks -> Disable lockscreen.
2. In WidgetLocker settings, go into, I believe the Behavior menu, and check the Allow Volume Control (or whatever it's called).
3. Download ButtonRemapper. Open it up and find Volume Up and Volume Down. It'll say "W" next to them. Change it to NONE. Hit apply, your phone will Hot Reboot. Even if you decide to stop using WidgetLocker and use the stock lockscreen instead, you shouldn't need to change these back since the stock lockscreen disables volume button waking anyway.
4. Enable Root Helper in WidgetLocker settings so that there isn't a delay when turning the screen on and off.
The only "issue" is that when you first turn on/reboot the phone, you'll hit the homescreen, since the homescreen is disabled and WidgetLocker starts up after the phone turns on. But that's it. After that, everything works perfectly.
---------------------------------------------------------------------------
Which widgets aren't behaving properly? There are some settings in WidgetLocker to disable the "Dragging Disabled" tooltip and to adjust widget space and disable widget interaction, etc. Just look through; it took me a while to notice.
Click to expand...
Click to collapse
Thanks a bunch, I'll try those sugggestions out.
Tried disabling the lock screen, seemed to work. The only trouble with this solution is that disabling the lock screen also disables the security (passcode/password).
Thanks again.
mevensen said:
Tried disabling the lock screen, seemed to work. The only trouble with this solution is that disabling the lock screen also disables the security (passcode/password).
Thanks again.
Click to expand...
Click to collapse
There's definitely a way to use a password, although I don't know if it requires disabling the lockscreen. It's in the WidgetLocker FAQ.
Product F(RED) said:
There's definitely a way to use a password, although I don't know if it requires disabling the lockscreen. It's in the WidgetLocker FAQ.
Click to expand...
Click to collapse
Cool, I found it.
With non-Sense, the WidgetLocker will hit the second unlock screen if you use a password/passcode. It will work with an unlock pattern, however.
In my case, this doesn't really help, as my work e-mail requires a password/passcode, and does not allow patterns.
Thanks, again.

Can the lock screen app shortcuts be changed?

Does anyone know how to change which apps are shortcuts on the lock screen? Currently, I can drag the lock ring right to unlock, up for phone, left for camera, and down for text messaging. I'd like to replace the down shortcut with Google Voice.
I am running the JB soak test with root.
Thank you!
BAMF said:
Does anyone know how to change which apps are shortcuts on the lock screen? Currently, I can drag the lock ring right to unlock, up for phone, left for camera, and down for text messaging. I'd like to replace the down shortcut with Google Voice.
I am running the JB soak test with root.
Thank you!
Click to expand...
Click to collapse
I asked the same question at androidforums in the Photon Q section there. From the answers I received (or lack thereof), my guess is that they can't be changed without changing the lock screen altogether. Apps like GoLocker (which I believe requires GoLauncher EX also be installed) or WidgetLocker (a paid app) will do the trick, but if there is a way to do it with an out-of-the-box phone, I have yet to find it.
Since I'm here, I'm wondering, does the Photon Q have the ability to turnt he lock screen off? as in, you can set the phone's home screen or whatever you were last doing to come up when you hit the power button to turn the screen back on, instead fo going tot he lock screen. I would assume that ability is retained, but since Moto apparently changed the lock screen, I wonder if they removed that function thoughtlessly, as some are known to do.
Falkner09 said:
Since I'm here, I'm wondering, does the Photon Q have the ability to turnt he lock screen off? as in, you can set the phone's home screen or whatever you were last doing to come up when you hit the power button to turn the screen back on, instead fo going tot he lock screen. I would assume that ability is retained, but since Moto apparently changed the lock screen, I wonder if they removed that function thoughtlessly, as some are known to do.
Click to expand...
Click to collapse
yes you can set the phone up in JB to have no lock screen. Hit power button and return to last screen viewed.:good:

[6039Y] Phone unlocking in pocket...

I have just a simple question to other users of this (otherwise nice) phone: I have the screen lock set up the standard way (no pin or anything), I also use the display doube-tap wake-up gesture (I found it quite useful for the phone with symmetrical front side). What happens is, that if I have my phone in the pocket, display facing the leg, the phone sometimes wakes up itself, runs some application or make a phone call to somebody from my quick dial list. If I position it facing outside of the pocket (which is quite insecure for the glass), it does not happen. The weird thing is, that if I switch off the double-tap feature, it does not solve the problem... The phone is with stock ROM 5.0.2-01003, no root (unfortunately). Does this happen also to anybody else, or just me?
P.S.: I wonder, why there's no such simple feature like "solid phone display lock" when the proximity sensor is covered... Possibly, somebody will implement it in a custom ROM (I hope ).
I don't have an elegant solution for you, but I'll pipe in that this has happened to me several times. I have a suspicion that the power button is being hit in the pocket- a problem which is not unique to this device.
I'm using Nova launcher with double-tap set to (PIN) lock the device, and this pretty much solves the problem, but does add extra hassle if you don't care about the security.
same happens to me on my 5.5 but i have gesture lock, so th ephone only start dialing in emergency dialer...only one solution is to insert the phone to the pocket with back cover facing the leg.
I use pattern lock but I was facing the same issues as the others (emergency dialing and camera activation). I've tried several apps from playstore and the best results are with Pocket Screen Lock (com.goldenpie.psl). The screen cannot be activated with the double tap nor with the power button when the proximity sensor is covered.
One other thing you are overlooking is to position the phone upside down in your pocket. Understandable not to have the glass facing outward, but you can put the phone in 'up-side down' and turn on reversible screen . That should prevent the power button from being inadvertently triggered in my experience.
I've had the same issue, but only with this one pair of jeans, so it probably depends on the cloth.
FYI, if you're rooted, the Gravitybox module for Xposed has a setting under Power Tweaks called "Proximity wake-up" which does exactly what you want in terms of preventing wake ups when the proximity sensor is covered. I've only just turned it on, but so far it seems to be working well.
Actually it seems that this has been fixed in the latest update for 6039. The display cannot be unlocked by the gesture anymore if the sensor is covered. All other apps have conflict with this (at least for me). Which in turn requires the power button to be explicitly pressed in order the display to be activated. Even if it's not in my pocket anymore.
petrov.0 said:
Actually it seems that this has been fixed in the latest update for 6039. The display cannot be unlocked by the gesture anymore if the sensor is covered. All other apps have conflict with this (at least for me). Which in turn requires the power button to be explicitly pressed in order the display to be activated. Even if it's not in my pocket anymore.
Click to expand...
Click to collapse
Right you are on both counts. I'll test further before posting next time. Thanks for the correction.

Categories

Resources