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

Search This thread

qwerp_

Senior Member
Oct 8, 2010
387
159
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.
 

Attachments

  • power.shamu.zip
    3 KB · Views: 16,529

jadams212510

Senior Member
May 29, 2009
203
29
Jacksonville FL
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.
 
Last edited:

EniGmA1987

Senior Member
Sep 21, 2010
2,064
805
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?

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?
 

qwerp_

Senior Member
Oct 8, 2010
387
159
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?

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)
 

Top Liked Posts