commit | a98b760fe8cb804c3827629a8106d4343fe84a24 | [log] [tgz] |
---|---|---|
author | Chad Brubaker <cbrubaker@google.com> | Wed Jul 08 20:06:28 2020 +0000 |
committer | Chad Brubaker <cbrubaker@google.com> | Fri Jul 10 19:55:02 2020 +0000 |
tree | 437d619c691b36672b46c3a10fdd433d2b2f60e4 | |
parent | 5c25605da050660009d6a4b0dbf13061249dc821 [diff] |
Move non-access methods to checkOp ClipboardService previously used noteOp for all clipboard operations, but this leads to the data being polluted by non-access methods like getClipDescription and hasPrimaryClip. Move those methods to checkOps instead. This also moves the app op check to the end to avoid logging in scenarios we would have rejected access anyways. Fixes: 160791050 Test: atest ClipboardManagerTest Change-Id: Ibb9299f918fcb5ef406f35405769099d179bdcd3