yashsingh1/xdaforums huggingface dataset:
[HTC One Mini 2] GuestK00204:
if you dont want keep seeing this just remove SDCard while you performing the actions.

try this recovery instead

its normal the device boot into the rom unless you press the buttons to get into bootloader.
[HTC One Mini 2] bashme:
Brilliant.

I finally got into twrp with this recovery provided by kativiti. I have now successfully flashed supersu zip.

Wow that took some doing.

OK so now i need to find a suitable ROM that will help me answer my initial query, Enabling HS USB Diagnostic port. I was able to enable the hs usb diagnostic port on a Samsung just by installing Kies software. But was not able to get the hs usb diagnostic port enabled for several rooted Sony devices. I guess all the custom ROMs will do that?

Anyway I really appreciate the assistance i've had from all you guys.

Cheers and big thank you.
[HTC One Mini 2] GuestK00204:
not sure what you asking and for what but after a search i found this:

open command prompt and type

adb devices (if your device shows continue)

adb shell

su -c 'setprop sys.usb.config diag,adb'

nothing happened on mine but i don't have HTC drivers installed. All you need in here
[HTC One Mini 2] bashme:
Hi kativiti.

Yes, this is exactly the adb setprop command i'm sending but nothing is happening. Usually, after issuing this command in device manager on my windows pc, new ports open up with exclamation marks and then either windows installs the drivers automatically or I have to do it manually. Only then I should see the newly installed HS USB diag port. I also noticed that the setprop command has different variations, therefore i am looking at tweeking the command. Back to the net i go.....

Previously, I was able to enable HS USB diag port using the above adb command on the Xperia Z and Samsung Mini S4. But I've not been able to activate HS USB on Xperia Z3 and now HTC One Mini 2. I was under the impression that if I rooted and flashed a custom rom onto the HTC One Mini 2, all developer features would be automatically available, especially the HS USB diag port??

To compound the misery, after much reading on rooting and flashing for HTC One Mini 2, I flashed cm-NostromoPop-v2.0-20150430-1330-memul.zip and open_gapps-arm-5.0-nano-20160401.zip. Thankfully the device is not bricked. However, now i get the following problems

When accessing Google Play Store - 'Check your connection and try again'

'Google Play Services won't run...' message repeatedly appears

I cannot boot into twrp recovery so that i can flash another rom

I read on the net that installing the wrong GApps file produces the above google problems? Could i have installed the incorrect GApps file?? Not sure how to verify this? Could the rom i installed be incorrect?

And what can i do to get into twrp recovery again? Not even the twrp recovery image i earlier flashed and successfully booted into has helped this time.

I am rigorously searching the net for answers, to no avail thus far.

Ahh the joy of messing with a phone. I'm very tired but will keep trying lol

Any help would be warmly welcomed.

Thanks in advance.
[HTC One Mini 2] GuestK00204:
Start again...

first clear cache

fastboot erase cache

then flash recovery again.

Make sure that you get ROMs from official sources.
[HTC One Mini 2] bashme:
OK so i cleared the cache through adb (fastboot erase cache)

i then successfully flashed twrp recovery. However, instead of the device rebooting to twrp recovery, all i see on the device is the cyanogenmod icon with a circle gradually appearing and disappearing around it.

I have attached a number of photos in sequence (DSC_000009.jpg, DSC_000010.jpg, DSC_000011.jpg, DSC_000012.jpg) showing the circle around the cyanogenmod icon.

Why has this cyanogenmod icon appeared? Is cyanogenmod updating? Or is the device bricked?

Also, is this the link for the official downloads - https://wiki.cyanogenmod.org/w/Devices

Appreciate your advice please.

Thanks again.
[HTC One Mini 2] GuestK00204:
you are stuck in bootloop because your ROM is corrupted. Remember you need to use the button to get into bootloader and then recovery.
[HTC One Mini 2] bashme:
OK i did a little trial and error:

I simultaneously pressed the power and vol down button, however device did NOT boot into bootloader

I then simultaneously pressed the power and vol up button and device rebooted, but then went back into boot loop

Finally i simultaneously pressed power and vol up button and device started to reboot (screen went blank) and i immediately pressed vol down button, now it booted into bootloader

I then selected HBOOT > RECOVERY and it booted back into bootloader

So i decided to flash twrp recovery when in bootloader and again it went into boot loop

Unfortunately i am back to square one - in bootloader

I can now boot only into bootloader and not to normal UI. So i guess the rom is corrupt.

It's probably a silly question - Is there a way to install custom rom through ADB??

Thanks again
[HTC One Mini 2] GuestK00204:
you can use ADB push but you need TWRP for that.
[HTC One Mini 2] bashme:
OK so after much fretting i managed to get my device working.

I managed to boot into bootloader and then flashed an earlier version of twrp and it immediately booted into recovery.

From here i wiped cache, system...... and then installed CM12 with corresponding GApps.

Device now working...PHEW!

OK so now back to trying to get HS USB port activated using ADB commands, which i am trawling the net to find. I just don't understand why it is possible to activate HS USB port in Windows for Samsung and Sony, but not on this HTC One Mini 2?? The ADB setprop command you listed earlier is usually the one that triggers windows to open up the HS USB Diagnostics port, but it is not happening with this HTC One Mini 2? Anyway, i'll keep checking the net.

I have added an image just to show what it is i am trying to activate - Qualcomm HS USB Diagnostics Interface Port

Once again many thanks for your assistance kativiti.

;)
[HTC One Mini 2] GuestK00204:
reserved
[HTC One Mini 2] :
GOT IT...

1 - enter adb shell then use codes

for On:

su echo 1 > /sys/devices/virtual/android_usb/android0/f_diag/on

for Off:

su echo 0 > /sys/devices/virtual/android_usb/android0/f_diag/on

drivers are in your phone if you using stock or download here
[HTC One Mini 2] bashme:
OK so I entered into shell and 'for On' I typed:

shell@memul:/ $ su echo 1> /sys/devices/virtual/android_usb/android0/f_diag/on

the response I got was:

/system/bin/sh: can't create /sys/devices/virtual/android_usb/android0/f_diag/on: Permission denied

I also got the exact same response 'for Off'

I'm not too familiar with ADB to be honest, so not sure what to make of the Permission denied?

Thanks again
[HTC One Mini 2] :
dont type. just copy and paste. it will be different.

you are missing some spaces...
[HTC One Mini 2] bashme:
Yes you are right, I copied and pasted the command (for On) and it triggered the HTC Diag, Fantastic.

Ok then I downloaded the drivers and I noticed that they are an exe file - MEGAsyncSetup.exe

Is this correct? I am always suspicious of exe files.

Cheers.
[HTC One Mini 2] :
you download the wrong file.Use download through your browser

just go into device manager, click update drivers and point to the folder.

when you done go to your first post and edit the title to:

[SOLVED] Enabling HS USB Diagnostic port

so others will know
[HTC One Mini 2] bashme:
Yes selected download through browser and I successfully got the DIAGdrivers folder, which I extracted. Unfortunately I am not able to install them?? I am on a Windows 10 64 bit machine and there are no drivers for this machine. I also pointed to the adb folder. Shall I run HTC_Sync_Manager_PC.exe or one of the other exes in the HTCDrivers folder?

Cheers.
[HTC One Mini 2] :
im also in win10 and i just pointed to the folder

device manager

update driver

manually look for driver

choose folder.
[HTC One Mini 2] bashme:
I pointed to diag drivers and ticked Include subfolders - Windows could not find drivers for your device

I pointed to diag drivers>diag drivers - Windows could not find drivers for your device

I pointed to diag drivers>diag drivers>HTCDrivers - Windows could not find drivers for your device

Just when we're at the very end........near yet so far!

;-(

Cheers
[HTC One Mini 2] :
i might be because you're not using stock ROM.

last choice download and install HTC sync manager. Should contain all drivers. you may have still to do it manually.
[HTC One Mini 2] bashme:
yeeeessss it worked!

All I did was restart my pc and reboot the device. I had exhausted all other options lol.

I would like to say a huge thank you to you kativiti. You have been extremely helpful and patient with me. Guys like you have made the xda developer community what it is today!

Just a couple of weeks ago, I didn't know RECOVERY to BOOTLOADER or TWRP from CUSTOM ROM, however after much much reading, today I am a little wiser to it all, thanks to this great xda developer community.

BIG SHOUT OUT TO KATIVITI et all!

Thank you and good night!
[HTC One Mini 2] :
glad to help.
[Samsung Galaxy S7 Edge Accessories] robobub:
I bought a clear hybrid TPU & PC case from LUVVITT and love the case (especially the larger than average headphone cut out) except I noticed isolated rainbow spots on the back.

https://imgur.com/a/VIaF2/

They appear to change as I put pressure on different parts.

From googling I've only really found discussions where large sections of the back has a rainbow effect for cases without some kind of dot matrix pattern.

But this seems different. The fact that the sections pretty narrow/small worries me a bit. Is the case putting unnecessary stress on these small parts of my phone? E.g. dropping it would focus the force on these areas. Or is this normal?
[Verizon LG G4] jlb1959.01:
OK,seems I continue to post in the incorrect section so I"l try this again..recently my vs985 lg4 thru ota update was upgraded from 5.1 to 6.0- my questions are ,,, does kingroot work on the 6.0, I know it works on 5.1 as I previously had it rooted.and 2nd question is I'm having terrible battery life even with greenify working and the built in doze,is that a common problem..I didn't want to even try kingroot without asking first...thanks and hopefully I'm in the proper thread,section....
[Verizon LG G4] WAIDroid:
Nope, i've tried but no root for Android M for the LG G4. You'll have to go back to Lolipop
[Verizon LG G4] jlb1959.01:
OK,not what I was hoping for,next question,do I just do a factory reset or does that not rest back to 5.1, as I originally had 5.1 but ota updates brought it to Mm..I truly do not like MM as battery life has been cut in half...
[Verizon LG G4] divineBliss:
You have a VS986, not VS985.

A factory reset will put you back to Marshmallow.

You will need to use LGUP PC tool to flash your phone back to Lollipop using the 13B KDZ file.
[Verizon LG G4] jlb1959.01:
Thanks,thts something way out of my league,got to look that up and read into how to do that without messing up,if I had known MM was soo bad with battery life I would never had done the upgrade,very glad I've found xda forum..next question does it matter if I have an lg3 or lg4? or is MM that difficult to root,i know its new upgrade but I can tell you personally that without root MM is terrible with battery life,my vs985 was great rooted on 5.1...and I thank this group VERY much for the advice I am getting...
[Verizon LG G4] LASERWOLF452:
i never put my g3 ion MM its still on kitkat, so dont try or you may be stuck with it, if you want MM that bad on the g3 get CM for it, if you want to root the lg g4 the right way. i have a step by step guide on how to root it, i wont do no MM downgrade as i do not wont the OTA on my G4. its still on 5.1 and happily rooted

http://xdaforums.com/verizon-g4/help/lgg4-13b-root-vs986-t3268354

thats my post rmember thats for 13b root method, dont try the KDZ with MM use lgup tool first then you can root your phone
[Verizon LG G4] leroybrute:
Do a factory reset... Will help with battery life.

After any large update you should factory reset. Cleans up old files "basically corrupt files" not needed for the new OS.
[Verizon LG G4] jlb1959.01:
Thank you...
[Verizon LG G4] WAIDroid:
Yeah, i should go back to Lolipop soon cause the default Launcher is not good for me. I want Z-Launcher https://www.zlauncher.com/ I also want all the bloatware gone
[Verizon LG G4] CrustyMcLovin:
+1 for Z-Launcher, so easy and convenient. No more spending time settings up screens and folders.
[Verizon LG G4] jlb1959.01:
Thank you Laserwolf452..
[Verizon LG G4] LASERWOLF452:
you are welcome
[Verizon LG G4] bamban1005:
About the battery life it could be that the verizon apps are draining the battery, when i bought my phone i totally freak out becasuse it didnt last not even 8 hours, try to good to app manager settings and disable all verizon apps as well the NFL app that why solf your issue. At leats for me was the answer.
[Verizon LG G4] jlb1959.01:
Yes your definitely correct,since my it a from 5.1 to 6.0 I've been eliminating unnecessary apps trying to solve my issue,several apps I need root and now that I am 6.0 that's been impossible,but ice eliminated a lot..

vs985 lg3
[Verizon LG G4] bamban1005:
You dont need Root. you permanetly disable them just go to:

1) Setting

2) App Manager and localize the aplications of verizon and

3) Select one, later clic on disable (or Deactivate)
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
Hy guys, i hope someone can help me with this one.

I try the other days to root my phone, and all got smoth, then i update my firmware because WiFi will not work and i read somewhere that will be problem. And i update my firmware too, all was good, everything instaled sucefull but when i try to open it stay blocked on main screen. How to make more clear than that? The phone freeze where the HTC logo appear, i can't do anything more than that.

Some info i can get from fastboot:

*** Software status: Modified ***

*** RELOCKED ***

M8_UL_CA PVT SHIP S-ON

HBOOT-3.19.0.0000

RADIO-1.21.213311491.A04G

OpenDSP-v47.2.2-00564-M8974_F0.1024

OS-3.11.1700.5

eMMC- boot 2048MB

I think when i installed the firmware the proces delete everything on my phone, i dont have recovery or anything else. Can someone help please to restore to stock? Or at least to a soft that my phone to work?

Thanks! (And sorry for my bad english, not my first language)
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
You still have KitKat firmware, as shown by your OS version. You CANNOT flash a modified firmware package while S-On. You need to either run a signed RUU, or go back to stock and use HTC's/your carrier's OTA updates.
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
Do you have a stock ruu? or maybe how to s-off? because i cant find anywhere firewater.

Maybe this will help with something:

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.21.213311491.A04G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 3.11.1700.5

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul_ca

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B12000

(bootloader) cidnum: CWS__001

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: RUU

(bootloader) commitno-bootloader: c88f4560

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.057s
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
So can anybody can help me? Please i am stuck on this. And when i want to flash the RUU from AT&T i still get the error 155: Unknow Error. Can someone help me? Please.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
What firmware did you try to flash? It looks like it was GPE firmware.

Is your bootloader screen black or white now?
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
My bootloader screen it's black, it's that important?...

And the firmware was download from HDRevolution website.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Yup, that's very important. Black hboot screen is the GPE version (and white is Sense version hboot). You at least partially flashed a GPE firmware. This isn't supposed to happen with s-on (firmware for other versions should be blocked). But I do remember a while back, a few folks having the same issue; where a GPE firmware or RUU partially flashed (with s-on) and caused some problems.

That doesn't help. Quite a few firmwares are posted there. What specific number firmware did you flash? Did you flash the firmware number (3.11.1700.5) shown OS number on your hboot screen?

---------- Post added at 12:03 PM ---------- Previous post was at 12:03 PM ----------

What RUU (file name) are you trying to flash?
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
The firmware i flash was 3.11.1700.5 yes.

That from the official page, this one:

"RUU_M8_UL_L50_SENSE60_ATT_MR_Cingular_US_4.28.502.2_Radio_4.0.U605611@50319A_40.45.C33065.00_F_release_446225_signed_2"

And also i was trying with this one:

RUU_M8_UL_M60_SENSE70_MR_BrightstarUS_WWE_6.12.1540.4 I dont know where exactly i find this one, but this one like the one above give me the same error, now and before trying rooting my htc.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
I don't know why you flashed this. Not only is it not current firmware (Kitkat, as another noted before), but its not even for your version (its GPE version firmware, as I mentioned).

That is the proper RUU for the AT&T version; and your bootloader is relocked, as it should be for RUU.

So I think the problem is the GPE firmware you flashed before.

Try flashing the proper firmware first, then RUU again, and hopefully that will work.

I can't find the 4.28.502.2 firmware. But 4.28.502.1 firmware is posted on the following. Use the Full stock firmware. Hopefully, this is close enough to 4.28.502.2 to work.

EDIT: Forgot to post the firmware link: https://docs.google.com/spreadsheets/d/1aNd_nm4Em1wamRLFT7qHM2c3O9_sg_H3ztBrGq1u9Ws/pubhtml

That RUU will not work, anyway. Its for the Developer Edition, so the only way to run it would be to change your CID (s-off required, and working OS is needed to s-off).

---------- Post added at 01:02 PM ---------- Previous post was at 01:00 PM ----------

Firewater was discontinued by its devs in December 2014. Since it has an online component (needed to connect to servers), it won't work even if you find the firewater binary.

Sunshine is the only current working s-off method, and as I mentioned, it requires a working OS to work.
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
I flash that firmware because have my cidnum and modelid, and i read that the firmware need to have the same cidnum and modelid.

Where can i find this firmware?

And i didn't know that firewater doesnt work anymore, and sunshine i think you have to pay 25$ per month, right?
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Yes, firmware needs to have the same CID and MID. But the 3.11.1700.5 firmware doesn't go with your CID and MID (CWS__001 and 0P6B12000)

"1700" firmwares (such as 3.11.1700.5) are for the Google Play Edition (GPE) with CID of GOOGL001 and MID of 0P6B17000.

Proper firmwares for your AT&T CID and MID will have the number "502" in the position x.xx.502.x

Sorry, forgot to post the link. I had the page open, and everything: https://docs.google.com/spreadsheets/d/1aNd_nm4Em1wamRLFT7qHM2c3O9_sg_H3ztBrGq1u9Ws/pubhtml

That's right. And as I already stated, sunshine requires a working OS, which you don't have. And since getting the OS working again seems to be the main reason you want to get s-off, you see its quite pointless.
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
No problem :D And to flash this firmware i can do it like this:
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Yes, exactly.
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
I get this error when i try to flash the firmware:
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
You used the "full stock" firmware 4.28.502.1, correct? Not the "Combined, No wipe" one?

You can also try the 3.42.502.1 firmware.
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
Yes, i use the full stock firmware. Now i will try with 3.42.502.1

Later edit: I get the same error when i try with the 3.42.502.1 stock
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Those might be unsigned firmwares, but I thought they were signed.

I think your options at this point:

1) Find signed firmwares of the versions I recommended.

2) Unlock the bootloader again, flash TWRP again, then flash a 3.xx based custom or stock ROM (which will have working WiFi). Then s-off by sunshine so you can fix the firmware (will allow an unsigned firmware to be flashed).

Another thing to note, when you flashed the GPE firmware, it reverted the recovery back to stock recovery. Which is why you no longer have custom recovery.
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
And how i can unlock the bootloader again? and flash the TWRP?
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Unlock the bootloader by HTCDev.com. Then flash TWRP with fastboot.
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
Ok, i succed to instal the TWRP and i unlock the phone, but i have no ideea what rom to instal. Can you help me with that please? I'm scare i will broke my phone again if i install something on my own again :))
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
Ok, i try to flash more than roms to my phone, only one got to be installed, but was blocked on htc logo, after few seconds he will reboot it self and go into recovery. Was a marshmallow rom i think. The rest was based on 3.xx custom rom like u say, and all of them get same error:

I even try a GPE rom just to see if will get instaled, but i had the same error.

Why do you think?

And this is what shows me on fastboot now:
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
How exactly (in detail, step by step) are you trying to flash these? The error looks weird, it shouldn't reference anything about "RUU".
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
It's not saying anything about RUU, it's say again the directory where the zip file is. My bad.

And, i put the zip file on sdcard, enter fastboot from there enter recovery, then i wipe dalvik, cache, sistem and data, and do a factory reset just to be sure, and after that i install the zip.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Then where did the following come from:

Confused, you're saying you typed in/RUU yourself?
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
No sorry, there should be "/external_sd/ATT_1.58_STOCK_ROOTED_ODEXED.zip" but i was to lazzy to write that again. Sorry.

And when i try to instal RENOVATE Milestone 5.0 i get the next error: (Maybe this will be more helpfull then the other because it's in the rom wizzard)
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
What version TWRP?

---------- Post added at 04:31 PM ---------- Previous post was at 04:20 PM ----------

Not finding many live links to old ROMs either.

Try this: http://xdaforums.com/showthread.php?t=2706442

Probably not "stock" enough for sunshine s-off to work, but just want to see if an older GPE ROM will flash and boot into OS, at least.

---------- Post added at 04:32 PM ---------- Previous post was at 04:31 PM ----------

Which ROMs, exactly?
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
The ROM from GPE it's exact the same i installed with what you recommend me.

But if i dont have an OS now, maybe it will work to flash a HTC AT&T firmware? because i booted and all that?

And TWRP v2.7.0.2
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
It doesn't hurt to try firmware again. But flashing a ROM and booting, most likely wouldn't have changed the ability to flash a firmware or not.

Try TWRP 2.8.3.0, and see if any difference flashing and booting ROMs.
[One (M8) Q&A, Help & Troubleshooting] pant3ras:
I get this error when i try to flash again the firmware:

And now, it appear in fastboot ***Security warning***