Related
I want to implement a device lock functionallity for windows mobile
devices so that the hardware buttons are disabled and the user must
enter a PIN code in my GUI application window that is displayed in fullscreen
on the device.
I know there is a build in feature in WM but there the user must define
his own password. I want to configure the PIN code by my own.
I have already tested:
1) AllKeys() function
2) keybd_event with VK_KEYLOCK which shows the standard lock screen from WM
3) SHDeviceLockAndPrompt
4) RegisterHotKey function with undocumented UnregisterFunc1 function
to disabled the hardware buttons.
But this all does not the same thing the standard lock screen does.
Has anybody another idea to get this managed?
hi,
I have to lock the device and show prompt to enter the password, which will be set by my application.
I want to show my application dialog to enter the password and unlock the device.
So, Is there any method through which I can lock the device and prompt my application dialog for password and unlock the device.
User should not have access to on screen or hardware keys apart from power ON/OFF button.
Nope (if you are not a manufacturer).
Can I launch the system locking app screen. Is there any way I can do that.
Nope (if you are not a manufacturer).
Click to expand...
Click to collapse
How the manufactures can help to achieve the task.
I have no idea about it.
I have 2 separate questions, running clean rom 5:
1)
Is there a way I can get smart stay to turn off when I enter car dock mode, then re enable it when leaving car dock mode? It leaves my screen on when I would rather it go to sleep and the ibolt dock physically blocks the lock button. I have a toggle on car home ultra that I made with secure settings which will lock the screen, but I would rather it lock on its own.
I have Tasker/secure settings all paid and nfc tags plus nfc task launcher, I also have the ibolt car dock which triggers car dock mode.
2)
I use pattern lock and would like to turn it off when I'm at home and also have it turned off while in car mode.
I have tried secure settings pattern lock toggle and that disables the pattern lock successfully, unfortunately it turns on the swipe screen even though I have that disabled in settings. I'd rather not have the swipe screen enabled.
I also tried secure settings key guard toggle which does exactly what I want, but it will randomly make me enter the pattern code (sometimes unlocking, sometimes opening a text or email)
This has all been bugging me to no end! Any insite would be greatly appreciated!
---------------------
Cleanrom 5.0/stock kernel
foocankill said:
I have 2 separate questions, running clean rom 5:
1)
Is there a way I can get smart stay to turn off when I enter car dock mode, then re enable it when leaving car dock mode? It leaves my screen on when I would rather it go to sleep and the ibolt dock physically blocks the lock button. I have a toggle on car home ultra that I made with secure settings which will lock the screen, but I would rather it lock on its own.
I have Tasker/secure settings all paid and nfc tags plus nfc task launcher, I also have the ibolt car dock which triggers car dock mode.
2)
I use pattern lock and would like to turn it off when I'm at home and also have it turned off while in car mode.
I have tried secure settings pattern lock toggle and that disables the pattern lock successfully, unfortunately it turns on the swipe screen even though I have that disabled in settings. I'd rather not have the swipe screen enabled.
I also tried secure settings key guard toggle which does exactly what I want, but it will randomly make me enter the pattern code (sometimes unlocking, sometimes opening a text or email)
This has all been bugging me to no end! Any insite would be greatly appreciated!
---------------------
Cleanrom 5.0/stock kernel
Click to expand...
Click to collapse
Not sure on the smart stay but for the pattern lock Secure Settings has an option that requires the pattern or pin entered before it turns it off.
Sent from my SCH-I535 using Tapatalk 2
mapatton82 said:
Not sure on the smart stay but for the pattern lock Secure Settings has an option that requires the pattern or pin entered before it turns it off.
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
Which feature is that, what is it called in secure settings? Thanks.
---------------------
Cleanrom 5.0
So I bought a few cheap nfc tags from China and used one for the Smart Unlock. Since mxp doesn't have fingerprint sensor, I guess having a Skip alike thing would be the next best thing. Very easy to setup, just go to Security menu, Smart Unlock (you must have pin or pattern lock), add Trusted Devices, pick NFC then put the tag behind the phone. Give it a name and thats it. The only hassle with this unlocking method is you have to wake up the phone then only it will read the tag. Skip has a magnet built in that wakes up the phone automatically. Oh and another not so good thing is you have to lock the phone using the power button in order for the unlock to work. Whenever I lock using Nova's Screen Lock or Greenify's Hibernate and Lock, it just didn't work.
Update on diy skip. Now I no longer needs to press the power button to lock/unlock the phone. With root access, use Tasker and Secure Settings plugin to emulate power button press when display is off (run command - input keyevent 26). Then use Nova launcher's screen lock shortcut gesture (double tap, swipe up/down etc) to complete the process. I have a small magnet taped to the nfc tag, so when I slowly swipe from the side, the magnet wakes up the screen and then nfc takes over to unlock.
pijes said:
Skip has a magnet built in that wakes up the phone automatically.
Click to expand...
Click to collapse
Hi Pijes, I didn't understand what do you mean by Skip or magnet. Could you explain? Thanks!
You broght it from taobao?
quera said:
Hi Pijes, I didn't understand what do you mean by Skip or magnet. Could you explain? Thanks!
Click to expand...
Click to collapse
Motorola has a product called Skip which utilize the NFC chip to bypass the lockscreen. If you have been using some Moto phones, you should know that most of them has a magnetic sensor that is used for the docking (older Moto phones have dock accessories). The dock has a tiny magnet that when the phone detects it, it automatically turns the phone into a desk clock or navigation mode when attached to a car dock if I'm not mistaken. It seems that Moto maintains this sensor in newer phones, it is located at the back and in MXP case, somewhere in the center. If you have Skip, you attach it to your belt so when you pull the phone out from your pocket, all you need is a swipe on Skip and the phone is unlocked. I believe what happens is the phone detects the magnet, wakes up the phone (still locked) and then it detects the NFC tag inside Skip to unlock.
So I bought some NFC tags, got small magnet from my busted laptop hard disk, taped them together and attach it to my belt. If you don't have the magnet it is still possible to tap on the NFC tag to unlock but you have to enable Moto Display. When you pull your phone out, you'll see the clock, swipe down to get to the lockscreen (pin/pattern/password lock) and then tap on the tag to unlock.
eliccs said:
You broght it from taobao?
Click to expand...
Click to collapse
Not directly from TaoBao but surely from China
Anyone else with experiences ? I was able to register the nfc tag but unlocking on the pattern lock screen didnt work. There was a sound when putting the nfc tag behind the device (so i guess somehow the nfc reader worked) but the unlock failed.
Maybe its only working if i have some special services switched on?
aVe2000 said:
Anyone else with experiences ? I was able to register the nfc tag but unlocking on the pattern lock screen didnt work. There was a sound when putting the nfc tag behind the device (so i guess somehow the nfc reader worked) but the unlock failed.
Maybe its only working if i have some special services switched on?
Click to expand...
Click to collapse
How did you lock the phone? By pressing the power button or a shortcut app?
pijes said:
How did you lock the phone? By pressing the power button or a shortcut app?
Click to expand...
Click to collapse
Usually the power button. Sometimes maybe because of the auto lock after some seconds (i set it to 30). I am not sure what you mean with shortcut app.
aVe2000 said:
Usually the power button. Sometimes maybe because of the auto lock after some seconds (i set it to 30). I am not sure what you mean with shortcut app.
Click to expand...
Click to collapse
Our phone has a default app that detects the nfc chip, it's called Tags. I believe this app made the sound, if you're at the home screen (unlocked) and place the tag at the back of the phone you'll hear a sound and a popup message asking what to do even if you already registered the tag for smart unlock. I disabled this app to get rid of the sound and notification.
What I mean with the shortcut app is something like double tap to sleep or lock the phone. Greenify and Nova launcher app also has a shortcut to lock the screen. If you use this method to lock the phone, smart unlock won't work.
pijes said:
Our phone has a default app that detects the nfc chip, it's called Tags. I believe this app made the sound, if you're at the home screen (unlocked) and place the tag at the back of the phone you'll hear a sound and a popup message asking what to do even if you already registered the tag for smart unlock. I disabled this app to get rid of the sound and notification.
What I mean with the shortcut app is something like double tap to sleep or lock the phone. Greenify and Nova launcher app also has a shortcut to lock the screen. If you use this method to lock the phone, smart unlock won't work.
Click to expand...
Click to collapse
if my phone detects a nearby nfc, even if it is registered with smart lock, there is a black screen only saying:
new tag detected
empty tag
(or similiar, i have a german version). There is no menu, no arrows nothing. Only those two text fields. I cannot find an app called Tags (via autostarts tool or settings|apps list).
aVe2000 said:
if my phone detects a nearby nfc, even if it is registered with smart lock, there is a black screen only saying:
new tag detected
empty tag
(or similiar, i have a german version). There is no menu, no arrows nothing. Only those two text fields. I cannot find an app called Tags (via autostarts tool or settings|apps list).
Click to expand...
Click to collapse
In settings-Apps screen, press the 3 dot menu and choose show system
Can someone enlighten me why this is useful? I mean, if you have Tasker and root you can use Secure Settings to unlock by WLAN or location (in LP that is), and if you are going to literally stick the key on the back of the device, why even set a lock at all? I would understand if the tag was in your wallet or your jacket or on your desk, but literally on the device?
Who said about sticking the key on the back of the device?
Oh, the magnet is just to wake up the screen. I must have read over that too quickly.
I want to apologize. I was wrong about not working my nfc tags. I simply missed that pretty little detail: nearing the nfc tag while in lock screen. I always tried to unlock while beeing in the screen before the unlock screen.
So, everything is fine now. I am using a stylish nfc ring beeing very happy with it.
Update, 2.2.2016: No, not everything is fine. I came across a bug or intended feature. The lock functionality is disabled after some time not using the phone, according to this:
this is a lollipop behavior.
According to this, nephiel made a workaround for at least MM.
Here is the bug report for this issue.
Does anyone else use the nfc ring or another nfc tag for unlocking?
Regards.
Is there any way to use the fingerprint scanner to wake the screen without having to enter a PIN?
Yes, it's like that by default. Just put your finger on the scanner and it will unlock while waking from sleep.
Sent from my ONEPLUS A3000 using Tapatalk
donalgodon said:
Is there any way to use the fingerprint scanner to wake the screen without having to enter a PIN?
Click to expand...
Click to collapse
If you switch off the screen with screen lock app, then you have to put pin
Enviado desde mi MHA-L29 mediante Tapatalk
titillo62 said:
If you switch off the screen with screen lock app, then you have to put pin
Enviado desde mi MHA-L29 mediante Tapatalk
Click to expand...
Click to collapse
I'd like to use the screen without lock or pin and just to wake it up when I touch the fingerprint scanner without having to enter a PIN. Is that possible?
donalgodon said:
I'd like to use the screen without lock or pin and just to wake it up when I touch the fingerprint scanner without having to enter a PIN. Is that possible?
Click to expand...
Click to collapse
That's the default setting.
You shouldn't need the PIN if the screen has simply timed out.
RR-99 said:
That's the default setting.
You shouldn't need the PIN if the screen has simply timed out.
Click to expand...
Click to collapse
How do I set it up so that I don't need to enter a PIN every time I wake the screen?
As it is, when I enter/enroll my fingerprint, I have to assign a PIN as well. Then, every time I wake the screen, it also asks me for a PIN.
I'd like to be able to pick up the phone in the morning, touch the fingerprint sensor and unlock the phone without having to also enter a PIN.
It looks like there is timeout. If you just turn off and then use fingerprint, so phone will ask pin. But if phone went to sleep, you do not have to use pin, just finger.
My device only asks for the PIN after a reboot, otherwise the fingerprint will suffice.
Just like mine.
Yeaaaaaaaaah wtf? Did you set your phone to automatically power off and power on on a certain schedule? Because literally every Android phone that uses fingerprint unlock only requires pin or pass if phone was rebooted and only that once until you reboot again
RR-99 said:
That's the default setting.
You shouldn't need the PIN if the screen has simply timed out.
Click to expand...
Click to collapse
Not exactly. The default doesn't include a fingerprint-wake option. I'm asking if it's possible to use the fingerprint sensor to wake the device without having to enter a pin.
nighthawk626 said:
Yeaaaaaaaaah wtf? Did you set your phone to automatically power off and power on on a certain schedule? Because literally every Android phone that uses fingerprint unlock only requires pin or pass if phone was rebooted and only that once until you reboot again
Click to expand...
Click to collapse
I just set it up and entered my fingerprint and it asks me for a pin. Now, whenever I use the power button to lock the screen, it asks me for my pin instead of just waking up from scanner.
donalgodon said:
Not exactly. The default doesn't include a fingerprint-wake option. I'm asking if it's possible to use the fingerprint sensor to wake the device without having to enter a pin.
Click to expand...
Click to collapse
Do you know what you are asking?
That's the default unlock option,you can unlock the phone with ur fingerprint without the need of pin.
The pin is only needed once you reboot the phone.
Very weird man. I'm thinking something in your settings is causing that
gm007 said:
Do you know what you are asking?
That's the default unlock option,you can unlock the phone with ur fingerprint without the need of pin.
The pin is only needed once you reboot the phone.
Click to expand...
Click to collapse
Okay. Mine's not working that way. Not sure why.
Check ur settings.
I think it has something to do with the Nova setting "Double tap" to sleep the screen. I disabled this and it works.
Good that you found the culprit.
donalgodon said:
Not exactly. The default doesn't include a fingerprint-wake option. I'm asking if it's possible to use the fingerprint sensor to wake the device without having to enter a pin.
Click to expand...
Click to collapse
In Settings / Fingerprint ID / Fingerprint Management (you will need your PIN here) is Unlock Screen set to On (blue with the circle on the right)?
Do you mean "wake" as in when you have put it to sleep by a short press on the power button, or by letting the screen timeout. Done that way, the default will unlock the phone by fingerprint - if you have set fingerprint as an option and enrolled at least one (and use that one)!
edit: I have just tried an app called Gravity Lock so that if I put my phone face down it would lock the screen. The problem with it is that it meant I had to use the PIN to unlock the phone, as the fingerprint was prevented by the app. I've uninstalled it (had to do that from with in the app) and the phone is back to unlocking by fingerprint.
Or do you mean "Start" which is when you have to reboot the phone having long pressed on the power button, and then chosen "Power Off" followed by "Power off". Can't think why you'd do that. That way, it takes appreciably longer to start and you get the Huawei logo and animations. After this, you'll need your PIN.
hx4700 user said:
In Settings / Fingerprint ID / Fingerprint Management (you will need your PIN here) is Unlock Screen set to On (blue with the circle on the right)?
Do you mean "wake" as in when you have put it to sleep by a short press on the power button, or by letting the screen timeout. Done that way, the default will unlock the phone by fingerprint - if you have set fingerprint as an option and enrolled at least one (and use that one)!
edit: I have just tried an app called Gravity Lock so that if I put my phone face down it would lock the screen. The problem with it is that it meant I had to use the PIN to unlock the phone, as the fingerprint was prevented by the app. I've uninstalled it (had to do that from with in the app) and the phone is back to unlocking by fingerprint.
Or do you mean "Start" which is when you have to reboot the phone having long pressed on the power button, and then chosen "Power Off" followed by "Power off". Can't think why you'd do that. That way, it takes appreciably longer to start and you get the Huawei logo and animations. After this, you'll need your PIN.
Click to expand...
Click to collapse
It seems the problem was using Nova's gesture double-tap to sleep the screen. When I disabled that, it works as it should.