[No root] Finally, an app to enable native Lift To Wake (lockscreen)

bwx074

Member
Mar 21, 2020
10
41
0
TL, DR. Where is the download?

github.com/xubowenhaoren/OPLiftToWake/releases

What does it do?

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.

Why do I want this feature?

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:

1. Pick up the phone and unlock with your finger at the Ambient Display. A two-step process.
2. 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.

How does it do this?

It listens to the native system sensor (`oneplus.sensor.pickup`). In my testing, it is very power efficient.

What phones does it support?

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 `Utils.java` with the correct sensor name:

```
mSensor = Utils.getSensor(context, mSensorManager, "oneplus.sensor.pickup");
```

How do I use it?

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.

Do I need Magisk for this?

No, it is root-free.

Credits

Much of the code is from the Lineage OS team.
Other code references can be found in the code comments.
 

_DoomD_

Senior Member
Jul 31, 2016
94
17
8
It is still a 2 step procedure when i use face unlock along with fingerprint.
It should be a command that when I pick up the phone -> auto open lockscreen -> auto trigger face unlock.
When i want to use fingerprint, just tap to wake ambient display and unlock with fingerprint.
I really dont want to sacrifice FOD to use only face unlock. :(
 

bwx074

Member
Mar 21, 2020
10
41
0
It is still a 2 step procedure when i use face unlock along with fingerprint.
It should be a command that when I pick up the phone -> auto open lockscreen -> auto trigger face unlock.
When i want to use fingerprint, just tap to wake ambient display and unlock with fingerprint.
I really dont want to sacrifice FOD to use only face unlock. :(
This is the app for you then. Also, you don't lose FOD at the lock screen.
 

_DoomD_

Senior Member
Jul 31, 2016
94
17
8
This is the app for you then. Also, you don't lose FOD at the lock screen.
You dont get my point, bro. When you use both FOD and face unlock, this app just show the lockscreen when pick up. Then u have to choose putting your finger on FOD or pressing the face icon button on top of the clock to unlock.
My desire is that the app will trigger the face unlock automatically in that situation.
 

bwx074

Member
Mar 21, 2020
10
41
0
You dont get my point, bro. When you use both FOD and face unlock, this app just show the lockscreen when pick up. Then u have to choose putting your finger on FOD or pressing the face icon button on top of the clock to unlock.
My desire is that the app will trigger the face unlock automatically in that situation.
I am using a OnePlus 7T. In my case, when the lock screen lights up, Face Unlock automatically works and my new messages reveal their content.
 

eyalsa

Senior Member
Aug 21, 2017
54
8
8
You dont get my point, bro. When you use both FOD and face unlock, this app just show the lockscreen when pick up. Then u have to choose putting your finger on FOD or pressing the face icon button on top of the clock to unlock.
My desire is that the app will trigger the face unlock automatically in that situation.

Same here.
:(