* getDefaultSensor(type) returns the first sensor
and in case of capricorn it's wake-up one thus our
doze package wouldn't work. Passing `false` as a second
argument makes it work properly.
Change-Id: If73bc43bc166945d27b95513c4255ae5a5590849
As stated in ActivityManagerService:
The vast majority of broadcasts sent from system internals
should be protected to avoid security holes
Change-Id: I1dc989d9d132d40835ca8dbf277285eb88e30a58
* Fix Ambient Display's switchbar on/off text.
* Get rid of unnecessary receiver and all its related code,
permissions and meta-data.
* Keep the service running only if Doze is enabled system-wide along
with at least one of the additional Ambient Display features.
Change-Id: Id1f7f5e099f289a20f5757b7869e297e0ce74f7a
Revert "doze: Protect com.android.systemui.doze.pulse"
Revert "doze: Set different timings for wave and pocket detection"
Revert "doze: Cleanup"
Revert "Doze: Perform operations as current user"
As stated in ActivityManagerService:
The vast majority of broadcasts sent from system internals
should be protected to avoid security holes
Change-Id: I1dc989d9d132d40835ca8dbf277285eb88e30a58