Skip to content

[FEATURE] Prevent taking screenshots - #3615

Merged
davcres merged 3 commits into
masterfrom
feature/prevent_screenshots
Apr 21, 2022
Merged

davcres merged 3 commits into
masterfrom
feature/prevent_screenshots

Conversation

@davcres

@davcres davcres commented Apr 8, 2022

Copy link
Copy Markdown
Contributor

Related Issues

App: #3596

  • Added changelog files for the fixed issues in folder changelog/unreleased. More info here

QA

@davcres
davcres requested a review from abelgardep April 8, 2022 09:28
@davcres davcres self-assigned this Apr 8, 2022
@davcres davcres changed the title prevent screenshots and screen recording [FEATURE] Prevent taking screenshots Apr 8, 2022
@davcres davcres linked an issue Apr 8, 2022 that may be closed by this pull request
9 tasks

@fesave fesave left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wow! Cool solution! 🥇 LGTM

@jesmrec

jesmrec commented Apr 12, 2022 •

Copy link
Copy Markdown
Member

Expected behaviours:

Release and screenshots == true : Screenshots allowed everywhere but login view, passcode view and pattern view
Release and screenshots == false: Screenshots allowed nowhere
Debug: screenshots allowed everywhere

Checks:

RELEASE
screenshots = true
RELEASE
screenshots = false
DEBUG
Login View ✅ ✅ ✅
Settings View ✅ ✅ ✅
Security view ✅ ✅ ✅
Passcode View ✅ ✅ ✅
Pattern view ✅ ✅ ✅
Auto upload views ✅ ✅ ✅
More view ✅ ✅ ✅
Privacy view ✅ ✅ ✅
File List view ✅ ✅ ✅
New Folder view ✅ ❌ ✅
Upload card view ✅ ❌ ✅
Share view ✅ ✅ ✅
Public Link view ✅ ❌ ✅
Search Share view ✅ ✅ ✅
Uploads view ✅ ✅ ✅
Accounts view ✅ ✅ ✅
Image preview ✅ ✅ ✅
Text preview ✅ ✅ ✅

@jesmrec

jesmrec commented Apr 12, 2022 •

Copy link
Copy Markdown
Member

(1)

Not sure if this is something fixable. There are some views that are not prevented to take screenshots. All of them are dialogs that overlay the app:

Screenshot_20220412-170534 Screenshot_20220412-170423

@jesmrec

jesmrec commented Apr 13, 2022

Copy link
Copy Markdown
Member

I'be noticed three different behaviours depending on Android version:

  • Android 7 -> it does not allow to take screenshots, but there is no feedback. Pushing the buttons does nothing
  • Android 9, 11 -> it does not allow to take screenshots, and the System notifies it with a toast message
  • Android 12 -> It takes a black screenshot, with the exceptions listed above.

CC @michaelstingl

@michaelstingl

Copy link
Copy Markdown
Contributor
  • Android 12 -> It takes a black screenshot, with the exceptions listed above.

CC @michaelstingl

Hm, not cool. But maybe okay for now. Can be improved later…

@jesmrec

jesmrec commented Apr 18, 2022

Copy link
Copy Markdown
Member

A better solution could be done.

@jesmrec

jesmrec commented Apr 21, 2022

Copy link
Copy Markdown
Member

Will move this forward and address the Android 12 problem in a different issue

@davcres
davcres force-pushed the feature/prevent_screenshots branch from 5efc2dc to 834d491 Compare April 21, 2022 11:27
@davcres
davcres merged commit ef8ed13 into master Apr 21, 2022
@davcres
davcres deleted the feature/prevent_screenshots branch April 21, 2022 12:03
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.

[FEATURE REQUEST] Prevent taking screenshots

4 participants