commit | fec4cdf60e4ce6673e8a8af5594b624e23f1b51f | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Wed Nov 28 17:14:54 2018 +0100 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Nov 30 03:36:15 2018 +0000 |
tree | e4ef193824ad5826a082ad98896cadb1b5a2562c | |
parent | f1eaebfb9673fcf9c5dc6543651b720f760317c2 [diff] |
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 (cherry picked from commit bf2fbd5b68b82838e36eae085c82fa9165038ecd)