[KERNEL] [Sense] [S2W/DT2W] Sweep2Wake/DoubleTap2Wake Kernel for Sense | 2014-08-09

kyasu

Senior Member
Sep 23, 2012
488
2,234
123
Tokyo
Can you share the toolchains you use?
I use an AOSP toolchain as described in Readme.txt.in the kernel source.

Readme.txt.:
Code:
defconfig file: m4_defconfig (arm-eabi-4.6)

Download:
=========
If you are not already using an AOSP toolchain (included in an AOSP build tree), download the corresponding official android toolchain for the arm-eabi specified above for this device:
        
git clone https://android.googlesource.com/platform/prebuilt  for 4.4.3
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6  for 4.6 
(use darwin-x86 in place of linux-x86 for mac)

Build the kernel:
=================
set the following environment variables:

export TOP= [where you installed the toolchain or top of android AOSP code base]
export PATH=$TOP/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH (use corresponding arm-eabi bin path)
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-

make [the defconfig file for this device above]
make clean  (for subsequent builds)
make -j4    (in this example 4 is the number of processors of your build machine)
 
  • Like
Reactions: htc_one_mini_m4

xXminiWHOOPERxX

Senior Member
Feb 17, 2014
2,980
4,957
0
Broadalbin
I use an AOSP toolchain as described in Readme.txt.in the kernel source.

Readme.txt.:
Code:
defconfig file: m4_defconfig (arm-eabi-4.6)

Download:
=========
If you are not already using an AOSP toolchain (included in an AOSP build tree), download the corresponding official android toolchain for the arm-eabi specified above for this device:
        
git clone https://android.googlesource.com/platform/prebuilt  for 4.4.3
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6  for 4.6 
(use darwin-x86 in place of linux-x86 for mac)

Build the kernel:
=================
set the following environment variables:

export TOP= [where you installed the toolchain or top of android AOSP code base]
export PATH=$TOP/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH (use corresponding arm-eabi bin path)
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-

make [the defconfig file for this device above]
make clean  (for subsequent builds)
make -j4    (in this example 4 is the number of processors of your build machine)
Thanks will be making my own kernel soon :)

Sent from my HTC One mini using Tapatalk
 

kyasu

Senior Member
Sep 23, 2012
488
2,234
123
Tokyo
Sense 6 for Asia version is available now.
I uploaded S2W/DT2W kernel for Sense 6 for Asia version (that uses Asia version ramdisk image).
 

XclusionNL

Member
Apr 4, 2011
23
2
0
Please create init.d script file like:

/system/etc/init.d/S99d2woff

Code:
#!/system/bin/sh
echo 0 > /sys/android_touch/doubletap2wake
Changing the setting from 1 to 0 and creating the suggested folder plus the S99d2woff file in that folder still doesn't make the setting survive a reboot, what am I doing wrong/what am I missing?

Also, do I need the patch files for anything?
 
Last edited: