FORUMS
Remove All Ads from XDA

[MOD/ HOW TO] Enable WiFi Tethering

1,587 posts
Thanks Meter: 3,955
 
By Nottach, Account currently disabled on 30th April 2013, 01:51 AM
Post Reply Email Thread
THIS IS FOR THE BRAVE PEOPLE ONLY!!!

I deodexed my own system in order to do this modification.
I replaced the files manually using an on device file explorer.
I do not recommend doing this if you aren't comfortable dealing with smali.

I got tethering working by modifying:

TetheringProvision.apk


Quote:

/com/sec/tetheringprovision/TetheringProvisionActivity$5.smali
--return -1 instead of 0

Code:
    .line 990
     iget-object v0, p0,  Lcom/sec/tetheringprovision/TetheringProvisionActivity$5;->this$0:Lcom/sec/tetheringprovision/TetheringProvisionActivity;

--    const/4 v1, 0x0
++    const/4 v1, -0x1

    #calls: Lcom/sec/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V
     invoke-static {v0, v1},  Lcom/sec/tetheringprovision/TetheringProvisionActivity;->access$800(Lcom/sec/tetheringprovision/TetheringProvisionActivity;I)V

&&

Quote:

/com/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask. smali
--change auth links to localhost

Code:
   .line 1081
    const-string v0, "127.0.0.1"

     iput-object v0, p0,  Lcom/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask;->ATTTetheringPlanCheckURL:Ljava/lang/String;

    .line 1082
    const-string v0, "127.0.0.1"

     iput-object v0, p0,  Lcom/sec/tetheringprovision/TetheringProvisionActivity$TetheringPlanCheckTask;->ATTMHSPlanCheckURL:Ljava/lang/String;


It fails the authentication quickly and anonymously by calling localhost (127.0.0.1) and allows hot spot enabling after.


The modified APK is attached. Rename existing APK and ODEX file to .BAK then place modded APK in system/app and reboot.

UPDATE: The attached APK is out of date and obsolete. See my dev-resources thread for an updated deodexed system installer based on the newest system release that includes this mod.
Attached Files
File Type: apk TetheringProvision.apk - [Click for QR Code] (209.7 KB, 9913 views)
The Following 38 Users Say Thank You to Nottach For This Useful Post: [ View ] Gift Nottach Ad-Free
 
 
30th April 2013, 02:00 AM |#2  
breakingspell's Avatar
Senior Member
Thanks Meter: 118
 
More
I'm content with just using Foxfi/PDANet, haha. Works fine, i tested it last night
30th April 2013, 06:30 AM |#4  
Junior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by breakingspell

I'm content with just using Foxfi/PDANet, haha. Works fine, i tested it last night



Does the S4 need to be rooted to use Foxfi/pdanet?
30th April 2013, 06:31 AM |#5  
breakingspell's Avatar
Senior Member
Thanks Meter: 118
 
More
Quote:
Originally Posted by newbie101

Does the S4 need to be rooted to use Foxfi/pdanet?

Supposedly not, that's their selling point.
30th April 2013, 06:51 AM |#6  
Senior Member
Flag Garland, TX
Thanks Meter: 9
 
More
I guess I'm not that familiar with .smali but how did you get root permission?

Sent from my SAMSUNG-SGH-I337 using xda premium
30th April 2013, 07:33 AM |#7  
Senior Member
SF Bay Area
Thanks Meter: 121
 
More
Quote:
Originally Posted by n311.dunkle

I guess I'm not that familiar with .smali but how did you get root permission?

Sent from my SAMSUNG-SGH-I337 using xda premium

Really man? How did he root? Spend 30 seconds looking at the forum.

Sent from my SAMSUNG-SGH-I337 using xda app-developers app
The Following 2 Users Say Thank You to geoldr For This Useful Post: [ View ] Gift geoldr Ad-Free
30th April 2013, 07:56 AM |#8  
Senior Member
Flag Garland, TX
Thanks Meter: 9
 
More
Quote:
Originally Posted by geoldr

Really man? How did he root? Spend 30 seconds looking at the forum.

Sent from my SAMSUNG-SGH-I337 using xda app-developers app

Harsh much? The "original" Android development forum had one topic and one sticky. I didn't even think to look there. My bad but seriously I hate when people post rude comments that don't even answer the question asked. Keep it to yourself if you don't feel like being helpful.

Sent from my SAMSUNG-SGH-I337 using xda premium
The Following 3 Users Say Thank You to n311.dunkle For This Useful Post: [ View ] Gift n311.dunkle Ad-Free
30th April 2013, 11:33 AM |#9  
BigDogPooh's Avatar
Senior Member
Flag Catskill
Thanks Meter: 755
 
More
Since you modified the apk already we should be able to push the apk into the system and change the permissions using a root Explorer. Even if you mess up this apk won't brink anything. The worst case is your tethering just won't work. You can even just rename the old system files to .bak just incase.

Can you post up the modified apk...

Sent from my SAMSUNG-SGH-I337 using xda premium
30th April 2013, 02:49 PM |#10  
alwayslearning's Avatar
Senior Member
Flag CA
Thanks Meter: 90
 
More
Quote:
Originally Posted by breakingspell

I'm content with just using Foxfi/PDANet, haha. Works fine, i tested it last night

I jut tried the free version to see if it would work, and it did not work for me.
30th April 2013, 03:18 PM |#11  
OP Account currently disabled
Flag New York
Thanks Meter: 3,955
 
More
Quote:
Originally Posted by BigDogPooh

Since you modified the apk already we should be able to push the apk into the system and change the permissions using a root Explorer. Even if you mess up this apk won't brink anything. The worst case is your tethering just won't work. You can even just rename the old system files to .bak just incase.

Can you post up the modified apk...

Sent from my SAMSUNG-SGH-I337 using xda premium


Posted modded APK in OP.
The Following 4 Users Say Thank You to Nottach For This Useful Post: [ View ] Gift Nottach Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes