guardianproject / Orweb

We are EOL this project. Please use Lightning Browser or wait for Orfox instead
https://guardianproject.info/2015/06/30/orfox-aspiring-to-bring-tor-browser-to-android/
Other
91 stars 45 forks source link

Orfox screen is immune to capture by screencast #73

Open ghost opened 6 years ago

ghost commented 6 years ago

This is quite bizarre. I wanted to capture the Orfox screen to supply it for bug https://github.com/guardianproject/Orweb/issues/72, but it could not be captured. I'm using the stock screencast tool that originally posted at https://code.google.com/p/androidscreencast/ but apparently it's no longer available. These are the commands I use to execute it:

typeset -a jars=(/usr/local/androidscreencast/*.jar)
java -cp "$(IFS=:; printf %s "${jars[*]}")" net.srcz.android.screencast.Main . &

That has always worked and still works. But exceptionally, as soon as I put the Orfox window in focus on the phone, screencast freezes on the previous screen and cannot display Orfox. When I exit Orfox, screencast works again.

It's a strange bug. Whoever solves this might want to keep good notes on what causes it, because this bug could actually become a security feature. Imagine an app prompting for some sensitive bit of info that should never be recorded.. an app could invoke the bug herein to deliberately block screen capture.