commit | 4766e2a776386489667e792f9c7d8c71131b78c1 | [log] [tgz] |
---|---|---|
author | Leandro Gracia Gil <leandrogracia@google.com> | Fri Jan 27 18:14:42 2017 -0800 |
committer | Alex Vakulenko <avakulenko@google.com> | Fri Feb 10 16:42:17 2017 -0800 |
tree | ec4579156ed9c4f49248553762c6dd44ff7e658f | |
parent | 748a163bf020d9eb53ce610fad90241fc52940af [diff] |
Introduce an API to verify trusted caller apps by UID. This CL introduces a new function to make sure only trusted packages like VrCore can make use of APIs that are not intended for app use. As a first example, this CL introduces a caller check for taking screenshots, although any sensitive APIs should implement similar checks. Package trust is defined by having the RESTRICTED_VR_ACCESS permission. Bug: 34474022 Change-Id: Ib5a242d1a4e17f59b178fb1465064043613ac369