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

Commit 01fe2cd6 authored by Bo Ye's avatar Bo Ye Committed by robertchou
Browse files

Just print warning log instead of triggering WTF

TrustManagerService.getUserId() not trigger WTF when receiving
broadcast USER_STARTED with userID = 0.

Bug: 155946337
Test: manual, flash AGO ENG image and then boot up
Change-Id: Id2ea54d8f4c25bd97b6213c431d18e44908d7e11
parent b5d46d52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1469,7 +1469,7 @@ public class TrustManagerService extends SystemService {
            if (userId > 0) {
                return userId;
            } else {
                Slog.wtf(TAG, "EXTRA_USER_HANDLE missing or invalid, value=" + userId);
                Log.w(TAG, "EXTRA_USER_HANDLE missing or invalid, value=" + userId);
                return -100;
            }
        }