Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use default password lock screen in our Android application?

I am new in android. I want to use default password lock screen in my android application. I want to open that lock screen when sms is come in my device. I want to use (settings > Location & Security > setup screen lock with password ).

Can anyone tell me the intent of this Activity. Please help me I am stuck on this.

Thanks in advance.

like image 234
anddev Avatar asked Nov 07 '11 11:11

anddev


People also ask

How do I put a password on my apps Android?

Go to Settings and select “Biometrics and security.” Tap on “Secure Folder,” then “Lock type.” Choose between Pattern, PIN, Password or a biometric option like fingerprint or iris, and create that password. Go to your app drawer and tap “Secure Folder.” Tap “Add apps.”

How do I control my Android lock screen?

Go to Settings > Lock Screen > Screen lock type. From there, you'll have several different lock screen options to choose from: Swipe: This lock type allows you to swipe in any direction on your screen to unlock your phone.

How do I run an app from the lock screen?

Here's how to open your favorite apps directly from the Lock screen on your Galaxy device: Go to Settings > Lock screen > Shortcuts. Tap Left shortcut and pick your desired app. Do the same for Right shortcut.


3 Answers

I got the solution using APIDemo. Please check APIDemo/app/DeviceAdmin.

Thanks.

like image 186
anddev Avatar answered Oct 21 '22 11:10

anddev


I don't believe the intent is exposed but being open source, you could make your own.

like image 34
Kuffs Avatar answered Oct 21 '22 12:10

Kuffs


com.android.settings.ChooseLockGeneric vulnerability (CVE-2013-6271) in Android 4.3 allows a malicious application to remove all existing Device Locks activated by a user without confirmation: http://thehackernews.com/2013/12/CVE-2013-6271-Android-device-lock-bypass.html

like image 45
user3058304 Avatar answered Oct 21 '22 12:10

user3058304