Questions tagged [keyguard]

This mobile phone feature allows the user to disable (lock) the keys so that a number will not accidentally be dialed while the phone is in your pocket or purse. A special key combination, unlikely to be pressed accidentally, is typically used to unlock the keys.

147 questions
1
vote
1 answer

keyguard manager not responding

I am making an app that enables\disables a keyguard but it works only for the first time this activity is called and after that its remains in the state I set for the first time. static boolean k=true; @Override protected void…
jaisonDavis
  • 1,407
  • 2
  • 22
  • 36
1
vote
1 answer

How can I dismiss the android keyguard using adb intent

I am looking for a way to use ADB to dismiss the keyguard in order to automate some tasks. I would like to start an ACTIVITY (perhaps to call the public method disableKeyguard in android.app.KeyguardManager.KeyguardLock), because I assume that it…
1
vote
0 answers

Why Dismiss keyguard is not working in Samsung Galaxy tab?

I have one application which will notify users when any alarm raised on the server, so when alarm comes App will play the beep sound and open the activity, even the device is in sleep mode , it wakes up dismiss the keyguard and display activity with…
piks
  • 1,621
  • 8
  • 32
  • 59
0
votes
1 answer

Android:Unlock Screen

I am able to unlock the screen when there is an incoming call and after that lock the screen again. After a restart of the device if I get first incoming call this logic is not working. On subsequent incoming calls the logic works. Any help?? My…
shanker
  • 11
  • 1
0
votes
0 answers

Android: Difference between UserManager's isUserUnlocked and KeyguardManager's isKeyguardLocked

I am working with Android and I am unsure what exactly UserManager and KeyguardManager do / how they relate with each other. From the Docs: UserManager: isUserUnlocked: On devices with direct boot, a user is unlocked only after they've entered their…
0
votes
0 answers

Some ui bugs if opened second activity from first activity above lock screen

I have the problem: If I use params: setShowWhenLocked(true) setTurnScreenOn(true) in the first activity - it's working correct if I change orientation (from portrait to landscape and back), but if I opened the second activity from the first…
Alex
  • 1,407
  • 2
  • 10
  • 19
0
votes
0 answers

NoSuchMethodException is throwing when trying to access getActivePasswordQuality() method of LockPatternUtils class

I want to get access to com.android.internal.widget.LockPatternUtils class object using reflection and want to know the Lock method user has set in Android device. I am using below code for that : private fun getAuthenticationMethodType() : Int…
Kushal
  • 8,100
  • 9
  • 63
  • 82
0
votes
1 answer

Disable Keyguard and show activity when the system boots

Consider: KeyguardManager keyguardManager = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE); KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE); lock.disableKeyguard(); I have done the above code to disable the…
edyim
  • 145
  • 1
  • 3
  • 9
0
votes
1 answer

What's the difference between isDeviceLocked and isKeyguardLocked in android's KeyguardManager?

Unhappily I could not put a comment under an answer of What's the difference between isDeviceLocked and isKeyguardSecure in android's KeyguardManager?, but how so often I don't find a answer to my questions and have then dig through codesearch. So…
TooFewDocu
  • 11
  • 1
0
votes
1 answer

How to trigger KeygaurdManager to take fingerprint programmatically

As soon as I receive a push notification from my app I want to trigger the KeyguardManager to launch the fingerprint/pass code screen to open the phone from lock screen so that person can enter the phone and unlock the device. I want to trigger this…
Nobody
  • 58
  • 1
  • 9
0
votes
1 answer

Android Keyguard and DevicePolicyManager

I'm trying to lock/unlock the screen using Keyguard and everything works as expected when using the KeyguardManager.KeyguardLock disableKeyguard() and reenableKeyguard() functions. I've tried it with "regular" slider lock, pattern, PIN and password…
Muzikant
  • 8,070
  • 5
  • 54
  • 88
0
votes
1 answer

AOSP Android Pie Check if Keyguard is showed

Is there a way to detect if the keyguard is displayed on the screen? I know there is the method isKeyguardLocked() but it is true for Keyguard Locked (Even if the keyguard is not displayed on the screen)
Bazouk55555
  • 557
  • 6
  • 24
0
votes
1 answer

Is there any way to do something like `requestDismissKeyGuard` under api level 25?

I want to request dismiss keyguard to user. But KeyguardManager.requestDismissKeyguard() can only use over api level 26. If device is locked with pin code security, FLAG_DISMISS_KEYGUARD isn't working like requestDismissKeyguard(). when { …
yukitaka13
  • 121
  • 1
  • 6
0
votes
1 answer

How to remove fingerprint authentication from Android KeyGaurd manager?

I've used keyguard manager inside my app to perform some action if and only if the user authenticates using his default device lock credentials, now what is happening is that my device has both fingerprint and pattern/pin lock enabled and when the…
0
votes
0 answers

show text view on lock screen using window manager in Marshmallow+

In my app i was able to show text on lock screen using these params settings params = new WindowManager.LayoutParams( WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT, …