OSDN Git Service

Work on issue #36427964: SecurityException: Unable to find app...
authorDianne Hackborn <hackbod@google.com>
Tue, 11 Apr 2017 22:37:03 +0000 (15:37 -0700)
committerDianne Hackborn <hackbod@google.com>
Tue, 11 Apr 2017 22:39:16 +0000 (15:39 -0700)
commitc75587ed5b08c57b7119c424becbf2d80326accb
tree49d1309601f156edde89cf64527f7e3ffd6438e5
parent4a306894145340a4fe08b70b569eaa31641b38e6
Work on issue #36427964: SecurityException: Unable to find app...

...for caller android.app.IApplicationThread

Verify, if we don't find the caller on the LRU process list, that
it isn't actually on the main list.  (And if it is on the main list,
we can now recover from that.)  Also fix the error message when this
fails for startService() to print the correct calling pid.

Test: booted and ran

Change-Id: I0a81c679bb7e6eb15b854ed4b457d01b386d5dba
services/core/java/com/android/server/am/ActiveServices.java
services/core/java/com/android/server/am/ActivityManagerService.java