OSDN Git Service

getUserInfo fail when app trying to get self user info
authorTony Mak <tonymak@google.com>
Wed, 16 Mar 2016 14:49:52 +0000 (14:49 +0000)
committerTony Mak <tonymak@google.com>
Wed, 16 Mar 2016 14:51:45 +0000 (14:51 +0000)
commitb531d086a61077ebc6c756f2294754b1bdb81616
treec6772d937f48aa21c06e9e1c6ce2a0e3d6fd6a42
parentac9cac71aea0d3da3c62519cbd06201269a7ce1e
getUserInfo fail when app trying to get self user info

isSameProfileGroupLP return false when user has no profile, we should
check callingUserId != userId explictly.
Please notice that isSameProfileGroup handles this case, but we would like
to avoid the permission checking of isSameProfileGroup.

Change-Id: Ibb2d09eaaf7e8f099445490aa9ec287e86945125
services/core/java/com/android/server/pm/UserManagerService.java