OSDN Git Service

Always throw a ConnectionException on error
authorTodd Kennedy <toddke@google.com>
Mon, 8 May 2017 23:09:42 +0000 (16:09 -0700)
committerTodd Kennedy <toddke@google.com>
Mon, 8 May 2017 23:09:42 +0000 (16:09 -0700)
commitbdf2a80816a1bcb58f09ee989a995983638aa894
tree7f2c49e5f09ba18b58fc5040b057e1028ca275d2
parent2cd2d23440470e12e24e8b406ca082f0586cb3d1
Always throw a ConnectionException on error

There was a single case where we would return a 'null' for the service
connect; if bindServiceAsUser() returned 'false'. Handle this condition
with an exception. Also make the exception descriptive enough so we
can add the correct resolution status to the resolution logs.

Change-Id: I6cee25adfa74745579577cb9726f8dd9c2950746
Fixes: 38131147
Test: Manual; restart the resolver and see the exceptions
services/core/java/com/android/server/pm/EphemeralResolverConnection.java
services/core/java/com/android/server/pm/InstantAppResolver.java