commit | 81a47cd688e5b3c140aac23e467a3ded83b36e9f | [log] [tgz] |
---|---|---|
author | Alex Chau <alexchau@google.com> | Tue Jan 02 16:49:14 2018 +0000 |
committer | Alex Chau <alexchau@google.com> | Tue Jan 02 16:55:28 2018 +0000 |
tree | 8c54e7ff20693deda3fe6e4d0054ce321c04640e | |
parent | dc4cb146315240441fc8d9c05fe8dd63370a7c57 [diff] |
Clear calling identity when calling getPackageInfo in AMS.isSystemUid - Without this, calling removeAccount in secondary user will crash, as the calling app may not have the permission required by getPackageInfo Bug: 65280359 Test: Remove account from profile owner is successful Change-Id: I4e5931732fd6797bb8429e8fa772022018e878c2