Skip to content

Latest commit

 

History

History
39 lines (37 loc) · 1.26 KB

File metadata and controls

39 lines (37 loc) · 1.26 KB

Setting up Paranoid Doze

To build Paranoid Doze you have to build the package in your device tree.

    # Doze
    PRODUCT_PACKAGES += \
        ParanoidDoze

In order to have the proper options showing up you have to define the device related sensors in your build properties

  • Set this to the name of the device specific pickup sensor to enable pickup gesture, if present.
    ro.sensor.pickup
  • Set this to the value which the pickup sensor reports when the device is picked up (lifted), if different from the default value (1).
    ro.sensor.pickup.value
  • Set this to the value which the pickup sensor reports when the device is put back down (lowered) after pickup, if supported.
    ro.sensor.pickup.lower.value
  • Set this to "true" if the device uses the proximity sensor to check for pocket and handwave gestures.
    ro.sensor.proximity

OEM Examples

These properties are not representative of all OnePlus/Xiaomi devices and serve as an example, you'll need to reconfirm which ones your device uses.

  • Oplus devices
    ro.sensor.pickup=android.sensor.tilt_detector
    ro.sensor.value=0
  • Xiaomi devices
    ro.sensor.pickup=xiaomi.sensor.pickup
    ro.sensor.pickup.lower.value=2
    ro.sensor.proximity=true