yashsingh1/xdaforums huggingface dataset:
[HTC 10 Questions & Answers] Nachorl250:
Hi!

So I bought a HTC 10 from Amazon back in May and, even though the product description said it was the US version which had LTE bands for US carriers (specifically 4-AWS), they sent me a M10h, which is the international/asian version that doesn't support band 4. I can't return the phone though, since I'm from Argentina and with the insane customs ruling here, sending the phone to the US and back would cost me almost as much as just buying selling mine (at a highly reduced pricepoint since it doesn't support LTE in my country) and buying a new one.

After a lot of reading here in XDA, paying 25$ to be S-Off, flashing radios, changing roms and kernels, and a bunch of other stuff, I've come to the conclusion that my only alternative left is to change the 06828 NV value (which determinates what LTE bands are activated) with QXDM/DFS tools/whatever program. I've managed to put the phone in diag mode (for those who don't know how, I'll leave a little tutorial in the end of the thread), but when I write the value and then read it again it's back to its original state. I guess this is some kind of protection Qualcomm/HTC/whoever put in place to avoid users messing around with this stuff.

I read in the HTC One M9 forums that users with CDMA phones could change the 06828 value, while I, using a GSM phone, have been able to change 06829. I tried using a Verizon radio, which turns on and off the diag mode for some reason, and a Sprint radio, which gives me a "diag error response" in QXDM when I try to read/write any NV value.

Maybe a custom kernel can help avoid the write protection for NV values? I don't know a lot about that kind of stuff, so it's the only thing that I believe could change my situation

Phone info:

White HTC 10 M10h model

LeeDroid 10 v2.4.1-stable rom with CleanSlate kernel

S-Off and root

Baseband version 1.0U010141a@60527.2_51.01_F

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

For those who can't make it to Diag Mode:

1) Install the HTC Diag Drivers in your PC

2) Install a terminal emulator in your phone (in my case I used SManager)

3) Connect the phone to the computer with the USB cable

4) In the terminal emulator use:

su

and then

setprop sys.usb.config diag

5) Now touch on the "Use USB for" notification.

6) If everything worked, the phone should block you from choosing any option in the list besides Charging and USB tethering

7) Choose USB tethering

8) Your phone should appear in the Windows Device Manager as HTC Diagnostic Interface, which means the phone is in Diag Mode

9) To return to the default USB mode, repeat step 4, but replacing setprop sys.usb.config diag for

setprop sys.usb.config mtp

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

Does anyone know any way to make my phone work? Any kernel made from scratch I can try? I'm really desperate.

Thank you all for reading!
[HTC 10 Questions & Answers] afuller42:
wouldnt flashing the us unlocked ruu work out since your all s-off and unlocked?
[HTC 10 Questions & Answers] Nachorl250:
Unfortunately, it doesn't. As I can check both trying to use the phone or reading the NV values with DFS tool, the LTE bands remain the same no matter what RUU, radio or whatever I try.
[HTC 10 Questions & Answers] INDIAN-MAfIA:
Could you post a guide as to how can it be done?
[HTC 10 Questions & Answers] Nachorl250:
I'm sorry, I don't get what you're asking me. A guide to do what?
[HTC 10 Questions & Answers] INDIAN-MAfIA:
I thought you got your unlocked band 'up and running' not realising you just wanted to accelerate your thread to the top. My bad.
[HTC 10 Questions & Answers] Nachorl250:
No problem!
[HTC 10 Questions & Answers] KainanMaki:
As I have stated in other posts, we need a kernel built from scratch rather than a "custom kernel".

No custom kernel for Sense is going to work for this purpose.

Cyanogenmod technically provides that built-from-scratch kernel that we need., but the trick there is enabling Diagnostic Mode.

You can either flash Resurrection or Beanstalk and try to find a way to activate it.

An idea that could work is messing arround with the init.qcom.usb.rc and init.usb.rc files.

Those files include the triggers for several usb modes (the setprop sys.usb.config line).

The problem for Cyanogenmod is that those files don't include triggers for Diag.

So one way could be to replace them or modifying them.

I'm no coder at all, but to modify those files we need to modify the ramdisk at the boot partition.

If we don't, every modification to these files won't be kept past reboot.

Even achieving it won't assure Diag Mode, but I'm running out of ideas.

This certainly trascends my scarce knowledge

And CM is not at a point suitable for daily driver, so any testing there would be going back and forth between CM and Sense.

So unless we find a way to enable Diagnostic Mode on CM we are stuck.
[HTC 10 Questions & Answers] johamsandwich:
I ran into the same issue as you. I bought a white 32gb thinking it was all the same, didn't know that it was the m10h.

I had to s-off, and change the CID and MID number to SuperCID and US unlocked MID , then install the latest US RUU to get the US firmware/radios/etc.

Currently on T-mobile, and all I have in my area is Band 12 (which my phone picks up), and I saw it pick up another band, but can't recall what it was. I wanna say that it worked, but I can't verify that my phone is actually reading all of the US LTE bands.

I'm switching to cricket (att) sometime this week. Once I switch over, I can check to see which bands im getting around my home and work
[HTC 10 Questions & Answers] johamsandwich:
activated my cricket SIM, and I'm currently connecting to band 17.

will drive around town and take notes on what bands i pick up
[HTC 10 Questions & Answers] Quadrider10:
Sports same issue here, I can't get my phone to work on au network in Japan.
[HTC 10 Questions & Answers] Nachorl250:
Thank you for all the info! We should make a main thread on the subject so that we can better organize ourselves and everyone can help solve this problem.
[HTC 10 Questions & Answers] KainanMaki:
I agree. But I think it could be better to wait for a full port of Cyanogenmod.

Guys over there are making big strides, and maybe they could help us achieving diag mode for CM.

Don't want to bug them with this issue until they are at peace with the full port (and they seem to be really close to the end).

It's sad, but I don't even know how to bake a rom modifying a couple of files.

Even in that case, my idea was to use part of the code of init.qcom.usb.rc and init.usb.rc from Sense.

And introduce it on the init.qcom.usb.rc and init.usb.rc files of CM.

Checking which folders are involved on the code, they are present too in CM.

Which makes me believe that modifying those files on CM could prove enough for DIAG to be activated with "setprop sys.usb.config diag". It's just a guess though.

I'm sure that maybe crpalmer and squid2 could help us with this later.

De alguna forma va a salir...
[HTC 10 Questions & Answers] smartpal:
[FONT=&quot]echo 1 > /sys/devices/virtual/android_usb/android0/f_diag/on

[FONT=&quot][FONT=&quot][FONT=&quot][FONT=&quot][FONT=&quot][FONT=&quot][FONT=&quot][FONT=&quot][FONT=&quot][FONT=&quot]did you try this code? it work[FONT=&quot]ed f[FONT=&quot]or me on M8 on custom roms viper one, A[FONT=&quot]RHD[FONT=&quot], maximusHD and few others.

[FONT=&quot]BTW i [FONT=&quot]still cant get to write nv values on my phone either[FONT=&quot]. The[FONT=&quot]y[/FONT]revert to old values after reboot. Still trying to figure out a way. will be flashing [FONT=&quot]custom [FONT=&quot]kitkat bas[FONT=&quot]ed rom with custom revovery to try my luck.

[FONT=&quot]I even t[FONT=&quot]r[FONT=&quot]ied[FONT=&quot] [/FONT][/FONT] to disable one supported band 20 just to be sure if [FONT=&quot]is hardware limitation that is causing the nv val[FONT=&quot]ues to revert. But i[FONT=&quot] found out that the nv values[FONT=&quot] are not being written al all. So it is definitely not [FONT=&quot]band compatibility issue.

[FONT=&quot]May you too could try the same and check if at all you are able to write to nv.[/FONT]

[/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT] [/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT][/FONT]

---------- Post added at 05:51 PM ---------- Previous post was at 05:06 PM ----------

Dont you have the option to select which radio band region to select as in Unlocked intl M8?

what does it show when you open phone info->select 3 dots->select radio band ? do you atleast have this option?
[HTC 10 Questions & Answers] KainanMaki:
Instead of using "echo 1 > /sys/devices/virtual/android_usb/android0/f_diag/on", we use the setprop type of lines.

They work properly on stock HTC rom. You can enable ADB,MTP, RNDIS, Modem and so on, including the all important DIAG (Diagnostic).

And the reason it's not working on CM is that the presets that enable and disable this kind of command do not include DIAG in any of them.

So you can't use setprop to invoke DIAG, or at least to my knowledge. Would love to be proven wrong here.

Since the presets work in a script fashion, maybe using the line related to DIAG could trigger the mode, I just don't know how to use it.

For E.G, the setprop sys.usb.config=diag does the following on tht init.qcom.usb.rc file (located at root of FS).

on property:sys.usb.config=diag
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 05C6
write /sys/class/android_usb/android0/idProduct 900E
write /sys/class/android_usb/android0/f_diag/clients diag
write /sys/class/android_usb/android0/functions diag
write /sys/class/android_usb/android0/enable 1

setprop sys.usb.state ${sys.usb.config}.

Maybe someone does have a clue of how to use it on CyanogenMod. Which is closer to be a reality so maybe in some weeks we can ask the guys over the CM thread for some help.
[HTC 10 Questions & Answers] smartpal:
setprop sys.usb.diag.config diagon

this code worked for me on M8 with CM11. It did enable the diag mode atleast for me. Just now tried it.
[HTC 10 Questions & Answers] Nachorl250:
We don't have that option in the HTC 10 :(
[HTC 10 Questions & Answers] smartpal:
dont you have any option to go in testing mode just like *#*#4636#*#* for M8?
[HTC 10 Questions & Answers] Nachorl250:
Oh, I was looking for it in the settings menu. It doesn't change anything, though.
[HTC 10 Questions & Answers] smartpal:
did the code work? Were you able to get into the hidden menu?
[HTC 10 Questions & Answers] Nachorl250:
It did work. I went into Phone Information>three dots>Select radio bands>tried both USA and Automatic, neither get band 4 LTE.
[HTC 10 Questions & Answers] KainanMaki:
You can force LTE on the 4636 code but it won't change that fact that the AWS band is not present. You'll simply get no signal and it won't fall back to HSPSA or GSM.
[HTC 10 Questions & Answers] Nachorl250:
I know. That's why I made this thread asking for help with the NV stuff.
[HTC 10 Questions & Answers] KainanMaki:
Just out of curiosity, which is the SN of your phone (you can find it on settings - "identidad del telefono")). Mine is FA65HBNXXXXX (blocked the last five). But I'm interested on the letters until the first number.
[HTC 10 Questions & Answers] heorung:
Hello all ,

I have built a patch kernel of Lineageos which has a init diag mode.

I try to unlock the LTE band 3 , the nv value stick after reboot but i stills cannot connect to LTE.

Anyone else want to try? I'll upload the patch kernel here.
[HTC 10 Questions & Answers] Nachorl250:
Wow, that's great! I was just about to sell my phone at a lower price for this very problem. Could you upload the kernel and tell me the steps I've got to follow to enter diag in LineageOS?

Thank you very much!
[HTC 10 Questions & Answers] heorung:
here it is : https://drive.google.com/open?id=0B6XOvsvU6OIyNFdTc2RveU9mQVk

Flash this kernel if you're on a LOS/CAF/AOSP Rom .

To enter diag mode , enable ADB debugging , enter these command :

adb shell

su

setprop sys.usb.config diag,adb

Done. You're now in diag mode.

p/s : you must have root to use su
[HTC 10 Questions & Answers] Nachorl250:
Thank you very much! I'll tell you if I manage to do something with it.
[HTC 10 Questions & Answers] Nachorl250:
I forgot to ask, does LineageOS come with its own kernel? Or should I download a specific one before using your patch?
[HTC 10 Questions & Answers] heorung:
Lineageos zip contains its kernel , if you flash the lineageos zip , then flash the patched kernel via fastboot , then reboot to recovery and flash super-su zip
[HTC 10 Questions & Answers] Nachorl250:
Thank you very much!
[HTC 10 Questions & Answers] heorung:
you're welcome , wish you can change the bands you need so we can discuss more about it
[HTC 10 Questions & Answers] Nachorl250:
I tried everything, but QXDM still doesn't write the NV values. it says "NV item written" but as soon as I hit Read it shows the old number. Any advice?
[HTC 10 Questions & Answers] heorung:
Did you use QSPT open in the background?

Try using these version :

QSPT : https://drive.google.com/drive/folders/0B6XOvsvU6OIyM0RxMmZZd3NQdTA?usp=sharing

QXDM : https://drive.google.com/drive/folders/0B6XOvsvU6OIybndoV3U3TzRhRE0?usp=sharing

P/S : Always right click and chose Open as Administrator
[HTC 10 Questions & Answers] Nachorl250:
I will try with those. Also, what radio are you using? Just the stock Asia TW one? Maybe that makes a difference?
[HTC 10 Questions & Answers] heorung:
I have a Sprint variant so i use Sprint Radio.
[HTC 10 Questions & Answers] Nachorl250:
Oh. I have the M10h model (international/asia), maybe that's why it's not working. Also, the QPST you linked doesn't install, it says it's missing a .msi file.
[HTC 10 Questions & Answers] heorung:
just manually install the MSI file in that folder.
[HTC 10 Questions & Answers] Nachorl250:
There is no msi file in that folder. There is one in the QXDM folder though. That installed perfectly.

I installed a QPST 2.7.437 I had in my downloads folder. I run both programs as an admin, follow all the steps, and the NV values just never stay written. As soon as I hit Read they go back to normal. Should I just give up and sell the device? I don't know what more to do.
[HTC 10 Questions & Answers] heorung:
did you s-off ? try flash Sprint Radio and add lte band
[HTC 10 Questions & Answers] mrbox23:
Hey guys, I know this an older thread, however I've seen no recent attempts. After hex editing my aboot image to remove the red development warning, I've began "fuzzing" the other partitions. Radio, cradio, hosd, misc. I've been looking for the root of missing information in system info listed in download mode with Oreo firmware installed. Anywho this is my second pme device, this one is 2PS65000 as the stamp on the back indicated. It's a refurbished device from eBay and came with nugat TMobile firmware, if I'm not mistaken, the MID does not match the firmware it came with. I converted from pmewhl to pmewl and got Oreo AOSP variants running. Still lurking around I find the TMOB010 CID in the misc partition. Back to the LTE bands. I have found and extracted from mfg and radio partitions nv xml files. I don't exactly know what I'm doing, but I'm willing to run diffs on the files and see what stands out. After owning the pmehl understand what limited LTE reception is like. If anyone wants to share certain partitions from a 2PS62000 device I can see if I might learn more from this. Happy hacking guys!
[HTC 10 Questions & Answers] Nachorl250:
Hi! I would really love to help, but I sold my HTC 10 almost a year ago. I would be lying if I said I don't miss it. Good luck, and please keep us informed if you find something! I'm still really interested in the subject.
[Xperia Z5 Compact General] Dean F:
Hello, let me cut to the point. Testing a few nights while sleeping from around midnight to 7:30am on different firmware versions, i can confirm.

- Stock, unrooted, firmware verison Taiwan, 253: BetterBatteryStats drain overnight : 0.7% per hour

- Stock, unrooted, firmware version Hong Kong, 253: BetterBatteryStats drain overnight 0.3% per hour (Update, last night was 0.1% per hour, woke up in the morning with 100%)

In conclusion, not all firmwares are created equal. If you have the dreaded battery drain problem - try another regions firmware. The HK version definitly does not has the drain problem, and its quite a generic firmware, so you can customize it to your region no problem.

In Both firmwars I had WhatsNew, and all smallapps hidden/disabled via the adb "debloater" app.

PS: Taiwan is original firmware of my phone, I am expat living in Taiwan.
[Xperia Z5 Compact General] TheEndHK:
Why HK firmware has more battery? lol :D
[Xperia Z5 Compact General] Dean F:
This is the million dollar question. I invite anybody to try and figure this one out!
[Xperia Z5 Compact General] aidy.lucas:
I also noticed this on my old M2 when I ran customised tw firmware for a while the battery life was way better than the customised UK I was originally running never could work it out.
[Xperia Z5 Compact General] X-ITER:
Nice.I try it.

At now i have this Bat.: -5%(98% to 93%) [0,5%/h] at night in airplane mode.
[Xperia Z5 Compact General] X-ITER:
I try last night HK firmware. And now -10 % in airplane with turned off some apps like google backup,most of xperia apps and etc. Usually i use firm for Russia region also Xpower 3 or 4.In both have a same result 5-7 % per night in airplane.
[Xperia Z5 Compact General] mrQQ:
how do you disable whatsnew without root?
[Xperia Z5 Compact General] Dany21000:
I think the firmware 253 is the same for battery management for all versions.

I think a good thing to do sometimes is clearing cache in recovery. For me it help when performance become slower.

But few parameters can really change your battery drain like the Temperature in your house, usage during the day, network level, running process, humidity....
[Xperia Z5 Compact General] kulguy:
Maybe that's because some differences of LTE bands support?
[Xperia Z5 Compact General] harry_turtle:
I thought the same thing but shouldn't that be more hardware related?
[Xperia Z5 Compact General] Dean F:
LTE is disable on my phone on all tests. All my testing with done with 3.5G and wifi off.

VoLTE is something i noticed taiwan firmware had, but HK didnt. however I had it turned off in both cases.
[Xperia Z5 Compact General] Dean F:
I know most people most people would like buttery is the same for all version. That why I am posting. Caches etc all cleared, phone got full wipe when switching firmware.

This test is verifiable and repeatable. I tested both firmware at east 2 times each before posting, and the results were the same every time. Same phone, exact same apps installed, same firmware version - different region = different battery drain.
[Xperia Z5 Compact General] harry_turtle:
Can someone upload .253 stock kernel with SU and DRM fix for me? I want to do some further testing but I'm not able to extract it myself for the next week.
[Xperia Z5 Compact General] gnaz7:
the Wifi-allways on bug

did somebody changed already the default:

Settings->Wi-Fi->Settings->Keep Wi-Fi on during sleep

(the good old bug - if you look at the other threads)
[Xperia Z5 Compact General] Chadie:
one solution I had for battery drain even in marshmallow is to remove the sd card. Yes, I do know it defeats the purpose but I'd prefer not having to worry that my battery will drain by 30% overnight.
[Xperia Z5 Compact General] gnaz7:
SDcard?... did you try another one...
[Xperia Z5 Compact General] l_abaurre:
How can I know which firmware do I have? The number is 32.0.A.4.11
[Xperia Z5 Compact General] x0149128:
32.2.A.0.253 here and I'm seeing Android System keep awake for over 11 hours.

Google Services mobile radio active for 27mins.

No other mentionable apps.
[Xperia Z5 Compact General] inexkecible:
Any luck with the battery drain?
[Xperia Z5 Compact General] X-ITER:
Some good news for me and maybe for others may be helpful.

I flash clean new 305 FW and modified stock kernel from here

http://xdaforums.com/z5-compact/general/customized-stock-kernel-32-2-0-305-6-0-1-t3477464

With root i delete some system apps (mail,gmail,gdrive,maps,whats new, all about small apps and etc.)

Now 3% at first night(9h) after flashing FW in standby mode and all data off without stamina.Its first good result for me.On all others 253 custom kernels was ~7-10% at night sometimes more...

I stay on this FW and kernel.
[A3000 Q&A, Help & Troubleshooting] androquest:
I have rooted stock 4.4.2 and have been using the "No lock" app to disable the screen lock as a fix for that obvious design flaw not differentiating between public and private places. The app is basically great but sometimes it does not work.

The settings for the screen lock show options "after sleep" from "immediately" to "30 minutes". I would like to have "never" (or "30 years" or something like that) - is it possible on my tablet and possibly also on my rooted C1505?

Thank you in advance. Cheers!
[Note 7 Accessories] dirtymindedx:
Everyone is stating the phone feels great without a case. What do we do buy cases day 1 and eliminate that feel. I feel I take off my spigen crystal case just to feel the phone daily. At this point just about every case for the note 7 has been purchased.

If your phone with case has a similar feel to to holding your actual phone please post pics and where you bought it from links are welcome.

Remember the phone has to feel like it was naked that's the goal of this thread.
[Note 7 Accessories] loucase:
Yes, transparent cases are perfect for our smartphone, more than Note 7!
[Note 7 Accessories] imatts:
Im also looking for a case for my Note. I honestly dont even care about drop protection, I just want the absolute thinnest possible, nice looking case to protect it from scratches, thats it.

Bonus points if it has port / hole covers as well as full button coverage.
[Note 7 Accessories] randyspants:
Bear motion, black. Looks great and as thin as they come with some awesome texture.
[Note 7 Accessories] vibrantliker:
Always use them!
[Note 7 Accessories] randyspants:
Seriously not sure why people don't mention them more, the texture is amazing and if you are into slim cases they fit great.
[Note 7 Accessories] teegunn:
The Ringke slim case is super thin like the bear motion, but it gives some protection. It covers up to the display and barely makes the phone any bigger at all.
[Note 7 Accessories] dirtymindedx:
If you guys have the cases please post pics and if you know where to find please post links.
[Note 7 Accessories] dirtymindedx:
I just took a peek at both the cases I like the ringke slim for all around protection. The curve sides look really nice purchasing one now. This may be what I was looking for.
[Note 7 Accessories] bonerp:
Ringke do an Air version too which I've just ordered....
[Note 7 Accessories] dirtymindedx:
Hmm. I have a spigen crystal and they look almost identical when you get it take some pics if possible. The problem with my spigen case is it has rigid edges and the grip factor is gone with this case.
[Note 7 Accessories] bonerp:
sure. I find spigen aren't quite as thin as they imply in reality. I used a ringke on my note 5 and it was just a tad smoother and thinner than spigen.
[Note 7 Accessories] Femmetechstic:
I have an olixar gel case that really has that barely there feel imo. You need to like/not mind gel material though, it feels good when you hold it (grippy) but I can imagine people thinking it looks to cheap on their fancy phone.

Perhaps this is a bit more look than feel but I think the Obliq Slim Meta cases do a good job. It helps that they copy the color of the phone I suppose

http://i.ebayimg.com/00/s/MTUwMFgxNTAw/z/694AAOSwsTxXjq9F/$_57.JPG?set_id=8800005007

(I also really like the look of the metallic back)