[Sprint HTC One (M7)] tdhite:
[UNOFFICIAL] Mods, Kernels, ETC.

KERNEL (Current):

NOTE: For PAC-5.x (Lollipop) we now build in the custom kernel. Therefore you need not download any custom kernel listed herein. They are for prior PAC-4.4.4 builds.

AFH Mirror: Custom Kernel 01/26/2015 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Maintenance Release -- synced with latest code bases as of date of build;

Use the latest TWRP or CWM/PhilZ Recovery to flash as the installer uses the new by-name partitioning;

Instructions for Setting Options

The initialization of the kernel for options, e.g., Sweep2Wake, all exist in /data/local/userinit.d. The 99-tdhk script sets the smartmax governor in place, the rest set kernel options. You can execute these any time and they will dynamically take effect.

Generally, to setup kernel option, look for lines similar to the following in the 01-* scripts:

echo "???" > some_file_path

whereas the rest just checks for the existence of that path, so just concentrate on the "echo" lines.

/data/local/userinit.d/01-f2s: this file controls flick to sleep. a "1" that exists where I put "???" in the above sample line turns it on at boot, "0" turns it off.

/data/local/userinit.d/01-f2w: this file controls flick to wake -- same rules as above.

/data/local/userinit.d/01-f2ws: this file controls flick to sleep / wake sensitivity. A value of "0" for the "???" is high sensitivity, "1" is medium, "2" is probably never gonna flick hard enough ( :) ).

/data/local/userinit.d/01-f2wt: this file controls the time delay between 'flicks' before the kernel will let an action occur. The value you use in place of the "???" is seconds. For instance, if you set echo "3" the kernel will delay 3 seconds before letting you flick2wake after a flick2sleep (or vice versa).

/data/local/userinit.d/01-h2w: this file controls the hardware nav buttons (back / logo / home). If you see the above, the same rules apply and I think the names are pretty obvious as to the files getting written.

/data/local/userinit.d/01-p2w: this file determines whether "pick to wake" is on. Replace the echo "0" with echo "1" to turn that on.

/data/local/userinit.d/01-pwp: this file determines whether pocket detection is on to prevent inadvertent wakes (while the phone is in a pocket or purse or similar). Same game: "1" means on, "0" means off.

data/local/userinit.d/01-therm: this file controls thermal protection. The four numbers being 'echo'ed are the centigrade temperatures at which the thermal control will reduce the maximum allowed CPU frequency.

/data/local/userinit.d/01-wvib: this file controls the amount of vibration that the phone will do when you 'wake' it by any of the mechanisms above. The higher the number echo'ed, the more vibration, up to 255 (which is stupid beyond belief).

IMPORTANT!!!

If you wipe Dalvik Cache, let the phone boot completely once, then reboot again (long story, but AOSP roms set a property on Android that triggers your selected 'performance' settings (e.g., performance, balanced, whatever), when you clear Dalvik that property set trigger runs rather late and the init.d script delay setup by this kernel to force smartmax onto the CPU cores might already have happened, so you end up with the old governors (ick!). Reboot and all should be fine.

Another option is to open a terminal window and 'su' to root privileges, then type "setprop sys.perf.profile 99". No need to reboot if you do this.

Yet another option is use a root privileges capable file browser, browse to and run the following as a script with root privileges: /data/local/userinit.d/99-tdhk. One minute later it will set set the property as in the above example for you.

Note: Removed the "Apps" category as all are now built in to the ROM.

Older Kernels:

AFH Mirror: Custom Kernel 11/06/2014 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Maintenance Release -- synced with latest code bases as of date of build;

Use the latest TWRP or CWM/PhilZ Recovery to flash as the installer uses the new by-name partitioning;

AFH Mirror: Custom Kernel 10/26/2014 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Maintenance Release -- synced with latest code bases as of date of build;

Most interesting add is FM radio support in the kernel;

Use the latest TWRp or CWM/PhilZ Recovery to flash as the installer uses the new by-name partitioning;

AFH Mirror: Custom Kernel 10/11/2014 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Maintenance Release -- synced with latest code bases (OmniRom TWRP, CyanogenMod CM-11) as of date of build.

Use the latest TWRP or CWM/PhilZ Recovery to flash as the installer uses the new by-name partitioning.

AFH Mirror: Custom Kernel 09/19/2014 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Maintenance Release -- synced with latest code bases (OmniRom TWRP, CyanogenMod CM-11) as of date of build.

Use the latest TWRP or CWM/PhilZ Recovery to flash as the installer uses the new by-name partitioning;

Custom Kernel 08/19/2014 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Maintenance Release -- synced with CM-11.0 latest code base as of date of build.

Use the latest TWRP or CWM/PhilZ Recovery to flash as the installer uses the new by-name partitioning;

Instructions for Setting Options

Custom Kernel 08/03/2014 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Maintenance Release -- synced with CM-11.0 latest code base as of date of build.

Use the latest TWRP (the tdhite 2.7.1.3 is good to go) or latest CWM/PhilZ Recovery to flash as the installer uses the new by-name partitioning;

Instructions for Setting Options

Custom Kernel 07/28/2014 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Fixed SmartMax governor bug that caused screen to stay off after some reboots.

Changed bootup and governor setting model to support Android property model (sets up /init.target.rc to import /init.tdhk.rc, the latter of which triggers to set smartmax whenever the Android property "ro.perf.profile" is set to "99".

Custom Kernel 07/16/2014 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Use TWRP 2.7.1.2 (tdhite) or 2.7.1.1 (official) at a minimum as this flash now uses the new by-name partitioning;

SmartMax Tweaks (better battery credit: Rad Ryan);

Powertop kernel config requirements;

Better startup handling to force SmartMax governor on all cores;

Rebased onto CM-11 MSM8960 Kernel Sources as of 07/16/2014;

Make Nandroid backup;

Flash in recovery after flashing ROM;

Use Trickster or Settings|Performance to set things. Trickster for the Wake options;

This kernel should work for any AOSP rom -- of course read the DISCLAIMER post.

Custom Kernel 07/05/2014 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Added SmartMax governor;

Rebased onto CM-11 MSM8960 Kernel Sources as of 07/05/2014;

Make Nandroid backup;

Flash in recovery after flashing ROM;

Use Trickster or Settings|Performance to set things. Trickster for the Wake options;

This kernel should work for any AOSP rom -- of course read the DISCLAIMER post.

Custom Kernel 06/18/2014 (s2w/s2s, f2w/f2s, logo2menu, etc. + add'l schedulers)

Rebased onto CM-11 MSM8960 Kernel Sources as of 06/18/2014;

Make Nandroid backup;

Flash in recovery after flashing ROM;

Use Trickster or Settings|Performance to set things. Trickster for the Wake options;

This kernel should work for any AOSP rom -- of course read the DISCLAIMER post.

Custom Kernel 06/07/2014 (s2w/s2s, f2w/f2s, logo2menu, etc.)

Added new IO Schedulers: fiops, bfq and sio.

Based on CM-11 MSM8960 Kernel Sources as of 06/07/2014;

Flash replaces kernel in existing boot.img -- so can be used with nightlies;​

Custom Kernel 06/06/2014 (s2w/s2s, f2w/f2s, logo2menu, etc.)

Based on CM-11 MSM8960 Kernel Sources as of 06/06/2014;

Flash replaces kernel in existing boot.img -- so can be used with nightlies.​

Custom Kernel 05/16/2014 (s2w/s2s, f2w/f2s, logo2menu, etc.)

Based on CM-11 MSM8960 Kernel Sources as of 05-16-2014;

Flash replaces kernel in existing boot.img -- so can be used with nightlies;

Make Nandroid backup;

Flash in recovery after flashing ROM;

Use Trickster or Settings|Performance to set things. Trickster for the Wake options;

This kernel should work for any AOSP rom -- of course read the DISCLAIMER post.​

Full "boot.img" with Custom Kernel 05/15/2014 (s2w/s2s, f2w/f2s, logo2menu, etc.)

Based on 05-15-2014 nightly sources;

Make Nandroid backup;

Flash in recovery;

Use Trickster or Settings|Performance to set things. Trickster for the Wake options.

THIS THE LAST BOOT IMAGE MODEL -- FOR THE FUTURE, ALL KERNELS WILL REPACK INTO EXISTING BOOT IMAGES DURING THE FLASH!​

Custom Kernel 05/11/2014 (s2w/s2s, f2w/f2s, logo2menu, etc.

Based on 05-11-2014 nightly sources;

Make Nandroid backup;

Flash in recovery;

Use Trickster or Settings|Performance to set things. Trickster for the Wake options.​

Custom Kernel 05/09/2014 (s2w/s2s, f2w/f2s, logo2menu, etc.

Based on 05-09-2014 nightly sources;

Make Nandroid backup;

Flash in recovery;

Use Trickster or Settings|Performance to set things. Trickster for the Wake options.​

Custom Kernel 05/06/2014 (s2w/s2s, f2w/f2s, logo2menu, etc.

Based on 05-06-2014 nightly sources;

Make Nandroid backup;

Flash in recovery;

Use Trickster or Settings|Performance to set things. Trickster for the Wake options.​