yashsingh1/xdaforums huggingface dataset:
[One (M7) General] Falseclock:
yep! looks very impressively. I hope there is a 802w owner who are able to maintain kernel source.

I only have experience in kernel compilation from source for my server just disabling unnecessary drivers and modules to reduce size and increase performance. I want only recompile stock M7 kernel to enable inline recording for my HTC one Tweaker. It is not so difficult, hope.

may be ask [MENTION=4379011]poondog[/MENTION] to add board config to the sources? m7 board looks 99% same as m7dug.
[One (M7) General] criszz:
and tapp on screen to wake up :)))
[One (M7) General] poondog:
I was thinking about this. Problem is, I am maintaining 3 kernels at the moment (well 2 different compiles since SPR and VZW are same kernel)

3 threads is quite a bit for me.. on vzw there are only a few users so I think I may pull the plug on that one day

So have you diffed your kernel source against ours? Only differences are where? I am wondering, can we have one kernel or does it have tro be another separate compile? I will not be building clean off your sources because that will take too long. *If* I end up doing a Kangaroo Kernel for you guys it will be from universal source

Thanks for showing interest
[One (M7) General] Falseclock:
if you mean "against ours" as stock kernel - yes, I diffed yesterday M7 and M7DUG 3.4.10 sources.

1. difference mostly in board name.

2. some differences related to WiFi and something else (not so much, looks like driver existence, some files missing from both side).

I'm going to recompile stock M7 from source just be sure it is boot-able. (do not have experience yet in android kernel)

Then going to recompile M7DUG source and check the same.

if both are ok - will try to make universal kernel.
[One (M7) General] poondog:
you guys have a different wifi driver? If you want help with your kernel you can post in my thread if you wish :) As long as you don't take my secrets and sell them :P
[One (M7) General] adrenalize_:
What firmware version are you running? If you look under "Software Number" in Software information in settings as well as press on more and list the full Baseband version. Also what was your phone originally? 802w? What firmware have you flashed?

I had a similar problem when I flashed a firmware.zip from x.xx.402.x but not the whole ROM (as there is no RUU) and went back to x.xx.401.x. I couldn't downgrade the QSC version (the last bit of the "Baseband version" which is the firmware for the QSC chip that is used for SIM2).

I am in the UK and had the problem that I could not use some carriers on SIM2 also. After a a bit of research and some prior knowledge of operator frequencies (I am a telecoms engineer). I worked out that the QSC version was not compatible with the different ROM and 900MHz on SIM2 did not work, but 1800MHz did. (We don't have 850 or 1900 MHz in the UK so I couldn't test those bands on SIM2)

In the UK Voda has 3 frequencies that it uses - 900MHz 2G GSM, 1800MHz 2G GSM and 2100MHz 3G. From some of my telecoms work I know that 1800MHz GSM is only used in densely populated ares, i.e. cities. Basically Voda would not work at home in SIM2 but would in SIM1. I live in the country where I know there is only 900MHz 2G. However it did work in the city I work in that I know has 1800MHz GSM. Obviously 2100MHz is not available in SIM2 so is not relevant in this example.

I do have a method to downgrade the QSC by imaging emmc partitions and then reapplying the x.xx.401.x RUU that is available if your phone is an 802w chinese model. This fixed mine and 900MHz operation returned.

I don't know enough in depth about the Dutch Voda frequencies to know if it is the same issue. A lot of people may never realise they have the issue if you use an 1800MHz provider in SIM2 such as Orange/T-Mobile in the UK.

I use Vodafone in SIM2 all the time without issue now. Also of note is that SIM1 does not do 900MHz 3G/WCDMA as far as I can tell (it may on x.xx.402.x Nordic/UK FW but I don't have one to test). Some operators in the UK use 900MHz 3G to improve coverage/reach in rural areas such as O2. When I did use giffgaff (an MVNO on O2) I did have poor 3G coverage because of this, but I am now on an operator which uses 2100MHz for 3G only.

Interestingly the Butterfly S Dual SIM does have more band support and in my opinion a better screen, but only a Chinese ROM! It will only get worse with LTE - The HTC One E8 dual SIM is only really for China and has very limited LTE band support, I am waiting to see the M8 dual SIM LTE bands - I understand from llabtoofer's tweet that it is imminent and will be released in Europe at some point - I do hope the LTE bands cover UK networks!
[One (M7) General] ascot17:
Easy way in UK to find out which frequencies your local masts are using:

http://www.sitefinder.ofcom.org.uk/search
[One (M7) General] dnielmejor:
Thankss

Thanks for the infoo
[One (M7) General] pogs24ever:
Hi

if I flash your newest kernel to our device and provide you a logcat. would that help?
[One (M7) General] poondog:
It will just tell me it won't boot and that it will need certain changes (which are same as diffing sources)

So nah not needed, thanks. When I get time I'll diff sources and see from there. Thanks
[One (M7) General] Talon:
del
[One (M7) General] Falseclock:
http://xdaforums.com/showthread.php?t=2766781

please post there
[One (M7) General] s_superman:
I know this is a bit late but here goes

The Sense 6 OTA for NORDIC devices

File Name : OTA_M7C_DUG_K44_SENSE60_MR_HTC_Nordic_5.17.402.6-4.21.402.5_release_378999.zip

https://mega.co.nz/#!wgdRkSKJ!NxV4jYwDHz4dGwNyeRU4A9EVOH3qzoetRi1Et1vJmV0

please add to the OP

Enjoy :)
[One (M7) General] bgcngm:
Well, I have just tried to compile M7CDUG kernel from HTC sources and it worked, phone boots (only tried recovery). I have aleady created a repo on github and was thinking to merge most of the patches from [MENTION=4379011]poondog[/MENTION] repo.
[One (M7) General] poondog:
Nice stuff. There are nearly 1000 patches so far and growing so good luck :D you started from international or dual Sim m7 source? I might look tomorrow, should have time

Are mount points and everything the same? For if I put a flashable test kernel up
[One (M7) General] bgcngm:
I have built kernel from original M7CDUG sources. The mountpoints are different, I believe. These are the ones for M7CDUG, extracted from recovery.fstab:

# Android fstab file.
#<src>	<mnt_point>	<type>	<mnt_flags>	<fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

/dev/block/mmcblk0p36	/boot	emmc	defaults	defaults
/dev/block/mmcblk0p37	/recovery	emmc	defaults	defaults
/dev/block/mmcblk0p38	/system	ext4	rw,noatime,barrier=0	wait
/dev/block/mmcblk0p39	/cache	ext4	nosuid,nodev,noatime,barrier=0	wait,check
/dev/block/mmcblk0p40	/data	ext4	noatime,nosuid,nodev,noauto_da_alloc,barrier=0	wait,check,encryptable=/dev/block/mmcblk0p29
[One (M7) General] bgcngm:
Kernel patched up until version 3.4.30 and compiled with GCC 4.6. Now testing with Linaro toolchain and tomorrow will run it during the day. Will keep posted.
[One (M7) General] Falseclock:
could you please compare why M7 does not have inline record capability?
[One (M7) General] iamsuperuser:
Somebody please help

How do I get permanent root on HTC one Dual Sim 802D tampered, unlocked(HTCDev) and s-on .

I rooted thru twrp and it appears to be rooted

BUT

Every time I reboot all my changes are gone,

even the system apps I uninstalled are back.

I tried flashing some zips, basic mods, the phone doesn't boot.

I tried getting s-off thru firewater

BUT

in the middle of the process I'm getting a ERROR message saying

Kernel patched with anti-firewater, try with different kernel

I'm on HBOOT 2.49 kit Kat sense 6

I want to get S-off , I dont care about warranty

SOMEBODY PLEASE HELP
[One (M7) General] poondog:
Nice stuff. Watch out some Linux patches will result in no boot, some parts in Linux subsystem are modified. As you've probably noticed patching anything is a B*":#& because HTC removed all the comments :(
[One (M7) General] bgcngm:
Yeah, I've faced that already. Stopped patching at 3.4.44 and it did not boot. Should I continue with patching then? Also when compiled with Linaro, I got a non-bootable kernel.
[One (M7) General] poondog:
Yeah that's why I always tested the boot every few patches. That's why it took so long for me to patch :P

Which linaro toolchain? Using the flags from stratosk commit right?

I'm using CR83 toolchain. How big is your zimage?
[One (M7) General] bgcngm:
Yes, using the toolchain from CR83. The size of zImage is about 5.7 MB. The patches that I have included are these: c77890d8109ac2ff55b87b2b46cb2cc972af8c8d, 6c84b96596530429f533aba713f43cb849808e4e and 36f8b765fb30d27d1224b6d5c7a8cc6f30c1dd84.
[One (M7) General] iamsuperuser:
Little help anyone please
[One (M7) General] Reddgy:
It's because of sense 6 and anti-firewater.Now you can get S-off only with sense 5 and 5.5 .So downgrade to previous sense or wait before someone find a way to get S-off on sense 6.
[One (M7) General] iamsuperuser:
First of all THAAAAANNNNKKKSSS for the reply.

I did downgrade to jb 4.2.2 sense 5 and when I tried with firewater I get following message on cmd

The first bottle is open....
chugging....

C:/android-sdk/ platform-tools/

The phone just goes blank I have to do some gimmicks to restart the phone again.

How exactly do I have to downgrade because I used a cwm backup of 4.2.2 and I couldn't get s-off

Sense 5 or 6 hboot is still 2.49

So do you want me to flash the ota zips to downgrade ?????
[One (M7) General] criszz:
try again WITH Maximus HD rom
[One (M7) General] iamsuperuser:
In the website it says Maximus ROM 2.0 does not support 802d and 802d models

But the older ROM that is the Maximus ROM 1.0 says it supports m7dwg .

Mine is m7dwg

So should I use the older 4.2.2 jellybean version of the ROM ???????

I have to be sure since 802w roms can brick 802d phones

Should I proceed with older Maximus ROM ????
[One (M7) General] Reddgy:
Hboot in sense 5 and 6 have same number, but they are different.If you restore nandroid backup(with sense 5) in CWM to downgrade to sense 5, hboot and other things from firmware can still be from sense 6.The best way is to get full stock with sense 5(for example, install RUU), then again unlock bootloader, get S-off,and then update to sense 6. I think it should work.
[One (M7) General] bgcngm:
Impossible, without S-OFF because downgrades are not allowed.
[One (M7) General] iamsuperuser:
Yeah heard that HTCDEV unlocks only certain partitions.

I'm not even able to flash zips and roms

So how do you suggest I downgrade or get s-off in my current state ???

Pls help
[One (M7) General] bgcngm:
Honestly, in your current setup I don't think it is possible to achieve S-OFF. As already mentioned before, HBOOT has now been updated to the latest version (after updating to Sense 6), which can be your problem. You are however able to install custom ROMs in case you flash CWM recovery. So, as already suggested try to downgrade (only system and boot partitions are possible) via an older nandroid backup or a custom ROM.
[One (M7) General] poondog:
OK mines 7.9mb so that's not the issue. You got a log? Or compiler errors?
[One (M7) General] iamsuperuser:
Okay my bad luck I guess , I will wait for a fix on S-off:rolleyes:

BUT :crying:

I'm not able to obtain root :mad:

I rooted thru TWRP but IT DID NOT WORK:silly:

If I flash a Rom the phone does not boot:eek:

What did I do wrong??????????:confused:
[One (M7) General] poondog:
Unlock through htcdev

Flash recovery

Root with a flashable like supersu

You flashed correct ROM for your device?
[One (M7) General] bgcngm:
No compiler errors. Compilation finishes just the same way as with GCC 4.6.

Anyway, I'm facing a problem even before moving and start trying different toolchains. The built modules are less than the ones available in the stock ROM. One of the modules missing is prima_wlan.ko, so WLAN is broken. Do you have any idea what could be missing? I thought that defconfig could be incomplete, but unfortunately I can't grab config from device because /proc/config.gz is not present.

Does M7 have inline record capability by default?
[One (M7) General] poondog:
M8 has this issue with some of their older source. I think you have as!e drivers as us? Try take our driver I believe it will work
[One (M7) General] iamsuperuser:
I did root my device as you said

I uninstalled some system apps using an app from play store

but when I reboot those uninstalled system apps appear again as if they are not uninstalled

Seems like my phone is not completely rooted

I made a Rom my self with rickys rom kitchen but when I

flash the ROM the phone does not boot.

So I think the system partition is not rw

Pls help fix this
[One (M7) General] poondog:
It is rooted. Don't make ROMs with scripts in kitchens haha that's asking for issues

Yeah your issue is HTC system write protection. There's a module for disabling it but idk if it's compatible with your dual sim
[One (M7) General] iamsuperuser:
Pls give that module I'll try and see if it works

How common is this system write protection ??
[One (M7) General] poondog:
Its on the One android development section. Google could find it

Its on every new HTC devuce
[One (M7) General] iamsuperuser:
Yeah wp_mod.ko

Pushed to /system/lib/modules and installed it

Worked for a while but after a few reboots the module got deleted and system is write protected again

Any suggestions ??

Whats the point of htcdev anyway ?

Devs here crack there patches,

Htc patches them again,

And this goes on

Seems like some kind of cheap marketing tactic to keep the devices alive in the market

I thought only samsung does this, but now htc too ?? its frustrating .
[One (M7) General] geek-baba:
Sense 6 ruu updated for 802d/t/w:

[Collection] HTC Dual Sim 802d, 802t, 802w - Official RUU, OTA and CWM
[One (M7) General] Falseclock:
IMPORTANT INFORMATION

if you are unlocked or have S-OFF, but using stock ROM with custom recovery -

NEVER DO

wipe user data with custom recovery.

otherwise next OTA will always fail.

Starting from Sense 5.5. HTC uses /data partition to store some system files and if you are using stock ROM

ALWAYS use

Reset Phone (Reset all data on phone) from Settings -> Backup & Reset.

custom recovery just formats /data partition and this is not good for OTA.
[One (M7) General] Falseclock:
should. Yesterday I compiled custom kernel for M7 with sources (only for sound board) from M7DUG. But RX recording still does not work.

as a result of the further investigation it was found there are some config files under /etc folder and libraries under /lib related to sound MIX, multiplexing and device forward.

trying to play with config files. if no success - wil try torecompile .so library files
[One (M7) General] geek-baba:
so you mean that restore from nandroid backup will not restore the system files in /data?
[One (M7) General] Falseclock:
if some important file from /data will be missing, then OTA will fail
[One (M7) General] s_superman:
Will the only files that are going to be missing are in Data/preload and you can easily extract them from the OTA and make a flashable ZIP and flash it every time you wipe, I faced that problem and solved it that way except I manually copied them using root explorer because I don't know how to make a flashable ZIP
[One (M7) General] J_M_V_S:
Thanks. Wonder if WWE will also get RUU...
[One (M7) General] iamsuperuser:
HTC one dual Sim Indian users do not have RUUs

So how do I downgrade using fast boot ?

Do I have to rename the OTAs to ' firmware.zip' and flash via fast boot ?

There are other firmware files which are less than 100MB in size , should I use them to downgrade ? , they don't have the System partition in them ?

I have S-OFF on HBOOT -2.49

Please clarify what file do I use to downgrade
[One (M7) General] pogs24ever:
Do we have update on our kernel.. I think we should have our own thread for kernel developement... Im still hoping we can try all custom rom out there .. Anyone agrees?

Sent from mobile
[One (M7) General] Reddgy:
SoulROM 33 have custom kernel for DS with sweep2wake, doubletap2wake, logo2wake and logo2menu.But not at soul33 for some users, wifi and sd card doesn't work.Here is version for 802w, but flash it at your risk.
[One (M7) General] jamaljmys:
Any feed back guys?

Update

Failed to flash. Twrp recovery.
[One (M7) General] Reddgy:
You can't flash kernel from recovery.In this zip there is instruction.You should go to fastboot,conect phone to PC,put boot.img in ADB directory,start ADB,and then use command "fastboot flash boot boot.img",then normaly reboot device.

If I don't understood you and you do it with ADB,check that you do it in fastboot,your phone connected to PC and adb see it.Also I think that i will work only at Sense 6.And maybe because it's chinese kernel you should have chinese or super cid.

If all of this don't help, please, give more information(sense,hboot,s-off/s-on,full error message).
[One (M7) General] jamaljmys:
Thank you bro. You fully understand me. Maybe because of happiness (very very long time awaiting for this) I forgot the fastboot and tried from recovery. :D sorry.

Ian sense6 s-off relocked bootloder and I will do through adv and feedback to you. Wish all will go ok.

Thank you once more and sorry.
[One (M7) General] anos1:
pleas upload in another website:good:
[One (M7) General] Falseclock:
cause source taken from M7 kernel.

M7DUG has another wifi module and M7 source does not contain SD card drivers
[One (M7) General] Reddgy:
I don't understand how this thing work and maybe I'm wrong, but I think, that if this kernel wasn't adapted to M7DUG(sd card support wasn't added and it work for M7 wifi module) it wouldn't work with any M7DUG ROM.But it work with Soul33 and some other ROMs.Correct me if i'm mistaken.
[One (M7) General] Falseclock:
kernel for M7 is 99% the same as for M7DUG,

difference between some drivers and board name. It is very easy to compile M7 sources for M7DUG - you need just set correct board name.

Soul ROM developers will fix it soon, I hope, cause sources are now available.
[One (M7) General] bgcngm:
I have found that prima_wlan drivers are required if module has to be built (needed in case kernel version is updated).
[One (M7) General] poondog:
Why can't you guys port this stuff from m7?
[One (M7) General] Falseclock:
Mundial is on going :o
[One (M7) General] bgcngm:
M7 sources don't include prima driver either (usually under drivers/staging/prima), at least judging from your repo.
[One (M7) General] poondog:
Why do you need all this, since wifi works anyway? :)
[One (M7) General] bgcngm:
As I wrote before, WiFi doesn't work on 802W without proper (built for that kernel version) prima_wlan.ko module.
[One (M7) General] pogs24ever:
Tried the full rom... and its quite good... we dont need the power button at all to sleep and wake the phone..
[One (M7) General] bgcngm:
I have successfully compiled M7CDUG kernel with DT2W / S2W / L2W support taken from ElementalX kernel (by [MENTION=4684315]flar2[/MENTION]). If someone wants to try, download it from the development thread and flash boot.img via fastboot.
[One (M7) General] geek-baba:
Awesome!
[One (M7) General] pogs24ever:
Should i try it with official ruu?

Sent from mobile
[One (M7) General] bgcngm:
Tested and working with stock ROM 5.17.401.6 (Android 4.4.2 + Sense 6.0).
[One (M7) General] pogs24ever:
Will try it later.. Im on soul rom now.. Is the features ON by default?

Sent from mobile
[One (M7) General] bgcngm:
DT2W and S2W are turned on by default. L2W has to be turned on manually by now.
[One (M7) General] wewenk:
Tested and working on my 802w...

How to turn on L2W?
[One (M7) General] bgcngm:
See here, on the notes section. Do it manually by running the following command on an adb shell:

su
echo 1 > /sys/android_touch/logo2wake
[One (M7) General] wewenk:
What about splash image, just realize red mark showed up when booting covering powered by Android logo
[One (M7) General] bgcngm:
That is inevitable as boot image now differs from the stock one. The only solution is to hack HBOOT to remove that red mark warning, but I do not advise doing it.
[One (M7) General] jamaljmys:
Thank you for great work

Just to confirm, do i need to unlook the bootloader to get this kernel flashed? Its relocked now.

Thank you
[One (M7) General] bgcngm:
Yes, bootloader has to be unlocked either to flash recovery or boot.
[One (M7) General] wewenk:
What is the config file? Or it differ with elementalx?
[One (M7) General] bgcngm:
There's no config file support yet. This was just a preview build.
[One (M7) General] jerrylzy:
So you ported prima driver from CM? or is there any way to make stock module compatible with custom kernels?
[One (M7) General] bgcngm:
I haven't ported it. If kernel version is not changed at all the stock modules continue to load.
[One (M7) General] jerrylzy:
What kernel version, do you mean something like, 3.4.10-gxxxxxx? if I am compiling from EU source, and using EU modules, nothing need to be changed in order to make those modules work?
[One (M7) General] bgcngm:
Discussion about kernel continues here. Feel free to post your comments over there. It would be interesting to know if it also works on other DS variants (802D and 802T).
[One (M7) General] bgcngm:
That's correct. Stock modules are loaded as far as kernel version number remains the same. The problem I was having was that I was patching kernel to newer versions. If I want to do it in the future, wlan driver has to be included in the sources, so that a new module is also compiled.
[One (M7) General] QuantumCat76:
Sorry for my late reply:

I think I have an eastern europe version.

Android: 4.4.2

HTC sense: 6.0

Software numbeR: 5.17.402.6

HTC SDK API level 6.20

kernel:

3.4.10-g3dd1028

and@ABM103 #1

SMP PREEMPT

baseband

U3.15.3509.10_10.48D.1809.05D-E1237.29.35.0108

Build Number

5.17.402.6CL342802 release-keys
[One (M7) General] adrenalize_:
The 5.17.402.6 software version means you currently have UK/Nordic/Middle East software on your phone. Also really need to know where you bought the phone from, what software it had and have you done anything yourself to it (other than HTC software updates) like S-OFF and applying RUUs. If you haven't done anything to it yourself then my method may be a bit risky if it had this firmware froim the factory.
[One (M7) General] geenyous:
RoamingIconFix

Posted my RoamingIconFix for the stock 4.4.2 Sense 6.0 Europe ROM here.

Enjoy.
[One (M7) General] QuantumCat76:
haven't don anything than updates from HTC,

I think it's an 802w -from the pn 99hvl019-00

bought the phone via ebay from an italian seller
[One (M7) General] adrenalize_:
Hmm, sounds like it could be an official European HTC One dual sim (especially if it is silver in colour) and may have come originally with x.xx.402.x firmware. As there is no RUU for this FW I would not suggest using my method - In my case I accidentally put a TWRP backup of the wrong firmware on my 802w, but had similar symptoms. Sorry I couldn't help.
[One (M7) General] Esto.Vir:
[IMG="red triangle"]http://s2.hubimg.com/u/7203945_f260.jpg[/IMG]

friends of the community, I have a problem with my htc, wanting to get into recovery mode I get a red triangle and I can not do anything, help!
[One (M7) General] yugoport:
Guys, sorry if this has been asked but I am still very confused, It's my first HTC with "fastboot" "hboot" "S-on/off" and I am a little lost.

I have a china unicom HTC one 802w with hboot 2.49 and 5.15.1402.3 and my cid doesn´t start with 9001 , I want to install the european ruu but I can´t get S-off. My bootloader is already unlocked and I am rooted and with cwm recovery. I just can´t S-off with firewater because I have the following:

ERROR: kernel contains HTC anti-firewater patch!

If I install the M7C kernel will I be able to S-off with firewater? Or do I have to downgrade? I don't have a lot of experience with this HTC´s phones and don't wamt to mess it.

thanks in advance guys.