Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
cmaxwe
Old
(Last edited by cmaxwe; 21st June 2012 at 02:59 PM.)
#1  
Member - OP
Thanks Meter 23
Posts: 75
Join Date: Jun 2010
Prompt [MOD] Tethering Fix for Rogers users running AT&T based ROMs

Seems the AT&T ROMs have some tether protection (entitlement check) built into them that does not exist on the Rogers ROMs. So if you are a Rogers user and have flashed an AT&T based ROM then you will need to make a change to your telephony database to be able to get tethering working.

This problem probably is not unique to Rogers and probably applies to anyone who is using an AT&T based ROM on a network other than AT&T. To apply this to a different carrier you will just need to change the APN, numeric, mcc and mnc values in step 5 to match your carrier values.

Update: Turge made a flashable zip to perform this update.

Just install the zip in recovery.

Flashable ZIP (thanks Turge):

http://forum.xda-developers.com/atta...5&d=1340286308


------------------------------------------------------------------
Old Instructions:

1. Use a rooted filemanager (e.g. ES File Explorer) to backup the Telephony Database (/data/data/com.android.providers.telephony/databases/telephony.db) to a safe place (e.g. /sdcard/).

2. Download SQLite Installer for Root from the Market and open the app and install SQLite3

3. Open an adb shell

4. Type the following command in to open the telephony database:

su -c sqlite3 /data/data/com.android.providers.telephony/databases/telephony.db

5. This should have opened sqlite3. If it did then type the following command in to update the database:

INSERT INTO carriers (name, numeric, mcc, mnc, apn, authtype, type, insert_by, state, protocol, roaming_protocol, carrier_enabled, bearer) VALUES ("Entitlement","302720","302","720","ltemobile.apn ","-1","entitle","internal","hidden","IP","IP","1","0" );

6. To confirm that this has been applied you can type the following:

select * from carriers;

This should list all the carriers you have in your telephony.db and the one you just added should be at the bottom.

7. Type the following to quit sqlite3

.exit

8. Type the following to reboot your phone

reboot

When your phone reboots it will work with standard ICS/Sense tethering!
The Following User Says Thank You to cmaxwe For This Useful Post: [ Click to Expand ]
 
cmaxwe
Old
#2  
Member - OP
Thanks Meter 23
Posts: 75
Join Date: Jun 2010
I tried to write an ADB script to do this but ran into problems with the INSERT command so I just wrote some instructions instead.

Someone more skilled at scripting could probably build an ADB script pretty easily I am sure.
 
Turge
Old
#3  
Turge's Avatar
Recognized Developer
Thanks Meter 5378
Posts: 2,862
Join Date: Sep 2008
Location: Hamilton

 
DONATE TO ME
Quote:
Originally Posted by cmaxwe View Post
I tried to write an ADB script to do this but ran into problems with the INSERT command so I just wrote some instructions instead.

Someone more skilled at scripting could probably build an ADB script pretty easily I am sure.
I was bored, so I made you a recovery flashable zip to perform your changes

If you want to find out if it worked, just type "cat /tmp/recovery.log" via adb shell after flashing the zip. The output should look like this:

Quote:
Opening update package...
Installing update...
Enabling Rogers Tethering on AT&T ROM
by cmaxwe and Turge
about to run program [/sbin/busybox] with 3 args
about to run program [/sbin/busybox] with 3 args
minzip: Extracted file "/tmp/enable.sh"
minzip: Extracted file "/tmp/sqlite3"
about to run program [/sbin/busybox] with 3 args
1307|Entitlement|302720|302|720|ltemobile.apn ||||||||||-1|entitle|internal|||hidden|||||IP|IP|1|0
script result was [Done]
Done
Attached Files
File Type: zip Rogers_Tethering_on_ATT_ROMs.zip - [Click for QR Code] (158.7 KB, 214 views)



Report Bugs and feature requests to our Team Venom - ViperXL: Google Issue Tracker

The Following 2 Users Say Thank You to Turge For This Useful Post: [ Click to Expand ]
 
Calkulin
Old
#4  
Calkulin's Avatar
Recognized Developer
Thanks Meter 5636
Posts: 1,254
Join Date: Sep 2008

 
DONATE TO ME
I just created a hack that will unlock the tethering on AT&T based ROMs without modding this setting, so I'll post it in a couple when I get the chance
If you like my work, donate to buy me a beer or 2

 
designgears
Old
#5  
designgears's Avatar
Recognized Developer
Thanks Meter 5013
Posts: 3,973
Join Date: Feb 2010
Location: SLC
Quote:
Originally Posted by Calkulin View Post
I just created a hack that will unlock the tethering on AT&T based ROMs without modding this setting, so I'll post it in a couple when I get the chance
This way is much better, it is universal.
"haters can make like bees with no stingers, and drop dead" -Eminem

Follow me on Twitter!
 
cmaxwe
Old
#6  
Member - OP
Thanks Meter 23
Posts: 75
Join Date: Jun 2010
Quote:
Originally Posted by designgears View Post
This way is much better, it is universal.
Yeah the other method is carrier agnostic/universal but it needs to be updated for each new AT&T RUU.

Using the method in this thread you could create a flash file for each carrier and that flash file should be usable on any new AT&T RUU.

The method in this thread seems safer too because you are just modifying a few rows in a database instead of replacing functionality/executable code (which I think is what the other mod does).

In fact ROM creators could insert Entitlement rows for all the common carriers in the Telephony.db and we wouldn't need to worry about any of these mods.
 
daitienshi
Old
#7  
Senior Member
Thanks Meter 4
Posts: 167
Join Date: Apr 2008
I just flashed it and tried to run a wifi-hotspot and it doesn't seem to work.

I do get a different message now saying that if I want this to work, I should call someone from att or dial 611.

Anyone else try this?
===============
Samsung Galaxy S3 I747 (Rogers)
 
zakhir_n
Old
#8  
Senior Member
Thanks Meter 1
Posts: 205
Join Date: Oct 2006
Quote:
Originally Posted by daitienshi View Post
I just flashed it and tried to run a wifi-hotspot and it doesn't seem to work.

I do get a different message now saying that if I want this to work, I should call someone from att or dial 611.

Anyone else try this?
i tried it and got the same result as you....

Current:
HTC One XL - King Kang Build 1
Samsung Galaxy Tab 2 7.0 - CM9

Retired:
Android: HTC Sensation, HTC Desire Z
WinMo: Sony Xperia X1, HTC Kaiser, HTC Wizard, Motorola MPX220
 
shchenok
Old
(Last edited by shchenok; 10th July 2012 at 03:30 PM.)
#9  
Member
Thanks Meter 10
Posts: 54
Join Date: Jul 2008
Quote:
Originally Posted by zakhir_n View Post
i tried it and got the same result as you....
Same here, no luck. Rooted stock 1.85 AT&T, connected on "4G" (HSPA+).

(ADB method)
 
cmaxwe
Old
(Last edited by cmaxwe; 10th July 2012 at 04:52 PM.)
#10  
Member - OP
Thanks Meter 23
Posts: 75
Join Date: Jun 2010
Quote:
Originally Posted by shchenok View Post
Same here, no luck. Rooted stock 1.85 AT&T, connected on "4G" (HSPA+).

(ADB method)
That is odd...hmm.

With the ADB method did step 6 (select * from carriers) show the new line that you added?

Also are you in Canada on the Rogers network? This is only for Rogers.

Edit: If you are both on HSPA+ and not LTE then maybe that has something to do with it. The APN that I used was for LTE. You could try replacing ltemobile.apn in the instructions above with rogers-core-appl1.apn.

I would do revert to the backup of your telephony.db first before I tried this though as I am not sure what happens if you have more than one Entitlement APN for a carrier. It probably just uses the first one in the list which would mean adding rogers-core-appl1.apn would have no impact.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Xposed Framework Module for the AT&T Galaxy S 4

Got yourself a brand new Galaxy S 4? Are you looking for some fun mods to make it truly your … more

Job Interview Prep: Phone Screen Part 1 – XDA Developer TV

XDA Developer TV Producer Jayce has been very busy creating videos to help … more

Auto Test Your Android Apps with Robotium

You’ve just finished coding your very first app, but before you release it to the wild, you … more

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more