OSDN Git Service

Use noteOpNoThrow instead in AMS
authorTony Mak <tonymak@google.com>
Wed, 20 Sep 2017 20:23:48 +0000 (21:23 +0100)
committerTony Mak <tonymak@google.com>
Thu, 21 Sep 2017 09:16:34 +0000 (09:16 +0000)
commit58f2815272bc569cae1ef25342115336908dbf36
tree832a4ad56592595ce9ef31ec72b4aaf3097cda63
parent39198faea1b3b6b73f1db767be756ea2d1e68767
Use noteOpNoThrow instead in AMS

We just want a boolean result to tell whether a package has certain permissions,
we do not expect the check to throw SecurityException, so let's use
noteOpNoThrow instead.

Fixes: 65912167

Test: Disable Gmail, install a test app and run setPassword. No crash.
Change-Id: Ifc6e7fbbae1121bda329f0a291522af9698959db
services/core/java/com/android/server/accounts/AccountManagerService.java