yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) LTE Android Development] tqmcguire:
KOT49E ?

Will the latest flashable zip work for build KOT49E as well or will a new one need to be created?
[Nexus 7 (2013) LTE Android Development] linuxthinker:
I need to build a new one. I'm traveling today, but I'll try to get it done tonight or tomorrow.
[Nexus 7 (2013) LTE Android Development] tqmcguire:
Thank you so very much! I've been trying to research how to edit it myself but I'm leaving it to the experts. :)
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Do you have the update zip? I haven't gotten the update yet and I can't find the factory image.
[Nexus 7 (2013) LTE Android Development] tqmcguire:
This isn't from my device but it's the 4.4.1 KOT49E update coming from KRT16S. Hopefully it's what you need. Sorry for taking so long to get back, it's been a busy day. :)

android.clients.google.com/packages/ota/google_razorg/b5559302dc8273444cb8234b5a6c22c863441e84.signed-razorg-KOT49E-from-KRT16S.b5559302.zip

Well it turns out I don't have enough posts to have a link in my message. I took the h t t p : / / out before "android.clents.google... etc"
[Nexus 7 (2013) LTE Android Development] linuxthinker:
That's the one! Downloading now (over a very slow hotel wifi connection).
[Nexus 7 (2013) LTE Android Development] TechDude:
KOT49H (4.4.2) tethering mod (plus SMS)

WARNING! I'm a n00b. I'm just pulling together a couple of mods from more experienced XDA members (namely GuyAdams, linuxthinker, and DivinityCycle) using some basic tools documented on XDA. So, any other n00bs might want to wait until some more experienced XDA members buy off on this mod before trying it.

Having said that this works for me on my Nexus 7 (2013) LTE, using an AT&T SIM, and running the latest OTA (KOT49H - 4.4.2) and I have no reason to believe it wouldn't work for anyone else running under the same configuration.

It's the same as the original mod posted in this thread except it also enables SMS (ie. text messaging through Hangouts and the like). For more information on the SMS mod check out this thread.

The only down side I've seen to the SMS mod is that it makes your tablet's volume controls behave like a phone. In other words when you try to raise and lower your volumes outside of any apps that would generally be playing audio (games, videos, etc.) then the volume rocker will be changing the ringer volume. Not the usual media volume. It also gets rid of the mixer button at the end of on screen volume control slider. That last bit is pretty annoying, but like I said, I'm a n00b. I have no idea how to fix this.

Anyway. Enjoy. I hope this works for everyone else as well as it does for me.

NOTE: The revert image is only for stock odexed users. But if you're not odexed you probably know how to fix this yourself, right?
[Nexus 7 (2013) LTE Android Development] pir:
Bootlooped for me, had to revert to stock :(
[Nexus 7 (2013) LTE Android Development] linuxthinker:
KOT49H update now available

I couldn't find a factory image for KOT49H, so I finally gave in and updated my device to KitKat.

See original post for tested KOT49H flashable zip. Let me know if you have any problems.
[Nexus 7 (2013) LTE Android Development] GSLEON3:
You can modify the apn to use pta or phone in lieu of the Broadband/Entitlement apn, which uses CBS protocol & allows AT&T to determine what apps are actually consuming data. I used to get a letter every 3 to 6 months telling me to discontinue tethering or switch plans. Once during a call, they slipped & told me that I had installed PDANet, "a known tethering app". Hasn't happened in nearly a year now since I started modifying the apk, or when I am lazy, the telephony db, with sql editor.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
I'm on a MiFi data plan, so I can only really use the broadband apn. I don't have an AT&T phone sim, so I can't test the other APNs.
[Nexus 7 (2013) LTE Android Development] ajpatel:
It's getting stuck in a reboot loop on the latest CM11 nightlies. Any ideas?
[Nexus 7 (2013) LTE Android Development] linuxthinker:
My patches will only work with stock builds -- this will not work with any other build. You'll need to ask the CM guys to integrate the patch into CM.
[Nexus 7 (2013) LTE Android Development] ajpatel:
Alright, I'll try to make my own version of it using your framework files if I can. Maybe you can help show me how to make a flashable zip once I do?
[Nexus 7 (2013) LTE Android Development] linuxthinker:
It's a pretty simple change. Here's the post upthread that talks about how to do it: http://xdaforums.com/showpost.php?p=47710475

Honestly, if it were me, I'd ask the CM guys to integrate this change into CM itself.
[Nexus 7 (2013) LTE Android Development] ajpatel:
I would if I even knew who was maintaining it or where to submit requests...they're really closed-minded about things even though they put out a great product.
[Nexus 7 (2013) LTE Android Development] robocop6397:
how to install the patch on my nexus 7

Please help me I didn't know how to install the patch as I am a beginner on android operating system.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Ha, stumbled upon this today: https://android.googlesource.com/device/asus/deb/+/f0130356a775005cca71008b26a5ad4a0ca50bdb

Turns out it was AT&T that requested Google disable tethering and Mobile Hotspot for all AT&T networks. You stay classy, AT&T.
[Nexus 7 (2013) LTE Android Development] shawnbon206:
Nice find!!!!!!
[Nexus 7 (2013) LTE Android Development] 8steve8:
i'm a noob here, but I tried to install TWRP from marketplace, but it won't open, saying root is required... I'm sure I'm missing something.. help?

and if i do successfully install TWRP, what do I need to do exactly to install this awesome patch?
[Nexus 7 (2013) LTE Android Development] sd_matto:
Can this be used side-by-side with Xposed framework?

If it cannot be, any chance that this zip file could be converted into an Xposed module? If so, anyone willing to point me in the right direction to begin to teach myself how to do it?

It would be great if I could get this to work alongside the Xposed module described in this thread: http://xdaforums.com/showthread.php?t=2562026

Thanks in advance for your great work, and for any thoughts/pointers.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
I've never used Xposed before, but a quick scan of the docs points to it being doable. Thanks for the pointer; I'll see what can be done. Would you need this to be in the Play Store or is a sideloaded apk fine?
[Nexus 7 (2013) LTE Android Development] sd_matto:
Sideloaded apk would be fine. Since I hadn't gotten a response for a while, I had asked in the other thread if makuser could look into it as well, so you may want to PM him so as to avoid duplicating efforts.

For me, these two mods together (with my connected SIP account) would make this tablet perfect, as I could use it for all my telecom and tethering needs.

Thanks for looking into it.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Ok, cool. I'm out of the country at the moment using local SIMs. Given this is carrier-specific, I won't be able to test this (without running up a huge bill) until I'm back in the states. Give me a week or two.
[Nexus 7 (2013) LTE Android Development] sd_matto:
Sounds great! Thanks!
[Nexus 7 (2013) LTE Android Development] sd_matto:
Looks like KVT49L is out (Verizon version 4.4.2_r2). Just giving the OP a heads up in case he wants to update his zip for updated factory image (available on Google Dev site).
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Thanks for the head up. I'm going to take this opportunity to properly Xposed-ify this mod.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Is this pushing to AT&T devices? I haven't tried my N7 with Verizon to see if it even needs this mod.
[Nexus 7 (2013) LTE Android Development] sd_matto:
Not pushing to ATT devices (but then again, I don't think it would since ATT does not sell or support Nexus 7 LTE).
[Nexus 7 (2013) LTE Android Development] linuxthinker:
I'm admitting defeat. I've spent most of today trying to get this to work under Xposed and it's just not working. I'm able to replace the resources and get the settings pages and toggles to come up, but tether doesn't actually startup. My best guess is that these values are being cached earlier at boot before Xposed is able to intercept it *OR* there are other checks happening at the native level that Xposed isn't hooking. I've tried a bunch of method hooking and it's not helping, either.

Given how easy it is to bake the new framework-apks, I'm going to continue doing that. Plus, if there's some other Xposed mod you want to use, you're welcome to use this framework-apk + Xposed + other mods to get the desired combination.
[Nexus 7 (2013) LTE Android Development] sd_matto:
Thanks for having tried to make it work.

So it sounds like the order of things (to make the two mods work) is (on top of stock factory image):

1. Flash this ATT Tether mod

2. Flash XPosed zip

3. Flash XPosed module(s) wanted.

Please confirm order so that I can give this a shot over the next two days, and report back.

Also, has the zip been updated for the KVT build?

Thanks.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Order sounds about right. If you want to be extra safe, boot up between each step and make sure tethering is still working.

I wasn't planning on baking a new one for the KVT build; the firmware thread in the General forum says it's only useful on Verizon. That said, I'll make one now if you want it.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Okay, here's an untested flashable package for KVT49L. I haven't gotten the update yet, so I haven't had a chance to test this update package. I'm using the framework unpacked from the factory image.

Let me know if it works for you. It still creates a backup in /system/framework/framework-res.apk.bak-att-tether if things go wrong.

UNTESTED: View attachment UNTESTED-update-att-tether-KVT49L-0.1.zip
[Nexus 7 (2013) LTE Android Development] sd_matto:
Latest untested not working on KVT49L.

A lot more going on under the hood with this update than I originally envisioned; for example, the old radio image was only 39MB, while the new radio image is almost 77MB (CDMA RIL, maybe??). Maybe Verizon has added its own layer of stuff to this ROM, making tethering that much more complicated.

Anyways, I tried updating to KVT49L, and making your untested zip work (on ATT Unlimited iPad SIM card - works no problem on KOT49H), and no dice ("Tethering & Mobile Hotspot" submenu under Settings disappeared). Reverted back to KOT49H, and no issues, as all works.

Now testing my procedure above to get both this and XPosed modules working on KOT49H. Will edit this post later tonight if I can get everything working the way I want.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
AFAIK, the Nexus 7 doesn't even have a CDMA radio. Are you testing with a Verizon SIM card, as well?

I've got some travel this week where I can't be without tethering so I'll have to wait until next week before I can experiment with my real device. Thanks for testing this out.
[Nexus 7 (2013) LTE Android Development] sd_matto:
Correct. Only Verizon LTE bands. Still wonder why there is an extra 30MB to radio.img (RIL? Like Sprint's in Nexus 5?).

Don't have access to VZW SIM, unfortunately. May remedy that soon, but likely won't happen until summer.

My pleasure to test. Thanks for all the hard work that you do.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Okay, unpacking the modem files, it's clear why the modem file is so much bigger -- it's actually got two modems packed in it. "G00_2.42.0_1204 - ME571KL_WW" and "H00_2.42.0_1204 - ME571KL_VERIZON". So it looks like they're using a different radio if it detects it's running on Verizon and WW (worldwide?) modem otherwise.

The Verizon modem has slightly different roaming configs, perhaps? The WW modem recognizes the "Verizon" network, but the Verizon firmware splits that into "ROAMING" and "USA - Extended Area"

Shrug. It's a shame the modem is all closed source.

-rwxr-xr-x 1 root root 2778152 Dec 4 10:16 dsp1_2.mbn

-rwxr-xr-x 1 root root 2716872 Dec 4 09:07 dsp1.mbn

-rwxr-xr-x 1 root root 30181848 Dec 4 10:28 dsp2_2.mbn

-rwxr-xr-x 1 root root 29893224 Dec 4 09:25 dsp2.mbn

dsp1 and dsp2 are the WW modems; dsp1_2 and dsp2_2 are the Verizon modems. That accounts for the extra 30MB.
[Nexus 7 (2013) LTE Android Development] URPREY:
I just wanted to chime in that I just picked up a Nexus 7 LTE and am using it with my unlimited Verizon sim. The native tethering is still working on the latest KVT49L build without patching.
[Nexus 7 (2013) LTE Android Development] sd_matto:
So it sounds like, based on your data point (VZW) and my data point (ATT), that the patch only needs to be updated to patch whatever might be ailing the ATT side of things for tethering (see earlier posts 30 and 53 by OP for reference).

Thanks.

And, OP, looking forward to an update incorporating the above additional info. Thanks for your good work in maintaining this.

EDIT: I was looking through apn-conf.xml file (under /system/etc), and there is a VERY STRANGE notation of "DO NOT MODIFY" above and below ATT apn settings. Manually modified apn-conf.xml file to add additional ATT APNs, and data works. Very weird (though not sure how relevant this is to this thread).
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Okay, figured out what was wrong. I updated to a newer apktool and the new commandline parameters there broke my script. I've taken the update and have tested this patch with AT&T. Apologies for the delay.

Download here: View attachment 2609876 (also in the OP).
[Nexus 7 (2013) LTE Android Development] harrisjr:
Hi all. Noob here so my apologies if this is an easy fix.

Getting the following when trying to sideload "update-att-tether-KOT49H-0.1.zip" on to my KitKat 4.4.2 Nexus 7 LTE (Build KOT49H)

E: footer is wrong

E: signature verification failed

Installation aborted.

I've factory reset the device and get the same error when trying to sideload from recovery mode. Suggestions? Once again, sorry of this is a "dumb" question.

Thanks in advance everyone.

James
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Did you install TWRP recovery? That looks a lot like the stock recovery. My packages aren't signed so you'll need to use TWRP to install.
[Nexus 7 (2013) LTE Android Development] harrisjr:
Ah yes. I realized this shortly after I posted. Installed and it works great.

Many thanks!
[Nexus 7 (2013) LTE Android Development] brianjking:
KTU84L 4.4.3 Build Support for LTE

Hi - Thank you! Based on your prior revision history it looks like I need to wait for a copy of this to be modified and tested for the newest 4.4.3 build KTU84L, is this correct?

My bootloader is unlocked and I'm fine to install TWRP, not sure if I plan to root or not as I don't have plans for a custom ROM on this device.

How will this patched file impact my future factory images coming in OTA or flashed manually? Thanks again! Cheers! :laugh:
[Nexus 7 (2013) LTE Android Development] brianjking:
Any updates?
[Nexus 7 (2013) LTE Android Development] linuxthinker:
For whatever reason, Google hasn't pushed the update to my Nexus 7 yet. Given some of the problems listed in the General forum, perhaps Google is doing a limited rollout? Anyway, here's an untested patched framework from the factory images.

Let me know if it works for you. It still creates a backup in /system/framework/framework-res.apk.bak-att-tether if things go wrong.

UNTESTED: View attachment update-att-tether-KTU84L-0.1.zip
[Nexus 7 (2013) LTE Android Development] michaelvillegas:
Works

I just tried this on my Nexus 7 (2013) on build number KTU84L and it seems to be working so far without any issues :)
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Woohoo, glad to hear it worked. I still haven't received the update yet, but once I test it myself, I'll update the OP with a link.

Thanks for testing!
[Nexus 7 (2013) LTE Android Development] thefloyd:
Can confirm this worked on my boss's n7 as well. He got the update, I didn't.
[Nexus 7 (2013) LTE Android Development] zmedhaug:
What changes are you making? i would like to make these changes but am unable to figure out what changes are being made exactly.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Here's the exact change being made in framework-res.apk: http://xdaforums.com/showpost.php?p=47710475&postcount=30

Here's how I unpacked/repacked framework-res.apk: http://xdaforums.com/showpost.php?p=45825067&postcount=4
[Nexus 7 (2013) LTE Android Development] Haul:
Thank you for not only creating this, but teaching us how to do it ourselves. Your shell script still works great on 4.4.4 KTU84P.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
No problem. I'm on the road right now so I haven't yet taken the 4.4.4 update. As soon as I do, I'll create a new flashable package. Should be no later than end of this week.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
OP updated to reflect that I have taken and tested both the KTU84L and KTU84P builds.
[Nexus 7 (2013) LTE Android Development] pwcsap:
ATT Tethering patch for Nexus 7 Deb on Lollipop

Hi,

Is it too soon to request for an ATT tethering patch for Nexus 7 Deb on Lollipop?

All I could find on forums is apps that cost. Wondering if there is a patch available.

My device is rooted.

Thanks,

Gaali
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Are the factory images available yet? I haven't been offered the update yet, so I can't make a patch.
[Nexus 7 (2013) LTE Android Development] pwcsap:
Nexus 7 ATT Tethering patch on Lollipop

Yes. The stock ROMs have been out I think for a week or so.

I have installed mine from http://xdaforums.com/nexus-7-2013/development-lte/rom-aosp-lollipop-nexus-7-2013-lte-t2932693

some additional info here http://xdaforums.com/showthread.php?t=2474297

Thank you.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
This is a 3rd party rom (albeit just plain aosp), so anything I build off of this would be incompatible with the official OTA.

That said, if I have time this weekend, I can build one for you and PM it to you.
[Nexus 7 (2013) LTE Android Development] pwcsap:
That's Awesome! Thank you.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
I spoke too soon. I forgot that Lollipop packages updates as disk images. I haven't figured out how to unpack those yet; I'll try to work on it over the weekend and/or Thanksgiving.
[Nexus 7 (2013) LTE Android Development] sd_matto:
Now that the stock factory image has FINALLY been released for this Nexus 7 LTE, I hope that the last hurdle to getting an update out is no longer in place.

Thanks for the great tweak that you do!
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Thanks for the heads up. I've got a patch mostly baked. I'm heading to a Superbowl party then will finish packaging this up. Should be ready tonight or tomorrow.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Lollipop 5.0.2 LRX22G Patch Available

I've updated the OP with the flashable patch for 5.0.2 LRX22G. You can also download it here: View attachment 3145886. I've tested this on my own device and it works great.

Behind-the-scenes changes:

This patch is much smaller than previous ones (now 2MB vs. 10MB for older updates). I'm now packaging it as a patch instead of as the full framework file.

Lollipop now enforces SELinux bits. The update script bundled in this update now sets the proper bits.

Added more aggressive file checking to prevent patching non-stock ROMs.

Note to ROM devs: I'm no longer just nuking the arrays.xml files; here's a bunch of roaming-specific settings in the AT&T arrays.xml that I don't want to delete. To accommodate that, I've moved to XSLT-based patching. Same loop as before to identify affected AT&T arrays.xml files, but instead of deleting it, I'm applying this XSLT: View attachment remove-tether-entries.xslt.txt
[Nexus 7 (2013) LTE Android Development] linuxthinker:
I've managed to successfully integrate the SMS patch from the other thread into the AT&T tether fix. I've tested it and it works. If anyone wants that, I can package it up and post it, too. Let me know.
[Nexus 7 (2013) LTE Android Development] Eyedoctor2:
I would definitely be interested in the lollipop version of the SMS patch. Thanks for all your hard work!
[Nexus 7 (2013) LTE Android Development] linuxthinker:
OP updated with links to tether + SMS patch. If you've already installed the tether-only patch, you need to flash the revert (also in OP) before flashing tether + SMS.
[Nexus 7 (2013) LTE Android Development] Eyedoctor2:
Thanks for this! Was able to first revert and after a reboot flash the tether/SMS patch uneventfully. Tethering continues to work great.

Unfortunately I forgot that AT&T limits their sim cards for tablets and so the SMS never actually gets sent. But I used Google Messenger and it clearly tried to send the SMS out, even providing a "sent" response. But AT&T got in the way again. For this to work with them I would have to upgrade to a phone SIM.

Thanks again!
[Nexus 7 (2013) LTE Android Development] linuxthinker:
One thing you can do on AT&T is save *DATA# as a contact. If you tap on that, you'll get the "Running USSD code..." message and you'll get an SMS in a minute or two with your data usage.
[Nexus 7 (2013) LTE Android Development] cgertz:
I have been trying for hours to install this patch and I keep getting the same error when I try to install it.

"Error executing updater binary in zip"

Any ideas?

I am using TWRP 2.8.6.0 and am using the LRX22G build.

I have reinstalled the factory image with no luck.

you assistance would be greatly appreciated.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Thanks for including the error message -- that's very helpful. Can you try one of these two files (depending on if you want SMS or not)? I found a problem with the way I was packaging the updates that probably makes newer TWRPs unhappy.

LRX22G Tether Only: View attachment update-att-tether-LRX22G-0.2.zip

LRX22G Tether and SMS: View attachment update-att-tether-sms-LRX22G-0.2.zip

If these work for you, I'll update the OP. Thanks.
[Nexus 7 (2013) LTE Android Development] big_boludo:
Can you please update the patch for 5.1 (LMY470)?
[Nexus 7 (2013) LTE Android Development] linuxthinker:
I've been having trouble unpacking and repacking the new framework. They've changed something about the way they pack apks that makes apktool unhappy.

Will post when I'm able to make progress.
[Nexus 7 (2013) LTE Android Development] Eyedoctor2:
Thanks Linuxthinker! Appreciate your work. Having this tethering ability is the only thing preventing me from upgrading to 5.1
[Nexus 7 (2013) LTE Android Development] natecarlson:
Looks like apktool 2.0 is supposed to support the 5.1 version.. but I can't link to it yet.

Are the necessary changes to the framework and what you're doing to make the flashable zip documented anywhere by chance? If so I wouldn't mind giving it a try.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Cool; I built the latest apktool and it looks like it works. I'm updating the OP with download links for LMY47O (5.1.0) and LMY47V (5.1.1) in a few minutes.
[Nexus 7 (2013) LTE Android Development] linuxthinker:
Tested with LMY47O, upgraded to 5.1.1 and verified with LMY47V. Should be good to go.
[Nexus 7 (2013) LTE Android Development] natecarlson:
YAY! Confirmed on LMY47V, thanks much!
[Nexus 7 (2013) LTE Android Development] Duffmantp:
ha, damm you beat me to it, I was just going to post it as well. :p

I lost hotspot icon after upgrade to 5.1.1 so i flashed the Tether with SMS framework, and that works. SMS and hotspot icon is back in the pull down notification bar.
[Nexus 7 (2013) LTE Android Development] big_boludo:
Tethering is working splendidly for me. Is there something besides the patch that needs to be done to get SMS working? When I send one, it never shows up at the recipient's end. Can't receive any either.