Skip to content

Latest commit

 

History

History
39 lines (37 loc) · 1.27 KB

File metadata and controls

39 lines (37 loc) · 1.27 KB

Setting up XPerienceDoze

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

    # XPerienceDoze
    PRODUCT_PACKAGES += \
        XPerienceDoze

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

  • Set this to "true" if the device uses the proximity sensor to check for pocket & handwave gestures.
    ro.sensor.proximity
  • 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 it is 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

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.value=0
    ro.sensor.pickup=android.sensor.tilt_detector
  • Xiaomi
    ro.sensor.proximity=true
    ro.sensor.pickup=xiaomi.sensor.pickup
    ro.sensor.pickup.lower.value=2