[APP][HD2][v1.2.1]Camera lock button

Search This thread

MilaCzeque

Member
Sep 9, 2007
20
6
Camera lock button

Yesterday I saw video from Windows mobile 7 showing dedicated camera button working even if the phone was locked. Today I bring this feature for HD2 on WM6.5.


Update:
7.9.2010 - I've uploaded version 1.1 see FAQ.
9.9.2010 - Version 1.2 brings support for CHT.
13.9.2010 - Version 1.2.1 fixes loading issue.

What is it and what it does
This little application starts phone's camera when user press home button when the phone is locked.
It is aware of proximity sensor status, so it won't start camera in your pocket.
It won't do anything if pda is not locked.
If your pda is locked and display is switched off, you must click home button twice.

Current limitations
Only for HD2, because of proximity sensor hardware.
Only works with original non-customized lockscreen, because unlocking is performed by sending mouse move events.

v1.1 has unlock gesture learning ability.

Planned features
Camcorder on windows button.
Support for pin.

Installation
Download cab file and run it on your device.
If you want application application to start with your device use camera_lock_button_with_autostart.cab otherwise you'll have to start it manually.

You must turn off this application before uninstallation or reinstallation.

FAQ
Q: Nothing happens when I start the application?
A: That's normal behaviour. Lock your device and try to click home button.

Q: How do I turn it off?
A: Run application again.

Q: How do I start it with device startup?
A: Download cab that ends with '_autostart' or add shortcut do your \Windows\StartUp folder.

Q: I'm getting "This application is not designed for your device!" message.
A: This application is only for HTC HD2. If you have HD2 then there's something wrong with your OEMINFO value. Check "\Windows\ModelName.txt" whether it contains 'HD2' or 'LEO' string.

Q: What is licence for icon?
A: I used free icon from dryicons.com .

Q: Why installer ignores location I picked for installation?
A: NEVER EVER install this application on Storage Card, always use device.

Q: Is there source code available?
A: Nope. Last time I published something under GPL everyone was ignoring it (GPL) completely.

Following FAQ applies only to v1.1

Q: How to learn it unlock gesture?
A:
  1. Start it with shortcut named "Camera lock button toggle learning".
  2. Lock device.
  3. Make sure proximity sensor is not covered.
  4. Press "windows" hw button. "Learning mode!" text should appear on screen.
  5. Unlock device.
  6. Done. Message informing you about success should appear. Learning mode is now switched off automagically.
  7. You can delete "Camera lock button toggle learning" shortcut from start menu.

Q: Why isn't there autostart version of v1.1?
A: Because it needs beta testing and I don't want you to brick your device.

Q: Do I need to learn it gesture if I'm using unmodified lockscreen?
A: No. If there isn't learned gesture it uses default gesture from v1.0.

Q: Where is stored learned gesture?
A: In file \Windows\camera_lock_button_gesture.bin
(You will be asked if you want to remove it at the end of uninstallation.)

Q: What about unlocking the device with password?
A: If device is locked after camera application is closed, it won't be security hole. Maybe next time I'll implement it.

Changelog

v1.2.1:
  1. Fixes forgetting of learned gesture after application was switched off.


v1.2:
  1. Support for CHT.


v1.1:
  1. Volume buttons are working again.
  2. Gesture learning (= maybe S2U2 compatible).
  3. Setup dll, so you don't need to make sure application is not running before uninstallation.

v1.0:
Initial release.


Compatible lockscreens
  • WM6.5 default (Confetti lock screen)
  • Co0kie's Home Tab lockscreen [worked for me, not worked for Guus_]
  • Maybe others but nobody informed me about it.
  • Not working with S2U2, I contacted author of S2U2 about it.
 

Attachments

  • camera_lock_button.CAB
    8.2 KB · Views: 631
  • camera_lock_button_with_autostart.CAB
    8.2 KB · Views: 1,341
  • camera_lock_button_1.1.CAB
    11.9 KB · Views: 333
  • camera_lock_button_1.2.CAB
    12.2 KB · Views: 536
  • camera_lock_button_1.2.1.CAB
    12.2 KB · Views: 1,361
Last edited:
  • Like
Reactions: RobbinM

Guus_

Senior Member
Nov 10, 2008
226
2
GREAT idea, but I/we need to get this to work with Co0kie Home Tab. Can we expect CHT support in the future?

Thanks for sharing!
 

MilaCzeque

Member
Sep 9, 2007
20
6
Why isn't it working with CHT? Different unlock screen? Different camera application?


Also I noticed it conflicts with htc volume control, right now by I'm betatesting fix.
 

kenshin2013

Member
Dec 16, 2008
16
0
Would it be possible to make compatible with Chris's Lockscreen [middle]? It puts the slider halfway down the screen. I HATE having the lock slider at the top!
Thanx for all your hard work MilaCzeque
 

Jaxbot

Inactive Recognized Developer
Mar 14, 2009
1,224
548
windowsphonehacker.com
Very cool idea, I'll have to switch back to the default lockscreen to try it.
Though, it would be cool if the X/Y values for the mouse event could be set in a file, for those of us with customized lock screens.
Edit: got around that by editting my LS_LockScene_480x800.cpr file.
Though, it would be nice if we could program in a "macro" to type in our passwords.


Cheers!
 
Last edited:

ephestione

Senior Member
Mar 23, 2008
2,074
63
Rome
www.ephestione.it
Very cool idea, I'll have to switch back to the default lockscreen to try it.
Though, it would be cool if the X/Y values for the mouse event could be set in a file, for those of us with customized lock screens.
Edit: got around that by editting my LS_LockScene_480x800.cpr file.
Though, it would be nice if we could program in a "macro" to type in our passwords.


Cheers!

Very good tool, this is a subscribe :D
+1 on the configurable lockslider position (middle, left, right, and Y coord pixels), this would make your tools compatible with virtually any sliding lockscreen.
BTW, will the home button return to its normal function (display homescreen :p) when the screen is not locked? I use it very often for that purpose.
 

aoakes

Senior Member
Sep 13, 2006
217
1
MA, USA
The ideas that continually out and on to the HD2 is still amazing!! I really like the progression of this feature. very genus to include the sensor with button activation!!
 

Guus_

Senior Member
Nov 10, 2008
226
2
Why isn't it working with CHT? Different unlock screen? Different camera application?


Also I noticed it conflicts with htc volume control, right now by I'm betatesting fix.

Yes different lock/unlock screen. CHT is the most used application for the HD2 I think.

CHT support would be great! :D
 

aoakes

Senior Member
Sep 13, 2006
217
1
MA, USA
YES, CHT support is very much needed with the ability of using HD Mini unlock screen. i'll definitely donate for this feature once you have configured it to work with my HD2
 

MilaCzeque

Member
Sep 9, 2007
20
6
v1.1

New version is out, see 1st post. It's a bit experimental so be careful and have fresh backup of your device in case anything bad happens.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Camera lock button

    Yesterday I saw video from Windows mobile 7 showing dedicated camera button working even if the phone was locked. Today I bring this feature for HD2 on WM6.5.


    Update:
    7.9.2010 - I've uploaded version 1.1 see FAQ.
    9.9.2010 - Version 1.2 brings support for CHT.
    13.9.2010 - Version 1.2.1 fixes loading issue.

    What is it and what it does
    This little application starts phone's camera when user press home button when the phone is locked.
    It is aware of proximity sensor status, so it won't start camera in your pocket.
    It won't do anything if pda is not locked.
    If your pda is locked and display is switched off, you must click home button twice.

    Current limitations
    Only for HD2, because of proximity sensor hardware.
    Only works with original non-customized lockscreen, because unlocking is performed by sending mouse move events.

    v1.1 has unlock gesture learning ability.

    Planned features
    Camcorder on windows button.
    Support for pin.

    Installation
    Download cab file and run it on your device.
    If you want application application to start with your device use camera_lock_button_with_autostart.cab otherwise you'll have to start it manually.

    You must turn off this application before uninstallation or reinstallation.

    FAQ
    Q: Nothing happens when I start the application?
    A: That's normal behaviour. Lock your device and try to click home button.

    Q: How do I turn it off?
    A: Run application again.

    Q: How do I start it with device startup?
    A: Download cab that ends with '_autostart' or add shortcut do your \Windows\StartUp folder.

    Q: I'm getting "This application is not designed for your device!" message.
    A: This application is only for HTC HD2. If you have HD2 then there's something wrong with your OEMINFO value. Check "\Windows\ModelName.txt" whether it contains 'HD2' or 'LEO' string.

    Q: What is licence for icon?
    A: I used free icon from dryicons.com .

    Q: Why installer ignores location I picked for installation?
    A: NEVER EVER install this application on Storage Card, always use device.

    Q: Is there source code available?
    A: Nope. Last time I published something under GPL everyone was ignoring it (GPL) completely.

    Following FAQ applies only to v1.1

    Q: How to learn it unlock gesture?
    A:
    1. Start it with shortcut named "Camera lock button toggle learning".
    2. Lock device.
    3. Make sure proximity sensor is not covered.
    4. Press "windows" hw button. "Learning mode!" text should appear on screen.
    5. Unlock device.
    6. Done. Message informing you about success should appear. Learning mode is now switched off automagically.
    7. You can delete "Camera lock button toggle learning" shortcut from start menu.

    Q: Why isn't there autostart version of v1.1?
    A: Because it needs beta testing and I don't want you to brick your device.

    Q: Do I need to learn it gesture if I'm using unmodified lockscreen?
    A: No. If there isn't learned gesture it uses default gesture from v1.0.

    Q: Where is stored learned gesture?
    A: In file \Windows\camera_lock_button_gesture.bin
    (You will be asked if you want to remove it at the end of uninstallation.)

    Q: What about unlocking the device with password?
    A: If device is locked after camera application is closed, it won't be security hole. Maybe next time I'll implement it.

    Changelog

    v1.2.1:
    1. Fixes forgetting of learned gesture after application was switched off.


    v1.2:
    1. Support for CHT.


    v1.1:
    1. Volume buttons are working again.
    2. Gesture learning (= maybe S2U2 compatible).
    3. Setup dll, so you don't need to make sure application is not running before uninstallation.

    v1.0:
    Initial release.


    Compatible lockscreens
    • WM6.5 default (Confetti lock screen)
    • Co0kie's Home Tab lockscreen [worked for me, not worked for Guus_]
    • Maybe others but nobody informed me about it.
    • Not working with S2U2, I contacted author of S2U2 about it.
    1
    v1.2.1

    Ross202, marcini: I'm working on support for S2U2.

    xdaAvi: You're welcome. :D

    bogdatov: That was bug, I solved it in 1.2.1.

    Guus_: Don't know what caused gfx bugs. Remembering of learned gesture was fixed in 1.2.1, try it please.

    brent372: Does TP2 have proximity sensor?