Android Question Using Camera in Background - False User Alert

Discussion in 'Android Questions' started by Marcos Alves, Mar 12, 2019.

  1. Marcos Alves

    Marcos Alves Active Member Licensed User

    Hello,
    some of our users are reporting that one of our apps is generating an Android system alert as follows:
    slax_camera200.png
    Sorry, translated from portuguese: "Slax was detected using camera" (Slax is our app)

    The notification pops up on screen even when Slax is closed. We don't call camera, microphone or any similar resource in background. This notification only occurs on Samsung devices (I have a Motorola with Android 8 and Other with Android 9 installed without any problem).
    Any suggestion what could be happening?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Check the permissions (Logs - List Permissions). Is the camera permission listed?
    If not, open the generated AndroidManifest.xml file and look for the camera permission.
     
  3. Marcos Alves

    Marcos Alves Active Member Licensed User

    Hello @Erel ,

    YES, the app needs camera permission, but doesn't request it when in background. Doing some research I discovered that a native library that I use (ABTO SIP) that runs in background to receive SIP phone calls (which allows video and audio calls) maybe is the responsible, because the SIP registration events in our servers are almost coincident with phone alerts.
    BUT I'm still confused - the app obviously is not USING THE CAMERA, but this app which has permission to use the camera is starting in background a library that uses (not in background)... should this generate an alert? For me looks that it's an Android system mistake/bug (reinforcing this thesis because this only occurs in Samsung devices...).
    What do you think @Erel - is there any way (java command, Manifest, etc...) to avoid this alert being showed by Android in this case?
     
    Last edited: Mar 14, 2019 at 4:06 PM
  4. Erel

    Erel Administrator Staff Member Licensed User

    Maybe the library opens the camera even when it is in the background.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice