CatimaLoyalty / Android

Catima, a Loyalty Card & Ticket Manager for Android
https://catima.app
GNU General Public License v3.0
806 stars 146 forks source link

Password protection of app #62

Open TheLastProject opened 3 years ago

TheLastProject commented 3 years ago

Issue by MPK44 Saturday Jul 25, 2020 at 08:51 GMT Originally opened as https://github.com/brarcher/loyalty-card-locker/issues/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 commented 3 years ago

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 commented 3 years ago

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

trymeouteh commented 3 years ago

+1 for an optional passlock

Unreal-Dreams commented 3 years ago

@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 commented 3 years ago

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

TheLastProject commented 3 years ago

@Unreal-Dreams are you still working on this?

Unreal-Dreams commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

App Lock | Catima Debug

Have a look. Will this work?

TheLastProject commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

App Lock v2 | Catima Debug

Have a look please.

TheLastProject commented 2 years ago

Looks awesome!

How does it deal with stuff like home screen widgets?

aditya3901 commented 2 years ago

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 commented 2 years ago

There is no error in your screenshot?

aditya3901 commented 2 years ago

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

TheLastProject commented 2 years ago

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 commented 2 years ago

Ok. Pls check the pr then.

TheLastProject commented 1 month ago

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).