Skip to content

Commit e8e6c78

Browse files
committed
init
Initial
0 parents  commit e8e6c78

4 files changed

Lines changed: 55 additions & 0 deletions

File tree

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ignore out directory
2+
out/*
3+
4+
# ignore mk, xfiles and DS_Store
5+
mk_*
6+
xfiles/*
7+
.DS_Store*
8+
9+
# ignore backup and zip files.
10+
*.backup
11+
*.zip

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Double tap to wake
2+
3+
**Magisk Module**
4+
_A simple script that will enable double tap to wake during late boot._
5+
_Working on Nexus 7 (2013) and Nexus 10_
6+
7+
### Download
8+
Available in the releases tab. [Link](https://github.com/ipdev99/mModule_dt2w/releases)
9+
10+
### Install
11+
- Copy the zip file to the device.
12+
- Open Magisk Manager, select Modules and then Install from storage.
13+
- Reboot device
14+
15+
### Recent changes and/or To-Do
16+
- Work-In-Progress.
17+
- Re-work of script(s).
18+
- Edit/update this readme.
19+
- Cleanup.
20+
21+
### Notes
22+
- Feel free to use, change, improve, adapt.
23+
- Remember to share.
24+
25+
### Credits
26+
- The Android Community and everyone who has helped me learn through the years.
27+
- John Wu (@topjohnwu) for all things Magisk.

module.prop

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
id=dt2w
2+
name=DT2W
3+
version=Module
4+
versionCode=00001
5+
author=ip
6+
description=Simple script that enables double tap to wake on Nexus 7 (2013) and Nexus 10.

service.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/system/bin/sh
2+
3+
## DT2W
4+
## Simple script that will enable double tap to wake during late boot.
5+
## For Nexus 7 [2013] (Flo/Deb) and Nexus 10 (Manta)
6+
7+
if [ $(find /sys/ -name 'doubletap*' | sed '$!d') ]; then
8+
echo "1" >$(find /sys/ -name 'doubletap*' | sed '$!d');
9+
elif [ $(find /sys/ -name 'dt2w*' | sed '$!d') ]; then
10+
echo "1" >$(find /sys/ -name 'dt2w*' | sed '$!d');
11+
fi;

0 commit comments

Comments
 (0)