Deprecate (and log usage) of DPMS.getMainUserId()
To test it, enable verbose: $ adb shell setprop log.tag.DevicePolicyManager VERBOSE Watch logcat: $ adb logcat DevicePolicyManager *:s And trigger a date change: $ adb shell date 0531103025 It will show something like: 05-31 10:30:00.021 7355 7355 V DevicePolicyManager: getMainUserId() returning 0 at: 05-31 10:30:00.021 7355 7355 V DevicePolicyManager: java.lang.Exception 05-31 10:30:00.021 7355 7355 V DevicePolicyManager: at com.android.server.devicepolicy.DevicePolicyManagerService.getMainUserId(DevicePolicyManagerService.java:10166) 05-31 10:30:00.021 7355 7355 V DevicePolicyManager: at com.android.server.devicepolicy.DevicePolicyManagerService.-$$Nest$mgetMainUserId(Unknown Source:0) 05-31 10:30:00.021 7355 7355 V DevicePolicyManager: at com.android.server.devicepolicy.DevicePolicyManagerService$1.onReceive(DevicePolicyManagerService.java:1305) Bug: 420745998 Bug: 417943524 Test: see above Flag: EXEMPT logging changes only Change-Id: I08013990d3d071e2bba0cf39cdec3520cfe910fc
Loading
Please register or sign in to comment