[No root] Finally, an app to enable native Lift To Wake (lockscreen) - OnePlus 7 Pro Themes, Apps, and Mods

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.

Love this feature thank you!

Works like a charm ? thanks.

Awesome! will give it try, hope there is no battery drain.

Great to see! Cheers

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.

_DoomD_ said:
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.
Click to expand...
Click to collapse
This is the app for you then. Also, you don't lose FOD at the lock screen.

bwx074 said:
This is the app for you then. Also, you don't lose FOD at the lock screen.
Click to expand...
Click to collapse
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.

_DoomD_ said:
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.
Click to expand...
Click to collapse
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.

bwx074 said:
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.
Click to expand...
Click to collapse
Do you use only face unlock?

_DoomD_ said:
Do you use only face unlock?
Click to expand...
Click to collapse
I have both Face Unlock and fingerprints set up, but I mainly use Face Unlock. Hence the need for this app

bwx074 said:
I have both Face Unlock and fingerprints set up, but I mainly use Face Unlock. Hence the need for this app
Click to expand...
Click to collapse
Weird!!! Something prevents the app from triggering face unlock automatically. Maybe because of the pop up camera firmware in 7 pro.

Pocket detection doesn't appear to work on OP7 Pro. ? Great work tho!

Krsmqn said:
Pocket detection doesn't appear to work on OP7 Pro. Great work tho!
Click to expand...
Click to collapse
My OP7T doesn't even have a pocket mode, so I can't test that for you. However, the original Lineage OS code had support for pocket mode. You could try to add it! :good:

It's cool. Kinda slow thought.

If I turn off the notification, will it keep running?
And thanks for it, really useful:good:

joechan said:
If I turn off the notification, will it keep running?
And thanks for it, really useful:good:
Click to expand...
Click to collapse
Yes, I've tested this.

Facing a minor problem. The app has to be opened up to function after deep sleep i:e in the morning. The battery optimization is off for the app.
Any ideas how to fix the issue.

Nice I love it. Great job sir. ?

_DoomD_ said:
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.
Click to expand...
Click to collapse
Same here.

Related

applock

Can some tell me if there is an option on mate9 to lock each apps apart from general fingerprint lock on the phone.
If not , which app would be the best?
smithinsundar said:
Can some tell me if there is an option on mate9 to lock each apps apart from general fingerprint lock on the phone.
If not , which app would be the best?
Click to expand...
Click to collapse
Yes, very easy to do. Same as the video below but instead of entering a lock code, it will use your finger print on Mate 9.
https://www.youtube.com/watch?v=DXGvv5iEXFw

Double tap to wake screen

Can anyone help.
I can't find the option to enable the double tap to wake the screen on my Xz Premium.
It's on my wife's Xz.
Thanks
dvdman2k said:
Can anyone help.
I can't find the option to enable the double tap to wake the screen on my Xz Premium.
It's on my wife's Xz.
Thanks
Click to expand...
Click to collapse
Yeah, seems like Sony has removed that feature on XZs and XZ Premium
I hope they add it back. I wonder if it's something to do with the 4k screen? Does anyone know if it's on the z5 premium?
Sent from my G8141 using Tapatalk
Hello dvdman2k,
Yes the double tap to wake is on the Z5P; however I found it something of a mixed blessing as was inclined to wake from unintentional screen touches while in a pocket (in the Style Cover SCR46 with the active window). Having just migrated to the XZP I'd noticed the feature's absence, but almost with some relief !
Regards,
Kevin
PS. Having now used the device for a week or so, I've changed my opinion. There are some occasions when the Double Tap function would be very good to have. Others when I'd prefer it turned off (eg. to prevent inadvertent activation while in a jacket pocket). So my conclusion is that I'd like to see the functionality re-instated in the ROM , but with a user-controlled toggle in Settings so that it is flexible to suit requirements.
kevinpwhite said:
Hello dvdman2k,
Yes the double tap to wake is on the Z5P; however I found it something of a mixed blessing as was inclined to wake from unintentional screen touches while in a pocket (in the Style Cover SCR46 with the active window). Having just migrated to the XZP I'd noticed the feature's absence, but almost with some relief !
Click to expand...
Click to collapse
Hi kevinpwhite
Coming from Moto Z I liked the feature where you could wave hand over the display and it would wake up & the finger. Print reader is on the front of the phone.
Sometimes I want to wake the screen without pressing the power Button.
Thanks
Sent from my G8141 using Tapatalk
I have double tap to lock using Nova Prime as my launcher. I don't use double tap to wake even when available because too often the screen starts up when the phone is in your pocket. However, I do wish that the fingerprint reader would unlock the phone WITHOUT having to actually press the button in just like most fingerprint readers work. Maybe they could make it work this way? In fact I am sure they could because when you are setting up your various fingers for access you do not have to push the button in. In fact if you accidentally do push it in while registering your prints it will close the screen and you have to start all over. SO I believe they could make it live/active just like any other fingerprint reader. How do we actually get these requests to Sony directly? I also wish they would unlink the ringtone volume from the notification volume.
Things might change in the next update.
Sent from my G8141 using Tapatalk
I miss double tap to wake/sleep
Sent from my G8141 using XDA-Developers Legacy app
This is a mandatory feature for me. I won't buy a phone without it. In fact, I pretty much need to have lift-to-wake and/or some kind of always-on-display. Pushing a power button to turn on your phone is so 2015.
greyhulk said:
This is a mandatory feature for me. I won't buy a phone without it. In fact, I pretty much need to have lift-to-wake and/or some kind of always-on-display. Pushing a power button to turn on your phone is so 2015.
Click to expand...
Click to collapse
Per my earlier comments, I was initially slightly relieved after the Z5P's tendency to turn on when not wanted; however, have now revised my opinion and think it would be very useful - but needs a user-selectable toggle to suit circumstances. This approach has been mooted to the Developers on the Sony Forum (they've acknowledged) and there is quite a strong voice of similar views from other users. The more strength of feeling, the more likely the feature will be re-instated in a F/W update.... :fingers-crossed:
Best regards,
Kevin
if it really bothers you, you can just buy a roxfit urban slim case for it like i have. After using a xiaomi mi5 with tap to wake , its hard going back to the old ways lol, plus less pressing on physical buttons, the longer the hardware lasts!
please bring back
Try this to wake: https://play.google.com/store/apps/details?id=com.jarsilio.android.waveup&hl=en
Install Nova Prime for double tap to lock.
Works great. There are other apps that do similar things in the play store. YMMV
You can always buy the official case that has a screen unlock feature. Because of it I no longer see the need of double tap to wake but it would be handy to have. I am annoyed this feature is excluded though.
Any suggestion for a simple app to do the double tap wake/lock?
Ive been using https://kernel.andro.plus/yoshino.html for DTW
Of course you need a Unlocked Bootloader
Now I'm using WaveUp, it's not like the double tap but works well for both locking and unlocking. And it has a "pocket mode" for unlock the display when you take it out from your pocket, very useful.

[SOLVED]Add functionality to fingerprint sensor

Hello,
We already can use the fingerprint sensor to open and close the notification panel and I would know if it is possible to use it for others utilities like for example touch the sensor to come Bach to the home screen.
jacquesallet said:
Hello,
We already can use the fingerprint sensor to open and close the notification panel and I would know if it is possible to use it for others utilities like for example touch the sensor to come Bach to the home screen.
Click to expand...
Click to collapse
Yes, we can. But we need an app like fingerprint gestures to do it. It's better with root.
absvini said:
Yes, we can. But we need an app like fingerprint gestures to do it. It's better with root.
Click to expand...
Click to collapse
Thanks!

Pocket unlock

Had anyone experienced their device being unlocked while in their pocket. Mine had several times, even some quick toggles have been changed from where I had them set. Apps opened, not just opened but digging into multiple button presses. Even today mi wife says I called her twice while phone in pocket. I use fingerprint security with pin backup and somehow phone is bypassing both of theses in my pocket. I've tried numerous times to replicate out of my pocket with no avail. I'm on stock TMobile no mods or rooted.
anoymonos said:
Had anyone experienced their device being unlocked while in their pocket. Mine had several times, even some quick toggles have been changed from where I had them set. Apps opened, not just opened but digging into multiple button presses. Even today mi wife says I called her twice while phone in pocket. I use fingerprint security with pin backup and somehow phone is bypassing both of theses in my pocket. I've tried numerous times to replicate out of my pocket with no avail. I'm on stock TMobile no mods or rooted.
Click to expand...
Click to collapse
It happened many times for me.. you might be having Smart Lock enabled... even then, proximity sensor on OnePlus 7 Pro isn't good.. but disabling smart Lock should fix your issue
Yeah I checked and smart Lock has always been off
I encountered the same issue today
anoymonos said:
Yeah I checked and smart Lock has always been off
Click to expand...
Click to collapse
Weird. Do you have fingerprint lock enabled?
Yes I do. From what I can find on the web previous OnePlus devices had a Pocket Mode which is not present on the 7 pro. But viewing T-Mobiles website under settings list it shows it is in the utilities section under settings. But not on my phone. I even searched for it with the search option at the top of settings menu.
I've also noticed that in settings under utilities there is a section called app locker, when I click on it, it asks for pin and then just resorts back to the utilities menu giving me no option to add apps to list. It does nothing.
anoymonos said:
Yes I do. From what I can find on the web previous OnePlus devices had a Pocket Mode which is not present on the 7 pro.
Click to expand...
Click to collapse
What Pocket Mode did (I had it on my 3T) was ignore screen touches, if the proximity sensor sensed an object nearby (assuming it was your pocket).
Even without Pocket Mode, a press on the screen, or movement of the gyro should only turn on the "ambient display" screen. You can't do anything from that screen except scan your fingerprint (which you confirmed you have fingerprint security enabled). So I'm puzzled how the butt dials or other things occurred in your pocket.
I suppose it's possible the power button is being accidentally pressed in your pants. Which brings up the lock screen - slightly different from the ambient display screen, as it gives access to the quick toggles, camera and voice assist. But it would seem like a strange combination of accidental power button pressing and screen touches happening in your pants, to make the things you mentioned happen. TWSS
Also the fingerprint is disabled whenever I take my phone out of pocket,It says too many attempts
Yes I also get that message
RISHI RAJ said:
Also the fingerprint is disabled whenever I take my phone out of pocket,It says too many attempts
Click to expand...
Click to collapse
Got this very message this evening along with flight mode being activated. Pocket mode badly needs to be reintroduced by OnePlus
Can anyone who has converted to international firmware confirm that pocket mode is or is not present in the settings under utilities?
anoymonos said:
I've also noticed that in settings under utilities there is a section called app locker, when I click on it, it asks for pin and then just resorts back to the utilities menu giving me no option to add apps to list. It does nothing.
Click to expand...
Click to collapse
Why don't you put on your pocket with the screen facing outside?
Sent from my POCOPHONE F1 using Tapatalk
Hank87 said:
Why don't you put on your pocket with the screen facing outside?
Click to expand...
Click to collapse
Because of the job that I have. I work with heavy steel sharp and blunt edges , not willing to chance my beautiful screen
anoymonos said:
Can anyone who has converted to international firmware confirm that pocket mode is or is not present in the settings under utilities?
Click to expand...
Click to collapse
Not to be found :good:
I've had the same issue, but temporarily solved or at least appears to have by turning off lift to wake
Never had lift to wake on as I assumed it would cause issues like this
Hey Guys what screen mode Do You use,I used Nature mode but it's on a warmer side & can't adjust sliders.Can I change through a custom kernel?
If you just look in the settings there is custom mode under natural that allows adjustment. Stock room stock kernel.
anoymonos said:
If you just look in the settings there is custom mode under natural that allows adjustment. Stock room stock kernel.
Click to expand...
Click to collapse
In advanced there is but nothing in nature mode

Accidental Fingerprint on the f2 pro

Whenever my hand lands on the fingerprint when iam holding the phone it vibrates and its annoying unlike my previous k20 pro i didnt face this problem there must be some toggle or settings that i can enable to remove this problem any suggestions ????? Thank you ....
BassilZ said:
Whenever my hand lands on the fingerprint when iam holding the phone it vibrates and its annoying unlike my previous k20 pro i didnt face this problem there must be some toggle or settings that i can enable to remove this problem any suggestions ????? Thank you ....
Click to expand...
Click to collapse
Add two fingerprints
Sent from my POCO F2 Pro using Tapatalk
Thaiban said:
Add two fingerprints
Click to expand...
Click to collapse
How is tha gonna stop accidental fingerprint detection and vibration??
The solution is to deactivate the fingerprint sensor ?
More seriously, there is no false detection, the sensor is doing its job, as soon as it feels a finger it tries to visualize the fingerprint, I do not see what is boring, If it wasn't so sharp it would be a nightmare to unlock the device !
coyot352 said:
The solution is to deactivate the fingerprint sensor
More seriously, there is no false detection, the sensor is doing its job, as soon as it feels a finger it tries to visualize the fingerprint, I do not see what is boring, If it wasn't so sharp it would be a nightmare to unlock the device !
Click to expand...
Click to collapse
No, you're wrong. It could be set to only vibrate when it detects a correct fingerprint. Which would be much more logical in my opinion. Or give the option to only activate the fingerprint sensor after power button is pressed.
popoyaya said:
No, you're wrong. It could be set to only vibrate when it detects a correct fingerprint. Which would be much more logical in my opinion. Or give the option to only activate the fingerprint sensor after power button is pressed.
Click to expand...
Click to collapse
the vibration is not there to validate the unlocking, something that we see anyway when the home screen opens, but to say that the analysis of the finger starts and that we are at the right place..
The last option might be fine for you, but personally it's a waste of time having to press a key before I can scan my finger, not sure Poco implements this In a future update ! ?
coyot352 said:
the vibration is not there to validate the unlocking, something that we see anyway when the home screen opens, but to say that the analysis of the finger starts and that we are at the right place..
The last option might be fine for you, but personally it's a waste of time having to press a key before I can scan my finger, not sure Poco implements this In a future update !
Click to expand...
Click to collapse
These options should be there for those who want them, they're easy to implement. Options are good I too find it annoying reaching into my pocket and having the phone light up and vibrate unintentionally.
Yeah noticed that also here where it rarely happend with my k20. It's just the new fingerprint placement.
popoyaya said:
These options should be there for those who want them, they're easy to implement. Options are good I too find it annoying reaching into my pocket and having the phone light up and vibrate unintentionally.
Click to expand...
Click to collapse
Yes indeed having more options is positive, I'm just saying that I don't think they will, as it's a pretty special option that very few require.
Normally if you are looking for the device in the pocket, it should not turn on or vibrate because it is deactivated by the proximity sensor, in any case mine remains as dead if I hide the part upper screen..
I hope for you that a function will emerge
For me, it is clear that the "old" hardware fingerprint sensor is much better than the modern software sensor that's imposed on new devices.
But we cannot change this, so yes : some options for lock screen vibration activation-deactivation are welcome. Me too don't like to feel the phone vibration every time I touch accidentally the screen trying to extract something of my pocket, including the phone.
BassilZ said:
Whenever my hand lands on the fingerprint when iam holding the phone it vibrates and its annoying unlike my previous k20 pro i didnt face this problem there must be some toggle or settings that i can enable to remove this problem any suggestions ????? Thank you ....
Click to expand...
Click to collapse
You can disable 'haptic feedback' in the settings, it will disable the fingerprint sensor's vibration too.
Lowxorx said:
You can disable 'haptic feedback' in the settings, it will disable the fingerprint sensor's vibration too.
Click to expand...
Click to collapse
But that disables vibration system wide doesn't it?
oroboros74 said:
But that disables vibration system wide doesn't it?
Click to expand...
Click to collapse
Yes, only for interactions like button press, gestures,etc.

Categories

Resources