Log UserManagerService.removeUser stack trace

This is a temporary change to investigate a caller why a user profile gets removed while a test is running.

Bug: 159671700
Test: compiles, presubmit passes
Change-Id: I653ae4c73c0d4cdba09a664b60b1e2973c7ea09c
This commit is contained in:
Samuel Fufa
2020-10-13 09:44:54 -07:00
parent 2588dcb34d
commit b213800d51

View File

@@ -3859,7 +3859,7 @@ public class UserManagerService extends IUserManager.Stub {
*/
@Override
public boolean removeUser(@UserIdInt int userId) {
Slog.i(LOG_TAG, "removeUser u" + userId);
Slog.i(LOG_TAG, "removeUser u" + userId, new Exception());
checkManageOrCreateUsersPermission("Only the system can remove users");
final boolean isManagedProfile;