Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6abf93e7 authored by Xiang Wang's avatar Xiang Wang
Browse files

Add some debug logging on user is not started properly

Bug: b/258724297
Test: n/a
Change-Id: I4faa938433a77eb4a79fb3bc350cc14e4b56099c
parent 1d16af34
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);