FORUMS

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

10 posts
Thanks Meter: 27
 
By bwx074, Junior Member on 21st March 2020, 09:54 PM
Post Reply Email Thread
OnePlus Lift To Wake

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.
The Following 15 Users Say Thank You to bwx074 For This Useful Post: [ View ] Gift bwx074 Ad-Free
22nd March 2020, 05:48 AM |#2  
Senior Member
Thanks Meter: 61
 
More
This is brilliant!! Appears to be working great... Will provide an update on power efficiency in a while
22nd March 2020, 08:04 AM |#3  
Junior Member
Thanks Meter: 0
 
More
How do I install
22nd March 2020, 05:39 PM |#5  
OP Junior Member
Thanks Meter: 27
 
More
Quote:
Originally Posted by Jdhal21

How do I install

github.com/xubowenhaoren/OPLiftToWake/releases
23rd March 2020, 11:05 AM |#6  
umair shaikh's Avatar
Senior Member
Flag mumbai
Thanks Meter: 95
 
More
Works so well with face unlock auto unlock and PIXEL AOD mod.


is there any way to make the screen lit up time response a bit faster ?
23rd March 2020, 05:08 PM |#7  
OP Junior Member
Thanks Meter: 27
 
More
Quote:
Originally Posted by umair shaikh

Works so well with face unlock auto unlock and PIXEL AOD mod.


is there any way to make the screen lit up time response a bit faster ?

I am afraid no. That's determined by the system sensor.
23rd March 2020, 05:59 PM |#8  
umair shaikh's Avatar
Senior Member
Flag mumbai
Thanks Meter: 95
 
More
Quote:
Originally Posted by bwx074

I am afraid no. That's determined by the system sensor.

Ahh. Good work tho
23rd March 2020, 10:58 PM |#9  
Member
Thanks Meter: 18
 
More
This works great. Any way to get it to run automatically after a reboot? I have to enable after every reboot.

Thanks, again!
24th March 2020, 12:41 AM |#10  
OP Junior Member
Thanks Meter: 27
 
More
Quote:
Originally Posted by GeneFitz23

This works great. Any way to get it to run automatically after a reboot? I have to enable after every reboot.

Thanks, again!

I've made efforts to enable this service after reboot. It wasn't successful, however. Oxygen OS has a strict whitelist of apps that may start automatically after a reboot. One way to work around this is to use Accessibility Service, but that could cause more battery drain. Lol, I think it's better to leave things this way.
24th March 2020, 12:28 PM |#11  
sudhakarcool's Avatar
Senior Member
Flag Delhi
Thanks Meter: 19
 
More
Very useful app, this was my most demanding functionality after bought OP7T
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes