Double Tap To Wake (K5 Plus) - Lenovo Vibe K5 Plus Guides, News, & Discussion

Another tweak I found to wake your Lenovo Vibe K5 Plus simply by double tapping the screen.
To activate this:
1. You must have rooted phone.
2. File manager with root access.
Method:
1. Go to root/sys/ANDROID_TOUCH.
2. Open doubletap2wake with any text editor.
3. Change the value "0" to "2".
4. Save.
5. Restart your phone.
6. Done
Hit "Thanks" if worked.

Ok thanks I will try it today evening
Sent from my Redmi Note 4 using Tapatalk

Nikish21 said:
Ok thanks I will try it today evening
Sent from my Redmi Note 4 using Tapatalk
Click to expand...
Click to collapse
Best of luck. :good:

Would it work with los stock kernel?

impulsar said:
Would it work with los stock kernel?
Click to expand...
Click to collapse
No idea. I am using vegito kernel v7

riazul.islam20 said:
No idea. I am using vegito kernel v7
Click to expand...
Click to collapse
Vegito kernel by default supports dt2w right?

impulsar said:
Vegito kernel by default supports dt2w right?
Click to expand...
Click to collapse
Might be. But by default it was inactivated.

Is it possible to add screen of gestures in lenovo vibe k5

Is it possible to lock device by double taping...Just like dt2wake??

jometzz said:
Is it possible to lock device by double taping...Just like dt2wake??
Click to expand...
Click to collapse
Why not?
Just double tap on statue bar

riazul.islam20 said:
Another tweak I found to wake your Lenovo Vibe K5 Plus simply by double tapping the screen.
To activate this:
1. You must have rooted phone.
2. File manager with root access.
Method:
1. Go to root/sys/ANDROID_TOUCH.
2. Open doubletap2wake with any text editor.
3. Change the value "0" to "2".
4. Save.
5. Restart your phone.
6. Done
Hit "Thanks" if worked.
Click to expand...
Click to collapse
It gets reset to 0 on reboot. Why?

afzalsayed96 said:
It gets reset to 0 on reboot. Why?
Click to expand...
Click to collapse
Because why not, but I found a solution.
Init.d support is needed. Probably on every custom rom this feature is working out of the box, but there is an easy way to get it on rooted stock.
How to get Init.d working? Follow this guide https://forum.xda-developers.com/showthread.php?t=1933849.
Download attached "enable_doubletouch2w.zip"(yep I f*** the filename ), extract it anywhere, copy extracted file to your phone internal storage (e.g sdcard).
Now, copy/move (whatever) it to the /etc/init.d., set correct permissions (same as other scripts in the directory) and voila. I used Root Explorer Classic.
So, on every reboot script will run and change value from 0 to 2 in /sys/ANDROID_TOUCH/doubletap2wake
Script itself:
#!/system/bin/sh
echo 2 > /sys/android_touch/doubletap2wake
Click to expand...
Click to collapse

Android_touch
There is no ANDROID_TOUCH folder.
I use pixel experience (8.1.0) ROM, 3.10.108 kernel(came with the ROM), solid explorer that you use.
Please help me!!

Goutham47 said:
There is no ANDROID_TOUCH folder.
I use pixel experience (8.1.0) ROM, 3.10.108 kernel(came with the ROM), solid explorer that you use.
Please help me!!
Click to expand...
Click to collapse
the same here, please help

Please someone who says the correct way to do the procedure in Rom AOSP or LineageOS in 7.1.2

Someone using dt2w on oreo? Please share info if there's a way to activate it under oreo

nonline said:
Because why not, but I found a solution.
Init.d support is needed. Probably on every custom rom this feature is working out of the box, but there is an easy way to get it on rooted stock.
How to get Init.d working? Follow this guide https://forum.xda-developers.com/showthread.php?t=1933849.
Download attached "enable_doubletouch2w.zip"(yep I f*** the filename ), extract it anywhere, copy extracted file to your phone internal storage (e.g sdcard).
Now, copy/move (whatever) it to the /etc/init.d., set correct permissions (same as other scripts in the directory) and voila. I used Root Explorer Classic.
So, on every reboot script will run and change value from 0 to 2 in /sys/ANDROID_TOUCH/doubletap2wake
Script itself:
Click to expand...
Click to collapse
bro...i m getting endless boot animation...what to do...??? plzz help

Related

re-compiled power.shamu.so to re-enable double tap to wake. (no root required)

This solution works for anyone that doesn't want to root their device.
however required a unlocked boot loader.
you can use TWRP file manager to replace below files. (hence not needing root).
(or someone can kindly create a flashable)
I have recomplied the power.shamu.so (replacing the missing codes from https://android.googlesource.com/device/moto/shamu/+/2084f7d0cf50baf394759d175bc28ad80cf7cace^!/ )
What this does is also re-enable the double-tap to wake.
to use,
backup a copy of
/system/lib/hw/power.shamu.so
then copy the attached power.shamu.so to /system/lib/hw/
change the permission of power.shamu.so to 0644
then boot your device. volia... you now have double tap to wake again.
Note. this has been tested with my own nexus 6.
Thanks. I think this would be better in themes n apps section though.
Thank you Sir! I'm going to remove the app and try this on Elix-R!
EDIT: Works great! Thank you again.
Which permissions are 0644?
smalltownbird said:
Which permissions are 0644?
Click to expand...
Click to collapse
User: R,W
Group: R
Other: R
Thanks that's what I thought I just wanted to make sure
Can I just flash the zip file that's in the beginning of the thread? Also would I need to re-install after wiping and flashing different roms or will it stay?
Figured it out.
No Worky on Slim
mr_clean5953 said:
No Worky on Slim
Click to expand...
Click to collapse
Working fine here. You probably never set permissions
suzook said:
Working fine here. You probably never set permissions
Click to expand...
Click to collapse
I did. And triple checked it
mr_clean5953 said:
I did. And triple checked it
Click to expand...
Click to collapse
Strange working here on beta 8
suzook said:
Strange working here on beta 8
Click to expand...
Click to collapse
I redownloaded and reloaded the file and its working fine now
Awesome
.....working like charm....
Sent from my Nexus 6 using XDA Free mobile app
Working great here!!! Thank you.
Stock ROM...
Sent from my Nexus 6 using Tapatalk
nice, although no root required makes no sense considering you have to copy and paste this to /system that requires root... or am i missing something?
BeansTown106 said:
nice, although no root required makes no sense considering you have to copy and paste this to /system that requires root... or am i missing something?
Click to expand...
Click to collapse
You can do it from recovery which has system access even if the ROM doesnt have root privileges.
What I am wondering though is if you can use fastboot to simply boot recovery without flashing it, and would you be able to do that command without unlocking the bootloader? Or does booting a custom system file require it to be unlocked?
BeansTown106 said:
nice, although no root required makes no sense considering you have to copy and paste this to /system that requires root... or am i missing something?
Click to expand...
Click to collapse
Idea is just like rooting.
You need to some how replace the power.shamu.so once, and thats it.
Some people dont like phones to be rooted, as some software are really particular with root such as 'good for ent' or banking app. Idea is so that these people can still have doible tap to wake.
Hence you require a unlocked boot loader.
Eg, i guess i can also repack the file to a flashable zip, then user can just flash from recovery.
Note, i found that your tap needs to be quite consistant (can't be too fast or slow. There is a specific window)
what about pocket detection? (proximity sensor)
antiochasylum said:
what about pocket detection? (proximity sensor)
Click to expand...
Click to collapse
Don't think there is such feature. One you Mentioned is ambient display which I choose to switch off. As I believe it might detect lots of false pick up.
Awesome! Works great!
Stock rom
Sent from my Nexus 6 using Tapatalk

[GUIDE] [NOUGAT] Viper4Android

//Thank you all for 30k+ Views. You're amazing guys//
You want Android 8 with Viper4android to?
Thread created check my profile...
Hi,
at first im not responsible for anything that happens to your phone OK?
Fine Let's Start.
If you are on cm skip all until the cm section
Supported kernel list and known errors/bugs see second post
Step 1
- Flash full Factory Images.
- Install TWRP, remember you have to be decrypted.
Step 2
- Install Android 7 ROM by tupac4u / or any other rom / or leave stock
- Reboot //if nessesairy
Step 3
- Flash ElementalX's N Kernel.
- Flash Viper5.0_Stock.zip in Recovery / or any other viper
- Reboot.
Step 4
- Install driver.
- Open File Explorer and delete /system/vendor/etc/audio_effects.conf
- Reboot.
Step 5
- Set enforcing to permissive (You have to do it at every Reboot!).
- In Viper open Menu->FX-CompatibleMode->yes // you can try without, it may work
- Enjoy Viper.
CM Section
1. Flash arise sound mod ( link down below )
2. And IMPORTANT flash super su
3. Disable audio fx and reboot
SPOTIFY FIX
1. Download that file
https://drive.google.com/file/d/0BxyY1q0qeeeEeUFGT3JHeDZLZkE/view
2. Place it under /system/etc
3. Reboot
PURE NEXUS ONLY WORKS WITH BUILD 10/25!!!
If it worked leave a reply.
Alternative Download link for ARISE Viper here:
http://forum.xda-developers.com/android/software/r-s-e-sound-systems-auditory-research-t3379709
Unsupported Rom/Kernel
Kernel:
- Stock
- Jolla
ROM:
F.A.Q.
Q: Spotify isn't working with that
A: Force enable Viper4Android and turn FX Mode to compatible. Then restart both applications.
Q: Why ElementalX Kernel?
A: That's the only Kernel who works with Viper except Stock kernel. Elite Kernel may also work but it hasent been updated since the Dev Previews.
Q: Is that also working with the stock rom?
A: Yup. Also works with (nearly) any stock based ROM.
Is there a definite way of checking if it's working? Not by sound?
Yes, just check driver status in viper when something is playing in the background. If it says 'processing', then it's working.
Btw, why would I need custom kernel for viper?
Sent from my Nexus 5X using Tapatalk
how to set permissive mode permanently?
Nightshadow931 said:
Yes, just check driver status in viper when something is playing in the background. If it says 'processing', then it's working.
Btw, why would I need custom kernel for viper?
Click to expand...
Click to collapse
I found that it isn't working on jolla Kernel and Stock.
Did you enable viper in app itself?
Not sure, but maybe you need to enable it on order to see 'processing'..
Did the installation of driver went well?
Sent from my Nexus 5X using Tapatalk
enzippo said:
how to set permissive mode permanently?
Click to expand...
Click to collapse
use a file exlorer with root privileges like es or root explorer and go to /etc/init.d directory, create a file and named "08setperm" (without quotes) and add the below lines in the file and save it..
#!/system/sh
setenforce 0
And give full permission (rwxrwxrwx)
reboot and you should be good. if for some reason your init.d script doesn't launch then download and install universal init.d tool and enable it.
Nice that someone is trying to get Viper4Android to work on Nexus 5x with Android 7.0 (Nougat). Sadly it does not work, tried your way but it does not enable me to get Viper4Android to work in Spotify.
Selinux is in permissive, your viber4android package is in place, audio_effects.conf removed, Android 7 by tupac4u installed and complete factory image installation before all this. No go..
Viper4android driver status does not complain but processing is always "no".
Try some other app like play music, v4a won't work on all apps if they have their own equalizer.
Sent from my Nexus 5X using Tapatalk
Blinkiz said:
Nice that someone is trying to get Viper4Android to work on Nexus 5x with Android 7.0 (Nougat). Sadly it does not work, tried your way but it does not enable me to get Viper4Android to work in Spotify.
Selinux is in permissive, your viber4android package is in place, audio_effects.conf removed, Android 7 by tupac4u installed and complete factory image installation before all this. No go..
Viper4android driver status does not complain but processing is always "no".
Click to expand...
Click to collapse
For those who want to use Viper4android with Spotify change fx compatible Mode to compatible in Viper settings. Then Open Spotify and go to Settings->Equalizer that should bring up Viper. Select Force enable and close Viper and Spotify. Open up both again and Boom Viper is there.
How find Android 7 by tupac4u ??
EDIT.
I found him already
Did someone get it working with stock rooted ROM?
noidea24 said:
use a file exlorer with root privileges like es or root explorer and go to /etc/init.d directory, create a file and named "08setperm" (without quotes) and add the below lines in the file and save it..
#!/system/sh
setenforce 0
And give full permission (rwxrwxrwx)
reboot and you should be good. if for some reason your init.d script doesn't launch then download and install universal init.d tool and enable it.
Click to expand...
Click to collapse
Idk if this will work on the new version, but this zip I've attached here sets the previous ElementalX-N5x-1.17 kernel permissive permanently. I'm not on nougat yet, waiting for Xposed.
trhacker01 said:
Idk if this will work on the new version, but this zip I've attached here sets the previous ElementalX-N5x-1.17 kernel permissive permanently. I'm not on nougat yet, waiting for Xposed.
Click to expand...
Click to collapse
In gonna give it a try
Nightshadow931 said:
Did someone get it working with stock rooted ROM?
Click to expand...
Click to collapse
Me not
Thargorsson said:
In gonna give it a try
Click to expand...
Click to collapse
Nope it don't works
Thargorsson said:
Nope it don't works
Click to expand...
Click to collapse
thats how im running right now, just checked. only with the universal init.d though
noidea24 said:
thats how im running right now, just checked. only with the universal init.d though
Click to expand...
Click to collapse
Ur saying that permissive zip works with the universal init.d?
trhacker01 said:
Ur saying that permissive zip works with the universal init.d?
Click to expand...
Click to collapse
As long as the zip creates/places a file in the init.d to change selinux then i guess it should work

Custom Rom's Mods

these are few collection of mods that do not have a settings menu to enable or disable them,...
so flash them manually until they can be part of the rom
WARNING: works only in custom roms
Update: CM added support for swapping back and menu buttons from cm-13.0-20161112-NIGHTLY-gemini.zip
==================================
Mods
==================================
1) disable finger print wakeup
2) enable finger print wakeup
3) Xiaomi keys layout(Left Button-> Menu & Right Button-> Back)
4) Android stock keys layout(Left Button-> Back & Right Button-> Menu)
==================================
Downloads: Here
==================================
==================================
Workings
==================================
Enabling/Disabling the FingerPrint Wakeup
Source: github
Mod Location: /sys/devices/soc/soc:fpc_fpc1020/enable_wakeup
Code:
[B]Values:[/B]
1 = Enable
0 = Disable
Changing The Keylayout
Source: github
Mod Location: /system/usr/keylayout/synaptics_dsx.kl
Code:
[B]Xiaomi keys layout:[/B]
key 139 APP_SWITCH VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 143 WAKEUP
[B]Android stock keys layout:[/B]
key 139 BACK VIRTUAL
key 102 HOME VIRTUAL
key 158 APP_SWITCH VIRTUAL
key 143 WAKEUP
Thanks
Works on xiaomi.eu Roms?
alessandro_masci said:
Works on xiaomi.eu Roms?
Click to expand...
Click to collapse
Yes, but actually that mod for non-miui rom, where some Setting not available on non-miui roms
Sent from my MI 5 using Tapatalk
Uhm.. just flashed in twrp the xiaomi layout zip.... but no change. Not working for me.. cm13 here
Henkl said:
Uhm.. just flashed in twrp the xiaomi layout zip.... but no change. Not working for me.. cm13 here
Click to expand...
Click to collapse
Same here .. Error when flashing..
FrankRr said:
Same here .. Error when flashing..
Click to expand...
Click to collapse
folder structure inside .zip is flashable but there is shouldn't have a folder before /Meta-INF and /System. so that's why it give error message, just extract it and replace manually.
Henkl said:
Uhm.. just flashed in twrp the xiaomi layout zip.... but no change. Not working for me.. cm13 here
Click to expand...
Click to collapse
FrankRr said:
Same here .. Error when flashing..
Click to expand...
Click to collapse
arif_kholid said:
folder structure inside .zip is flashable but there is shouldn't have a folder before /Meta-INF and /System. so that's why it give error message, just extract it and replace manually.
Click to expand...
Click to collapse
Ohh yea my bad!!! Will change them....
EDIT: changed and uploaded new zips
chiragkrishna said:
Ohh yea my bad!!! Will change them....
EDIT: changed and uploaded new zips
Click to expand...
Click to collapse
Thanks. Now flashed (Xiaomi keyboard) and all OK. Buttons have changed as they are supposed to..
Yeah it works now. Thanks!
Update: CM added support for swapping back and menu buttons from cm-13.0-20161112-NIGHTLY-gemini.zip
chiragkrishna said:
Update: CM added support for swapping back and menu buttons from cm-13.0-20161112-NIGHTLY-gemini.zip
Click to expand...
Click to collapse
Hi.
Updated to latest nightly but can't find that option...
Where did u find it? In Settings-Buttons there isn't option to swap...
Edit: Find it...
Settings-Additional buttons
Thanks
Enable fingerprint for stock MIUI works?
thanks bro... it's perfect, i follow the instruction and do it myself with explorer
Fingerprint Wakup works for me. Using miui 8.3 from xiaomi.eu.
Evil_Kreis said:
Fingerprint Wakup works for me. Using miui 8.3 from xiaomi.eu.
Click to expand...
Click to collapse
Hi, what I need to flash to make this mod works on miui 8.3 from xiaomi.eu, too?
Odoslané z Mi5
I just changed the file but it's not permanently. I don't know if there is a way to but if you figured let me know.
Thaks for tutorial. The tutorial makes Xiaomi MI5 more fascinating :silly::silly::silly::silly:
FingerPrint Wakeup resets after reboot
chiragkrishna said:
Enabling/Disabling the FingerPrint Wakeup
Source: github
Mod Location: /sys/devices/soc/soc:fpc_fpc1020/enable_wakeup
Code:
[B]Values:[/B]
1 = Enable
0 = Disable
Click to expand...
Click to collapse
@chiragkrishna, I tried flashing the zip to enable FingerPrint Wakeup but it did not work. So I updated the file as per the instructions. I guess that's because the zip file has nothing inside the system folder. It works but the value is reset to 0 after reboot. Any permanent solutions?
Update:
Although I tried the hard way by using Init.d script to reset the value to 1 at every boot, it didn't work.
Then I tried using Tasker to set the value, it worked perfectly.
But then I found a video with an easier solution using Kernel Adiutor.
Here's the Youtube link: Tutorial How to Set Xiaomi Mi5 Fingerprint Always On

L-OS Can't turn of double tab to wake

I've installed the newest Lineage OS, but I want to turn of "Double Tab to wake". But after one day, it automatically turned on again, but without showing it in the settings (showed that it's turned of). Now I have the question if there is any possibility to turn it off?
Thanks,
Philipp
The setting does not stick after the reboot. You have to enable it and disable it again. Then it should be really disabled until the next reboot.
Okay, thank you. I hope they will fix it soon
I think it may be because you flashed a custom kernel.
Some custom kernels break dt2w
barni090 said:
I've installed the newest Lineage OS, but I want to turn of "Double Tab to wake". But after one day, it automatically turned on again, but without showing it in the settings (showed that it's turned of). Now I have the question if there is any possibility to turn it off?
Thanks,
Philipp
Click to expand...
Click to collapse
Until they fix this you can use a script to disable it. Use init.d or any automate app to run the script at boot. It'll turn off the tap2wake.
#!/system/bin/sh
tap2wake=/proc/touchpanel/double_tap
echo "0" > $tap2wake
could you maybe tell me how to use this command? Sorry for that, but I am new in that and don't know what to do
barni090 said:
could you maybe tell me how to use this command? Sorry for that, but I am new in that and don't know what to do
Click to expand...
Click to collapse
Since you're new to this I'll give you the easiest way to do this.
1. Download the script from the link given below. (or use my last post's code to make a script yourself)
2. Put it in a folder in sdcard.
3. Install 'init.d scripts support' app from play store.
4. Open the app & tick 'try to aquire root privileges'. Grant root access.
5. Tick 'run scripts at boot time' option.
6. Set 'execution delay' to a desired time.
7. Select the folder you put the downloaded file.
Tap2wake disable script - http://www.mediafire.com/file/r4h5z8p1ez21jpi/tap2wakedis.sh
Done. Now every time you reboot, app will execute the scripts in the selected folder which contains our script to disable double tap2wake.
You can always execute the script using ini.d, su.d, tasker, macrodroid etc.
I have some problems with activating it, I've put the error message as attachment maybe you could look over it.
barni090 said:
I have some problems with activating it, I've put the error message as attachment maybe you could look over it.
Click to expand...
Click to collapse
I forgot to change the line ending to Unix. I edited the post check it again.
It's still not working, I used another app and it's telling me permission denied. But thank you for your help
barni090 said:
It's still not working, I used another app and it's telling me permission denied. But thank you for your help
Click to expand...
Click to collapse
Try the link again this time it should work. lol. I've added /bin/bash not /bin/sh. old habits. If you're using a terminal issue 'su' first then 'sh SCRIPT_PATH'.
worked now Thanks so much :victory:

Guide to install 19s Remote Control app on any rom..

Hello guys,
First of all I want to thank @rohitjaiswal for providing the 19s ported remote control apk file.
1) For LOS based roms.
Flash this file first.
https://forum.xda-developers.com/le-2/themes/leeco-letv-remote-control-app-t3605440.
Make sure your Selinux mode is set to permissive for it to
work.
After flashing the remote control zip.
Install ES file explorer and enable root access mode.
Tap on 3 bars on the top left side on ES file explorer.
Tap on Local
Then go to
Device > system > app >
LetvRemoteControl_preinst
Replace the apk in the folder with this apk.
https://drive.google.com/file/d/0B68NeYfjQVRrOEpzN0NaS2ZkYjg/view?usp=drivesdk
2. For EUI/MiUi/Flyme based roms.
Install ES file explorer and enable root access mode.
Tap on 3 bars on the top left side on ES file explorer.
Tap on Local
Then go to
Device > system > app >
LetvRemoteControl_preinst
Replace the apk in the folder with this apk.
https://drive.google.com/file/d/0B68NeYfjQVRrVVAzYTN3c3hjODQ/view?usp=drivesdk
Grt! Will test and report back!
It's working for me without the second step, what's the modified apk for?
SCrid2000 said:
It's working for me without the second step, what's the modified apk for?
Click to expand...
Click to collapse
The STB options are in chinese, the modified apk fixes that.
So it is not possible to install on lineage without root? Because I would have to do this for selinux to permissive or not?
FridrufHau said:
So it is not possible to install on lineage without root? Because I would have to do this for selinux to permissive or not?
Click to expand...
Click to collapse
It needs to be set in permissive to work.
You can flash Overdose Kernel for Le 2. It automatically changes Selinux to permissive.
Ah ok very interesting. I'm not into this kernel thing right now. Could you please tell if it is not causing anything to get more unstable and whether it is not needing more battery
Kind regards
FridrufHau said:
Ah ok very interesting. I'm not into this kernel thing right now. Could you please tell if it is not causing anything to get more unstable and whether it is not needing more battery
Kind regards
Click to expand...
Click to collapse
Are you saying about Overdose kernel. With that kernel it increases battery life without affecting performance.
Rk585 said:
Are you saying about Overdose kernel. With that kernel it increases battery life without affecting performance.
Click to expand...
Click to collapse
Ok ok, thank you, I will give it a try - so it is a overdose kernel without anything overdosed? I think I have to check translation ...
Maybe they should have called it normalize kernel, this would have frighten me a bit less
FridrufHau said:
Ok ok, thank you, I will give it a try - so it is a overdose kernel without anything overdosed? I think I have to check translation ...
Maybe they should have called it normalize kernel, this would have frighten me a bit less
Click to expand...
Click to collapse
It's just a name. Don't worry.

Categories

Resources