Post Reply

Phone [MOD]Native Hotspot Hack[ALL OTAs][Odex][DeOdex]

OP Ascertion

26th December 2013, 12:37 AM   |  #1  
Ascertion's Avatar
OP Senior Member
Thanks Meter: 1,073
 
2,443 posts
Join Date:Joined: Mar 2012
Donate to Me
HUGE Thanks to Metalboy94 for his vigorous attempts to get this working for us Sprint users. He doesn't even own a Sprint device, so please show him some love!

How to Install
- Download File based on ROM type.
- Flash File via TWRP or Philz recovery.
- Wipe Cache/Davlik.
- Reboot System
- Upon boot, update Profile/PRL and reboot again to ensure functionality.
- Profit!

Mirrors
Mediafire

Contributors
Justinswidebody, Bullghost, Metalboy94, Ascertion, SaintZ93

Version Information
Status: Stable

Created 2013-12-25
Last Updated 2014-08-13
Last edited by Ascertion; 1st October 2014 at 09:15 AM.
The Following 56 Users Say Thank You to Ascertion For This Useful Post: [ View ]
26th December 2013, 12:38 AM   |  #2  
Ascertion's Avatar
OP Senior Member
Thanks Meter: 1,073
 
2,443 posts
Join Date:Joined: Mar 2012
Donate to Me
Mine.
Last edited by Ascertion; 28th September 2014 at 01:42 PM.
The Following User Says Thank You to Ascertion For This Useful Post: [ View ]
26th December 2013, 12:40 AM   |  #3  
fatboypup's Avatar
Senior Member
Scottsdale, AZ
Thanks Meter: 408
 
1,761 posts
Join Date:Joined: Jul 2007
More
Yay time to paypal

Sent from my LG-LS980 using XDA Premium 4 mobile app
26th December 2013, 12:47 AM   |  #4  
fatboypup's Avatar
Senior Member
Scottsdale, AZ
Thanks Meter: 408
 
1,761 posts
Join Date:Joined: Jul 2007
More
Errr

Sent from my LG-LS980 using XDA Premium 4 mobile app
Attached Thumbnails
Click image for larger version

Name:	1388018819226.jpg
Views:	4065
Size:	46.1 KB
ID:	2474719  
26th December 2013, 12:48 AM   |  #5  
Ascertion's Avatar
OP Senior Member
Thanks Meter: 1,073
 
2,443 posts
Join Date:Joined: Mar 2012
Donate to Me
Quote:
Originally Posted by fatboypup

Errr

Sent from my LG-LS980 using XDA Premium 4 mobile app

Are you on v8 based ROM?
I just tried the same zip and it's working for me.


Sent from my LG-LS980
The Following User Says Thank You to Ascertion For This Useful Post: [ View ]
26th December 2013, 12:48 AM   |  #6  
Member
Thanks Meter: 28
 
44 posts
Join Date:Joined: Aug 2012
Quote:
Originally Posted by Ascertion

HUGE Thanks to Metalboy94 for his vigorous attempts to get this working for us Sprint users. He doesn't even own a Sprint device, so please show him some love!

And thanks to you for all your testing! Any chance we can get an odexed version for those of us still running the stock ROM? (I'll look into converting deodexed to odexed, but no experience w/ it yet).

Great job guys! Merry Christmas!
26th December 2013, 12:53 AM   |  #7  
fatboypup's Avatar
Senior Member
Scottsdale, AZ
Thanks Meter: 408
 
1,761 posts
Join Date:Joined: Jul 2007
More
Errr **** im on the odex rom time to flash to ice

Sent from my LG-LS980 using XDA Premium 4 mobile app
26th December 2013, 12:55 AM   |  #8  
Ascertion's Avatar
OP Senior Member
Thanks Meter: 1,073
 
2,443 posts
Join Date:Joined: Mar 2012
Donate to Me
Quote:
Originally Posted by fatboypup

Errr **** im on the odex rom time to flash to ice

Sent from my LG-LS980 using XDA Premium 4 mobile app

Lol. I'd recommend flashing the v1.1 test. Page 5 of IceROM. Then the Email fix. 100% awesome combo.

Sent from my LG-LS980
26th December 2013, 12:57 AM   |  #9  
fatboypup's Avatar
Senior Member
Scottsdale, AZ
Thanks Meter: 408
 
1,761 posts
Join Date:Joined: Jul 2007
More
Thumbs up
Quote:
Originally Posted by Ascertion

Lol. I'd recommend flashing the v1.1 test. Page 5 of IceROM. Then the Email fix. 100% awesome combo.

Sent from my LG-LS980

will do
The Following User Says Thank You to fatboypup For This Useful Post: [ View ]
26th December 2013, 01:00 AM   |  #10  
metalboy94's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 147
 
605 posts
Join Date:Joined: May 2011
Donate to Me
More
Guide - Make your own native hotspot mod
I will try to keep it as simple as possible.

1. Decompile /system/framework/services.jar (or services.odex) with your favorite smali tool.
2. Inside the folder where you decompiled it, go to com/android/server/connectivity and open TetherNetwork.smali with a text editor (preferably Notepad++).
3. Replace the following:

Code:
.line 118
    const/4 v0, -0x1
with

Code:
.line 118
    const/4 v0, 0x1
and

Code:
.line 718
    const/4 v0, -0x1
with

Code:
.line 718
    const/4 v0, 0x1
and

Code:
.method public isTetherNetworkAvail()Z
    .locals 1

    .prologue
    .line 331


    iget-object v0, p0, Lcom/android/server/connectivity/TetherNetwork;->mTetherNetworkDataTrans:Lcom/android/server/connectivity/TetherNetworkDataTransition;

    if-eqz v0, :cond_0

    .line 332
    iget-object v0, p0, Lcom/android/server/connectivity/TetherNetwork;->mTetherNetworkDataTrans:Lcom/android/server/connectivity/TetherNetworkDataTransition;

    invoke-virtual {v0}, Lcom/android/server/connectivity/TetherNetworkDataTransition;->isPamPdnDataProfileEnabled()Z

    move-result v0

    .line 334
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method
with

Code:
.method public isTetherNetworkAvail()Z
    .locals 1

    .prologue
    .line 331
	const/4 v0, 0x1
	
    return v0
.end method

BONUS: If you want to be sure you removed (at least aesthetically) the tethering plan dialog, replace:

Code:
invoke-direct {p0, v0, v1}, Lcom/android/server/connectivity/TetherNetwork;->showDialog(Landroid/content/Context;I)V
with

Code:
#invoke-direct {p0, v0, v1}, Lcom/android/server/connectivity/TetherNetwork;->showDialog(Landroid/content/Context;I)V
4. Recompile services.jar/odex(odexed ROM users, there are a few guides on XDA on how to use dexopt-wrapper to recompile framework stuff with odexes)
5. Push it back to the phone (make sure you set the right permissions)
6. Reboot and enjoy.
Last edited by metalboy94; 26th December 2013 at 01:03 AM.

The Following 21 Users Say Thank You to metalboy94 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Sprint G2 Android Development by ThreadRank