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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user