Skip to content

Prevent camera preview from appearing in recent-apps snapshot #703

Description

@Finnhome

Prevent camera preview from appearing in recent-apps snapshot
When temporarily switching away from the GrapheneOS Camera app, the last visible camera frame remains displayed as the Camera app's preview in the Android recent-apps overview.
Steps to reproduce:

Open the GrapheneOS Camera app.
Point the camera at something.
Switch to another app without closing Camera.
Open the recent-apps overview.
The Camera task shows the last frame from the live camera preview.
The frame remains visible as long as the Camera task remains in Recents.
No photo has been taken or intentionally saved. This appears to be the system's task/Recents snapshot of the Camera activity.
Expected behavior:

The Camera app should prevent its live camera preview from being captured in the recent-apps/task snapshot. A blank or otherwise neutral preview would be preferable.

This could potentially be addressed using FLAG_SECURE or another appropriate mechanism, although I leave the implementation choice to the developers.

Privacy concern:

For a privacy-focused camera application, exposing the last camera frame in the recent-apps overview can unintentionally reveal sensitive information. For example, it could show people, documents, screens, private surroundings, or anything else the camera happened to be pointed at.

The important distinction is that this is not a request to prevent the Camera app from saving photographs. The concern is specifically that Android's Recents UI retains and displays the last camera frame as a task snapshot.

It would be preferable if temporarily switching away from Camera did not leave a visual copy of the camera's field of view exposed in the recent-apps overview.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions