Go Back   xda-developers > Windows Mobile Development and Hacking > Windows Mobile Apps and Games


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th December 2008, 08:41 PM
ZuinigeRijder's Avatar
ZuinigeRijder ZuinigeRijder is offline
Senior Member
 
Join Date: Jun 2008
Posts: 1,781
Wink [APP][Updated 17-12-2009] TouchLockPro version 2.9 with *NEW* Zoombar unlocking

TouchLockPro is not exactly new (currently at version 1.9), but it was posted in the Diamond thread, because there things started. But because other phones are also supported, maybe the TouchLockPro thread could move to here. If this cross posting is not wanted, I hope the moderators let me know how to continue. At the Diamond thread or in this one?

But Windows Mobile has an OEM screen locker!
Yes, Windows Mobile locks the screen, but unlocks the Answer and Ignore buttons as soon as a call rings, so it is useless. The same happens when any notification pops up, the Snooze and Dismiss buttons are enabled even when screen is locked, leaving them vulnerable to any accidental touch.

Supported phones (known)
Touch Diamond
Touch Pro
Sprint CDMA Diamond
Touch HD (only triple touch capacitive sensor for unlock does not work)

Summary
There are already a lot of applications to disable touchpanel and/or hardware keys for the Touch Diamond and Pro. I added yet another one:
* lock using the Power button, BattClock and/or Stylus Sensor
* auto-unlock by the Light Sensor
* unlock using triple touch of the Capacitive Sensor
* unlock using Stylus Sensor
* unlock when on AC/USB power

Why is TouchLockPro better than other locking solutions
TouchLockPro is designed not to interfere with running applications and is a multipurpose locking application. Other locking solutions are often specific for locking only incoming calls/SMS. A lot of locking solutions also place a (transparant looking) Window on top of the running application (e.g. slide 2 unlock), so the information of the background application is no longer visible. This is not the case for TouchLockPro, so it can be kept lean and mean. Also the used resources is very very low.

Does TouchLockPro use much battery, RAM, CPU
Not at all, TouchLockPro is designed to be lean and mean!
TouchLockPro does not have noticeable effect on battery life. It only uses 33 Kb RAM in memory, whereas other solutions often use much more. For example S2U2 uses 4 Mb (125 times more) and PocketShield 1.7Mb (50 times more) memory. TouchLockPro uses 0% CPU (check it with a task manager!) and is totally event driven. Polling is kept to a minimum (currently only for polling once per second the light sensor when LOCKED and the screen is on). Requested features which would violate the "lean and mean" principle are rejected. Note that larger UI related stuff is done in a separate TouchLockAction.exe (e.g. editing settings), so the memory is only used when that program is active for a small moment.

Which other solutions exist
This is a list of other solutions, which may suit you better:
* Built in locking of Windows Mobile
* Stylus(BattC)lock
* Get A Reward! Create A "answer Only With Hw Buttons" Option!
* S2U2
* PDAVIET's dialer
* CSDEVCTRL
* SensorLock
* Answerkeys Disabler
* PocketShield
* ThrottleLock

Interested in *FREE* TouchLockPro?
I just posted TouchLockPro version 1.8.

I also posted the source code belonging to version 1.8. Hope you will learn something from it and you are inspired to make great programs too. At the end programming Windows Mobile is not so difficult if you have programming experience. Prerequisites for programming:

* Visual Studio, Express editions are free!






* Windows Mobile 6 Professional SDK (also free)

Note that others pointed out, that Express editions are not suitable for Windows Mobile development. See Smart Development for what is supported by which version. I used myself Visual Studio 2008 Professional SP1.

Note that TouchLockPro is written in C++ and TouchLockAction in C# (and deployed using .NET Framework 2.0).

Enjoy the software and source code
__________________
Donate if you like the *FREE* TouchLockPro, BattClock and StylusLock software and support

Last edited by ZuinigeRijder; 18th December 2009 at 11:17 PM.. Reason: Version 2.9
Reply With Quote
Sponsored Links

  #2  
Old 9th December 2008, 10:10 PM
lennie's Avatar
lennie lennie is offline
Senior Member
 
Join Date: Aug 2007
Posts: 897
Default

you can lock specific programs? waaahhh? this is what I've been waiting for for a very long time. downloading right now.
__________________
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Device: HTC x7501
ROM: AVG v3.00.0 build ----- [HULK2] in testing and looking good
Radio version: 1.58.00.00
SPL: Hard-SPL v 3.5 Olipro

CORE APPS
Browser: SkyFire
Keyboard: FingerKeyboard 2.1
Video: TCPMP .81 (with multi plugins)
JM81's W.V.D video downloader
Networking: WMWifiRouter 1.25
General Management: MemMaid
Office: SoftMaker Office 2008
Pim: SBSH Calendar Touch


**Hard reset after you flash, trust me it helps**
Reply With Quote

  #3  
Old 10th December 2008, 11:56 AM
ZuinigeRijder's Avatar
ZuinigeRijder ZuinigeRijder is offline
Senior Member
 
Join Date: Jun 2008
Posts: 1,781
Default

Quote:
Originally Posted by lennie View Post
you can lock specific programs? waaahhh? this is what I've been waiting for for a very long time. downloading right now.
I do not know if HTC x7501 has the same sensor like capabilities. Does it work for you? Or do you have another phone too?
__________________
Donate if you like the *FREE* TouchLockPro, BattClock and StylusLock software and support
Reply With Quote

  #4  
Old 10th December 2008, 02:30 PM
shuren shuren is offline
Member
 
Join Date: Sep 2006
Posts: 54
Default

anybody tried with tytan II ?
Reply With Quote

  #5  
Old 10th December 2008, 04:58 PM
ZuinigeRijder's Avatar
ZuinigeRijder ZuinigeRijder is offline
Senior Member
 
Join Date: Jun 2008
Posts: 1,781
Default

Quote:
Originally Posted by shuren View Post
anybody tried with tytan II ?
TouchLockPro uses the unique sensors since Touch Diamond was brought out:
* auto-unlock by the Light Sensor
* unlock using triple touch of the Capacitive Sensor

So probably those functions will not work on your phone. BUT I continue without those functions when the loading of the needed HTC libraries fails.

There is also a stylus sensor, but TouchLockPro just observes a registry key for detecting if the stylus is in or out. So you can check if that registry key also exists on your phone, before you try to install:

HKCU\ControlPanel\Keybd\StylusOutStatus
1 = out
0 = in

If this registry key does not exists, probably TouchLockPro will not work for your phone.

For the rest it is standard Windows Mobile programming, although the locking of the hardware keys may also not work. But the locking of only the TouchPanel should work (setting "LockTouchPanelOnly = 1". TouchLockAction is written in C# and needs .NET Compact Framework 2.0.

Note that controlling the locking only with the stylus is also doable, actually my first version only supported this:
StylusLock

So you could use TouchLockPro with only the Stylus (if that registry key is written) and/or LockTouchPanelOnly, you miss only some of the unlocking features. Actually if you only lock the touchpanel, you can assign the command "\Windows\TouchLockAction.exe unlock" to a hardware key for unlocking.

Hope this helps......
__________________
Donate if you like the *FREE* TouchLockPro, BattClock and StylusLock software and support
Reply With Quote

  #6  
Old 10th December 2008, 06:27 PM
StrykerC3 StrykerC3 is offline
Junior Member
 
Join Date: Dec 2008
Posts: 2
Default

So you say it won't lock some hardware buttons...this won't get around the problem with Samsung i730 and the power off key?

No program I have found yet can lock that hardware key to prevent it from powering off while in my pocket

EDIT: Nevermind...it isn't supported on the i730 anyway

Last edited by StrykerC3; 10th December 2008 at 06:34 PM..
Reply With Quote

  #7  
Old 10th December 2008, 07:03 PM
gerald_s gerald_s is offline
Senior Member
 
Join Date: Mar 2007
Location: Graz
Posts: 379
Default

First of all:
Congratulations for your post. Didn't see a long time an informative post like this - your own program is introduced, the reason for doing it AND other existing solutions!!! Hat off to you.

Quote:
Originally Posted by ZuinigeRijder View Post

I also posted the source code belonging to version 1.8. Hope you will learn something from it and you are inspired to make great programs too. At the end programming Windows Mobile is not so difficult if you have programming experience.
Thank you very much for sharing the source code. It is for sure helpful in both ways - to learn and to get inspired. I already took my hat off otherwise I would do it again.
__________________
HTC Polaris
Stock HTC Rom
8 GB SD Card

History:
HTC Tytn
Rom History: Bepes German Rom - LVSW - Black2.5 + 3.0, Custel V2.0 + Ultimate, Own Rom based on Dopod WM6
Reply With Quote

  #8  
Old 10th December 2008, 09:03 PM
ZuinigeRijder's Avatar
ZuinigeRijder ZuinigeRijder is offline
Senior Member
 
Join Date: Jun 2008
Posts: 1,781
Default

Quote:
Originally Posted by StrykerC3 View Post
So you say it won't lock some hardware buttons...this won't get around the problem with Samsung i730 and the power off key?

No program I have found yet can lock that hardware key to prevent it from powering off while in my pocket

EDIT: Nevermind...it isn't supported on the i730 anyway
Actually it does lock ALL hardware keys, even "Power Off" key.
But maybe you meant the "Power On" key (actually, the same key).

That is why TouchLockPro does also lock immediately at Power On or Screen On (due to an external event, incoming call, or via pressing the power on key).

Code:
// --------------------------------------------------------------------------
// HTC Touch Panel
//
// Reverse engineered from HTC's TPEnable.exe and TPDisable.exe
// --------------------------------------------------------------------------

#define IOCTL_HTC_HAL_ENABLE_TOUCHPANEL CTL_CODE(FILE_DEVICE_HAL, 2698, METHOD_BUFFERED, FILE_ANY_ACCESS)

struct STouchPanel {
	BYTE	n1;
	BOOL	bEnable;
};

DWORD nBytesReturned;
STouchPanel s = { 0, !disable };
KernelIoControl(IOCTL_HTC_HAL_ENABLE_TOUCHPANEL, &s, sizeof(s), NULL, 0, &nBytesReturned);
But indeed, it will not work on your phone
__________________
Donate if you like the *FREE* TouchLockPro, BattClock and StylusLock software and support
Reply With Quote

  #9  
Old 10th December 2008, 10:59 PM
StrykerC3 StrykerC3 is offline
Junior Member
 
Join Date: Dec 2008
Posts: 2
Default

Quote:
Originally Posted by ZuinigeRijder View Post
Actually it does lock ALL hardware keys, even "Power Off" key.
But maybe you meant the "Power On" key (actually, the same key).

That is why TouchLockPro does also lock immediately at Power On or Screen On (due to an external event, incoming call, or via pressing the power on key).

Code:
// --------------------------------------------------------------------------
// HTC Touch Panel
//
// Reverse engineered from HTC's TPEnable.exe and TPDisable.exe
// --------------------------------------------------------------------------

#define IOCTL_HTC_HAL_ENABLE_TOUCHPANEL CTL_CODE(FILE_DEVICE_HAL, 2698, METHOD_BUFFERED, FILE_ANY_ACCESS)

struct STouchPanel {
	BYTE	n1;
	BOOL	bEnable;
};

DWORD nBytesReturned;
STouchPanel s = { 0, !disable };
KernelIoControl(IOCTL_HTC_HAL_ENABLE_TOUCHPANEL, &s, sizeof(s), NULL, 0, &nBytesReturned);
But indeed, it will not work on your phone
Well right, power off/power on, but when the phone is powered off, I am not worried about it being power on by accident, only the other way around

Why can't any one make a program for WM5 that can disable the Power On/Off key?!?! Ugh!
Reply With Quote

  #10  
Old 10th December 2008, 11:49 PM
mspingeld mspingeld is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 54
Smile Finally!

So far, this seems to be the best solution to accidentally pressing hardware buttons or screen buttons while the phone is in my pocket. When using bluetooth I was constantly hanging up on people. Also, I would accidentally call people with the phone in my pocket when an SMS or e-mail would "wake up" the phone and then 2 unknown presses of the hardware "answer" button would first bring up call history and then call the first person on the list. I'll wait a few more days and, if all is well, I'll make a donation. Thank you so much for your effort. (tried Sensorlock, S2U2 and Answerkeydisabler but none did the trick)
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


All times are GMT +1. The time now is 04:20 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.