[One (M9) Q&A, Help & Troubleshooting] LHTC5:
Hi all, first time poster. I'm having a bit of a problem after flashing Lineage OS to my HTC one m9. Of course I negelected to make a backup of my stock rom so here we are. I'll try to detail what I did from the very start as best as I can remember.

1) rooted using TWRP and SU, got Lineage OS flashed and the phone was working fine. Restored all my apps/data etc from my google account but then realised that my texts weren't restored. I then found out google doesn't backup texts. I've a lot of texts that I needed so after realising HTC sync had backed up my texts, messages, clock data etc, I tried to restore them from HTC sync. Of course this didn't work as I no longer had a HTC rom.

2) At this stage I decided to reflash the stock rom. Because my phone is S-On, I couldn't flash just any stock rom so I ended up finding a rom that matched my SKU and as far as I can remember, the same main version (3. something). I downloaded the rom from this post https://xdaforums.com/one-m9/genera...collection-t3132698/post71421945#post71421945

The following is from before I flashed the stock rom when I was still on lineage:

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) imei: ***************

(bootloader) version-main: 3.35.161.12

(bootloader) boot-mode: download

(bootloader) version-baseband: fast

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: VODAP001

all:

finished. total time: 0.038s​

3) After restoring my text messages (funnily it didn't restore the most recent ones, only up until mid-november) I reinstalled TWRP/SU and then flashed Lineage OS again. I also flashed gapp nano (which apparently is a no-no, only pico should be flashed, or so I heard, don't know if this is fully correct.) I can't remember if I had any service at this stage, although I didn't make any calls or texts and used WIFI so it's likely I didn't. I spent the evening restoring my google account data and customising settings in Nova, personalising the phone, etc. The next morning I realised I didn't have any service.

4) I looked around the internet and tried a couple of different solutions, none of which worked.

I tried turning the phone on and off, didn't work.

I tried dialling *#*#4636#*#* and from there tried changing the preferred network to a couple of different option, changing the radio band mode to automatic, and enabling and disabling Mobile radio power (which resets itself automatically, don't know if this is of any significance). None of that worked. Here is what is displayed in the phone info menu:

IMEI:****************

Phone number: (no phone number displayed)

Current network: (no network displayed)

Signal strenght: -1dBm 99 asu

Voice Service: emergency calls only

Data service: disconnected

Voice network type: unknown

Data network type: unknown

Voice call status: idle

Roaming: not roaming

Set preferred network tye: KTE/UMTS auto (PRL)

Ping hostname(google.com) IPv4: Pass (with WIFI on)

Ping hostname(google.com) IPv6: Fail

HTTP Client test: Pass

(Something of note perhaps, when I go to select radio band, my options are Automatic, United States, Automatic United States) I am in Ireland so I don't know why I'm getting the option for the US.

Someone on another thread suggested that the baseband was wrong, so first I took note of the baseband (01.01_U11440792_96.00.51201G_F) and then reflashed the stock rom I had downloaded earlier. This didn't change anything, I still had no service. I reflashed TWRP/SU and then Lineage OS to see if that would make any difference but it didn't. I also flashed another rom, Android revolution, which didn't make a difference either.
​

5) After that, I downloaded another stock rom matching my SKU,: 0PJAIMG_HIMA_UHL_N70_SENSE80_MR_Vodafone_UK_4.17.161.11_Radio_01.01_U114401031_124.01.70203G_F_release_500907_combined_signed_2_4. After flashing I still had no service. Again I flashed Lineage OS but that made no difference. This was taken from the phone at that stage:

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) serialno: ************

(bootloader) current-slot:

(bootloader) imei: ***************

(bootloader) version-main: 4.17.161.11

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U114401031_124.01.70203G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: VODAP001

all:

finished. total time: 0.040s​

6) Now we are at the present. I reflashed the stock rom (0PJAIMG_HIMA_UHL_N70_SENSE80_MR_Vodafone_UK_4.17.161.11_Radio_01.01_U114401031_124.01.70203G_F_release_500907_combined_signed_2_4) and no service. This is my current getvar all:

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) serialno: ************

(bootloader) current-slot:

(bootloader) imei: ***************

(bootloader) version-main: 4.17.161.11

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U114401031_124.01.70203G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: VODAP001

all:

finished. total time: 0.050s​

Some things to note:

My phone is S-ON, network unlocked

Before each rom flash, TWRP was used to factory reset, wipe data, and the cache and dalvik were cleared.

Don't know if this is significant, but the getvar all is slightly different the first time. The first time the baseband version is simply listed as "fast", not a specific version.

I tried another working sim (from a different network) in my phone and still no service. I also tried my sim in a second phone and that didn't work either which was strange. I don't know how the phone could change the sim and cause it to not work anymore. I also tried a third sim (from the same network as mine) in the second phone and that didn't work either. This leads me to believe that my network's sims are incompatible with the second phone (although it too is network unlocked)

I bought my phone secondhand about 2 years ago and it was already network unlocked. However, it was originally locked to Vodafone. Could reflashing the stock rom cause it to be once again locked to that network? I don't have a vodafine sim to try at the moment, but just wondering if it's possible,​

If someone could give me a hand that would be fantastic, I've tried everything I could think of and find on the internet and still no luck.