yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- CleanSlate Kernel 2.6.2 -

- Companion and Configuration apps -

...thus the Unrooted Kernel Era ruled on...​

Updates:

- Fixing AOSP ROM support for 2.6.x line, Companion / Configuration app should now work fine on AOSP roms.

- Fix phone model detection for AOSP roms and Configuration app.

Download:

Kernel Installer (and contains Apps, copies to sdcard, pls install after reboot):

https://www.androidfilehost.com/?fid=817906626617951831

Companion APK 1.4.4

https://www.androidfilehost.com/?fid=962021903579497646

or PlayStore for premium version https://play.google.com/store/apps/details?id=org.cleanslate.csservice

Configuration APK 1.1.2

https://www.androidfilehost.com/?fid=889964283620771338

or PlayStore for premium version rolling out right now... https://play.google.com/store/apps/details?id=org.cleanslate.csconfig

Don't forget that as soon as you Save in the CS Configuration app: file /sdcard/uci_user.cfg will be written, and all feature settings covered in the config app will then take precedence over any init.d scripts or sysfs based application settings (like LeeDroid tweaks, EXKM).

All non conflicting sysfs settings will still work as usual.

If you want to revert, just uninstall Configuration app, and delete /sdcard/uci_user.cfg file.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] zx2c4:
Could you send the output of:

echo $PATH
ls /system/xbin
cat /proc/version
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kelleci:
Here i attached screenshot of output:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chidi_duru:
Unable to disable vibration on the latest kernel version. Using EX kernel manager. I was able to disable it on your previous kernel. Now, the fingerprint button vibrates whenever I touch it.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Question: have you downloaded the CleanSlate Configuration app and saved the settings?

If you do that all settings handled by the Configuration app will take precedence, as long as the app is used and /sdcard/uci_user.cfg exists. And the default value there for fp vibration and fp unlock vibration is not set to off (0)

(You can set fingerprint vibration off in the CleanSlate Config app as well)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
Well first boot wifi and lte still have some sort of error. Right before chrome crashes every websites http in the chrome browser turns red then chrome crashes. Also browser won't even try to load websites. Also on first boot logcat won't load. I tried advanced tools and a root based logcat app. (A logcat root). On second boot logcat works until I try to use chrome. Then it goes blank and won't load. I'm sorry I couldnt get logcats.

Also games that require internet crash. [MENTION=3088420]tbalden[/MENTION].
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hmm, using Los nightly, everything fine so far...

Have you tried cleanslate 2.4 ? Did it produce the same issue?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Sorry, so now I realize aosip is Oreo already, right?

You on that?

That is not supported by this kernel. That would take much more work.

At some point I might try that.

For now only nougat aosp
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
Aosip isnt ready for me to use daily. I'm using nougat. Sorry if I didnt say that.

---------- Post added at 01:23 AM ---------- Previous post was at 01:22 AM ----------

Sorry I'm not a sense rom type of person. I prefere a pure aosp type of rom.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
You said, I just forgot. Sorry

Well i mean lineage os which is aosp.

Anyway I will check aosip then in a bit.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hmm aosip 7.1.2 latest is from August.

I've never tested with such an old build of aosp pme tree.

Are you using a build from August? [MENTION=7463280]Dlind[/MENTION]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] zx2c4:
That looks to me like the recovery flasher didn't do anything. Did you flash a ROM over on top of it afterwards or something? If not, it might be useful to try flashing that zip again, and send your /tmp/recovery.log file if things still don't work, to see what happened.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chidi_duru:
Okay. Uninstalled EX Kernel manager. Just reinstalled 2.6.2 with companion and configuration apks. Went into the configuration app and adjusted the fp settings as you suggested - no vibrations now. Also, I notified that this new kernel might be a little snappier than 2.4 version. Not sure what you did differently. Nonetheless, I thank you for your great work.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] sgtslaughter64:
I am using Leedroid 121 and after updating the kernel, I am constantly having problems with the SD card mounting and unmounting at random. I've tried re-installing the ROM, full wiping , re-installing, and still having the problem. Any ideas?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
Yeah I'm using the 8-25 build I would be using rr remix but I'm not sure thats any newer.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Don't know yet, but

Is reverting to stock kernel or earlier kernel version help the issue?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] sgtslaughter64:
Sadly no.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
So one last thing.

Have you tried this kernel version with aosip?

Cleanslate 2.4.2 -- For Sense Bases 2.28 - 2.51 // AOSP Nougat (LOS / RR...) installer for TWRP:

https://www.androidfilehost.com/?fid=962021903579488498

Is it any better?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Hmm, thing is no sdcard driver related change was introduced in the new versions.

Have you tried with another sdcard? Or if no other card at hand, removing and cleaning a bit then try it again?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] sgtslaughter64:
Ive tried both... Same result
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
:( then it might be hw contact issue of the slot I'm afraid that might need repair. I have no better explanation
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Cool, thanks for the feedback!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kelleci:
I tried again but still bump.Here i attached recovery log.I think recovery cannot write wg and wg-quick binary.

Regards.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Probably arch architecture detection is not matching for some reason.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] zx2c4:
Thanks for the helpful log file. I've fixed the issue here: https://git.zx2c4.com/android_kernel_wireguard/commit/?id=489feff4f35682eb99c60aeb1446bda789889947

I've uploaded a new zip to: https://data.zx2c4.com/android-wireguard-tools-flashable.zip

I haven't tested this, as I don't have a phone handy at the moment, but I think that should work. Please let me know.

Thanks again for the log file.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kelleci:
No problem for me, i should thank you for wireguard freedom.I can be a tester.Right now i m using this on ubuntu and many many thanks to you.

Anyway i installed fresh zip file it seems not working.Here is log file from fresh zip, i hope it helps.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
CleanSlate companion free app bumped to 1.4.6

https://www.androidfilehost.com/?fid=962021903579497785

Changes:

- first time permission setup messages and button added for easy setup experience.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- CleanSlate Kernel 2.6.3 -

- Companion and Configuration apps -

...thus the Unrooted Kernel Era ruled on...​

Updates:

- WireGuard VPN kernel support updated to Dec-11 snapshot

- Update packaged free APKs to latest version (companion app extended with "First run permissions setup")

Download:

Kernel Installer (and contains Apps, copies to sdcard, pls install after reboot):

https://www.androidfilehost.com/?fid=962021903579497788

Companion APK 1.4.6

https://www.androidfilehost.com/?fid=962021903579497785

or PlayStore for premium version https://play.google.com/store/apps/details?id=org.cleanslate.csservice

Configuration APK 1.1.2

https://www.androidfilehost.com/?fid=889964283620771338

or PlayStore for premium version rolling out right now... https://play.google.com/store/apps/details?id=org.cleanslate.csconfig

Don't forget that as soon as you Save in the CS Configuration app: file /sdcard/uci_user.cfg will be written, and all feature settings covered in the config app will then take precedence over any init.d scripts or sysfs based application settings (like LeeDroid tweaks, EXKM).

All non conflicting sysfs settings will still work as usual.

If you want to revert, just uninstall Configuration app, and delete /sdcard/uci_user.cfg file.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
App does not show anything to me

What I did wrong?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] X46X:
Hi, today in 10 hours from unpluged, kernel holds phone awake for 2 hours. It is normal?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
There's two apps.

One is the companion app that is a background service.

The other is the config application, which allows configuring, but it's not running in the background.

Install both, and use both.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mesarabi:
The link of configuration app is zip

Its not correct
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
That's right, thanks corrected.

https://www.androidfilehost.com/?fid=889964283620771338
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- CleanSlate Kernel 2.6.4 -

...thus the Unrooted Kernel Era ruled on...​

Updates:

- Fix Flashlight Notification triggering while Screen is on. (Happening when using the new Companion App)

Download:

Kernel Installer (and contains Apps, copies to sdcard, pls install after reboot):

https://www.androidfilehost.com/?fid=673791459329066675

Unchanged:

Companion APK 1.4.6

https://www.androidfilehost.com/?fid=962021903579497785

or PlayStore for premium version https://play.google.com/store/apps/details?id=org.cleanslate.csservice

Configuration APK 1.1.2

https://www.androidfilehost.com/?fid=889964283620771338

or PlayStore for premium version rolling out right now... https://play.google.com/store/apps/details?id=org.cleanslate.csconfig
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] sgtslaughter64:
I tried a 3rd card, reformatted it in my device and it works. My 128gb, is corrupt. I've tried reformatting in my device as well as my PC, no joy. Guess it's time to buy a new one.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
i manually took the files from arm64_v8a out of the arch folder and put them into /system/xbin with chmod 755, but now when i try to activate it i get a "Wireguard currently requires root access" error....

SuperSu DOES have Wireguard accepted, so thats not the issue (p.s when you delete Root access, you need to clear app data to gain it again -.-)

[MENTION=5434776]zx2c4[/MENTION]

Edit:

using the manual aproach i connected..

root@ubuntu-vm:~# wg
interface: wg0
public key: NY8Y0XqDvd8ZMbdGB3m6WmMS+liWQijN0FUVrP+5/BE=
private key: (hidden)
listening port: 59839

peer: d/sdkhIoBLPQNcOKW3yrlCustJ2zosUIKM+kikBdnFg=
endpoint: 192.168.1.10:34636
allowed ips: 192.168.2.2/32
latest handshake: 2 minutes, 47 seconds ago
transfer: 156 B received, 916 B sent

but i can't ping. when i try the ping 192.168.2.2 it just does nothing. Timed out, 100% loss of package.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Well, good thing that at least it's not the phone which is faulty.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Mithias:
Will any of the settings contained in the new companion app clash with anything from leedroid tweaks or ex kernel manager? If not might nandroid and give the latest version a spin!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kelleci:
How did you manage to copy files to /system/xbin ? I tried with total commander xplore with superuser permissions and with twrp console still cannot manage to copy. Could you explain step by step?

Best regards.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
The companion app no.

The configuration app yes. Neither is installed by the flashing. It's a manual step.

Also the configuration app has more cleanslate specific settings than the other tweak apps, and it's also a fact that only the settings which are in the configuration app take precedence over. And if it took precedence there's no effective collision between the apps, as the new configuration uses a text file and whatever is set through sysfs is ignored as long as uci_user.cfg is in place in the root of internal storage /sdcard/

And finally those new settings that are only in the cleanslate config app can be accessed with sysfs too

if the cleanslate app and config is not being used, but they are not by default in other apps as of now.

I would try the app check what it does, and if you don't like it, uninstall and remove the config file uci_user.cfg , reboot and it's back to sysfs
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Mithias:
Cool, I'll ditch Ex Kernel manager in that case (I was was only using it for a couple of tweaks anyway) and then nandroid and get all 3 bits installed and have a play. Better to have less things trying to control stuff. Oh the joys of modding!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Well, there's one more thing to know, cs app has no settings for cpufreq, governor and stuff like fsync... Only usability features! Except adreno boost

:cool:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] zx2c4:
Can you tell me precisely why flashing the zip did not work and why you thus resorted to doing this method instead?

That's strange. Why does this happen? Can you send logcat output or something useful?

Your network configuration is probably wrong. If you need general help with WireGuard, we can help you in the IRC channel listed in my signature.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] zx2c4:
Just flash that zip instead.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kelleci:
I flashed last one and again doesnt work. I think you missed my 2nd logfile.

https://xdaforums.com/showpost.php?p=74808656&postcount=1330
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
I'm on Leedroid 4 with SuperSu, used Root Browser and simply extracted to internal storage, then copied into xbin. Direct from zip doesnt work, you need to extract first.

Ehhh, i read someone had issues, so i was too lazy to reboot my phone and simply unpacked the files :( sorry

According to the installed it doesn't do much except copying over this two files right?

The Log is attached, and i'll be sure to drop by in the IRC once :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] zx2c4:
According to that last zip log, everything seems to have gone as planned. Can you show me the output of `ls /system/xbin` after having flashed that?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] zx2c4:
There's nothing in that log file corresponding to a failure to su, so that's strange. Drop into IRC and we'll figure it out.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JohnFawkes:
[MENTION=3088420]tbalden[/MENTION] having issue with lockscreen using your kernel. cant turn backlight on using lock button when screen off. either have to plug phone in to charger or triple tap screen works sometimes. this happens randomly. running viper rom. using magisk 14.5 if that makes a difference. never had this issue until your kernel. ive always used elementalx but been wanting to try wireguard which is working wonderfully btw
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
I advice either installing configuration app and there in ux/gestures extra switch off Block power button in pocket.

Save and it should be fine. This is because something is covering to of phone proximity sensor.

Or use the sysfs path to at at /sys/fpf/..

/sys/fpf/block_power_key_in_pocket (0 default / 1) off/on

/sys/fpf/phone_ring_in_silent_mode (0 default /1) off/on

/sys/class/leds/indicator/flash_only_face_down 1/0 (1 default)

--- /sys/fpf/boost_only_in_pocket 1/0 (1 default)

--- /sys/fpf/kad_start_after_proximity_left 1/0 (1 default)

/sys/fpf/face_down_screen_off (default 1 on, 0 = off)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] JohnFawkes:
ill try that and see if that helps. its just weird because nothing is covering my sensor and im in a very bright room.

---------- Post added at 12:28 AM ---------- Previous post was at 12:26 AM ----------

yep that seemed to fixed it. still weird though
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] CharliesTheMan:
I remember a while back with a pocket detection feature on elemental x some users had a lot of problems with the proximity sensor pocket detection causing errors, I think his tweak was fingerprint sensor related but I'm not positive, it's been quite a while since he pulled it out (I know, that's what she said)

It makes me wonder if some of these devices or different user configs cause different behavior with prox sensor kernel modifications that others never see.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] sgtslaughter64:
Strange....when I put a 16gb card in, it worked fine. Just purchased and installed a new 128gb card. I get a message saying that it's corrupted and to format. I format it on my HTC, it checks the card for errors, then back to the corrupted message again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kelleci:
Here i am attaching log and ls outputs:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] zx2c4:
That's odd. We might need to do some live debugging to work this out. I'll send you a PM.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
1

So I reflashed the zip and using the new apks I have no issues. now my browsers dont crash games work no log cat issues, that I see. I'll throw in my 15000 line log cat. In rar form. Btw thats 15000 lines in maybe 15-20 minutes.

Addition: everything seems smooth a few hours later. Will update in the morning with logcat
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- CleanSlate Kernel 2.6.5 -

- Companion and Configuration apps -

...thus the Unrooted Kernel Era ruled on...​

Update:

- Color Control KCal through CS Configuration app, without rooting (with Unprivileged Config Interface)

Download:

Kernel Installer (and contains Apps, copies to sdcard, pls install after reboot):

https://www.androidfilehost.com/?fid=889964283620772126

Companion APK 1.4.7

https://www.androidfilehost.com/?fid=745849072291694483

or PlayStore for premium version https://play.google.com/store/apps/details?id=org.cleanslate.csservice

Configuration APK 1.2.0

https://www.androidfilehost.com/?fid=889964283620772124

or PlayStore for premium version rolling out right now... https://play.google.com/store/apps/details?id=org.cleanslate.csconfig
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ahac85:
[MENTION=3088420]tbalden[/MENTION] Can i continue flashing the latest version without installing the companion app, i prefer using ex kernel app?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Well Companion app is something that is not in collision with EXKM at all.

But the Configuration app is, so please install the Companion app only, and leave the Config uninstalled, then it's going to be working fine with EXKM
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
- CleanSlate Kernel 2.6.6 -

- Companion and Configuration apps -

...thus the Unrooted Kernel Era ruled on...​

Update:

- Color Control fix: if KCal disabled (as it is by default), and booting/rebooting with sRGB display color profile it no longer messes up colors

- For stock rom flashers: Patched around Magisk ramdisk problems with kernel built-in SafetyNet patch. Now should boot with custom ROMs, and stock phones as well. Also Unrooted stock sense phones now will give you SafetyNet passed again!

Download:

Kernel Installer (and contains Apps, copies to sdcard, pls install after reboot):

https://www.androidfilehost.com/?fid=962021903579498816

UNCHANGED:

Companion APK 1.4.7

https://www.androidfilehost.com/?fid=745849072291694483

or PlayStore for premium version https://play.google.com/store/apps/details?id=org.cleanslate.csservice

Configuration APK 1.2.0

https://www.androidfilehost.com/?fid=889964283620772124

or PlayStore for premium version rolling out right now... https://play.google.com/store/apps/details?id=org.cleanslate.csconfig
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chrisftlse:
Tbalden,

Congrats for your hard work and kernel dev following.

The xda article regarding HTC kernel sources is naming you and you deserve it. Well done !

Thanks for all.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] frostnicko:
Guys How is Battery Performance in Maximus HD rom? I Installed 2.6.4 and gaming performance is low compare stok kernel and phone overheating ( i choosed Pnp thermal tweaks) .I forget my experianc and no time change kernel if this is bad to stock.I will be happy if sameone share yourself experience and i know experience is different for every user
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Shouldn't be different from stock because cpu gpu is not tweaked, only adrenoboost is something interesting.

It is to compensate htcs approach of performance reduction for battery. So games should run finer or the same.

This kernel never intended to tweak battery or performance so you can expect it's mostly the same as stock
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
I had issues with not having access to internal storage with selinux enforcing. V 2.65 and V 2.66. I had to set it to permissive. Used on rr remix final and on aosip. Happened randomly with aosip and rr remix after about 15-30 mins after boot but if you set to permissive before the issue you should be ok ive been running it for about 12 hours on rr remix with full led, bln, and I havent test flashlight notifications though. Will include logcat.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
hmm gonna check... on LineageOS with ~2 days uptime haven't got it yet.

any special thing to do to get it? Just simply use the phone or something extra/intensive?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dlind:
Thats what I thought when I used aosip. I had a lot of extras there. I clean wiped and flashed rr remix final, open gapps nano, of course your 2.6.6 kernel, with viper 4 android, viper x hifi, magisk 14.5, yds busybox, one plus 3 and one plus 5 sound packs. I think thats all
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mattie_49:
Just asking. Verizon here 2.6.4 was causing many random reboots. Viper rom. 2.6.6 so far is way snappy. No problems so far. Thanks dev
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
If it happens, is it a full reboot with bootloader and white HTC logo like when powering up, or a soft reboot without that.

If it's a full reboot, could you please get a

/sys/fs/pstore/console-ramoops file grabbed next time?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mattie_49:
Soft reboot. But then as soon as phone would reload sense. It was happening continually. Now I didn't have the cleanslate configuration, which I now currently have. But I was just running the other apk. This one is humming. Maybe the difference is the companion and the configuration plugged in together.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tbalden:
Soft reboot I generally would think is not kernel related.

well I'm not sure of course, but a kernel bug in most cases results in a hard reboot. Except if there's some kind of interface incompatibility with the rom base.

If it happens, try grab a Logcat. Thanks