yashsingh1/xdaforums huggingface dataset:
[One (M7) Android Development] Falseclock:
board names are different

---------- Post added at 11:09 PM ---------- Previous post was at 10:58 PM ----------

802d/t versions mainly use in CIS and South-East Asian territories.

i do not know how compiler reacts on symlinks. What if create board configs via symlinks?

if not, then I can handle it with git branch. as 802d users mostly russian speakers - can do some support for them ))

there is as board http://4pda.ru - some kind of analogue to xda for russian speaking people, but I was banned there for unknown reason by board owners. anyway can do support via PM in case

---------- Post added at 11:18 PM ---------- Previous post was at 11:09 PM ----------

as I remember with S-OFF you can flash boot image directly (without booting to fastboot) with switched ON phone, cause boot image loads into memory. Please correct me if i'm wrong.

---------- Post added at 11:47 PM ---------- Previous post was at 11:18 PM ----------

installed... but still didn't get how to use Added BLN (Button Light Notification) feature
[One (M7) Android Development] bgcngm:
BLN is enabled by default. When notifications arrive button backlight will blink.
[One (M7) Android Development] Falseclock:
How long they will blink up? Asking, because receiving email and sms notifications in the middle of the night from my partners with 12 hours time zone difference. Worrying about battery consumption.
[One (M7) Android Development] bgcngm:
With Button Light Notification (BLN), the capacitive buttons will blink on and off when you have a new notification. As soon as the screen comes on, BLN is canceled and the lights will no longer blink until you have another notification.

BLN can obviously increase battery consumption, when turned on.
[One (M7) Android Development] Falseclock:
are you planning to add settings application?
[One (M7) Android Development] bgcngm:
You mean, a way to enable BLN on a per-app basis? That is not possible the way BLN is designed.
[One (M7) Android Development] pan.zupa:
I'm using this kernel for three days and no problems at all!!

Thanks for that.

The only thing is battery drain
[One (M7) Android Development] Madshald:
Hi

I've tested both kernals on:

Android version 4.4.2

Sence version 5.5

All the features are working, but unfortunately i'm unable to turn on wifi with this kernal - which is really a shame, because i like the wake features.
[One (M7) Android Development] Sves:
The kernel is only for Sense 6, HTC did not release source code for earlier ROMs so I guess there is no chance to get their support. You should upgrade your ROM, Sense 6 is a big step forward.
[One (M7) Android Development] bgcngm:
Actually, it will most likely work on Sense 5.5 based ROMs, but kernel modules have to be updated as well. Next release should include not only the kernel itself (packed on boot.img), but also its modules.
[One (M7) Android Development] zjjzh:
How to disable system write protection in the kernel code?

Thanks!
[One (M7) Android Development] pan.zupa:
Today I made a test. Until 12pm wake gestures were enabled! Phone used 40% of battery in 2,5 hours. Then I disabled wake features in sense toolbox. After that it took over 4 hours to use another 40% of battery. Phone was used in the same way on the same area.

Please note that when wake gestures are enabled phone is always in active mode. I assume this is a reason for battery drain.
[One (M7) Android Development] bgcngm:
Can't confirm that. I have wake gestures always enabled and the battery still lasts a full day.
[One (M7) Android Development] zjjzh:
I tried your two boot.img,Still has system write protection.Such as ,I changed system file(system/etc/init.d/xxxx),once reboot ,the file reset.
[One (M7) Android Development] zjjzh:
Solved
[One (M7) Android Development] Karanaldo:
Kernel for 802d, Please !!

Please Please Please make a kernel for Htc One 802d, I am running Sense 6, 4.4.2, bootloader unlocked and rooted. But i can't get S-off, it displays an error "Htc Kernel has an anti fire-water patch".. Currently there is no kernel for this phone. Pls try to incorporate S2W & Double Tap 2 Wake, because without this the device seems a complete waste.

Thanking U in Advance :)
[One (M7) Android Development] claytonlai:
Potentially stupid question: This will work with firmware of other regions? I'm on 5.15.1402.3 (Sense 6, China Unicom).
[One (M7) Android Development] bgcngm:
Yes, it should work.
[One (M7) Android Development] zjjzh:
No problem ,I'm used China Unicom,
[One (M7) Android Development] claytonlai:
Thanks, but I'll have to wait for a flashable ZIP or unless the kernel boot.img is somehow available as a PN07IMG.zip. I'm on a locked bootloader, so I can't flash via fastboot.
[One (M7) Android Development] reeder:
you can try kernel from Soul ROM v33 (see thread somewhere in bbs.gfan.com).

touch2wake works there, but unfortunately, they broke exFAT support. so, if your sd is 64gb, need to reformat to FAT32.

here is a kernel for 802d

www[.]sendspace[.]com/file/l9vcau
[One (M7) Android Development] pogs24ever:
Try this.. Courtesy of user007 from 4PDA

https://www.dropbox.com/s/12lxgr3wx0602mp/bgcngm Kernel.zip

FLASH at your own risk!

Sent from mobile
[One (M7) Android Development] claytonlai:
Worked great! Thanks!

HTC One 802w 5.15.1402.3
[One (M7) Android Development] claytonlai:
I am also experiencing this issue. The home key would not respond to double-tapping to bring up Recents.

What I have narrowed down so far is that a soft reboot will cause the home key to not respond to double-tapping.
[One (M7) Android Development] pan.zupa:
So what do you suggest I should do to verify what uses battery?

Also could you please share a screen shot of your battery usage in time. Maybe something else in my phone makes him always active
[One (M7) Android Development] Sves:
bgcngm,

Could you please clarify 1 issue. Venom tweaks allow to set double tap wake up and give 2 options: the double tap area is (1) bottom half of the screen or (2) the entire screen. Actually half of the screen is a good solution since it leads to less erroneous wake ups especially when talking over the phone. I use stock ROM with Venom tweaks cooked by 4pda.ru dev.

Anyway - your kernel works perfectly with his ROM and all the tweaks work BUT when I enable "double tap half window wake up" it is not a half but 1/3 or 1/4 of the screen. So a bit small space to hit. The ROM developer says that this is kernel related so coordinates of active screen could be changed only via kernel.

May I please ask to check this - would be great to have half screen option actually activating 1/2 of the screen, not 1/4. Cheers!
[One (M7) Android Development] Falseclock:
-- found!
[One (M7) Android Development] hamid_valad:
hmmmm, i think it works great.

but i have to say, sometimes the phone wakes up in my pocket, and some time d2w doesn't work. (i have to do more than double taps to wake it up (happened 7-8 times in this whole time), and some times it wont wake up (happened 3-4 times.) off course the issue is gone after a screen on and off.

btw, great work, no regrets on having it for sure. using d2a every time. i think after installing it i used the power button only 10 times!!!!!

looking forward for new features and stuff.

+1000
[One (M7) Android Development] otonieru:
This Kernel work fine in 802D : https://yadi.sk/d/7BjO21wKZYGA2

Double Tap/Knock 2 Wake work fine

Knock on bottom half of the screen

am using Soul v35 ROM just for info
[One (M7) Android Development] wewenk:
Dear [MENTION=455439]bgcngm[/MENTION] does it fully stock kernel with only s2w and dt2w feature added or it have fully elemental kernel feature?

If I may, I prefer fully stock with only dt2w and s2w feature
[One (M7) Android Development] bgcngm:
Check changelog. The light version you want is the preview, which only includes traditional S2W, L2W and DT2W.
[One (M7) Android Development] wewenk:
thank you.. understand it..

on OP says Last Updated 2014-07-15

but in download sections I see the last file is 2014-07-07
[One (M7) Android Development] bgcngm:
That's normal. I have edited the OP in the meanwhile.
[One (M7) Android Development] otonieru:
Hi bcngm

with this kernel, do u notice sligth activity increase of "msm_hsic_host" wakelock ?

Note : "The msm_hsic_host wakelock is because the 3G modem is connected to the phone as an external USB device controlled by the hsic host controller. When the modem wakes up for any reason (apps sync, location, tower ping, etc...) the wakelock is requested. The problem is that the hsic host controller doesn't go back into suspend mode properly, this is a problem with the kernel. The result is that because the hsic host controller isn't asleep the phone wont enter deep sleep while it waits for the hsic host to suspend.

this wakelock is currently in my top 2 wakelock list, and this is after i flash the kernel,

aside from this, everything is fine...
[One (M7) Android Development] bgcngm:
Thanks for your feedback. Which app are you using to check for wakelocks? I'll have to look into that when I find some time.
[One (M7) Android Development] otonieru:
Hi,

it's BBS.. :)

i manage to control other wakelock using wakelock terminator, but not this particular one...
[One (M7) Android Development] pan.zupa:
Do you guys have problem with losing signal?

My phone looses a signal every few days and DOESN'T reconnect automatically! I need to restart the phone.
[One (M7) Android Development] bgcngm:
Okay, merged HSIC wakelock fix and checked with Better Battery Stats. Seems to be fixed now. What is the percentage shown for msm_hsic_host wakelock in your case?
[One (M7) Android Development] pogs24ever:
Where can we download the fix buddy?

Sent from mobile
[One (M7) Android Development] bgcngm:
The new version was just uploaded. Please refer to the first post to know the changes.
[One (M7) Android Development] wewenk:
with latest cwm, when I charge my phone at off condition it will enter cwm. How to revert to default battery charging screen?
[One (M7) Android Development] geek-baba:
[KERNEL][M7C] HTC One M7 Dual SIM (802W)

I have the same issue but I using factory kernel.
[One (M7) Android Development] wewenk:
It is because latest cwm I guess, not the kernel..

Btw, the latest uploaded kernel disable s2w ?
[One (M7) Android Development] otonieru:
not only CWM, it will hapen with TWRP as well, even with factory kernel

but i dont really mind this, since i never charge my phone in a totally off condition....
[One (M7) Android Development] pogs24ever:
Confirm.. on twrp as well.. Maybe due to red flag..

S2w is Working fine here using russian firmware

Sent from mobile
[One (M7) Android Development] otonieru:
Btw, bgcngm,

i forget to tell you, that i'm using the modified version of your kernel on my 802d, i think someone from russian / chinese forum modified it,

i tried to flash your latest version but i forgte that yours is still for 802W only,

so, here i post my previous 802D kernel which i believe is based on your work for comparison,

https://yadi.sk/d/7BjO21wKZYGA2

hopefully a fix can be applied as well,

Thank You

Note : Sweep2Wake, Knock2Wake & Sweep2Sleep all working, i even got Knock2Sleep on Lockscreen.
[One (M7) Android Development] wewenk:
Working? With latest boot.img on flashable zip?
[One (M7) Android Development] bgcngm:
Of course, wake gestures are still working. ;)
[One (M7) Android Development] wewenk:
Well.. it is not working for me.. reinstalled 4 times with cwm.. ?

Now revert to preview version
[One (M7) Android Development] bgcngm:
You are probably referring to the traditional S2W feature. If that's so, I must say it ended in the preview version. Since beta release, wake gestures were added and those must be configured via specific Xposed modules.
[One (M7) Android Development] bgcngm:
I wish I knew what needs to be adapted to make it work on 802D or 802T. Already tried some modifications, but didn't succeed and without having a device to test it is not an easy task.

Can you please take a screenshot of kernel version (Settings / About / Software information / More)?
[One (M7) Android Development] otonieru:
Here, i attached it,

It's been modified by soul team (xiaoxiang),

All functions is similar with your build,

They also already include system write fix in it.
[One (M7) Android Development] reeder:
Unfortunately, broken compatibility with texfat.ko, so 64GB microSDXC does not work.

Just try # insmod /system/lib/modules/texfat.ko

It worked on previous version.

Probably caused by changing vermagic, but i'm not sure.
[One (M7) Android Development] bgcngm:
Yes, most likely because of vermagic. I'll check that tomorrow.
[One (M7) Android Development] kctan75:
how to get back to 802w stock recovery?

Hi there,

I would like to try the motion gesture for 802w,

But, I need to know how to stock recovery in case i am facing any unexpected issue with my phone?

please advise.

TQ.

Note: Android 4.4.2 sense 6, HTC one dual sim 802w europe firmware.
[One (M7) Android Development] bgcngm:
Simple, usually inside firmware.zip (found in OTA updates) you have recovery.img. If you want to revert, simply flash it via fastboot:

fastboot flash recovery recovery.img
[One (M7) Android Development] bgcngm:
A new kernel version was released, including full exFAT support and USB fast charge.
[One (M7) Android Development] reeder:
nothing changed:

# insmod /system/lib/modules/texfat.ko

insmod: init_module '/system/lib/modules/texfat.ko' failed (Invalid argument)

flashing back very first version and returning stock modules - module is loaded:

root@m7cdug:/ # uname -a

Linux localhost 3.4.10-gc60d917 #3 SMP PREEMPT Mon Jul 7 19:53:49 WEST 2014 armv7l GNU/Linux

root@m7cdug:/ # insmod /system/lib/modules/texfat.ko

insmod: init_module '/system/lib/modules/texfat.ko' failed (File exists)
[One (M7) Android Development] bgcngm:
Did the sdcard mount fine? Forget that stock module, it won't load. I have included a new one (exfat.ko), compiled along the kernel, which is loaded during boot, unless you disabled init.d.

root@m7cdug:/ # lsmod
lsmod
wlan 2507536 0 - Live 0x00000000 (PO)
cfg80211 150591 1 wlan, Live 0x00000000
exfat 74756 1 - Live 0x00000000
ecryptfs 81383 0 - Live 0x00000000
dm_crypt 13684 2 - Live 0x00000000
moc_crypto 395116 0 - Live 0x00000000 (PO)
moc_platform_mod 1979 1 moc_crypto, Live 0x00000000 (O)
root@m7cdug:/ #

I can confirm it is working just fine because I also have a 64GB microSDXC card formatted as exFAT.
[One (M7) Android Development] kurok154:
That's great

The question is what about ntfs support?
[One (M7) Android Development] bgcngm:
I could have added NTFS support, but I thought there was no demand. Will be postponed for a future release.
[One (M7) Android Development] smolarchuk:
NTFS support is waiting!
[One (M7) Android Development] reeder:
>> which is loaded during boot, unless you disabled init.d.

you are right.

i didn't install /etc (what are strange "group", "passwd" there?).

insmod'ed and mount'ed manually - it works.
[One (M7) Android Development] criszz:
for me this kernel don't work with maximus hd v3, always restarting on boot screen. i'm doing something wrong?

is working great with tommy rom v11
[One (M7) Android Development] M.KK:
for me this kernel don't work with maximus hd v3, always restarting on boot screen. i'm doing something wrong?

is working great with tommy rom v11

Me to.
[One (M7) Android Development] navolmixa:
I have a strange behavior of my phone with new update.

If I install zip,phone can't read sd-card..if I install only boot.img from zip (without libs) almost everything works great. But can't delete folders from sd.

Can't understand what is happening with sd...

Android 4.4.2, sd formatted exFAT.
[One (M7) Android Development] criszz:
so , no working with maximus hd v3 then, very bad.
[One (M7) Android Development] pogs24ever:
Simple.. ask your rom developer to make this kernel compatible..

Sent from mobile
[One (M7) Android Development] I_aM13:
I have HTC 802w and SD Kingston 64 gb. With the stock kernel or with the beta kernel it is working fine. With the new kernel I have cyclic reboot or not mounted SD.
[One (M7) Android Development] bgcngm:
How did you install the latest kernel? Can you please open an adb shell, list loaded kernel modules and paste here the results?

adb shell
lsmod
[One (M7) Android Development] I_aM13:
I have installed the latest kernel with the cwm and the twrp. With the same result. The cash was cleared with the recovery. Afterwards with the fastboot too, as an alternative. The resalts of "adb shell lsmod" is:

127|root@m7cdug:/ # lsmod

lsmod

wlan 2507536 0 - Live 0x00000000 (PO)

cfg80211 150591 1 wlan, Live 0x00000000

exfat 74756 1 - Live 0x00000000

ecryptfs 81383 0 - Live 0x00000000

dm_crypt 13684 0 - Live 0x00000000

root@m7cdug:/ #

Now, the device has the new kernel, and on the PC I can see the SD, but attempts to access the card are unsuccessful.
[One (M7) Android Development] bgcngm:
What is the filesystem of your micro SD card? I don't see moc_crypto and moc_platform_mod modules loaded... don't know if it could be related or not.
[One (M7) Android Development] I_aM13:
The results "lsmod" with the beta kernel is:

c:\adb>adb shell

root@m7cdug:/ # lsmod

lsmod

wlan 2507536 0 - Live 0x00000000 (PO)

cfg80211 150591 1 wlan, Live 0x00000000

ecryptfs 81383 0 - Live 0x00000000

texfat 132043 1 - Live 0x00000000 (PO)

root@m7cdug:/ #

The SD is working fine again.

---------- Post added at 07:10 PM ---------- Previous post was at 07:02 PM ----------

The filesystem of the SD is exFat. SD was formatted by my HTC 802w.
[One (M7) Android Development] vicyang85:
OTA update

Hi, quick question, with custom kernel, will i still be able to get OTA, and will OTA install? since i assume some things would have changed in the system and the OTA verify might fail? If i then flash original firmware.zip will everything revert back to stock so i can apply OTA? Thanks

Oh and the USB fast charge (optional). how do you enable or disable it?
[One (M7) Android Development] yoyurik:
Anyone knows what changes do I need to do in order to make it work on 802d? I can't grab config from device to start from.

/proc/config.gz is missing.

Thanks.

UPD: got config from stock 802d kernel, from soul 802d kernel. (extracted from boot.img)... now I have something to work on

UPD2: editing kernel config is not helping: device is not booting
[One (M7) Android Development] otonieru:
In my case , i can do it using soul tweaks app,

There's an option inside to enable the fast charge.

You gotta have to find the .apk though..

Since its illegal to share it here...

---------- Post added at 01:48 AM ---------- Previous post was at 01:48 AM ----------

I think you really need to compare what is the difference between the two kernels,

Not only config...
[One (M7) Android Development] yoyurik:
I know, but at this moment I have:

source code for 802w kernel

and binaries of 802d kernel.

Not much to compare...
[One (M7) Android Development] bgcngm:
Hotfix release for those experiencing problems with exFAT formatted sdcards. The stock exFAT module from HTC is now loaded without any issues.

As a bonus, NTFS filesystems should now be also supported (untested).
[One (M7) Android Development] bgcngm:
Quick sidenote: apparently the actual kernel may not work properly after installing the latest Android 4.4.3 update. The reason is because source code is for Android 4.4.2. I haven't yet received the OTA update because I'm running the WWE version, so can't test any merge of Android 4.4.3 source code (from M7).
[One (M7) Android Development] reeder:
Tested NTFS support

Works, but with some issues.

1. Need to mount manually

mount -t ntfs -o rw /dev/block/sda1 /storage/usb

2. All files have 600 access mask, so visible only in root terminal (not in ES file explorer or any other program). chmod is not supported on filesystem.

3. Even under root terminal, filesystem is not writeable ('cp /init.rc /storage/usb/' says 'Permission denied')
[One (M7) Android Development] bgcngm:
Any news regarding the OTA update? Already noticed some users talking about 4.4.3 on 4pda.ru.
[One (M7) Android Development] J_M_V_S:
Just uploaded 4.4.3 OTA: http://xdaforums.com/showpost.php?p=55761119&postcount=1041
[One (M7) Android Development] bgcngm:
Thanks! I had already downloaded it from 4pda.ru.

By the way, all those that were running version 5.17.401.6 and want to restore system files integrity in order to apply the new OTA update must download stock kernel (click Downloads tab) and install through recovery.
[One (M7) Android Development] wewenk:
Awaiting custom kernel for 4.4.3 and I expected preview version (stock kernel with s2w)
[One (M7) Android Development] bgcngm:
Please give me some time. I can only promise that I'll try. :fingers-crossed:
[One (M7) Android Development] bgcngm:
I have started merging the code from HTC (Android 4.4.3 m7ul-3.4.10-g77e9ea0). Let's see how it goes. :D
[One (M7) Android Development] bgcngm:
Just a heads-up: the merge of the most up-to-date source code went fine, phone boots and there are no graphical glitches. Everything seems to work well (wake gestures are also working), except WLAN. The module refuses to load. Have to find out why.
[One (M7) Android Development] bakson360:
noob

hi where is the download link ?
[One (M7) Android Development] bgcngm:
Read the first post. It is written in red bold letters. Or look at the tabs on the top of the thread. :p
[One (M7) Android Development] bgcngm:
Good news! I have just found out that HTC has released the source code for 6.13.402.2, which is the software version released for Nordic region and should be basically equal to the European one. That means the source code I will use now is targeted for M7CDUG (not for M7UL, which happened with the code I was trying to merge). The reason why I was not finding the source code was that for some reason HTC released it under "One M7" naming and not as "One M7 802W". There should be no problems with WLAN anymore with this new source.

Meanwhile, during the search for the source code I have also found the one for M7CDWG, meaning that 802D owners can expect some goodies. I just need one or two users to test the kernel on their phones. But I'll leave that for later, as first I have to finish 802W kernel.
[One (M7) Android Development] J_M_V_S:
That's really great news! Whilst you're working on the new kernel, you think it would be possible to apply the kexec-hardboot patch? I'm thinking that maybe I can port MultiROM for Dual SIM but I need kexec-hardboot patch on kernel (FYI ElementalX has is).

Here's is some information about the patch: http://xdaforums.com/showthread.php?t=2104706 (really don't know if it is up to date, probably better to check ElementalX's source code if you know what you should look for).

Thanks!
[One (M7) Android Development] bgcngm:
Sure, I can do that, but only after having the new kernel up and running.
[One (M7) Android Development] pogs24ever:
You're heaven sent buddy! Thanks for developing for us!
[One (M7) Android Development] denseye:
Hello. Do you mean we have source code just for the kernel or for the complete ROM? We should be able to compile custom roms if we have full code? Do you have a link for source code? Thanks
[One (M7) Android Development] bgcngm:
HTC only releases kernel source code, as per GPLv2 license requirement. That means only kernel is possible to compile. Search for it on HTCDev.
[One (M7) Android Development] bgcngm:
Up, running... and being tested. :fingers-crossed:
[One (M7) Android Development] wewenk:
Yohooo test... I wanna a preview test.. LOL
[One (M7) Android Development] 3hpv9w9m8E:
Good news!

Will this new version be back compatible with 4.4.2 system ( for those who do not want to update to 4.4.3 ( for ex.with latest OTA)) ?

Thank you.
[One (M7) Android Development] bgcngm:
I don't honestly know, probably not. You can tell me, after trying out. ;)

EDIT: Any reason why you don't want to update to Android 4.4.3? :confused:
[One (M7) Android Development] bgcngm:
New kernel released, including support for Android 4.4.3. Don't know if it is backward compatible with Android 4.4.2.