OSDN Git Service

Fix crash in bindService due to uncleared binder identity
authorAmith Yamasani <yamasani@google.com>
Wed, 18 Nov 2015 18:56:04 +0000 (10:56 -0800)
committerAmith Yamasani <yamasani@google.com>
Wed, 18 Nov 2015 18:56:04 +0000 (10:56 -0800)
commit8fb0e1946bcd778332347f20bf2d39a639d5e74a
tree55df6a3633790470bb90fb70679aba9de69531c9
parent06993a33d986ff98a7f8994f5fc6cd060df47e0e
Fix crash in bindService due to uncleared binder identity

Clear the calling identity in retrieveServiceLocked before
doing the appop check. It probably needs to be cleared sooner
in general in retrieveServiceLocked(), but that might be a risky
fix. Making this smaller fix to keep it surgical for now.

Bug: 25759739
Change-Id: I66a5f8ef9b2d914181925fa344c3f2962030583d
services/core/java/com/android/server/am/ActiveServices.java