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
This commit is contained in:
Bo Ye
2020-05-06 18:03:02 +08:00
committed by robertchou
parent b5d46d5274
commit 01fe2cd61c

View File

@@ -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;
}
}