Only register debug hooks when requested
Always registering them was causing ANRs because of blocking binder calls, registering on a background thread also isn't ideal beacuse wake locks might be released and let the device sleep. Let's only register them when explicitly required. Change-Id: I52c45fcb38c277903ece662afdd5e6c35cf2aac4 Fixes: 119436283 Test: adb shell setprop debug.aod_brightness 1
Loading
Please register or sign in to comment