yashsingh1/xdaforums huggingface dataset:
[T-Mobile HTC One (M8)] captainreynolds:
What is the best way to install Busybox so I can get this working? I get crashes/reboots/errors when trying to install busybox.

I assume that because the system is read-only.
[T-Mobile HTC One (M8)] epsix:
[MENTION=1225716]Turge[/MENTION] can you do this on ViperM8 setting.apk rom?
[T-Mobile HTC One (M8)] Fenny:
I can do a writeup if you need one,

But for now: Hint: look for the string "readonly" in Settings.

You'll need root. Grab the busybox installer from the google play store, it's the easiest way
[T-Mobile HTC One (M8)] DrownedElf:
I tried this and it isn't working for some reason. As far as I can tell all commands worked, but the APN is still locked. Running the same software version as the OP. Rooted/Busybox are installed.
[T-Mobile HTC One (M8)] The_Blue_Bomber:
Same here. Also after I did this, every time I boot my phone. It says limited service on the lock screen. Never seen that before.
[T-Mobile HTC One (M8)] Fenny:
Which ROM are you running?
[T-Mobile HTC One (M8)] The_Blue_Bomber:
Just stock rooted.
[T-Mobile HTC One (M8)] Fenny:
Look in /system/app is there a Settings.odex there?
[T-Mobile HTC One (M8)] The_Blue_Bomber:
Yes
[T-Mobile HTC One (M8)] Fenny:
Wait... did you install this from recovery? If you run those commands from recovery you need to mount system first.

(Advanced -> mounts)

That file should not have been there.
[T-Mobile HTC One (M8)] The_Blue_Bomber:
No, I just ran adb while the phone was on. Was I not supposed to?
[T-Mobile HTC One (M8)] Fenny:
No, that is fine, it should have worked then. Verify that Settings.apk contains a classes.dex, and delete the Settings.odex file.
[T-Mobile HTC One (M8)] The_Blue_Bomber:
Unfortunately it did not. But I appreciate you trying to help.
[T-Mobile HTC One (M8)] Fenny:
I'll just make a flashable zip.

[MENTION=4226124]The_Blue_Bomber[/MENTION]

Flash this, it will unlock your APNs for editing:

http://www.cheatersedge.org/android/m8/UnlockAPNs.zip

Updated the instructions in the OP. Too many people were having problems doing it via adb.
[T-Mobile HTC One (M8)] CB620:
So this allows Unlimited Tethering without being detected or just unlocking Native Tethering?
[T-Mobile HTC One (M8)] Fenny:
It switches the native tethering APN to the appropriate one for mobile data. It also unlocks native tethering. They do still check HTTP headers for user agent strings (but not all of the time), so you will want to use a user agent changer or VPN if you don't want to get the block page.

However, if you spoof your UA string to be that of chrome on linux, it will look like you are running chrome on your phone with a desktop UA string.

In short, if you are using this for XBox Live or things like that they will get wise eventually, but I can confirm that I have played Elder Scrolls Online using this mod and another variant of it that I made for the SGS4 without a single word of complaint from T-Mobile.

This allows USB, Wifi, and Bluetooth tethering to work OOTB, and it WILL NOT deduct from your tethering data bank even if you do have a tethering plan with T-Mo. :D
[T-Mobile HTC One (M8)] CB620:
Which one is more undetected. And can you provide steps/walkthrough.

Thanks.
[T-Mobile HTC One (M8)] Fenny:
VPN will be more undetected, but it is complicated to set up.

However, I have been using this for more than a year without problems:

https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg
[T-Mobile HTC One (M8)] CB620:
So from my phone all I have to do is flash the zip in the OP, and from my browser just use what you linked in the Chrome store and I'm all good,

Nothing else needs to be done on my phone end?
[T-Mobile HTC One (M8)] Fenny:
You also have to change the T-Mobile Data APN to use IPv4/IPv6. That step is important, or else your tethered device which connects via IPv4 won't be able to communicate out over your mobile connection which would not support IPV4.

I would add that change to the zip as well, but I know people will flash it right after a ROM install, and the db that needs to be edited won't be there unless you have booted at least once. It's just easier to have people go in and change it themselves.

*EDIT*

You may also need to redownload the zip.
[T-Mobile HTC One (M8)] verysick:
The thetering zip gave an error :'( the adb method worked with no issues. Thanks.
[T-Mobile HTC One (M8)] DrownedElf:
That zip worked. Thanks! :good:
[T-Mobile HTC One (M8)] Garmig:
It works after deleting the system.odex file in system/app.

Flashed via recovery.
[T-Mobile HTC One (M8)] Fenny:
Odd that the settings.odex was not getting deleted.
[T-Mobile HTC One (M8)] TheWizKid95:
Worked for me, but only on https websites
[T-Mobile HTC One (M8)] Fenny:
They are sniffing your UA strings. Get a user agent switcher.
[T-Mobile HTC One (M8)] The_Blue_Bomber:
Deleted settings.odex and it unlocked the apns. Haven't tried websites but I did notice after doing this I switched to ART and it broke the settings. Is there anything I can do to fix this?
[T-Mobile HTC One (M8)] Fenny:
Put that odex file back after you have changed the apns. It will relock them, but you can reenable ART.
[T-Mobile HTC One (M8)] verysick:
What does this means?
[T-Mobile HTC One (M8)] Fenny:
They send it when they detect obvious non-mobile data like Windows updates or when carrier IQ detects that you are tethering. It means that they think you might be tethering. You can ignore it, but you should check that you have CIQ removed and a UA string changer or vpn that is ACTUALLY working.
[T-Mobile HTC One (M8)] verysick:
CIQ is removed & I use agent switcher. Is that all I need to do?
[T-Mobile HTC One (M8)] Fenny:
Yeah, you should be good.
[T-Mobile HTC One (M8)] oRAirwolf:
Does this mod work or even need to be applied if you are running the Google Play Edition rom? I am getting this phone tomorrow and I am curious because I plan on immediately switching to the GPE rom.
[T-Mobile HTC One (M8)] pcriz:
All my tethering counted but I didn't check if it would be stopped when I reached my limit
[T-Mobile HTC One (M8)] pcriz:
Using this mod my data is still being counted. This is with me tethering to my Nexus 7..
[T-Mobile HTC One (M8)] Fenny:
Hmm, interesting. I'll check with mine.
[T-Mobile HTC One (M8)] pcriz:
I will say I have seen instances where mods still counted data but did not present the up sell page or throttle once the tether limits were reached. May be the case here, won't know until I hit 3gb tethered and I just reset two days ago.
[T-Mobile HTC One (M8)] Fenny:
J

Well, the idea is to leave it so that the tethering looks just like normal data transfer.

So either I missed something, and there is a provisioning callback hidden somewhere, or they have started counting tether data via a TTL check. This mod should still bypass the screen as long as your UA switcher is working.

I might have to do some additional digging to see if there is some sort of signal that the tethering service sends out. I did it with my tethering mods on the SGS4, I can do it again here. :)
[T-Mobile HTC One (M8)] pcriz:
D*** move on my part but I am running your modded stock firmware and I dirty flashed to the latest version. I can clean flash at the end of the day to make sure I didn't cause my own problem.
[T-Mobile HTC One (M8)] frostyroot:
Excited for this, trying out right now.
[T-Mobile HTC One (M8)] pcriz:
I reverted back to stock and attempted this again and it appears to be working now. I may have very well screwed something up.. Im cranking through a few youtube vids in HD as we speak to see if anything changes...
[T-Mobile HTC One (M8)] captainreynolds:
Anyone have MMS problems after making these changes/flashing the zip?

I followed this for a fix: https://support.t-mobile.com/thread/61844
[T-Mobile HTC One (M8)] pcriz:
I'm on IPv4 for both fields and tether and mms work for me at the moment.
[T-Mobile HTC One (M8)] koraun:
Has anyone tried on ViperRom yet, want to know if it works before I go ahead and flash Viper.
[T-Mobile HTC One (M8)] verysick:
I would like to know as well.
[T-Mobile HTC One (M8)] hawaiianboi:
I just took a look at my access point info using Viper One. It is currently locked, however the APN protocol lists IPv4. Is there anything else that this file does besides unlocks the APN for editing? If not, people running Viper One may not need to flash this for the tethering. I will try to do some testing over the next couple days on data usage and see what happens.
[T-Mobile HTC One (M8)] nonmindo:
Just an FYI I flashed the file on ARHD 5.0 (Dalvik) and it unlocked the APN field perfectly, but there is no "APN Protocol" in the list......anything in can poke around manually and change without needing to decompile/compile or sign?
[T-Mobile HTC One (M8)] twinnfamous:
Viper works flawlessly on my T-Mobile HTC one m8 s-off and running elementalx kernel.

The only thing I need now is an aosp browser compatible with sense 6 and my m8 would be perfect
[T-Mobile HTC One (M8)] fmedrano1977:
If running custom Rom, why do you needed this mod? Removing lock status and tether apns from framework-red.apk works flawlessly. Tethering without issues on Insertcoin.

Emm Eight
[T-Mobile HTC One (M8)] cperk13:
Using the Viper rom and can't it to work for me
[T-Mobile HTC One (M8)] loonz29:
I'm running Sky Dragon 1.3 and would like to remove the lock status and tether apns, I've looked through root browser and build.prop but haven't been able t o find these, Any help is greatly appreciated! Thanks
[T-Mobile HTC One (M8)] fmedrano1977:
They are located in the framework-res.apk, you must decompile apk, edit apn.xml, recompile apk, push it back in the system, hard reset for changes to be applied.

Emm Eight
[T-Mobile HTC One (M8)] loonz29:
Thanks for the info, I'm going to have to research some more. I've never messed with decompiling or editing the actual system info before. I love learning new things!
[T-Mobile HTC One (M8)] Fenny:
Use the latest apktool to decompile the framework-res file.

When rebuilding it, you will need to take the resources.arsc file and place it back into the ORIGINAL framework-res file because apktool will leave out certain required resources. Make sure when storing the resources.arsc you use NO COMPRESSION. ("zip -0" if you are doing it from the command line, or compression: STORE if you are using most GUI tools.)
[T-Mobile HTC One (M8)] loonz29:
That is good info. All of this still feels way above my understanding of this. I've never decompiled or rebuilt after decompiling. I'll have to keep researching more info. Thanks for the tips!
[T-Mobile HTC One (M8)] Fenny:
Oh probably worth mentioning you can just reset APNs rather than hard resetting.
[T-Mobile HTC One (M8)] fmedrano1977:
How is this accomplished?

Emm Eight
[T-Mobile HTC One (M8)] Fenny:
Settings -> Mobile Data -> Access point names -> Menu -> Reset to Default.

Reboot.
[T-Mobile HTC One (M8)] itzsnookums:
Can't you compile and then upload? I can do it, but I don't run Linux and really don't want to create a new environment just for this issue.....mainly cause I need to download stuff and I have no internet

---------- Post added at 09:40 AM ---------- Previous post was at 09:32 AM ----------

Screw it, I'm going to vm Linux mint and do it really quick....(I hope)
[T-Mobile HTC One (M8)] itzsnookums:
And that's a fail, this is stupid
[T-Mobile HTC One (M8)] Clamhost:
The ZIP keeps giving me:

Installing update...

Using legacy property environment for update-binary...

Please upgrade to latest binary...

Install from SD card complete

Then the APNs are still locked.

Just tried the ADB method. After rebooting settings.odex comes back.

UPDATE: The settings.odex is deleted after trying twice to remove it via ADB (I made a backup to my extsdcard), but the APNs are still locked!

UPDATE 2: After retrying the ZIP, I get another settings.odex. Interesting...APN are still locked though :/

-T
[T-Mobile HTC One (M8)] jiovaxrs:
exelent method work perfect thanks
[T-Mobile HTC One (M8)] Nippero:
Any chance you guys could post more detailed instructions about how to do this manually? I would greatly appreciate it.

I plan to flash a custom ROM after rooting, so it seems the flashable zip and old instructions wont work for me.
[T-Mobile HTC One (M8)] thatotherguy..:
Zip will work on custom roms
[T-Mobile HTC One (M8)] Nippero:
I read a lot of conflicting info around page 5 and 6.. Some say its completely unnecessary to do this tweak on custom ROMs, some said it didnt work on their ___ ROM (including one guy saying it didnt work with Viper).

I guess I'll just tether normally for now and see if my usage goes up...
[T-Mobile HTC One (M8)] thatotherguy..:
I've been using it on custom Rom and even viper and had no problems
[T-Mobile HTC One (M8)] Fenny:
Go into /system/customize and look at the XML files there: change any references to pcweb.tmobile.com to fast.t-mobile.com, if there is a value for tetherwatcher or tethermonitor make sure it is set to 0.

Then either:

A. Modify Settings.apk such that if the readonly flag is found on an APN then it is simply ignored. Edit APNs using the built in editor.

B. Decompile framework-res and find the resulting apn XML. Edit apns to your liking (optionally removing readonly or hidden flags).

I personally like option A.
[T-Mobile HTC One (M8)] jesses_girl:
Did anyone's hotspot stop working
[T-Mobile HTC One (M8)] Fenny:
Did it stop working outright? Or are they sending you to the upsell page?
[T-Mobile HTC One (M8)] jesses_girl:
It just stop working my other device doesn't load a page
[T-Mobile HTC One (M8)] sdwyz74:
just got it T-MO M8 rooted S-off ( still getting the subscription error

Please Advise I Edit then when i hook to my other phone HTC ONE MAX or HTC ONE m7 it shows up basically saying i need to buy the tethering ??? please advise THIS never happened on my T-MO gN2 but i could not Stand Touch Wiz sold i went Back to HTC but nEED to tether Badf thanks for the Help
[T-Mobile HTC One (M8)] Nippero:
So I finally hit the tethering limit on my plan today (on business trip and hotel wifi is terrible =.=)

My device is encrypted (for work) so flashing would probably be a bad idea.

Running on ViperOneM8 1.6.0

I ended up using a combination of all the methods listed here:

Downloaded the flash zip for the Settings.apk. Put that in /sdcard/

Used ES File Explorer to back up \system\customize\ACC\default.xml and \system\app\Settings.apk by renaming them.

Used Terminal Emulator (no ADB on my work laptop) to run these commands:

su
mount -o remount,rw /system
sed -i s/pcweb.tmobile.com/fast.t-mobile.com/g /system/customize/ACC/default.xml
cp /sdcard/Settings.apk /system/app/Settings.apk
chmod 644 /system/app/Settings.apk

Reboot + reset default APNs.

Bam, tether block gone.
[T-Mobile HTC One (M8)] GunToYoMouth123:
You downloaded the flashable zip or the apk ? Or did you extract it from the flashable zip?

I flashed the zip and it forced closed my settings and I had to reflash my stock Rom. I forgot that I had the latest update and forgot to back up the settings before trying it out.
[T-Mobile HTC One (M8)] Nippero:
I downloaded the flashable zip and extracted the settings.apk from it.

I was afraid of flashing it since my device is fully encrypted. Pretty sure that would break everything lol.
[T-Mobile HTC One (M8)] GunToYoMouth123:
Lol I fully understand, and thanks man this tip will help out a lot since my Comcast internet is down in my area so the only way I can play PS4 is using my phone. Will give it a shot.
[T-Mobile HTC One (M8)] Nippero:
Damn evil comcast.. but good luck!
[T-Mobile HTC One (M8)] beeroge:
GunToYoMouth123 I did your method and I'm able to access most site, but for some reason I can't access certain sites (youtube, facebook, etc)... Sites like XDA, Reddit, Cnet, etc work perfectly fine though :/ any idea what would cause this or how to fix it? I've tried using IPV4, IPV6 and IPV4/6 and that didn't do anything. lol
[T-Mobile HTC One (M8)] sdwyz74:
tried to flash it 3 time no success PLEASE ADVISE THANKS!
[T-Mobile HTC One (M8)] tkoreaper:
Has anyone gotten this to work completely? I've experienced thee issue above in the past where only certain sites will load. Are there any other known workarounds?
[T-Mobile HTC One (M8)] Fenny:
T-Mobile is known to sniff http headers. If your browser announces that you are using windows IE with every page load they will start blocking you eventually. All of these will bypass this: VPN, SSH tunneling, socks proxy, or a User Agent Switcher.
[T-Mobile HTC One (M8)] tkoreaper:
Thanks. I've tried a User Agent Switcher which used to work on my Nexus 5, but since acquiring the M8 it has been much more difficult even with AOSP/GPe ROMs. I will try the other methods you listed.
[T-Mobile HTC One (M8)] sdwyz74:
well after Keep trying as i Wanted to Run the BSC Tranquil ROm i Quit and Went to My daily as it Works Tether Out the Box NV Rom both RLS1 & RSL2 both Work Flawless ( i have a HTC T-Mobile M8 ) and i Run My Laptop and Home Pc no Problem but you Do have to user a AGENT SWitcher anfd i run MODZILLA not Chrome or EXPLORER as they Have just given me Back to Back Problems. So MODzilla FireFox is the Way to go and my NEt flys Im Talking Faster Than My ComCast All day Long either Way thanks and ill Keep trying this.

Ps

the Cm Roms and Akop roms all seemed to work for me to but i LOVE sense
[T-Mobile HTC One (M8)] lagvoid:
I've tried flashing the zip and following the manual steps, but my APN's remain locked. Running rooted stock rom. Any suggestions?
[T-Mobile HTC One (M8)] Addictedtothegreenguy:
I see a lot of talk about User Agent switchers. But I just want to tether for my ps3 how would I do that without tmobile detecting it? Is there a user agent switcher for the ps3 or would I have to go about it a different way.
[T-Mobile HTC One (M8)] Lancerz:
So I plan on getting an M8 tomorrow and wanted to know is this mod working properly? I have the Z1s now and have native tethering working with no limits so I'm hoping this one works the same.
[T-Mobile HTC One (M8)] DROITURK182:
All it does is unlock the APN settings where you can adjust the one that's on it already, or make a new one.
[T-Mobile HTC One (M8)] PunishedSnake:
Did this work with the new to restrictions
[T-Mobile HTC One (M8)] illmatik:
I flashed the zip from recovery on my Rooted Stock Sense HTC One M8.

My settings application crashes on launch now. Any ideas?

---------- Post added at 06:44 PM ---------- Previous post was at 06:39 PM ----------

Ah, I'm an idiot. Don't have busybox installed. Let's see if that fixes it.

---------- Post added at 07:25 PM ---------- Previous post was at 06:44 PM ----------

Doh. Flashed busybox via recovery... Settings app still crashing.

Any ideas?
[T-Mobile HTC One (M8)] DROITURK182:
If you have a backup to your ROM restore it, if not factory reset and start over. Always do a backup with a custom recovery before flashing zips that you haven't tried before. That completes lesson one. By the way it worked for me when I flashed it, you might want to fix permissions in a custom recovery before restoring backup or factory reset it could correct the settings from crashing.
[T-Mobile HTC One (M8)] godjunior:
I'm experiencing the same problem. Did a restore, and fixed permissions. Yet still crashing.
[T-Mobile HTC One (M8)] PuRE IVIonztah:
Any way to get this working on the latest 2.22 update??
[T-Mobile HTC One (M8)] illmatik:
So I ended up flashing my M8 with ViperOne. The APNs are editable without installing any tweaks. I changed the settings to IPV4 but I ran a quick test and my tether data allocation is still going up :(

I really wanna get around this limit. I tether frequently to my android head unit in my car and the week I went without data because I hit the 5GB limit was torture!

---------- Post added at 04:43 PM ---------- Previous post was at 03:59 PM ----------

FYI I'm on ViperOne 2.2.0
[T-Mobile HTC One (M8)] mytouch990:
Nothing is working on stockroom or viper or any other rom. Unless you have to jump to cyanogen 11 rom. That work perfect
[T-Mobile HTC One (M8)] v2.2v:
So CM11 works? What works? lol this is just confusing. No internet at my new place until the 22nd and NEED my chomecast to work lol
[T-Mobile HTC One (M8)] blakejohnson86:
I'm more-or-less stock 4.4.3 (Venom, but removed pretty much all Venom stuff because all I want is rooted-stock), but I think I have achieved the same result after a couple of steps...

1. I've removed _all_ rows referring to T-Mobile and the 'pcweb' apn. Basically, any row that has 'pcweb' in it, remove it. This applies to all databases within 'telephony.db'.

sqlite3 /data/data/com.android.providers.telephony/databases/telephony.db

2. Change the line from "pcweb.tmobile.com" to "fast.t-mobile.com" in the "/system/customize/ACC/default.xml" file.

<item type="string" name="fixed_apn_for_dun">fast.t-mobile.com</item>

3. Reboot.

I'm unsure why, but when I add 'dun' to my normal APN, my data connection stops working all together until I remove 'dun' from it. Otherwise, it seems to work.
[T-Mobile HTC One (M8)] maxawesome:
I don't suppose you would be willing to give a little more guidance on how you went about updating the telephony.db file. I entered the command you have there for sqlite3 in a terminal emulator both as SU and not, and while I can start sqlite3, I have no idea what to do after that. Mind posting the commands you ran within sqlite3 to update telephony.db?

Thanks in advance!
[T-Mobile HTC One (M8)] blakejohnson86:
I was actually feeling lazy and I used an SQLite editor to do it. https://play.google.com/store/apps/details?id=com.speedsoftware.sqleditor

I don't suppose figuring out the command line would be all that difficult though. Might look into that.
[T-Mobile HTC One (M8)] Jhebi:
Hi there, that's what I thought to. I installed Viper rom and my hotspot wasn't working. But after I installed Viper rom again and right after this zip, my hotspot started working flawless. Now I can use it. Don't know if it was this zip, but I believe it was because it wasn't working before. :good::good:
[T-Mobile HTC One (M8)] tkoreaper:
Worked like a charm! No more T-Mobile message when I go over my limit :D
[T-Mobile HTC One (M8)] Lancerz:
A guy posted this in the Viper thread and I can confirm it works. http://xdaforums.com/showthread.php?p=56343213
[T-Mobile HTC One (M8)] tiunilohmu:
Where are the lines exactly at? I can't locate the last two lines?

Running 3.0.1 too, can u share ur default.xml file?
[T-Mobile HTC One (M8)] Lancerz:
The third line is at 24% and the fourth is at 93%
[T-Mobile HTC One (M8)] syntropic:
Fenny: can you explain A. above? What do you mean exactly? Read-only flag for what? For users, groups, world? And what do you mean if it is found, it is simply ignored?

My settings is crashing now, so I am trying to fix this.

Thanks!
[T-Mobile HTC One (M8)] Android6190:
that happened to me also. delete the odex setting apk. will fix it. but you need s-off to make it permanent.
[T-Mobile HTC One (M8)] solidus636:
i did the edit for the default xml

i did the edit explained here: http://xdaforums.com/showthread.php?p=56343213#post56343213

i have attached the default.xml file in a zip, already edited. this is for base 3.32.531.2 !!!

UNZIP, just transfer to SDCARD, change permissions to RW R R ; and rename the original file in /system/customer/ACC/ to default.xmlback

and place this here, reboot

post results!
[T-Mobile HTC One (M8)] rolph:
My settings is crashing now

That happened to me to. Is it possible to flash stock settings.apk back to get it works?