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

Option to bypass app lock on home network #2800

Merged
merged 6 commits into from
Sep 5, 2022

Conversation

RoboMagus
Copy link
Contributor

@RoboMagus RoboMagus commented Aug 17, 2022

Summary

Adds the option to bypass the app (fingerprint) lock when on the home WiFi network.
Implements #840

Screenshots

Screenshot_20220817-105358_Home Assistant
Screenshot_20220817-105413_Home Assistant

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

  • This has been a long open requested feature, so I decided to dable in Kotlin for the first time myself. Please review well, as I'm not at all familiar in this environment!
  • I noticed the use of isInternal() to check if the user is on their home WiFi network, but this does not work well if the internal URL is implicitly set to the same as the external URL. For the user it is unclear when that's the case. I feel this should be addressed in another issue.
    • Solved this in this PR by exposing isHomeWifiSsid() and using that for checking the 'at home' state without interference of the internal URL.

@jpelgrom jpelgrom linked an issue Aug 17, 2022 that may be closed by this pull request
Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, gave the debug APK a quick check and functions as expected.

@JBassett JBassett merged commit 2cf5a7d into home-assistant:master Sep 5, 2022
@RoboMagus RoboMagus deleted the 840 branch September 27, 2022 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lock app function only when not at home
4 participants