Use device password/pin for app to unlock screen

Hi I have searched the community for a while but couldn't find an answer. Basically instead of the user creating another password specifically for MIT app, is there any extension or way that can make use of the phone's current set password or pin (basically whatever is used to unlock the phone)

This is possible on Kodular but I don't think it is possible to do it on AI2

Nico

I can make an extension for that

Whaf about using the Fingerprint Sensor extension?

Taifun

The race is on :wink:

1 Like

See below link,
I have done it using just Activity Starter,

1 Like

@ShanmugaNathan2023

Brilliant, tested on Android 14 with companion, works well.

Only issue for the OP is if a user has not set a PIN on their device, no security on the app.

2 Likes

@TIMAI2 I made a free extension to check if a user has setup a passcode lock on his device. This will solve the issue :smile: I have posted it and its awaiting approval

Then we can use that extension along with the intent to set up passcode lock and authentication

So the final Solution for the problem :thinking:
Auth Extension

Import the extension in your app and add blocks
When Screen1.Initialize:
If call Auth1.IsPasscodeLockEnabled = "true"
then android intent by @ShanmugaNathan2023
Else:
// Whatever you wish to do :sweat_smile:
Hope it solves your problem
Regards
Sarthak Gupta

This is not the only problem ... ^^

@>-->---

It is a start...

Perhaps you could expand on this statement, with other issues that arise ...

What are the other issues? Can you please elaborate so that I can incorporate them

Hope its solved now :sweat_smile:

Thanks yall but currently im very busy ill get back when i test all of these

A bit of a sledgehammer to crack a nut, in order to cover all eventualities, and given there is little, if no, feedback from the various activities called. Anyway, see below my effort on authenticating an app using the device PIN (or pattern, or password, or fingerprint) Tested using the latest companion, 2.72u, on Android 6.01 (didn't show lock screen alerts), 12, and 14 (all google devices)

Credits @techxsarthak for the isLockEnabled extension which makes this a potentially useful solution. The whole thing could be much better in a full extension, probably using BiometricManager and Keyguard (Android < 10).

EnterAppWithDevicePIN.aia (9.1 KB)

3 Likes

In the Solution you came to a way to cover all eventualities :vulcan_salute:

@>-->---

1 Like

And I developed the extension :sweat_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.