Challange! Lock Device On Power Off/screen Off. - Windows Mobile Development and Hacking General

I have been trying to Find a Macro Mapper or some kind of 3rd party ap to lock my device when i press the power button. The only work around at this time is to use Lock Device with 4 number pin and 0min lock setting. however i am tired of constantly pressing digits and would rather use native Lock Function that requires bottom left tap to unlock than middle right side tap to confirm unlock. However, it is only initiated from a Lock on screen tap.
IF anyone knows how to enable this lock by pressing the power button which is in my case on the right side of my mogul(PPC6800) that shuts off the screen and powers down to standby i would greatly appreciate it. this is also a replacement for S2U which has a few bugs with slide out keyboard and memory leaks.

install S2U2 http://forum.xda-developers.com/showthread.php?t=365957

Related

Power off and Device Lock Reg Edits?

Hello all,
I am new to the forums but I have been using the HTC Touch for a few months now, and would like some guidance about a few problems i'm having. First off, I am using the official 6.1 rom with sprint....
I am running S2U2 and am having a problem with my phone turning off while in my pocket. It seems the power off menu can be brought up if you hold the power button, even if S2U2 is running. This is very frustrating, is there anyway to lock the power button when S2U2 is running, or any other option?
Is there any edits that can be done to make S2U2 call the factory device lock? I couldnt find anything related to the lock in the registry. If there is, is there anyway to assign the factory device lock to the power button, so that when you blank the screen it auto-locks? I love this feature with s2u2, and with stock device lock it takes 3 buttons to do this...
Thanks!
honduh said:
Hello all,
I am new to the forums but I have been using the HTC Touch for a few months now, and would like some guidance about a few problems i'm having. First off, I am using the official 6.1 rom with sprint....
I am running S2U2 and am having a problem with my phone turning off while in my pocket. It seems the power off menu can be brought up if you hold the power button, even if S2U2 is running. This is very frustrating, is there anyway to lock the power button when S2U2 is running, or any other option?
Is there any edits that can be done to make S2U2 call the factory device lock? I couldnt find anything related to the lock in the registry. If there is, is there anyway to assign the factory device lock to the power button, so that when you blank the screen it auto-locks? I love this feature with s2u2, and with stock device lock it takes 3 buttons to do this...
Thanks!
Click to expand...
Click to collapse
The only thing that I could suggest that might help is to get yourself a good case for your phone that would protect the button from being accidentally pushed. I have never had this problem with my phone. The button actually has to be pressed and held to bring up the power off menu. Even when not in it's case, I have never had this happen; however, the phone is only out of it's case, when I am using it. In the case, there is even less chance of powering off the device.
Rod.
The default device lock works just like S2U2, as it leaves only the power button unlocked. If you locked all buttons, how would you turn your phone back on??
TheChampJT said:
The default device lock works just like S2U2, as it leaves only the power button unlocked. If you locked all buttons, how would you turn your phone back on??
Click to expand...
Click to collapse
The problem i'm having is that the phone actually powers off while in my pocket somehow....what i'm saying is that the phone not only "wakes up" from the standby mode, but also calls the shut down window and you can press the "yes its ok to shut down" button while s2u2 is running, something the stock device lock will not do.
It would be really nice if there was a slide type lock that was based off the code of the stock device lock.
Thanks for the replys
Find what the application is that launches when pressing the button and add it to the S2U exclusions list.
I have a verizon and my power button toggles screen off and on, so im not entirely sure, Is this a stock popup or a program you installed ? There is probably a registry entry somewhere that defines how the power button functions jsut as the button manager does for other buttons.
honduh said:
The problem i'm having is that the phone actually powers off while in my pocket somehow....what i'm saying is that the phone not only "wakes up" from the standby mode, but also calls the shut down window and you can press the "yes its ok to shut down" button while s2u2 is running, something the stock device lock will not do.
It would be really nice if there was a slide type lock that was based off the code of the stock device lock.
Thanks for the replys
Click to expand...
Click to collapse
I understand your point, and am still wondering what it is you keep in your pocket with your phone that shuts it off!? Anyways, why do you keep referring back to the default device lock? S2U2 performs the same way, as it locks everything besides the power button. If the power button is locked, how would you wake up the device to unlock it ???
the power button has two functions, it blanks the screen if you press it, or it brings up the power off menu when you long press it. The problem i'm having is s2u2 doesnt prevent the power off menu from coming up, where as the stock device lock does. Thus, it is possible to completely power off the phone while the keys are locked.... of course I want to be able to wake the phone up with the power button, but i dont want to be able to turn it completely off.
And i'm not sure how it turns off in my pocket, except i usually carry it with the power button face down (phone upside down) and it must press against the bottom of my pocket...
The application that it is calling is the stock shut down menu, i'm not sure how I could add this to the exception list, as I dont know how to call it remotely....
Thanks again for the replies!
The title of this caught my attention.
It would be very nice to have a registry edit that will lock the device when powered off or on device wake up.
I use S2U2 and I am really not liking it personally, but it is better then the default setup currently I feel.

Looking for app to swipe screen off?

Looking for something that will allow me to swipe my finger to shut the screen off. Any ideas
thanks
If you hit the power button on top of the phone that does it IIRC (obviously don't hold the button otherwise you turn it off!)
I use S2U2 and this is how I lock the phone

Screen lock unusable?

With all that screen to touch, having this thing wake up in your pocket (or holster in my case) it bad - it registers keypresses all over the place, and so far it's deleted appointments and other fun stuff for me.
There is the screen lock (hold down right-most softkey a few seconds) but for me at least if an alert wakes the phone, the screen activates and looks normal, but all hardkeys are disabled. Can't even shut the phone down, have to hit the soft reset button, so conveniently located under the battery cover (argh, talk about dumb design choices...)
So anyone have any ideas on the screen lock? I'd even be willing to dedicate the left-most soft-key long-press to a third party lock, as long as it works properly.
u can use s2u2 IPHONE like screen lock
Hold the hang up button to lock, to unlock press the word unlock and a screen will apear saying To unlock device Tap unlock.
Yeah I did that, the hold hang up button thing... that's what's partly unlocking itself, which is a pain to say the least.
Gonna try Throttlelock. Haven't found any really Manila-lookalike skin yet but it seems to do what I want - lock the device - and even adds a little security.
And what about just clicking once on the power button after locking the device using the hold hang up thing?
Doesn't it does what you need? Press again to wake up the mobile?
- Bya -
No, what happen is: I hold down end call to get the device to lock. Then I tap the power button to close down the screen too.
However, a reminder kicks in and that brings the screen back online AND live, so touching it can do stuff. But, the device is still somehow "locked"... except the only thing that is well and truly locked are all the buttons. Power button, volume buttons, even the softkeys on the front, none of them do anything, but the screen works only too well.
There is now way I found to recover from that state except a soft reset. That boots the device - in locked mode, so I have to hit Unlock and then tap the button on the middle of the screen.
I need a lock that is lock, ie it doesn't activate the screen or buttons no matter what, until I unlock it myself. Looks like Throttlelock may be the answer though.

Handy SleepOff Button

How many of you have faced the problem:
The power button is too out of reach to bring the phone out of standby. I used Xperia x10 earlier and the phone will show the lock screen once the middle button is pressed.
However for the Desire HD, i have to somehow press the annoying power button for it to display the lock screen.
Cant there be any other button which can shopw trhe lock screen cuz to reach the power button is not so handy.
Set your screen timeout to something quick. It will lock itself then.
I don't really have this problem as have biggish hands, but I can imagine what it'd be like.
Locking is not the issue.
Unlocking is the issue. To bring the phone out of standby and to show the slide to unlock screen, one has to press the "OUT OF REACH" and designed to "AVOID ACCIDENTAL" press button at the top.
I mean the top button is already a accidental press proof position. It really is a task to first press it ans then unlock the phone. Thats 2 procedures just to make a call.
Can some one mod this?

Screen Lock & Freeze w/ Camera+Left

In trying to set up controls for a game, I found a very unhappy button combination. If the camera button is fully depressed while holding the left key on the hardware keyboard, the screen will lock and usually freeze the phone. Another user who tried to replicate this for me got an unresponsive camera app that required a reboot.
What are other users' mileage here? Anybody have any ideas on a workaround, or is this probably just a hardware quirk?
i tried every diff combination of left and the camera button, and did not have the same experience. i do know that if your in the camera app, and press power, it does lock the phone, but i think it is supposed to. pressing the power button a second time unfreezes it. imma do more research. i read something about this once on ppcg.
i found this.may or may not be the same thing for your friends.
"hey folks For those of you experiencing a lock-up while in camera mode, I thought it happened to me the other day as well, turns out its not a bug its user error. If you try to turn off the screen while in camera/video mode by hitting the screen lock button you are locking the camera mode, which mean you are making it so that the phone does not accept any inputs aside from unlocking by hitting the power/ screen unlock button again. This "lock mode" is indicated by lock icon appearing in the top corner of the screen. The reason for this screen unlock button again. This "lock mode" is indicated by lock icon appearing in the top corner of the screen. The reason for this mode is actually good, if you are filming something important you don't a finger slip hitting the back/home buttons and ruining your video, so you can lock it and not worry about it. Of course this means if you don't know about the feature and you activate it, instant freak out. But, now you know mode is actually good, if you are filming something important you don't a finger slip hitting the back/home buttons and ruining your mode is actually good, if you are filming something important you don't a finger slip hitting the back/home buttons and ruining your video, so you can lock it and not worry about it. Of course this means if you don't know about the feature and you activate it, instant freak out. But, now you know "
That may have something to do with it, but is not the problem I am having. When I am somewhere outside of the camera app (homescreen or game, for example) if I hold the left arrow key and fully depress the camera button, the screen will turn off and make the lock sound. Usually I can unlock it with the power button or this combinaton again, but it will occasionally freeze and refuse to accept input from the touchscreen or capacitive buttons.
(If it's at all helpful, I was trying to set up the camera button as the R shoulder button in SNESdroid.)
It could be that the phone is getting confused and thinks I'm trying to lock the camera app, but since I'm not in the app it locks the entire phone.
I just did it while reading your post lol I can confirm it freaks out lol
Sent from my SPH-D700 using XDA App

Categories

Resources