Skip to content

Add android:filterTouchesWhenObscured - #1107

Merged
davivel merged 1 commit into
masterfrom
add-filter-touches-when-obscured
Aug 19, 2016
Merged

davivel merged 1 commit into
masterfrom
add-filter-touches-when-obscured

Conversation

@LukasReschke

Copy link
Copy Markdown
Contributor

To prevent tapjacking like attacks we should explicitly enable this attribute. Fore more details see https://blog.lookout.com/look-10-007-tapjacking/ and https://developer.android.com/intl/en/reference/android/view/View.html#Security

Note that this does not affect all Android devices as for example Samsung started with Ice Cream Sandwich to mitigate this issue on OS level. This PR also does not offer a complete protection but already a pretty suitable one. (for example the ActionBar navigation in fragments still can be invoked, but account settings are at least protected now)

To test this I can recommend the https://github.com/mwrlabs/tapjacking-poc application.

Fixes https://github.com/owncloud/security-tracker/issues/165

@LukasReschke

Copy link
Copy Markdown
Contributor Author

@MTRichards @rperezb THX

@LukasReschke
LukasReschke force-pushed the add-filter-touches-when-obscured branch from 5e7c666 to 8a3ffee Compare August 23, 2015 12:48
@rperezb

rperezb commented Aug 24, 2015

Copy link
Copy Markdown

thanks @LukasReschke

@rperezb rperezb added this to the 1.8-current milestone Aug 24, 2015
@davivel

davivel commented Aug 24, 2015

Copy link
Copy Markdown
Contributor

The code seems fine 👍

But, note for @purigarcia: we should test if this flags interferes with the operation of the automatic regression tests in progress, testing with an emulator without UI.

@LukasReschke

Copy link
Copy Markdown
Contributor Author

Can anybody with an real Android phone test if this interferes with https://play.google.com/store/apps/details?id=com.touchtype.swiftkey&hl=en and https://play.google.com/store/apps/details?id=com.gau.go.launcherex&hl=en? – I did hear some rumor about that on Android 4.4.

(Note: reporter filed an independent issue about this to Google)

Much appreciated!

@tobiasKaminsky

Copy link
Copy Markdown
Contributor

@LukasReschke I have tried it with swiftKey.
I could add a new folder while typing with swiftKey.
But I am on 5.1 ;)

@LukasReschke

Copy link
Copy Markdown
Contributor Author

@tobiasKaminsky Are you by any chance using a Samsung device? Would be awesome to have this tested on a non-samsung device as well (with said applications) since Samsung has some custom patches which affect this shudder

Just wanting to ensure that this breaks nothing. If it does we can always go with an accepted risk :)

@masensio

Copy link
Copy Markdown

@LukasReschke no worries. @purigarcia will test this Pull Request with a non-samsung device and also its important to the automation tests. So she will do it.

@masensio

masensio commented Sep 7, 2015

Copy link
Copy Markdown

Hi,
I've tested Create a folder, rename a folder with Nexus 5 (4.4.2), Samsung Galaxy tab (4.2.2) and Nexus 9 (5.0.1) and SwiftKey and Launcherex, everything works properly until now.

I'm checking if the automated tests work fine. Cross fingers!

@davivel davivel modified the milestones: 1.8.1-next, 1.8-current Sep 15, 2015
@davivel

davivel commented Sep 15, 2015

Copy link
Copy Markdown
Contributor

As discussed internally, and due to problems with the automatic tests, this will be delayed to next release.

cc @MTRichards , @cmonteroluque , @rperezb

@LukasReschke

Copy link
Copy Markdown
Contributor Author

Let's consider this an accepted risk as of now then and document this as such. – This is aligned with other vendors such as Dropbox who decided the same.

@LukasReschke
LukasReschke deleted the add-filter-touches-when-obscured branch September 15, 2015 09:05
@davivel
davivel restored the add-filter-touches-when-obscured branch September 15, 2015 13:33
@davivel

davivel commented Sep 15, 2015

Copy link
Copy Markdown
Contributor

@LukasReschke , the problem I talked about is not related with the PR itself and needs to be fixed anyway.

I understand this is not critical, but can keep it around 'til the tests are fixed.

@davivel davivel reopened this Sep 15, 2015
@davivel davivel modified the milestones: 1.9.1-next, 1.9-current Nov 5, 2015
@davivel davivel modified the milestones: 1.9.2-next, 1.9.1-current Jan 29, 2016
@davivel davivel added this to the 1.9.3-next milestone Mar 22, 2016
@davivel davivel removed this from the 1.9.2-current milestone Mar 22, 2016
@davivel

davivel commented May 26, 2016

Copy link
Copy Markdown
Contributor

I'd recommend to delay this issue to have a fast bug-fixing release in 2.0.1. Far from being critical, IMHO.

cc @rperezb @MTRichards @cmonteroluque

@ghost

ghost commented May 26, 2016

Copy link
Copy Markdown

ok @davivel

@davivel davivel modified the milestones: 2.0.2-next, 2.0.1-current May 27, 2016
@davivel

davivel commented Jul 29, 2016 •

Copy link
Copy Markdown
Contributor

I'm very sorry to say this will have to go to be delayed one release. See some more details in #1750 (comment)

@davivel davivel modified the milestones: 2.2.0, 2.1.0 Jul 29, 2016
To prevent tapjacking like attacks we should explicitly enable this attribute. Fore more details see https://blog.lookout.com/look-10-007-tapjacking/

Note that this does not affect all Android devices as for example Samsung started with Ice Cream to mitigate this issue on OS level.

To test this I can recommend the https://github.com/mwrlabs/tapjacking-poc application.
@davivel
davivel force-pushed the add-filter-touches-when-obscured branch from dafaf63 to 2f4fdb2 Compare August 19, 2016 11:32
@davivel

davivel commented Aug 19, 2016

Copy link
Copy Markdown
Contributor

Rebased and applied to layouts added from the creation of the PR.

@davivel

davivel commented Aug 19, 2016

Copy link
Copy Markdown
Contributor

I can confirm that the flag doesn't prevent that automated tests interact with the UI. Tested with Espresso.

That should be enough to consider it tested. Do you agree, @jesmrec ?

@jesmrec

jesmrec commented Aug 19, 2016

Copy link
Copy Markdown
Member

right @davivel, the main problem would be that we can not perform the Espresso UI tests. If we can, go ahead

@davivel
davivel merged commit 58915ba into master Aug 19, 2016
@davivel
davivel deleted the add-filter-touches-when-obscured branch August 19, 2016 12:11
@davivel davivel modified the milestones: 2.1.1, 2.2.0 Aug 29, 2016
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.

6 participants