yashsingh1/xdaforums huggingface dataset:
[One (M7) Original Android Development] samhhmobil:
[MENTION=8406018]cylanjose[/MENTION]

1. Re-flash the valid and original HTC-Sense Stock-ROM.

2. Install Recovery (TWRP recommended)

-----------------------------------------------------------------------------------------------------------------

3. root your phone (SuperSU), but be CAREFUL, the SuperSU.apk in the PlayStore yet (2.82 from 27th May 2017) will lead into a bootloop, even the one installed by TWRP. A fixed version is available from the website from ChainFire (chainfire.eu), you MUST install THIS zip-file via recovery, nothing other.

For your own safety, please copy FIRST the UPDATE_unSU zipfile to your phone, if you're running into boot problems, then you cann flash this uninstall of root from recovery, and the phone will boot again correctly (without root). "UPDATE-unSU-signed.zip" is here: https://xdaforums.com/attachment.php?attachmentid=3931994&d=1478779893

THIS is the working superSU for HTC Stock ROM with 1.61 (have a look to the filename, it's from 28th(!!) May 2017):

SuperSU-v2.82-20170528234214-TEST-1.zip is found here: https://xdaforums.com/attachment.php?attachmentid=4164510&d=1496008012. This zipfile must be installed via TWRP, nothing else.

The newest 2.82 SR1 I didn't test yet.

-----------------------------------------------------------------------------------------------------------------

4. If your phone is correctly rooted, install "sunshine.apk".

5. start "sunshine", pay 25 US$ (!!) in-app, run to the end of the sunshine progress, reboot your phone, and... tada...

6. sunshine is gone away(!!), and/but your phone is S-OFF.

No other way for 1.61. I did it twice (two M7's).

Best regards,

samhhmobil
[One (M7) Original Android Development] SaHiN22:
The development of the Htc one m7 lineageOS was final. Because there is no update for 3 months
[One (M7) Original Android Development] saturday_night:
That is only for the official version of this one rom. And if you would read a little bit before flame here you would know that there are two guys realy hard working to solve the last bugs and make it official again. But there are a lot of actual unofficial releases of LOS here in the thread with a lot of additions which are NOT in the last official version. Latest one was yesterday. We all should be very thankful for the guys which are working to maintain our beloved m7. And if you only want official versions, there are four other roms which are still in official development right now.
[One (M7) Original Android Development] SaHiN22:
We will always be grateful to the Lineage OS team. I am new here What ROMs are currently being developed for the htc one m7?
[One (M7) Original Android Development] saturday_night:
If you mean official, there are AICP, SlimRoms, CandyRom, XenonHD and XOSP that are actualy five, forgot one in my last post haha. Unofficial there are a lot more
[One (M7) Original Android Development] SaHiN22:
Which one do you recommend?
[One (M7) Original Android Development] saturday_night:
That is just your personal taste, if you want a small one take slim, if you like to have a lot of customizations you should go with aicp or candy. If you like daily updates it must be aicp. If you like xperia surface and apps go with xosp. I personaly use aicp. But all of them are running nearly perfect, and all of them only have two little bugs. As far as i know bluetooth is a little bit buggy (i dont use it so cant say anything to that). And if you end a call with speaker active the next calls dont have sound until you end a call without speaker active or restart the device, best workaround is to disable speaker before ending the call. I never use the speaker when making a call so no problem for me.
[One (M7) Original Android Development] SaHiN22:
Thank you
[One (M7) Original Android Development] cylanjose:
Umh! Thanks, But i can't pay that, is a old phone and i'm poor...

I think the problem of the Sim in LineageOs 14.1 for HTC M7Spr is that it does not have Spring applications. Will there be any way to install them?
[One (M7) Original Android Development] icxj1:
This build will not work for Sprint. :( There is m7 & m7vzw. [MENTION=5944557]alial04[/MENTION] has an older AICP m7spr on his Android file host page. Flash it & see if sim is detected.
[One (M7) Original Android Development] cylanjose:
Jee thanks for you reply. I have found a ROM that works. Is a CyanogenMod 14/14.1 (CM14/14.1) for One M7 Sprint. I'm still testing it, just install it. I hope not to find any bugs, if I find any problems I comment.:good:

Since I am new to XDA, I can not leave a link ... If you want to find the ROM here I leave the location on the page:

cyanogenmods org

/forums/topic/htc-one-m7-sprint-cm14-14-1-cyanogenmod-14-14-1-nougat-7-1-rom/

I hope it works for someone.
[One (M7) Original Android Development] samhhmobil:
I understand. But nevertheless, if you have hboot 1.61, there is NO other chance to switch to S-OFF. If you would have 1.54, yeah, but you don't have.

And for cyanogenmod/LOS 12.1/13/14/14.1 it would be the best to change the firmware from HTC Sense to the latest GPE firmware. Otherwise it's possible that you will run into trouble with instable battery behaviour (especially with 1.61). But for that change you need to be S-OFF.

samhhmobil
[One (M7) Original Android Development] Faith Healer:
this one release have issues with BT (cannot connect my earphones and MI band 2, problems with enabling/disabling BT), rolling back to any previous build (at least 2 previous) solves the problem...
[One (M7) Original Android Development] oznate:
That's interesting because I have had Bluetooth issues all along with every release. This has been consistently reported for LineageOS on M7.
[One (M7) Original Android Development] SaHiN22:
Htc one m7 has not been updated for a long time. is there a problem

When it comes to updating.
[One (M7) Original Android Development] Genkodt:
Issues with connectiong to eduroam-wifi-network

Hi everybody,

I'm currently facing issues with connection to the eduroam-wifi-network (TLS) at my university. I searched this thread and many Google entries but couldn't find any solutions yet.

I'm running the latest LineageOS 14.1 ROM for the HTC One M7 (GSM). Everything runs smooth and I can connect to any wifi-network except for the eduroam-network at my university. I followed my university's instructions on configuring eduroam and even tried the eduroam-configuration-app that can be found on Play Store. Nothing helps and I always get the error message "authentication problem".

I'm pretty sure that I've done a correct installation of all necessary certificates as I was able to connect to eduroam back when I was running the original Sense-ROM and I followed the exact same steps now.

I found a simillar bug-report here. The author had a solution for the problem (remove screen lock, reinstall certificates and reconfigure eduroam), but this doesn't work for me.

The instructions in this thread to add a network manually via wpa_cli doesn't work for me either as I'm getting the message "could not connect to wpa_supplicant wlan0 - retrying" when "typing wpa_cli add_network".

Does anyone know if this is a known bug which will be fixed in future versions or if there is any work-around for this problem?
[One (M7) Original Android Development] bliblablub:
Issues means Bt randomly deactivating, doesn't it? There is a program for automate.
[One (M7) Original Android Development] oznate:
Yes, essentially. Requires restart to get it back on. I have experienced problems connecting and remaining connected. I have given up using Bluetooth for now.
[One (M7) Original Android Development] albafabio93:
Hi everyone, I'm absolutely new to modding but always fascinated by taking full control of my device. So I decided to install Lineageos on my old and glorious HTC One M7.

Once unlocked the boatloader, I'm having troubles flashing the TWRP recovery for my device. I made all the steps many websites (xda included) suggest, but this is the result and can't go further:

C:\Users\User\Desktop\BOATLOADER>fastboot flash recovery twrp-3.1.1-0-m7.img

target reported max download size of 1514139648 bytes

sending 'recovery' (12494 KB)...

FAILED (data transfer failure (Unknown error))

finished. total time: 5.034s

C:\Users\User\Desktop\BOATLOADER>

I tried to change usb port, to flash a different version of the twrp recovery, set up the debugging usb, uncheck the fastboot on settings, etc. No luck.

Is there anybody that knows how to proceed?

Thanks!
[One (M7) Original Android Development] icxj1:
Try to flash TWRP 2.8.4.0 or 2.8.6.0 i think you have to be on one of those before you can go to a later version.
[One (M7) Original Android Development] albafabio93:
Hi icxj1: I tried to flash the 2.8.4.0, the .5 and the .6, but the result hasn't changed.

Anything else to try?
[One (M7) Original Android Development] saturday_night:
Your bootloader is unlocked and you get the Serialnumber when you have a fastboot connection and type "fastboot devices" ? Did you download the correct file? https://dl.twrp.me/m7univ/ you can also try just booting into the recovery without flashing it with "fastboot boot twrp.xxx.img" Also for easier handling i allways rename the image to just twrp.img
[One (M7) Original Android Development] bliblablub:
http://llamalab.com/automate/community/flows/10846

Works for me with LOS13
[One (M7) Original Android Development] albafabio93:
Hi saturday_night; the bootloader is unlocked, the serial number appears. I downloaded from the twrp official website but the same problems appear with your link.

this is the only outcome: "FAILED (data transfer failure (Unknown error))"

I am connecting my device with the original usb cable, HTC Sinc Managager recognizes the device and it runs everytime I try; since my pc has only usb-c ports, I use an Aukey adaptor. But I don't think this is the problem since I made the bootloader procedure and transfered other data and it was fine.

Is there any other easy procedures to flash a recovery other than TWRP?

Thanks guys
[One (M7) Original Android Development] n0j0e:
Start in Bootloader > connect to PC (fastboot USB) > open a Command Window (cmd.exe) with the directory where's fastboot.exe and your recovery.img is) > type:

fastboot.exe flash recovery recovery.img

That's it.

Send with love & Android.
[One (M7) Original Android Development] saturday_night:
Thats the problem, usb 3 and 3.1 has problems with some functions maybe you can get access to a pc with usb 2 ports and do it there. Other option would be:

If you are able to get root access with an app like kingroot or similar. You can use the app flashify to flash the twrp.img to your recovery, i did it this way once and works great and complete without computer. But you shouldnt use apps like kingroot for permanent root access, if you are done with this and sucesfully installed twrp you should uninstall the root app and use magisk or supersu or lineage su addon for permanent root.
[One (M7) Original Android Development] n0j0e:
yep, that's right. Use a USB 2 Port!

Send with much love & Android.
[One (M7) Original Android Development] sabrinaf:
How I did it and got it working

Good evening,

I just wanted to add my two cents about how I managed to get my M7 working and quite stable again.

Basically the steps were:

getting S-Off,

update Firmware, radio, ...

Flash LineageOS latest build from this thread here.

in detail:

Getting S-OFF

I wiped the whole device and installed the latest release of ViperOne v9.0.0. This ROM is sense based. Afterwards I downloaded and installed the sunsine apk. Because of the fact that ViperOne is sense based Sunshine works on that ROM. So I paid the "S-OFF tax" and got the device successful S-OFF.

Update Firmware, radio, ...

i flashed than a newer firmware (in my case it was 7.19.401.2). I know it is not the absolute newest, but in that specific moment it was the newest I was abled to find.

Flash LineageOS latest build from this thread here.

Afterwards I did a full wipe again, fixed all partitions an reformated them. Then I flashed the LineageOS zip, booted, did the initial assistant afterwards I flashed the current release of OpenGApps pico.

My experience with the build 20170709 in combination with with firmware 7.19.401.2:

Quite stable. In two weeks I had only 2 reboots which I am not sure I they were caused by the ROM or something else.

Amazing battery performance. The update of the firmware obviously fixed my battery problem I previously had with CM12.1, which I was coming from.

No more hot device and battery drain.

Battery lasts about 19hours.

quick boot time.

fluid menus.

Spotify finally works quite fast.

After a few days of uptime bluetooth stops working. That behaviour I saw on CM12.1 too. A simple reboot fixes the problem, so I really can live with that.

About the speakerphone bug: I simply did not test that.
[One (M7) Original Android Development] maciclazar:
You flashed latest HTC firmware. To fix random reboots and possibly bluetooth and improve rom stability you should use GPE firmware. You can find latest version 6.04.1700.19 (which is actually newer than 7.19.401.2 from HTC) in this post. Download and flash "Complete firmware (without boot.img and recovery.img)"
[One (M7) Original Android Development] sabrinaf:
Ohh, well that sounds amazing. Excuse my stupid question: I flash that zip simply via fastboot_htc, right? Do data, internal storage and system partitions get modified by the flash procedure? Is it necessary to restore something afterwards or does only get updated the firmware of the device? Thanks for the hint.
[One (M7) Original Android Development] maciclazar:
You'll need to flash it via fastboot. It won't wipe your partitions so you won't lose any data. However it is always a good thing to backup your photos, music etc before you flash firmware.
[One (M7) Original Android Development] juanantofb:
Hi, sorry what is the command to flash only firmware?

fastboot flash xxx xxxxxxx.zip?

Thanks.
[One (M7) Original Android Development] Zombie Feynman:
Just realised I haven't followed up on this at all. I replaced the battery about two weeks ago, and the phone seems to be OK now. It was very difficult to open, but not impossible. I bought a cheap phone repair kit from a Chinese web store and actually managed to break the thin plastic plectrum twice, though not before making enough room to slide some credit cards in. I did damage my volume rocker a bit, and the seam around it has gone a bit wobbly too, but it's not too bad. The clips and back cover are in good condition. I used an old hair drier in lieu of a proper heat gun, and I briefly and very carefully used a thin metal screwdriver in a crack that wasn't wide enough to stick a credit card in, after the plectrum was too destroyed to use.

The actual process of replacing the battery was a breeze. Just make sure to keep track of which screw goes where (almost none of them are interchangeable!), and don't force any connectors if they won't budge, especially the antenna cable ones.
[One (M7) Original Android Development] An3skmbi:
I followed the steps from this thread's op:

https://xdaforums.com/showthread.php?t=2485651

adb reboot bootloader

fastboot reboot-bootloader

fastboot oem rebootRUU

fastboot flash zip C:\adb\firmware.zip

When you get this message: FAILED (remote: 90 hboot pre-update! please flush image again immediately), run previous command again:

fastboot flash zip C:\adb\firmware.zip

It takes a while, be patient...

Success! I did this yesterday, battery and bluetooth much better now!
[One (M7) Original Android Development] juanantofb:
Hi, currently i have LOS flased, my previous ROM GPE, is needed flash this firmware?.

Thanks.
[One (M7) Original Android Development] maciclazar:
Rom is not related to firmware. GPE rom works with both sense and GPE firmware. You can change firmware only if your phone is s-off. You can see which firmware version you are running by typing "fastboot getvar all" while in fastboot
[One (M7) Original Android Development] juanantofb:
Hi, thanks, i have last GPE firm, but i has been flased again.

Regards.
[One (M7) Original Android Development] damienMTL:
Hi, I just installed LineageOS build 20170709 with my HTC One M7 firmware 7.19.401.2 S-OFF and SCID

Everything seems fine but it's impossible to install GOOGLE PIXEL Launcher (I even have it on my HTC One S)

Do you know how to bypass the google play impossibility and have google pixel launcher on my HTC One?

Thanks in advance ;)

edit: I found the apk on xda it's all good and working fine. Good job!
[One (M7) Original Android Development] albafabio93:
I finally made it. The problems were

1. fastboot file wasn't in the same folder as the twrp.img when flashing

2. usb type 3.1 didn't work, 2.0 does perfectly

Thank you all guys!
[One (M7) Original Android Development] sully_i:
I just installed it. The ROM is very smooth and responsive. Battery life is on par with stock. I installed it with G-apps, which only allowed google assistant to work with US English not UK English. No bugs found as of yet. I have got HTC stock firmware and did not flash GPE firmware which so far has not caused any problems.

Thank you mchowdhury for maintaining this ROM.
[One (M7) Original Android Development] albafabio93:
Hi guys, I recently installed LineageOS on my HTC One M7 (GSM). It is amazing in almost every aspect. However, I'm missing some pieces of the old Sense software.

- Beats Audio Equalizer

- Blinkfeed (especially when it wasn't dependent on News Republic)

- Themes, and other layout (dialer just to mention)

- Personal audio profile (introduced with HTC 10, but doesn't seem to need any hardware components the M7 lacks)

You know if it is possible somehow to install just these functions? Could it be apk published somewhere?

Thanks you all
[One (M7) Original Android Development] sully_i:
I assume that it is not possible to install any of these as I think they require HTC sense which you wiped and replaced it with lineage OS. Someone more knowledgeable than me could give you better insight.
[One (M7) Original Android Development] saturday_night:
In the moment when xposed for nougat is official you can install the sense framwork xposed modul and use all apps which are made for HTC devices like Sense Home and similar. But you wont get Beats Audio, i recommend using magisk and modules: High performence DAC enabler together with Dolby Atmos module which brings an awsome sound to our device. For Themes there is substratum which is much better than HTC themes.
[One (M7) Original Android Development] juanantofb:
Hi, sorry this funtion only work in SoC SD820 or greater.

High performence DAC enabler

Regards.
[One (M7) Original Android Development] Kenann7:
I have a question please answer, which android version did you choose when you were downloading gapps? and how do i make a backup of current rom?? please answer please
[One (M7) Original Android Development] sully_i:
I downloaded the 7.1 android Gapps full version but you can use a lower size if you want like mini. You must make sure the custom rom you are flashing is android 7.1, which lineage OS is.

To backup you must first flash a custom recovery like TWRP or CWM ( this will wipe all your data). Then boot bootloader (vol down+power) and select recovery. Then press backup then tick system, data and boot. Follow the instructions and it will make a backup. You should then transfer the backup to you computer for safe keeping. It will be saved under the folder called TWRP.
[One (M7) Original Android Development] saturday_night:
Thats not true it works on all Snapdragon devices also on our great m7. M7 has SD600 which has Audio codec: WCD9311, and this module is compatible with all WCD9XXX codecs.

BUT all of the great work from androidexpert35 got deleted here from XDA because he uploaded ONE single app that was somehow hacked. The mods are stupid to dissable his account and delete all of his years of work just because of that one thing. Would be much easier to ask him to delete this one app. So you cant get the High performance DAC enabler from XDA or Magisk repo anymore.

Second BUT!!! But you can search on Github for his account (same user name) and download the high performance DAC enabler from there. Still a usual magisk module and i just downloaded it from Github and installed it. Thank god XDA isnt everything in the dev world haha.
[One (M7) Original Android Development] juanantofb:
Hi, the script to enable this function, looks in the / modules folder for the file "high_perf_mode" and if it finds it changes the value from 0 to 1.

If you look in the rom of the devices with SoC lower than SD820 that file does not appear, I have been doing test and in the only device that appears the file to modify is the LG G5, SD820, and with the kernel Speedy and Ex Kernel Manager You can enable that function in the rest of devices inferior to SD820 does nothing because if it does not find the file does not modify anything.

What's more, I do not notice the difference in the G5 with that option activated or not.

Placebo effect.

Greetings.
[One (M7) Original Android Development] saturday_night:
That might be possible but your first post "doesnt work" is more like flame ;p I can only tell whats written in the descriptions and there it tells on all devices with wcd9xx codecs and thats what m7 has got. I dont know much about development so its possible that the great improvment of the sound was only from the dolby atmos module, never tried the DAC enabler alone.
[One (M7) Original Android Development] zeeBomb:
Wait what do you mean? Is there something wrong with the audio i'm not aware about? :eek:
[One (M7) Original Android Development] juanantofb:
Hi, my friend, I'm totally serious, do not waste time with that module, apart from that in our SoC does not work because the SD600 does not implement the Hexagon DSP, it has a dedicated chip for sound and does not use the SoC QC.

Type in the terminal emulator this command:

Tinymix

You can see above altogether:

Mixer name: apq8064

That is the dedicated DAC and not the QC integrated chip

Greetings.
[One (M7) Original Android Development] FeelThePoveR:
Anyway androidexpert35 should stay banned as it's not his first ban for something like this so it's not a mistake and his mods aren't that great either. They're either a bunch of mashed up mods that can be easily obtained elsewhere without a bunch of unnecessary nonsense attached to them or a one line changers that do nothing for most of the devices.

Hell he fell down so hard that he started a petition to get back to xda! LOL
[One (M7) Original Android Development] albafabio93:
Where can I find the apk you said for High performence DAC enabler together with Dolby Atmos module?

Thank you
[One (M7) Original Android Development] miki4:
Jesus Christ, just read some posts above you. It's even on the same page. And if you read it before, you would not only had known where to download it but also that it's completely useless on the M7. A quick search would also help.
[One (M7) Original Android Development] Kenann7:
Thank you for guide though I already knew some of it :o
[One (M7) Original Android Development] damienMTL:
Hi,

Everything was working flawlessly for a week. And I don't know if it's related to this build, but yesterday, I got an issue and could not fix it.

>>> HTC One M7, LOS14.1-20170709, firmware 7.19.401.2 S-OFF and SCID

I have no microphone/speaker sound with outgoing calls. The bug came randomly without any reason.

First time was after installing UBER app, the other time was after setting my IMAP email in Mail.

The only thing I could do was to recover from a neat install in TWRP. That's strange and annoying.

Did anyone already experience this kind of issue?

thanks ;)
[One (M7) Original Android Development] oznate:
Yes, that is a known issue, fixed by simply restarting the phone. Apparently can be avoided by switching off speaker phone mode before hanging up. I also experience it in other scenarios which I am still trying to nail down and reproduce. Anyway a restart always brings it back to normal.