Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password protection of app #62

Open
TheLastProject opened this issue Oct 24, 2020 · 22 comments
Open

Password protection of app #62

TheLastProject opened this issue Oct 24, 2020 · 22 comments
Labels
common: uncommon Most users are unlikely to come across this or unexpected workflow severity: minor Impairs non-critical functionality or suitable workarounds exist type: enhancement New feature or request

Comments

@TheLastProject
Copy link
Member

Issue by MPK44
Saturday Jul 25, 2020 at 08:51 GMT
Originally opened as brarcher/loyalty-card-locker#370


it would be cool, if one could protect the app with a password from opening.
Especially when saving gift card codes (like money)

@TheLastProject
Copy link
Member Author

Comment by brarcher
Saturday Jul 25, 2020 at 16:12 GMT


There was a request similar to this on another app that I've written. Feel free to review that discussion. Likely it is something that will not be supported in this app. The effort is non-trivial to do it correctly and securely. These days I do not have much time to dedicate to the project.

I thank you for the suggestion, though.

@TheLastProject
Copy link
Member Author

Maybe https://github.com/mattsilber/applock is worth considering for this, it looks promising

@trymeouteh
Copy link

+1 for an optional passlock

@Unreal-Dreams
Copy link

@TheLastProject Can I take up this issue. I am planning to use the Aitorvs finger lock library {https://github.com/aitorvs/fingerlock} to add the finger lock.

@TheLastProject
Copy link
Member Author

Sounds good! Good luck @Unreal-Dreams and tell me if you have questions :)

@TheLastProject
Copy link
Member Author

@Unreal-Dreams are you still working on this?

@Unreal-Dreams
Copy link

I am sorry @TheLastProject due to some unforeseen conditions I won't be able to complete my work on this. I will surely resume if I got a chance. Thank You

@aditya3901
Copy link
Contributor

ezgif com-gif-maker

This is what was supposed to be done right? I'd like to work on this issue.
(ps: gif above, will take time to load.)

@TheLastProject
Copy link
Member Author

Yup, that is indeed the requested feature :)

If this becomes optional (so, it doesn't show when you start the app but you can tap something in settings) that would be right about perfect :)

@aditya3901
Copy link
Contributor

App Lock | Catima Debug

Have a look. Will this work?

@TheLastProject
Copy link
Member Author

That looks pretty good!

I think we should avoid showing cards until the app is unlocked (if locking is enabled) and I'd rather the configure lock stuff shows up as soon as you toggle App Lock in the settings.

Will need to try it out myself to see if it feels right, but it looks really good so far :)

@aditya3901
Copy link
Contributor

Should I do locking/un-locking stuff in a separate activity then? (For not showing cards) I don't want to mess with the existing code!

@TheLastProject
Copy link
Member Author

It may be easiest to just extend
https://github.com/TheLastProject/Catima/blob/15ba15c602bbed2c3aee18cd5a128c3ee742a67e/app/src/main/java/protect/card_locker/MainActivity.java#L396

to add an if(mDB.getLoyaltyCardCount() > 0 && !appIsLocked()) and just make sure to call the updateLoyaltyCardList function after unlocking

@aditya3901
Copy link
Contributor

App Lock v2 | Catima Debug

Have a look please.

@TheLastProject
Copy link
Member Author

Looks awesome!

How does it deal with stuff like home screen widgets?

@aditya3901
Copy link
Contributor

catima

I was making the pr. The app builds fine and everything. But due to this error, the pr is showing conflict with main branch. What should I do?

@TheLastProject
Copy link
Member Author

There is no error in your screenshot?

@aditya3901
Copy link
Contributor

Line 1 : com.github.spotbugs...
github showing error

@TheLastProject
Copy link
Member Author

Nah that's just some weird Android Studio glitch. It shows that as red for me too, but it works just fine. Has been like that for very very long.

@aditya3901
Copy link
Contributor

Ok. Pls check the pr then.

@TheLastProject TheLastProject added common: uncommon Most users are unlikely to come across this or unexpected workflow severity: minor Impairs non-critical functionality or suitable workarounds exist labels Feb 5, 2022
@TheLastProject
Copy link
Member Author

For those who are viewing this issue now:

The last attempt at fixing this was in #462 but sadly it didn't quite work out. So this feature still doesn't exist. For now I'd recommend just using a device-wide lock code (which I strongly recommend doing anyway, if you don't have any lock code on your device you make a lot of private data very easy to reach if someone steals your phone, including all your contacts and photos).

@TheLastProject
Copy link
Member Author

Looks like Android 15 introduces a new "Private space" feature, so for those on Android 15 that is likely an usable option: https://blog.google/products/android/android-15/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common: uncommon Most users are unlikely to come across this or unexpected workflow severity: minor Impairs non-critical functionality or suitable workarounds exist type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants