[MOD][Deodex][Odex][MB1][MC3][MD4][MK3][ND8]Hotspot Mod - Working 4G

crawrj

Senior Member
Nov 2, 2007
3,557
3,865
0
This will allow native hotspot and tethering. I want to thank Agat63 for his initial request and testing. Thanks to StrongSteve for his help with Odexing. Thanks to everyone that helped with testing.


I am not responsible for anything that happens to your phone. You do this at your own risk.

This is based off stock firmware. This should not be used on other Roms until it is integrated.


Question: Will this work with the custom Rom I am using?

Answer: A general rule, but not a guarantee, when using this with a custom Rom:

1. The Rom must be built on a 100% stock system.

2. The services.jar has not been modified by the Rom developer.

And that is true for any mod, theme or whatever else that has been built on stock code.

If those two things are true you should be able to flash this with no problems. If not, you will just have to wait until it gets integrated into the Rom.



ND8 Update: Thanks to Rocket321 for providing the Deodexed services.jar and for Odexing the mod. A big thanks to @miked63017 for finding the unlock on the GS5. He should get all of the credit. I only used what he did on the S5. You can find his post here http://forum.xda-developers.com/showthread.php?t=2727127

Download ND8 Deodexed: http://www.androidfilehost.com/?fid=23329332407592563
MD5: 67f6b48ae6166f18edc237aab8c9ebcd

Download ND8 Odexed: http://www.androidfilehost.com/?fid=23329332407592714
MD5: fa41ebdebb01b280e83167d9327e60dd



--==Hotspot Mod by Rocket321==--

Here are both Odex and Deodex for MK3!
Tested to work through the "Sprint Hotspot" app on 3G & 4GLTE

Directions: Download and flash the appropriate zip using a custom recovery. Please only flash the file you need based on if you are using the Odexed or Deodexed rom!

Thanks to @crawrj for all of the hotspot mods, and for posting the code of how he created them.
I've built on that work to create the following MK3 updated mod:

Download MK3 Deodexed: http://d-h.st/LSc
MD5: 2b71e65bd2dea1d21600ace41dedbfb7

Download MK3 Odex: http://d-h.st/T16
MD5: a9d5a19d76fb31c6ce86342d2f9a78e1

Also thanks to @CNexus for the stock rooted MK3 ROMs!



Download MD4 Deodexed: http://tinyw.in/cwIb
MD5: c51530b62ce28f203dc06f029e0b5ff1

Download MD4 Odexed: http://tinyw.in/n75f
MD5: 44f53d518b0963f6904a0960d5069cd8

Download MC3 Deodexed: http://tinyw.in/bCwR
MD5: ad19c92e1830bba10f44e5016b325e48

Download MC3 Odexed: http://tinyw.in/vCds
MD5: 2d20efef60f046499774ecde6ffc1717

Download MB1 Deodexed: http://tinyw.in/foM5
MD5: 748bad8fcb11dddda0884e5894690f97

Download MB1 Odexed: http://tinyw.in/XZmU
MD5: 01e6d5c50eb9b8dde4a10ca68c5ee650


Mirrors:
https://www.dropbox.com/sh/hq4p41isnimlciy/6bkSPb7k5n

http://d-h.st/users/crawrj/?fld_id=13808#files
 
Last edited:

crawrj

Senior Member
Nov 2, 2007
3,557
3,865
0
What to change to get this working:

This info is for other devs. You only need to install the zip to get it working.

Edit /com/android/server/connectivity/Tethering.smali


Code:
Before:

5048     .line 1114
5049     :cond_a0
5050     const/4 v8, 0x1
5051
5052     .line 1117
5053     if-eqz v8, :cond_df
Code:
After:

5048     .line 1114
5049     :cond_a0
5050     if-eqz v8, :cond_df
Changes to ND8:

Code:
Before:

6497     const/4 v2, 0x1
Code:
After:

6497     const/4 v2, 0x0
 
Last edited:

gruesomewolf

Senior Member
Jan 30, 2011
4,428
8,515
0
Mocksville, NC
I will try to get 4g, or at least find the smali code. I'm interested in this cause on lj7 I made this mod with basically the same edits. We never released publicly due to the fact that you could only turn it on one time. In order for it to work after that you had wipe caches..... so must be sprint changed the coding a little too make this work better. Good job btw. ..:D

Sent from my SPH-L710 using xda app-developers app
 

gruesomewolf

Senior Member
Jan 30, 2011
4,428
8,515
0
Mocksville, NC
Ok so after a little testing, couple things users neede to know.

1. Dont flash this over any rom using multiview mod.....IT WONT BOOT. You have been warned.
2. I can turn on my wifi tether, but I cant get connected at all. I have tried 3 different computers. One was running linux, so I tried my windows machines. With windows I can connect to but it has no internet access.
3. Once the kinks are worked out (when it works), I wil make variations for use with multiview

To the dev, if you need anything (ie,Logs, etc) let me know.
 

crawrj

Senior Member
Nov 2, 2007
3,557
3,865
0
Ok so after a little testing, couple things users neede to know.

1. Dont flash this over any rom using multiview mod.....IT WONT BOOT. You have been warned.
2. I can turn on my wifi tether, but I cant get connected at all. I have tried 3 different computers. One was running linux, so I tried my windows machines. With windows I can connect to but it has no internet access.
3. Once the kinks are worked out (when it works), I wil make variations for use with multiview

To the dev, if you need anything (ie,Logs, etc) let me know.
So you tried this on stock deodexed MB1 and it didn't work? Agat63 flashed a deodexed MB1 and said it worked perfectly. And I have worked with him for a long time so I trust his testing. Unfortunately I don't have the s3 to test myself.

Can we get a few stock testers to report your findings?

Sent from my SPH-D710 using xda premium
 
Last edited:

SGSIIIJB

Senior Member
Jan 6, 2013
138
197
0
MD
test

USB tether works fine 3g obviously
Hotspot worked fine was able to connect my windows labtop to it and browse/download files.!

THANKS! been waiting so long for this.

Im running Freezas stock deodexed MB1 rom.

EDIT: I did experience the same effect that gruesomewolf said of NO BOOT while running MOAR 2.3 rom.
 
Last edited:
  • Like
Reactions: crawrj

crawrj

Senior Member
Nov 2, 2007
3,557
3,865
0
Yeah I should have mentioned in the OP that this is for stock MB1. It will have to be integrated into custom Roms. I come from the S2 where that was common knowledge so I didn't think to post it. Op updated now.

Sent from my SPH-D710 using xda premium
 
Last edited:

strongsteve

Recognized Themer
Apr 1, 2008
5,197
16,759
0
Dallas, TX
Yeah I should have mentioned in the OP that this is for stock MB1. It will have to be integrated into custom Roms. I come from the S2 where that was common knowledge so I didn't think top post it. Op updated now.

Sent from my SPH-D710 using xda premium
Crawrj.. good to see you.

Get it worked out and I will odex it and assimilate it into the stock odexed framework.


Sent from my SPH-L710 using xda premium
 
Last edited:

crawrj

Senior Member
Nov 2, 2007
3,557
3,865
0
Crawrj.. good to see you.

Get it worked out and I will odex it and assimilate it into the stock odexed framework.


Sent from my SPH-L710 using xda premium
Thanks and good to see you too! When you get a chance I need your help with odexing the S3. I am doing it the same as the S2 with the new bootclass but isn't working :(

Sent from my SPH-D710 using xda premium
 

gruesomewolf

Senior Member
Jan 30, 2011
4,428
8,515
0
Mocksville, NC
So you tried this on stock deodexed MB1 and it didn't work? Agat63 flashed a deodexed MB1 and said it worked perfectly. And I have worked with him for a long time so I trust his testing. Unfortunately I don't have the s3 to test myself.

Can we get a few stock testers to report your findings?

Sent from my SPH-D710 using xda premium
Hhhmmm... Well I modified my jar same as you modified yours and it didn't work. As stated I can connect, but I have no Internet connection. I will try again on a 100% stock base and let you know how that goes. Although I suspect it will be the same since my rom is mb1 based.

Sent from my SPH-L710 using xda app-developers app
 
  • Like
Reactions: rompnit

gruesomewolf

Senior Member
Jan 30, 2011
4,428
8,515
0
Mocksville, NC
Thanks and good to see you too! When you get a chance I need your help with odexing the S3. I am doing it the same as the S2 with the new bootclass but isn't working :(

Sent from my SPH-D710 using xda premium

Ok crawjr, I was wrong, and man enough to admit it...lol. I have ran some further testing on a stock MB1 rom and it worked perfectly! So I guess I have to figure out how I broke it....:silly:

FYI Here is bootclass path

BOOTCLASSPATH
/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/framework_ext.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar

Hope that helps ya
 
  • Like
Reactions: rompnit

crawrj

Senior Member
Nov 2, 2007
3,557
3,865
0
Based on Agat's testing and the confirmation by SGSIIIJB, I am confident it will work on stock MB1. I am also using this same hack on the GS2, of course changed to fit its code, and I know for sure that works perfectly minus 4G.

What I really need is for a few people to get a clean catlog while trying to connect to the hotspot on 4G. Hopefully that will get us in the right area to try and get 4G working.



Sent from my SPH-D710 using xda premium
 

agat63

Inactive Recognized Developer
Sep 14, 2010
3,987
7,937
0
Las Vegas, NV
I'm running stock deodexed MB1 rom by freeza and flashed the hotspot mode over installed rom.
3G is working perfectly. I'm posting this wile connected to internet via hotspot on my windows machine.
Worked just fine right from the start.
As stated by crawrj this is based on MB1 framework and should be used with roms based off of MB1 with not many (if any) changes and edits to original framework files.
I'm sure with help of other great devs of this community we will figure out how to make it work with other custom roms.
This is a good start.
I wanna thank crawrj for responding to my request to try it and for making it work.
I think 11 thanks for this great find doesn't do justice for all the hard work and time he did put into this to make it work.
And he doesn't even have the phone to test it.
Kudos and lot of thanks man.
 

crawrj

Senior Member
Nov 2, 2007
3,557
3,865
0
Ok crawjr, I was wrong, and man enough to admit it...lol. I have ran some further testing on a stock MB1 rom and it worked perfectly! So I guess I have to figure out how I broke it....:silly:

FYI Here is bootclass path

BOOTCLASSPATH
/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/framework_ext.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar

Hope that helps ya
LOL no problem at all. Thank you for confirming that it works and thank you for the BCP. That is the bootclass that I was using. Not sure why it wasn't working. I was rushing because I was at a friends house and was using his S3 so I could have just made a silly mistake somewhere but I tried it several times. I used the same method as I do on the S2, which always works, and it would not boot on the S3. Not sure what I did wrong but if I can get his phone again I will try to figure out where I went wrong.

It shouldn't matter but are you using 1.4.2 of Smali/Baksmali? I have seen some crazy things in the past coming from different versions of Smali.

Also I want to point this out, it may have no relevance to this case. I am fairly new to Android. My first Android device was the original GS. When I started learning android I would start by taking apart mods that were released so that I could learn what was changed and get used to taking down and building up files again. What I noticed was that when people were upgrading their mods from older versions they were doing it dirty :) LOL reading that back just made me laugh, sorry I digress. What I mean by that is that they would take certain files and leave them as is and bring them over to the new version. The mod worked and you didn't notice any difference so it was a big time saver. But I am very anal and that kind of thing drove me crazy. That was the real reason why I wanted to learn more so that I could do things on my own. The point is when the code is migrated from version to version dirty it can have a negative impact on things that you wouldn't normally have. On the S2 I would see, constantly, where people were flashing mods from older versions and saying hey it is working and just start using it. I would always tell them to wait for it to be upgraded to the current version or at least verified that the files modified had not changed between versions. Just because it appears to working doesn't mean that it will continue to work or that it will not be impacted by some other mod that is applied later.

Again, this is not directed at you specifically. I just like to use this as an education opportunity.

Thanks again!