Merge "Check for amInternal nullness on user.dump()" into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fc07949b31
@@ -3898,9 +3898,14 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
long now = System.currentTimeMillis();
|
||||
final long nowRealtime = SystemClock.elapsedRealtime();
|
||||
|
||||
final int currentUser = LocalServices.getService(ActivityManagerInternal.class)
|
||||
.getCurrentUserId();
|
||||
pw.print("Current user: "); pw.println(currentUser);
|
||||
final ActivityManagerInternal amInternal = LocalServices
|
||||
.getService(ActivityManagerInternal.class);
|
||||
pw.print("Current user: ");
|
||||
if (amInternal != null) {
|
||||
pw.println(amInternal.getCurrentUserId());
|
||||
} else {
|
||||
pw.println("N/A");
|
||||
}
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
synchronized (mPackagesLock) {
|
||||
|
||||
Reference in New Issue
Block a user