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

Camera and accelerometer detection do not work when the screen is off #111

Closed
rober1s opened this issue Dec 24, 2017 · 7 comments
Closed

Comments

@rober1s
Copy link

rober1s commented Dec 24, 2017

The app will be great when it is done. However, camera motion events to not trigger when the screen is off. Needing to have the screen on in order to use the camera motion sensor kind of defeats the intent of having a surreptitious security device. The sound sensor works with the screen off, but the on-board accelerometer also does not.

Phone is a Oneplus One running Lineage 15 Oreo 8.0

@E3V3A
Copy link

E3V3A commented Dec 25, 2017

Yep, a common problem also causing battery drain, as in #19. Need to keep screen alive with a black/dark screen, or prevent device from going into sleep mode.

@n8fr8
Copy link
Member

n8fr8 commented Jan 17, 2018

Just want to make a point that "surreptitious" isn't always our goal with Haven. The primary goal is to deter or disincentive intruders, and if they enter, to notify you of their presence. Just like many alarm systems advertise their presence with stickers, blinking lights and cameras, the idea that a space is "Protected by Haven" could be one way this is deployed or configured.

That said you are absolutely right in expecting Haven's sensors to work when the screen is off :)

Working on that now!

@rober1s
Copy link
Author

rober1s commented Jan 17, 2018

That said you are absolutely right in expecting Haven's sensors to work when the screen is off :)

I love it when developers agree! :-)

That said, having a cell phone sitting there on a desk with a bright yellow background and the words HAVEN Active" will greatly diminish the likelihood of ever discovering any covert activity of interest.

Whether or not you like the use of "surreptitious" to describe what will undoubtedly be the main mode of use for Haven, that is nevertheless how it is mostly going to be used.

That aside, I'm glad we agree that the screen should be off while Haven is doing its thing. :-)

@n8fr8 n8fr8 modified the milestones: 0.1.0 beta 8, 0.1.0 beta 9 Jan 19, 2018
n8fr8 added a commit that referenced this issue Jul 3, 2018
- uses the https://github.com/siralam/CameraViewPlus library to make the camera usage more reliable, and support Camera2
- integrates RenderScript support to move to better performance on some image conversion functions
- improves display and performance of detection display overlay
@deviantollam
Copy link

FWIW, i'm testing ver 0.2.0 alpha3 and it does work for me when the screen is locked.

verified on:

  • a rooted OnePlus3T
  • an unrooted and stock Nokia 3.1

@theGrower
Copy link

Camera not working using version 0.1.0-beta-3 on unlocked Galaxy S9+ running LineageOS once the screen goes off. Same results for both front and back cameras.
I have an older phone to try, but need to get a new battery first.

@n8fr8
Copy link
Member

n8fr8 commented Feb 11, 2019

new beta posted: https://github.com/guardianproject/haven/releases/tag/0.2.0-beta-3

please test when you can, and re-open or file new issues.

@n8fr8 n8fr8 closed this as completed Feb 11, 2019
@theGrower
Copy link

I totally forgot to comment again. I did try the newest beta and all is well. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants