Basically, I wrote a private app that generates a different hex number each time it's run, and you have to use a certain algorithm to determine the answer, then input it in binary with a mini-keypad and press the unlock button. That way I can just show anyone what I'm putting in because if they get the phone, they can't use the same code unless the same random number is the same (its seed changes based on currentTimeMillis() / 1000L) Anyway what is the easiest way to make this Activity launch like the regular pattern lock when I turn on screen? also I don't have a lockscreen by default, not an issue. It has to prevent pressing home/back and has to launch without any delay. thanks
doctor there's a bump in my thread what should I do
this is a very good question
the closest i came to finding an answer was the android lock screen src
http://android.git.kernel.org/?p=pl.../internal/policy/impl/LockScreen.java;hb=HEAD
Yeah, I cloned the entire source, but it was way too complicated for me to find what I needed. Also, what is the difference between these 4 things?
Keyguard - ?
Lock screen - the screen that has the 'slide to unlock' widget depending on your phone/rom
Unlock screen - the screen where you draw pattern, pin, password, etc.
Wake [lock] - ?
I only have 4 softbuttons, volume +/-, and power on my device, and only power makes the screen come on, which shows WidgetLocker then the pattern screen. Both of which hide the softbuttons unless I hold down power, then it shows power off, airplane, and silent options and the softbuttons panel pops up. This doesn't allow me to press home to bypass pattern/widgetlocker, thankfully.
Halp my thread seems to have a case of severe bumpitis. Is it lethal?
Related
The program "Black me 1.4" seems to be able to lock all keys and leave the D-pad (round center key) unlocked. You can turn on the screen by clicking the D-pad but the only thing is that you always have to close your application's screen every time. Is there a way to not get the the programs screen every time you click on the D-pad to turn it on?
And maybe with this feature of being able to disable all keys with the exception of the D-pad, this could be a great idea for creating a Selective key lock. On WM, under Settings, you can find "Key lock" and then you only have 3 options:
1) Lock all buttons except Power button
2) Lock (all) buttons if device is locked
3) Do not lock buttons
Maybe you can add the option of: Lock all buttons except D-pad and Power button.
That could be cool
Also the volume up and down could be added as exceptions, so if you have it in your pocket you can silence it without having to turn it on and then nobody sees you do that.
Thank you!
Hi, is there a way or an app I can use to trigger the device lock manually? I don't mean the simple lock where the screen is disabled. I want the windows lock screen with the password. I set the device to lock after 1 hour of inactivity but I want a way to manually trigger it anytime.
You can use the lockscreen app here and set to lock on Suspend. Then pushing the power button will lock.
Alternatively, you can set the Call End key to activate the lock, so a long press on End will also lock the device. Go to Settings\Personal\Buttons and go the End Key tab and choose appropriate setting.
Thanks for the reply. I tried the End Key but it only works if you disable the auto-lock when inactive setting. And when it works, it only does a screen lock without the PIN entry. I would like to lock the screen with the pin entry
Hi all,
I have a HTC HD mini and i want to prevent anyone to see what SMS (or how many) I receive when phone is in lock screen. HD Mini users know that when the phone is in lock screen and receive one single SMS anyone can see the text of SMS when press power button. Is there any way to set up this?
And I want to change the button who wake up the phone when is in standby, default is power on, I want to press power on and vol down for example.
Thanks.
anybody?
No answer?
I also have this device and i really don't know of any mod that can be done in the lockscreen so it won't preview SMS. An idea is to stick to the default winMo lockscreen with the slide to unlock from center to left or right.
Now, to be able to power on the device with a combination of buttons needs deeper investigation. You need to mod some things and some registry entries for sure = complicating. But here is an app called "shake and wake", with which you can wake your device by just shaking it. You can google it if ur interested.
10x man.
I tried already wm lockscreen but that one does not work with pasword. I need something to keep pasword on unlock.
Try Throttle Lock, not so much a password as a pass pattern but it works for me.
On my NST Glowlight, I have a case that is beautiful but unfortunately covers the back power button (Verso Prologue Antique Tan, currently a steal on Amazon at $10). When I close the cover, it bumps things on the screen and either opens random books (in ReLaunch) or loses my place (in Coolreader). Does anyone know of a simple app that triggers the screen lock so I can map it to a hardware button? I set a "Lock Screen" shortcut in ReLaunch but at least half the time it doesn't work (instead, it asks if I want to power off). Thoughts?
Install Button Savior and tap its on-screen power button.
cowbutt said:
Install Button Savior and tap its on-screen power button.
Click to expand...
Click to collapse
IMO Button Savior is an eyesore and I can already duplicate all of its functions with hardware button mappings. I want to be able to map power to a hardware button, which I know I can do if I have an app shortcut of some sort.
OK, I found my own solution and it works well enough that I thought I'd share.
I found a whole bunch of screen lock apps but they all require Android 2.2 or later.
Thinking outside the box, I instead downloaded a simple app called "White Screen Flashlight" and mapped it to my n button. Now if I push n the screen goes completely blank and doesn't register touch input, so it's safe. I have the added benefit that if anyone swipes my Nook and wants to see what I am reading, they get a boring empty screen when they turn it on. Sleep mode kicks in as normal.
Alternatively, use http://forum.xda-developers.com/showthread.php?t=1848962 to set a Lock PIN. I combine this with a Tasker rule that disables the PIN if I'm connected to a 'friendly' WiFi network (i.e. my home WLAN) and re-enables it when I disconnect.
cowbutt said:
Alternatively, use http://forum.xda-developers.com/showthread.php?t=1848962 to set a Lock PIN. I combine this with a Tasker rule that disables the PIN if I'm connected to a 'friendly' WiFi network (i.e. my home WLAN) and re-enables it when I disconnect.
Click to expand...
Click to collapse
That is a great idea! I previously set a lock on my Nook ST (pre-Glowlight), but this time I'm simply keeping it disconnected from Google and any sensitive information. There's a bar on the screensaver that gives "please return to..." information. I figure if someone steals it, they won't get access to anything but some books, and if it's lost, a kindly soul may return it.
I've been looking around for options to avoid using the physical power button to turn my N6 on or off. The double-tap-to-wake functionality has been documented elsewhere (here, for instance), though I've found it harder to implement a gesture to turn off the screen. I finally happened upon using the "input keyevent" shell command. This is different (in a better way) from using a Device Administrator app that locks your screen; the input keyevent command exactly duplicates the power button behavior and so will obey your settings for when to actually lock the phone (as opposed to just turning the screen off). If you have root and Tasker, it turns out that all of this is easy to do; both the double-tap-to-wake and gesture-to-sleep actions don't require stand-alone apps to implement.
Requirements:
Root access
Tasker
A custom launcher (like Nova) that allows you to implement gesture shortcuts
For double-tap-to-wake, create a Tasker task (I call it "DTTW") that has one step: Run Shell (under "Code"), where the Command is echo 'AUTO' > /sys/bus/i2c/devices/1-004a/tsp Check the "Use Root" option.
For gesture-to-sleep, create a Tasker task (I call it "Turn Off") that has one step: Run Shell (again, under "Code"), where the Command is input keyevent 26 Again, check the "Use Root" option. You may have to choose an icon to link the task to a launcher gesture.
Now, to implement double-tap-to-wake, run the DTTW task, and you're done. It will reset (i.e., double-tap-to-wake will no longer work) when you reboot, so you can set a profile to have Tasker run the DTTW task on Device Boot (this is an Event, under "System").
To implement gesture-to-sleep, use your launcher to choose a gesture that launches the Turn Off task. Using the Nova launcher, I started Nova Settings --> Gestures and Buttons --> Swipe up Two fingers (the gesture I chose) --> Shortcuts --> Task Shortcut --> choose the Turn Off task. Now, whenever I swipe up with two fingers on my home screen, the screen goes off.
Done! Easy! Free!
i use tbe lock screen widget to turn off the screen https://play.google.com/store/apps/details?id=com.droidmania.lockscreenwidget
simms22 said:
i use tbe lock screen widget to turn off the screen https://play.google.com/store/apps/details?id=com.droidmania.lockscreenwidget
Click to expand...
Click to collapse
But I believe that locks your phone. I just want to turn off the screen, as if I'm pressing the power button.
NYZack said:
But I believe that locks your phone. I just want to turn off the screen, as if I'm pressing the power button.
Click to expand...
Click to collapse
no. it just turns your screen off, just like pressing the power button. if you have a password set, itll lock the device, just like using the power button.
simms22 said:
no. it just turns your screen off, just like pressing the power button. if you have a password set, itll lock the device, just like using the power button.
Click to expand...
Click to collapse
Are you sure? If I have a PIN set, with my phone set to lock 10 minutes after screen off, you're saying that the lock screen widget will turn off my phone but not lock it (for 10 minutes)? I think it locks it immediately.
NYZack said:
Are you sure? If I have a PIN set, with my phone set to lock 10 minutes after screen off, you're saying that the lock screen widget will turn off my phone but not lock it (for 10 minutes)? I think it locks it immediately.
Click to expand...
Click to collapse
itll behave the same way as pressing the power button to turn off the screen.
yup, I use it and it is the same thing as turning your phone off with the power button.
simms22 said:
itll behave the same way as pressing the power button to turn off the screen.
Click to expand...
Click to collapse
Well, I have nothing against Lock Screen Widget, but when I installed it and used it, it immediately made me enter a PIN to unlock my phone, even though this wouldn't happen for 10 minutes after pressing the power button.
Just wanted to say thank you for this. I have a smart watch and use that smart lock feature where if my watch is connected my screen won't lock.
All the lock screen apps in the play store lock my screen regardless if my watch is connect. But your method with tasker works perfectly thank you so much.
yup, I use it and it is the same thing as turning your phone off with the power button.