I am searching for a way to unlock the device permanently from an app launch. The concept is that I plug in a device via usb to the tablet/phone and the screen unlocks (this is working) and after I exit the app I want the device to return to them home screen. But the thing is that it returns to the lock screen instead of the home screen. Is there a way to do this?
The main idea behind this is to keep the user away from inserting the unlock code multiple times, for no apparent reason.
Related
All the past answers to this question seem to be redundant.
I've managed to successfully load a test device with android kiosk mode, which runs a single use app upon booting up and it stays there full screen the whole time the device is on however because the device is in an inclosed cabinet for the public it should not need any user intervention when booting up. currently after booting up it shows the lockscreen (no password). a person must swipe UP before the kiosk mode is revealed with the single use app running. its very important to find a way to completely remove the lockscreen so the device just boots up without any user intervention and continues performing its task as per normal.
your feedback will be greatly appreciated!
thanks
siz
I installed an app on my android phone to safe lock certain apps with a password. Since I installed it, sometimes, regardless what i'm doing on the phone/which app i'm using, a full size screen with advertising appears and I have to click an "X" to close it or press back/home button.
(Can be that this screen appears randomly only when I digited a password to unlock an app therefore the safe lock app was active let's say, not sure.)
I was anyway wondering what sort of code is used for this? Anyone?
I'd need it for a less despicable cause: in order to show a transparent view with alertdialog when my timer is up and the app is closed, to imitate the original builtin countdown timer.
When I play Ingress, Ingress remains active. Even when my screen goes black, if I push the power button, Ingress is still active. I do not need to unlock my phone nor wait for it to "wake up". (The phone is locked though - to use any other app I need to unlock the phone.)
How do I get the same functionality for my camera app?
If I'm using the phone as a camera, with the camera app active, if the screen goes black, when I hit the power button, I want the camera to be open and active.
Things I've tried:
* Keeping my phone unlocked when in paired to a trusted Bluetooth advice. Then when I push the power button, I get a screen where I have to swipe to wake it up. With Ingress, I don't have to swipe the screen nor wait for anything.
* Snapshot. I've tried using the Snapshot app, but I have to wait for the phone to launch the camera app.
* The camera on swipe from the lock screen ... and again I have to wait for the camera app to launch.
I'm willing to figure out how to build my own app if needed. (But would rather find something.)
I'm willing to take a battery hit.
Android 4+
We're developing a lock screen app (not a widget). The app listens for SCREEN_OFF, and generates the activity, so that when SCREEN_ON is received, the user sees the activity in front of the security features using FLAG_SHOW_WHEN_LOCKED.
We've found that on rare occasions around 1 in every 50 to 100 times, the activity appears behind the Home screen rather than in front of the lock screen. We cannot replicate the issue, and it doesn't appear to happen when connected for debugging (I've sat and locked/unlocked my phone and not seen it, then taken the cable out and it happens in the next few times).
The activity appears to display over the wallpaper, with the home screen icons over the top of the activity.
3 questions:
1) Is it possible to "listen" for when the home screen gets started so that we could just finish() the activity at that point?
2) Is it possible to ensure that the activity runs over the lock screen all the time?
3) How would you test this to try to replicate the fault? I cannot figure out why it does it at all and cannot replicate it.
TIA
I'm writing an anti theft app, and I want when sim card is changed a dialog opens on boot and tell the finder to bring back the phone. This activity must be unleavable, so he can't leave it unless the correct code is entered.
Other situation is when user send a lock SMS to the phone.
I know how a device admin can lock the phone, but lock don't tell the message and the password can't be entered. And lock may not have a password or pattern so the finder can pass it easily.
Maybe a combination of device lock and a full screen activity which disable the keyguard do the job?
In my research, without being installed at the OEM level, you can't make it 100% un-leavable, just really annoying.
In an app I wrote for businesses which use a kiosk, since we weren't at the OEM level, we just kept the menu bar hidden and set the app to be loaded whenever Home was hit. Keeping the menu bar hidden was a pain, but was achieved by making it invisible and then when re-triggered, making it go away after 1 second. It's still able to be exited by hitting the clock in that 1 second, though. :(