English | 中文
https://github.com/xubowenhaoren/OPLiftToWake/releases
This is a simple app to enable Lift To Wake for OnePlus 7 series. It is not the Lift To "Ambient Display" in the stock Settings App; it enables the true Lift To "Lock Screen" like other phones.
You've probably already known that OnePlus, in Android 10, reveals the notification content on the lock screen after Face Unlock. But to see those notifications, you either need to:
- Pick up the phone and unlock with your finger at the Ambient Display. A two-step process.
- Pick up the phone and press the power button. Again, a two-step process.
Now with the app, you can pick up the phone and the lock screen immediately shows up.
It listens to the native system sensor (oneplus.sensor.pickup
). In my testing, it is very power efficient.
I have tested this on a OnePlus 7T with Android 10. It should also work with other OnePlus 7 series.
Note that for earlier OnePlus phones, there is also a pickup sensor but with a different name.
If you want this app to work with earlier OnePlus phones, you should try replacing this line in PickupSensor.java
with the correct sensor name:
mSensor = Utils.getSensor(context, mSensorManager, "oneplus.sensor.pickup");
Change the sensor above to "oneplus.sensor.op_motion_detect" to support OnePlus 8/9 series.
You probably want to turn off the Ambient Display first.
After installing the app, turn on the "Lift To Wake" toggle. You should also consider turning off the battery optimization of the app for a more consistent background performance. Follow a guide here.
No, it is root-free.
Much of the code is from the Lineage OS team. Other code references can be found in the code comments.