diff options
Diffstat (limited to 'keystore/permissions.cpp')
| -rw-r--r-- | keystore/permissions.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/keystore/permissions.cpp b/keystore/permissions.cpp index 1ba91d9..b297c59 100644 --- a/keystore/permissions.cpp +++ b/keystore/permissions.cpp @@ -68,7 +68,14 @@ static user_perm user_perms[] = { {AID_SYSTEM, static_cast<perm_t>((uint32_t)(~0))}, {AID_VPN, static_cast<perm_t>(P_GET | P_SIGN | P_VERIFY)}, {AID_WIFI, static_cast<perm_t>(P_GET | P_SIGN | P_VERIFY)}, + {AID_BLUETOOTH, static_cast<perm_t>(P_GET | P_INSERT | P_DELETE | P_EXIST | P_SIGN | P_VERIFY)}, + +#ifdef GRANT_ROOT_ALL_PERMISSIONS + // Allow VTS tests running as root to perform all operations + {AID_ROOT, static_cast<perm_t>((uint32_t)(~0))}, +#else {AID_ROOT, static_cast<perm_t>(P_GET)}, +#endif }; static const perm_t DEFAULT_PERMS = static_cast<perm_t>( |
