Add some debug logging on user is not started properly

Bug: b/258724297
Test: n/a
Change-Id: I4faa938433a77eb4a79fb3bc350cc14e4b56099c
This commit is contained in:
Xiang Wang
2022-11-10 16:29:36 -08:00
parent 1d16af34f8
commit 6abf93e7b6

View File

@@ -883,6 +883,7 @@ public final class GameManagerService extends IGameManagerService.Stub {
@Override
public void onUserStarting(@NonNull TargetUser user) {
Slog.d(TAG, "Starting user " + user.getUserIdentifier());
mService.onUserStarting(user,
Environment.getDataSystemDeDirectory(user.getUserIdentifier()));
}
@@ -1047,6 +1048,8 @@ public final class GameManagerService extends IGameManagerService.Stub {
"com.android.server.app.GameManagerService");
if (!mSettings.containsKey(userId)) {
Slog.d(TAG, "Failed to set game mode for package " + packageName
+ " as user " + userId + " is not started");
return;
}
GameManagerSettings userSettings = mSettings.get(userId);