OSDN Git Service

Fix issue #11374840: adb shell am startservice not working any more
authorDianne Hackborn <hackbod@google.com>
Fri, 25 Oct 2013 21:34:18 +0000 (14:34 -0700)
committerDianne Hackborn <hackbod@google.com>
Fri, 25 Oct 2013 21:34:18 +0000 (14:34 -0700)
commitde0e83bc39b5585e700f6d3fa0adbc6fea10ae6d
tree4d5fdf6a86e9d4472037e06768ef14d0d9b35750
parentbe416248631c001b846297597b25be9bccc960eb
Fix issue #11374840: adb shell am startservice not working any more

The startService() and stopServie() calls had a redundant check for
the incoming user ID being valid, but with its own custom implementation
that doesn't match the normal handleIncomingUser flow.  In fact, for
both of these we are going to do handleIncomingUser anyway when we get
to retrieveServiceLocked(), so there was just no need for this.

Change-Id: I14409a03781a14a5f1a786aceb31dcc77efb062c
services/java/com/android/server/am/ActivityManagerService.java