[MOD] Enable native tether - T-Mobile Samsung Galaxy S6

As always I'm here to insist that data is data, here is a tethering mod for the Tmobile S6.
About:
What this does: It bypasses the provisioning check, switches your apn to ipv4, (required for tethering) and changes your tethering APN to the normal data APN.
What it does not do: It will not hide your browser headers from t-mobile, if they detect that you are using a desktop browser, you will see it deduct from your tethering balance. Use a User Agent Spoofer to work around this.
Click to expand...
Click to collapse
Prerequisites:
You should have a computer with adb, and your phone should be rooted and have busybox installed.
Click to expand...
Click to collapse
Installation instructions:
Manual via adb:
Download the attached apk, and open a command prompt in the location you have saved it to.
Installing the new Tethering Provision apk:
Code:
adb push TetheringProvision.apk /sdcard/
adb shell
su
mount -o remount,rw /system
cp /sdcard/TetheringProvision.apk /system/app/TetheringProvision/
chmod 644 /system/app/TetheringProvision/TetheringProvision.apk
(The following command only needs to be run if you are on a stock odexed rom.)
Code:
rm -R /system/app/TetheringProvision/arm64
After installation you MUST reboot for the new tethering provision apk to be seen.
Setting proper APN settings, (you will need busybox for this part):
Code:
adb shell
su
mount -o remount,rw /system
sed -i 's/pcweb.tmobile/fast.t-mobile/' /system/csc/customer.xml
sed -i 's/ipv6/ipv4/' /system/csc/customer.xml
Once you have configured the above, you MUST reset apn settings (Settings > Mobile Networks > Access Point Names > More > Reset to default )
Click to expand...
Click to collapse

As always I'm here to insist that data is data, here is a tethering mod for the Tmobile S6.
Awesome man! I'll give this a shot!

Will this mod work on the S6 Edge? If not, any chance you could provide the same mod for the S6 Edge? Thanks for your work.
I attached the tetherprovision apk from the s6 edge.

Fenny said:
As always I'm here to insist that data is data, here is a tethering mod for the Tmobile S6.
About: What this does, it bypasses the provisioning check, switches your apn to ipv4, (required for tethering) and changes your tethering APN to the normal data APN.
What it does not do: It will not hide your browser headers from t-mobile, if they detect that you are using a desktop browser, you will see it deduct from your tethering balance. Use a User Agent Spoofer to work around this.
Prerequisites, you should have a computer with adb, and your phone should be rooted and have busybox installed.
Installation instructions:
Manual via adb:
Download the attached apk, and open a command prompt in the location you have saved it to.
Installing the new Tethering Provision apk:
Code:
adb push TetheringProvision.apk /sdcard/
adb shell
su
mount -o remount,rw /system
cp /sdcard/TetheringProvision.apk /system/app/TetheringProvision/
chmod 644 /system/app/TetheringProvision/TetheringPrivision.apk
(The following command only needs to be run if you are on a stock odexed rom.)
Code:
rm -R /system/app/TetheringProvision/arm64
After installation you MUST reboot for the new tethering provision apk to be seen.
Setting proper APN settings, (you will need busybox for this part):
Code:
adb shell
su
mount -o remount,rw /system
sed -i 's/pcweb.tmobile/fast.t-mobile/' /system/csc/customer.xml
sed -i 's/pcweb.tmobile/fast.t-mobile/' /system/csc/feature.xml
sed -i 's/ipv6/ipv4/' /system/csc/customer.xml
Once you have configured the above, you MUST reset apn settings (Settings > Mobile Networks > Access Point Names > More > Reset to default )
Yes, this post is ugly, I'll clean it up later.
Click to expand...
Click to collapse
YES! I love you. I now can order this phone. When I get it, and I use this, and it works. I will donate to you.

b-reezy said:
Will this mod work on the S6 Edge? If not, any chance you could provide the same mod for the S6 Edge? Thanks for your work.
I attached the tetherprovision apk from the s6 edge.
Click to expand...
Click to collapse
I don't see any reason that my original mod should not work on the galaxy edge, though I would suggest making a backup before replacing it, I did try to make it universal.

Fenny said:
I don't see any reason that my original mod should not work on the galaxy edge, though I would suggest making a backup before replacing it, I did try to make it universal.
Click to expand...
Click to collapse
Alright perfect. I'll give it a shot then and report back my results. I just wanted to clarify considering lack of custom recovery and stock software tar. :good:

b-reezy said:
Alright perfect. I'll give it a shot then and report back my results. I just wanted to clarify considering lack of custom recovery and stock software tar. :good:
Click to expand...
Click to collapse
Make sure you backup your /system/app/TetherProvision folder in that case.

Fenny said:
About: What this does, it bypasses the provisioning check, switches your apn to ipv4, (required for tethering) and changes your tethering APN to the normal data APN.
What it does not do: It will not hide your browser headers from t-mobile, if they detect that you are using a desktop browser, you will see it deduct from your tethering balance. Use a User Agent Spoofer to work around this.
Click to expand...
Click to collapse
After doing this there was NO internet at all through the stock hotspot. Not even a t-mobile warning page. Any ideas?

DC2CA said:
After doing this there was NO internet at all through the stock hotspot. Not even a t-mobile warning page. Any ideas?
Click to expand...
Click to collapse
Sounds like the ipv6 -> ipv4 change on the APNs didn't stick.
Look at your apns, can you see if they are set to ipv4 or ipv6?
*EDIT*
Also, what is the output of:
Code:
grep ipv /system/csc/customer.xml

Fenny said:
Sounds like the ipv6 -> ipv4 change on the APNs didn't stick.
Look at your apns, can you see if they are set to ipv4 or ipv6?
*EDIT*
Also, what is the output of:
Code:
grep ipv /system/csc/customer.xml
Click to expand...
Click to collapse
This is my first time using dos since the very first time (and only time) I used it about 2 years ago. I did mess up on the command prompt for customer.xml and typed fast instead of fast but I went to the xml and ficed the typo. Is it possible that tmobile needs to be t-mobile? If so, how do I go back and fix that.
Thanks for getting back to me tonight. Tethering is a HUGE priority for me so I appreciate the help.

Fenny said:
Sounds like the ipv6 -> ipv4 change on the APNs didn't stick.
Look at your apns, can you see if they are set to ipv4 or ipv6?
*EDIT*
Also, what is the output of:
Code:
grep ipv /system/csc/customer.xml
Click to expand...
Click to collapse
This is my first time using dos since the very first time (and only time) I used it about 2 years ago. I did mess up on the command prompt for customer.xml and typed fsat instead of fast but I went to the xml and fixed the typo. Is it possible that tmobile needs to be t-mobile? If so, how do I go back and fix that.
Thanks for getting back to me tonight. Tethering is a HUGE priority for me so I appreciate the help.

DC2CA said:
This is my first time using dos since the very first time (and only time) I used it about 2 years ago. I did mess up on the command prompt for customer.xml and typed fsat instead of fast but I went to the xml and fixed the typo. Is it possible that tmobile needs to be t-mobile? If so, how do I go back and fix that.
Thanks for getting back to me tonight. Tethering is a HUGE priority for me so I appreciate the help.
Click to expand...
Click to collapse
Yes, the apn should read fast.t-mobile.com
Attached is my customer.xml for reference.
Alternatively you could try:
Code:
adb shell
su
mount -o remount,rw /system
sed -i 's/fast.tmobile/fast.t-mobile/' /system/csc/customer.xml
sed -i 's/fsat.tmobile/fast.t-mobile/' /system/csc/customer.xml
Then, reset apns and reboot.

Fenny said:
Yes, the apn should read fast.t-mobile.com
Attached is my customer.xml for reference.
Alternatively you could try:
Code:
adb shell
su
mount -o remount,rw /system
sed -i 's/fast.tmobile/fast.t-mobile/' /system/csc/customer.xml
sed -i 's/fsat.tmobile/fast.t-mobile/' /system/csc/customer.xml
Then, reset apns and reboot.
Click to expand...
Click to collapse
I'll try it but I think you need to edit the first post? I'll report in a few. Thanks again for working through this.
I'm not familiar with code at all so keep that in mind.
Sent from my SGH-T999 using Tapatalk
---------- Post added at 03:22 AM ---------- Previous post was at 03:12 AM ----------
Fenny said:
Yes, the apn should read fast.t-mobile.com
Attached is my customer.xml for reference.
Alternatively you could try:
Code:
adb shell
su
mount -o remount,rw /system
sed -i 's/fast.tmobile/fast.t-mobile/' /system/csc/customer.xml
sed -i 's/fsat.tmobile/fast.t-mobile/' /system/csc/customer.xml
Then, reset apns and reboot.
Click to expand...
Click to collapse
did not work.
Just kidding.. I am a liar. Everything seems to be working now. Speed is way better than it was with wifi tether router too!

DC2CA said:
I'll try it but I think you need to edit the first post? I'll report in a few. Thanks again for working through this.
I'm not familiar with code at all so keep that in mind.
Sent from my SGH-T999 using Tapatalk
---------- Post added at 03:22 AM ---------- Previous post was at 03:12 AM ----------
did not work.
Click to expand...
Click to collapse
What do your APNs look like?

I added an APN for tethering based on the other thread in QnA so I'm not sure why it isn't showing. I'm tethered now with wifi router whoever. But it's slow so I'm hoping native can be better.

DC2CA said:
I added an APN for tethering based on the other thread in QnA so I'm not sure why it isn't showing. I'm tethered now with wifi router whoever. But it's slow so I'm hoping native can be better.
Click to expand...
Click to collapse
Okay, I think it will, once we get it figured out. Open that apn up, and let's see the settings.

Thanks Fenny. You misspelled TetheringProvision in the chmod instruction line, so you should probably fix that when you get to cleaning up the thread.

teiglin said:
Thanks Fenny. You misspelled TetheringProvision in the chmod instruction line, so you should probably fix that when you get to cleaning up the thread.
Click to expand...
Click to collapse
Hah, good call. That's what I get for posting releases from my tablet.

Fenny said:
Okay, I think it will, once we get it figured out. Open that apn up, and let's see the settings.
Click to expand...
Click to collapse
Everything seems to be good to go. I think I confused myself trying to work through this is the middle of the night

Thanks for this. Do we still use the T-Mobile hotspot app? And my wifi calling seems to be broken after this. Any suggestions? Thanks.

Related

[SCRIPT] Toggle JIT on/off (updated instructions)

This will NOT work in CM5.0b4 as JIT has been disabled entirely
It seems like a lot of people are constantly pulling/editing/pushing build.conf in order to turn JIT on and off, so I threw together a short script to toggle it on and off.
It's nothing elaborate, but it gets the job done. This is meant to work with the build.prop that comes stock with cyanogenmod 5.0b2 but will most likely work with other build.props that have JIT.
Steps to run the script:
1) Download jit.txt, rename it jit.sh
2) If you downloaded from your computer, run "adb push jit.sh /sdcard" or mount your device and copy to your sdcard.
3) In terminal on Nexus One:
$ su
# sh /sdcard/jit.sh
JIT toggled ON
JIT enabled upon reboot
#
You can also set it up in GScript or GScript Lite so you can add an icon on your homescreen to toggle JIT more easily:
1) From command line: mv /sdcard/jit.sh /sdcard/gscript/jit.sh
2) Open GScript
3) Go to Menu->Add Script
4) Go to "Load file"
5) Select jit.sh
Then to make an icon on your homescreen:
1) Long press homescreen
2) Select Shortcuts
3) Select GScript(Lite)
4) Select jit
You must reboot for the changes to take effect after running the script. If you prefer, simply put "reboot" (without quotes) on it's own line at the end of the script and it will reboot automatically. Only do this after you have confirmed that the script works for you.
If you are using Windows, make sure you use the attached jit.txt rather than copying the code from this post. Copying/pasting the code will not work because of Windows CR/LF line breaks.
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
if grep -q fast /system/build.prop ; then
sed -i s/=int:fast/=int:jit/ /system/build.prop
echo "JIT toggled ON"
echo "JIT enabled upon reboot"
else
sed -i s/=int:jit/=int:fast/ /system/build.prop
echo "JIT toggled OFF"
echo "JIT disabled upon reboot"
fi
exit
mhaedo said:
It seems like a lot of people are constantly pulling/editing/pushing build.conf in order to turn JIT on and off, so I threw together a short script to toggle it on and off.
It's nothing elaborate, but it gets the job done. This is meant to work with the build.prop that comes stock with cyanogenmod 5.0b2.
Simply push the script to your phone (sdcard, or wherever you please) and run it. For example, put the quoted text into a file called jit.sh, push it to the root of your sdcard, and run "sh /sdcard/jit.sh" from a terminal. You can also set it up in GScript or GScript Lite so you can add an icon on your homescreen to toggle JIT more easily.
You must reboot for the changes to take effect.
Click to expand...
Click to collapse
Nice - been looking for just this, thanks. As a bit of a n00b, any idea why this doesn't seem to run in GScript Lite? I get the SU request OK, but then nothing - don't see the echo'd text at all, nowt. Running CM5b2 .29 kernel.
Ive installed pauls modaco patch wil this turn jlt off? its annoying me
Thanks for this script !
I just pull, nano, and push it back.
I don't think It's 100% stable.
push/pull? Shoot, I just use vi on build.prop from betterterminal. Don't have to mess with adb at all
Since you need to reboot anyway, couldn't we just put "reboot" in place of "exit"? I'm assuming that's not part of the script to save, since you have "fi" at the end of it. Personally, what I did is save 2 versions of build.prop to my sdcard and then built gscripts to swap 'em out. lol A little more crude, but just as effective.
when i try to run the jit.sh file in terminal i get:
failed: no such file or directoryk3 on /system : not found
sdcard/jit.sh : 13: syntax error: end of file unexpected (expecting 'then")
am i completely retarded?
trisl said:
Nice - been looking for just this, thanks. As a bit of a n00b, any idea why this doesn't seem to run in GScript Lite? I get the SU request OK, but then nothing - don't see the echo'd text at all, nowt. Running CM5b2 .29 kernel.
Click to expand...
Click to collapse
Yeah, I had the same problem. Remove the su request from superuser.apk. Then, run any script that requires root. Click remember, and allow. It will not work at this point. Back out to the homescreen with the back button, then go back into GScript Lite and run it again. It should work this time.
Guitarfreak26 said:
Ive installed pauls modaco patch wil this turn jlt off? its annoying me
Click to expand...
Click to collapse
Not sure. I would assume so, never seen the build.prop that's used but I don't see why it would be any different.
Mi|enko said:
Since you need to reboot anyway, couldn't we just put "reboot" in place of "exit"? I'm assuming that's not part of the script to save, since you have "fi" at the end of it. Personally, what I did is save 2 versions of build.prop to my sdcard and then built gscripts to swap 'em out. lol A little more crude, but just as effective.
Click to expand...
Click to collapse
That would be more efficient, but I just enjoy clicking my icon a few times and toggling it on and off Don't ask me why.
[email protected] said:
push/pull? Shoot, I just use vi on build.prop from betterterminal. Don't have to mess with adb at all
Click to expand...
Click to collapse
How would I do that? I have betterterminal emulator pro..
Four Fourty Four said:
How would I do that? I have betterterminal emulator pro..
Click to expand...
Click to collapse
$ su
# vi /system/build.prop
Proceed to edit (man vi, google vi). Bit of a pain in the ass though if you switch back and forth frequently.
mhaedo said:
$ su
# vi /system/build.prop
Proceed to edit (man vi, google vi). Bit of a pain in the ass though if you switch back and forth frequently.
Click to expand...
Click to collapse
Don't forget, you need to remount /system as rw also. it is a tiny bit of a pain, but I don't see much of a reason to switch back and forth all the time. Thus far I have yet to have any problems with JIT.
[email protected] said:
Don't forget, you need to remount /system as rw also. it is a tiny bit of a pain, but I don't see much of a reason to switch back and forth all the time. Thus far I have yet to have any problems with JIT.
Click to expand...
Click to collapse
The only time I consistently have problems with JIT is when tethering. Otherwise, I have yet to have any issues. I tether frequently, hence the script.
BTW, thanks for Apps2SD(2) and OpenOverclocker. They were very helpful to me at one point.
blakestimac said:
when i try to run the jit.sh file in terminal i get:
failed: no such file or directoryk3 on /system : not found
sdcard/jit.sh : 13: syntax error: end of file unexpected (expecting 'then")
am i completely retarded?
Click to expand...
Click to collapse
+1
I'm getting this message also.
blakestimac said:
when i try to run the jit.sh file in terminal i get:
failed: no such file or directoryk3 on /system : not found
sdcard/jit.sh : 13: syntax error: end of file unexpected (expecting 'then")
am i completely retarded?
Click to expand...
Click to collapse
Hm, strange. I can't duplicate this error. The steps I take are as follows:
1) Cut/paste the quoted code in the original post and save it in a document called jit.sh
2) On computer, adb push jit.sh /sdcard
3) In terminal on Nexus One:
$ cd sdcard
$ su
# sh jit.sh
JIT toggled ON
JIT enabled upon reboot
#
I'm sorry I can't be more help, but I'm not sure why you'd see that error.
mhaedo said:
Hm, strange. I can't duplicate this error. The steps I take are as follows:
1) Cut/paste the quoted code in the original post and save it in a document called jit.sh
2) On computer, adb push jit.sh /sdcard
3) In terminal on Nexus One:
$ cd sdcard
$ su
# sh jit.sh
JIT toggled ON
JIT enabled upon reboot
#
I'm sorry I can't be more help, but I'm not sure why you'd see that error.
Click to expand...
Click to collapse
Ok, I didn't do the whole adb push thing, I just copied it to my SDcard root from windows. Is that the problem?
BoostedSR20 said:
Ok, I didn't do the whole adb push thing, I just copied it to my SDcard root from windows. Is that the problem?
Click to expand...
Click to collapse
Ah, it's the line breaks. Windows uses a pair of CR and LF characters to terminate lines. Unix based system use an LF character only.
You can get a utility to convert the line breaks to unix style line breaks. I'm sure it will come in handy. I'll also upload the jit.sh with proper line breaks to the original post.
BoostedSR20 said:
Ok, I didn't do the whole adb push thing, I just copied it to my SDcard root from windows. Is that the problem?
Click to expand...
Click to collapse
Just tried pushing it to the sdcard, that went thru ok.
Still cant get it to run, same error. I've tried your command in the OP, and the what you wrote out a couple posts up. Same error on each one.
mhaedo said:
Ah, it's the line breaks. Windows uses a pair of CR and LF characters to terminate lines. Unix based system use an LF character only.
You can get a utility to convert the line breaks to unix style line breaks. I'm sure it will come in handy. I'll also upload the jit.sh with proper line breaks to the original post.
Click to expand...
Click to collapse
Ahhh, so it had to do with me making the file in the Windows Notepad. Got it..

[ROM] [WIP] Custom rom for MetroPCS users (Based off CM6)

I have decided not to build a ROM anymore. Instead, I have been working on the "Proxy Configuration Tool for Alternate Carriers" so that you can use almost ANY ROM (including CM6) with MetroPCS AND Cricket, yes, the Proxy Configuration Tool for Alternate Carriers will also support Cricket.
As you can see, the Proxy Configuration Tool for Alternate Carriers is an open-source project and you can contribute to it.
Here's the current TODO list:
- BUG: Proxy actually not updating properly when setting it through the sqlite db.
- Find out the correct ip for the mms proxy server for both MetroPCS and Cricket.
- Find out the correct network interface used by the Motorola Droid on FroYo.
- Find out the correct eri.xml file for cricket.
- Setup screen first time it runs & check for the following on every boot.
- Automatically setup APN.
- Check build.prop and modify it if it's needed (backup too) (ask for restart if modified)
- Check /data/eri.xml and install the new one if it's needed (backup too) (ask for restart if installed)
- Check for u2nl binary, if not available install it in /system/bin/, it's in the assets folder. (ask for restart if installed)
- Check for sqlite3 binary, if not available install it in /system/xbin/, it's in the assets folder. (ask for restart if installed)
- Drop database tables and replace them with appropriate Carrier Settings in: /data/data/com.android.providers.telephony/databases/telephony.db
- Document, organize and maybe improve configuration screen.
- It needs a better icon.
As you see, at this point is not complete, mostly due to the fact that the Proxy is not changing properly unless you reboot. It must be a stupid mistake on my part. I have been really busy lately and I have only been working on this when I get some free time, I figured somebody could contribute to this
If you'd like to test it go to the github link here and click on the Downloads tab and there should be an alpha version in there. I'll be building new versions whenever I clear out any of the items in the TODO list above.
Thank you.
[RESERVED]
How do you get metropcs on the Dinc....I would love to know
Sent from my ADR6300 using XDA App
there's shops that will flash any cdma phone over to metro. That's why you see sprint and verizon phones with bad ESN #s selling on craigslist
mexicanigga said:
How do you get metropcs on the Dinc....I would love to know
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
- Use the ##778 programming instruction just like as if you were flashing a Droid Eris.
- Find somebody (a dealer most likely) to put the ESN into MetroPCS's database.
- Flash this rom (hopefully it'll be completely done soon)
WOW!! Ok I am currently running CyanogenMod 6.0RC1 on a HTC Sprint Hero and had a vendor here in town who gets ALL Verizion\Sprint CDMA phones on MetroPCS hook me up. He uses DamageControl 1.0 and everything works except the market of course..It does work on WiFi however.
My problem began when I just did NOT have consistent internet. It just was hit and miss. WiFi worked no problems. So I started messing around with different ROMS with NO luck at all. I have wiped and wiped (phone and SD card)everything you could do..Still notta!!! So I am super curious if this would work? I really just need my dam internet to work..It would be awesome if it was on this CyanogenMod 6 ROM...It's smoking and appears to be the best ROM I have found for a Hero..Man if anyone could help me get this baby on the net...I would be willing to pay. I think my settings are off honestly...HELP!
Your thoughts?
CyborgNM156 said:
WOW!! Ok I am currently running CyanogenMod 6.0RC1 on a HTC Sprint Hero and had a vendor here in town who gets ALL Verizion\Sprint CDMA phones on MetroPCS hook me up. He uses DamageControl 1.0 and everything works except the market of course..It does work on WiFi however.
My problem began when I just did NOT have consistent internet. It just was hit and miss. WiFi worked no problems. So I started messing around with different ROMS with NO luck at all. I have wiped and wiped (phone and SD card)everything you could do..Still notta!!! So I am super curious if this would work? I really just need my dam internet to work..It would be awesome if it was on this CyanogenMod 6 ROM...It's smoking and appears to be the best ROM I have found for a Hero..Man if anyone could help me get this baby on the net...I would be willing to pay. I think my settings are off honestly...HELP!
Your thoughts?
Click to expand...
Click to collapse
It will work for you, but you must be sure to take one very important step before you attempt this, or you will end up with a bricked phone.
Buy a HTC Droid Incredibile
Using this rom, or any other rom for the incredible on a device that is not an incredible will result in an unusable phone, if not bricked forever!
Teksu said:
It will work for you, but you must be sure to take one very important step before you attempt this, or you will end up with a bricked phone.
Buy a HTC Droid Incredibile
Using this rom, or any other rom for the incredible on a device that is not an incredible will result in an unusable phone, if not bricked forever!
Click to expand...
Click to collapse
That's completely right.
The beauty of what I'm doing here, is that, just like I did for the Droid Incredible and the Droid, it could also be done for the Hero and the EVO, since CM supports all of these devices. As long as the source is completely open of course.
Once I fix these issues with the u2nl binary not working properly, I'll update my winzip and build the "roms" for the Droid, EVO and Hero.
For now, this build above only works for the Droid Incredible.
Nice would this work for my flash metropcs hero? Please let me know.
Thanks
velazcod said:
I have forked and prepared a vendor repo to build CM6 for MetroPCS on the Dinc.
DO NOT FLASH THIS UNLESS YOUR PHONE IS ON METROPCS AND YOU KNOW WHAT METROPCS IS.
Reason why I did this was so that anyone that wanted to "flash" a Dinc/Droid to MetroPCS didn't have so much of a hard time doing it, and also so that everything worked out of the box (including internet on apps, connected to wifi or not).
I also managed to build a little service "app" that runs on the background and detects changes on the state of wifi connections, and it activates/deactivates proxy (and u2nl) depending on that.
Wifi Disconnected = Proxy/U2NL activated
Wifi On = Proxy/U2NL deactivated
When proxy/u2nl is active, all data goes through MetroPCS's proxy server, otherwise use wifi's internet connection.
At this point, it works great, but it's unfinished.
- Calls and SMS work perfectly with no issues at all.
- MMS can be sent and received with no issues either.
- On wifi, everything works perfectly.
- On MetroPCS data, only browser works, for some reason the u2nl binary it still not working properly.
This is meant to be free and open sourced. Not a paid solution.
The "proxy switcher" also has a configuration screen which allows to change the configuration. You can use a custom proxy, activate/deactivate proxy/u2nl, etc.
If you have the time and know about this, please figure out a way to make the u2nl binary work properly, or contact me, my twitter is in my signature, or you can PM me and we can gchat or email. I have had limited time to work on this these past few days.
Everything is open sourced,
vendor config is here http://goo.gl/ISk6
"wifi switcher" (for proxy) is here: http://goo.gl/2wwM
Also,
If you are interested on doing this on the Motorola Droid, here's the vendor config:
http://goo.gl/kuX3
Here's a built rom, if you'd like to test it
http://bit.ly/aBa5Qr
As soon as you install it, let it boot, and open APN configuration (use AnyCut or BetterCut).
Edit the one that says "metropcs" and on on the username, make replace "MDN" with your phone number, press menu, save, and then click on the radio button for that entry. After that, MMS will work.
This is based off CyanogenMod-6.0.0 and it hasn't been modified at all. All credits go to the CyanogenMod team
Click to expand...
Click to collapse
I'll tell you what work for me.
You need to the u2nl.zip from whiterabbit.org
In that file you will find the autostart.sh file for htc hero eris under metropcs folder.
I have to edit the autostart.sh file in order to work getting rid off some lines.
This is the file I'm using. autostart.sh
export PATH="$PATH:/system/bin"
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -t nat -F
iptables -X
iptables -t nat -A OUTPUT -o rmnet0 -p 6 ! -d 10.223.2.4 -j REDIRECT --to-port 1025
u2nl 10.223.2.4 3128 127.0.0.1 1025 >/dev/null 2>&1 &
exit 0
and that's all
I've pushed the files via adb in Clockwork recovery console mounting system and data
adb shell su
cd /data/
mkdir opt
chmod 0777 /data/opt/
chmod 0777 /system/bin/
exit
adb push autostart.sh /data/opt/autostart.sh
adb push u2nl /system/bin/u2nl
adb shell
chmod 0777 /data/opt/autostart.sh
chmod 0777 /system/bin/u2nl
reboot
Result is working
ahernandez4110 said:
Nice would this work for my flash metropcs hero? Please let me know.
Thanks
Click to expand...
Click to collapse
That question was answered in the post right before yours.
diegov600 said:
I'll tell you what work for me.
You need to the u2nl.zip from whiterabbit.org
In that file you will find the autostart.sh file for htc hero eris under metropcs folder.
I have to edit the autostart.sh file in order to work getting rid off some lines.
This is the file I'm using. autostart.sh
export PATH="$PATH:/system/bin"
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -t nat -F
iptables -X
iptables -t nat -A OUTPUT -o rmnet0 -p 6 ! -d 10.223.2.4 -j REDIRECT --to-port 1025
u2nl 10.223.2.4 3128 127.0.0.1 1025 >/dev/null 2>&1 &
exit 0
and that's all
I've pushed the files via adb in Clockwork recovery console mounting system and data
adb shell su
cd /data/
mkdir opt
chmod 0777 /data/opt/
chmod 0777 /system/bin/
exit
adb push autostart.sh /data/opt/autostart.sh
adb push u2nl /system/bin/u2nl
adb shell
chmod 0777 /data/opt/autostart.sh
chmod 0777 /system/bin/u2nl
reboot
Result is working
Click to expand...
Click to collapse
Yeah, if you take a good look at the vendor source I posted on the OP, this is basically what I'm doing (especifically this file). At first I tried building u2nl from scratch that didn't work, then, just to try it, I tried the u2nl binary found in whiterabbit.org and that didn't work either.
There's still something wrong with this setup I'm using, but I haven't been able to track it down yet, I did this about 2 weeks ago but lately I haven't had the time to troubleshoot it all
Link to your ROM is dead.
Been trying to get the new Skyraider 3.0 to work on Metropcs
dannystang said:
Link to your ROM is dead.
Been trying to get the new Skyraider 3.0 to work on Metropcs
Click to expand...
Click to collapse
Sorry, I was messing with some files and screwed up the links.
I'm currently rebuilding it again with a few changes I made and also sync'd everything with CyanogenMod's source.
Will post new link tonight and also have builds for the Motorola Droid and HTC EVO.
Updated OP with latest build. This is based on latest CM6.
http://bit.ly/incredibleMetro
http://bit.ly/bh4wbh - Google Apps (Latest)
Thanks! I couldn't sleep so I finally figured it out
I mounted the Skyraider 3.0 RC2 release, everything works except hulu on data without wifi which is ok cause metro is slow data anyhow.
I read past instructions to get data to work I just used whiterabbit u2nl File but it seems he has a "new" folder with an edited autostart which when I pushed it on works fine...
No need to edit anything, I can switch on and off wifi no problems...
dannystang said:
Thanks! I couldn't sleep so I finally figured it out
I mounted the Skyraider 3.0 RC2 release, everything works except hulu on data without wifi which is ok cause metro is slow data anyhow.
I read past instructions to get data to work I just used whiterabbit u2nl File but it seems he has a "new" folder with an edited autostart which when I pushed it on works fine...
No need to edit anything, I can switch on and off wifi no problems...
Click to expand...
Click to collapse
That is strange, nothing works for me except the browser, as in, only the proxy is working and not the u2nl... I'll work on this tomorrow again
diegov600 said:
I'll tell you what work for me.
Result is working
Click to expand...
Click to collapse
+1 This worked for me on Skyraider 3.0 RC2.
Thanks!!!
Will try it on CM6 now.
Edit: Won't work on CM6 NIGHTLY 08/24.
Works on IncredibleDoes AOSP - FRF91.
I got it working on CM6 RC3.
Now we just need Skyraider with the Froyo Final
Why did you guys have to use the edited autostart though?
Wondering why mine works and its so different...

OLYFR_U4_1.5.2 Market Fix

Here is a simple fix for the market issues between stock and 1.5.2 - it assumes you have flashed the 1.5.2 sbf, and also re-rooted your device.
adb shell (or open a terminal on your phone)
su
mount -o rw,remount /dev/block/mmcblk0p12 /system
sed -i 's!OLYFR_U4_1.5.2/1298398352!OLYFR_U4_1.2.6/1296900353!' /system/build.prop
reboot
I have been running with this most of the day with no issues noticed..
-G
how funny i JUST discovered this earlier today was going to post it on the forums. great minds think alike . my n64oid is back!
Funny, I just told someone else how to do this this morning. I'm surprised this hasn't come up sooner. I've been using this since the sbf has been released with no problems, guess I should have posted this solution sooner my b :-(
Sent from my MB860 using Tapatalk
Anyway to do this through terminal?
Sent from my MB860 using XDA App
Same commands without the first adb shell..
How do I enable RW to system?
Trying to do the market fix script but get RO error on write to /system.
from a command prompt in windows/linux:
you: adb shell
reply: $
you: su
(accept prompt on device, make sure it's unlocked and @ homescreen or it might not pop up)
reply: #
you: mount -o rw,remount /dev/block/mmcblk0p12 /system
reply: (copies it back)
you: sed -i 's!OLYFR_U4_1.5.2/1298398352!OLYFR_U4_1.2.6/1296900353!' /system/build.prop
reply:
you: reboot
What are the "market issues?"
Da_G said:
from a command prompt in windows/linux:
you: adb shell
reply: $
you: su
(accept prompt on device, make sure it's unlocked and @ homescreen or it might not pop up)
reply: #
you: mount -o rw,remount /dev/block/mmcblk0p12 /system
reply: (copies it back)
you: sed -i 's!OLYFR_U4_1.5.2/1298398352!OLYFR_U4_1.2.6/1296900353!' /system/build.prop
reply:
you: reboot
Click to expand...
Click to collapse
Thanks,
I made some assumptions that people would know the prerequisites
I edited the original.
-G
relaxed said:
What are the "market issues?"
Click to expand...
Click to collapse
Well, I had several apps I paid for that I could not load. I had the same issues with my G-Tablet until I loaded my N1 build id in the same file a while back..
-G
Well I did it with the first method and it works fine except the market doesn't update to the new market.
ghost_o said:
Thanks,
I made some assumptions that people would know the prerequisites
I edited the original.
-G
Click to expand...
Click to collapse
Sent from my MB860 using Tapatalk
Fixter said:
Well I did it with the first method and it works fine except the market doesn't update to the new market.
Click to expand...
Click to collapse
First method?
The sed command is the only command I have posted.. You could use 'vi' directly on the device as well.. My market updated to the new version just fine after I made the change. (albeit I used vi on the device through adb shell). I just posted the sed string for people not familiar with unix, or who might want to script it..
ghost_o said:
First method?
The sed command is the only command I have posted.. You could use 'vi' directly on the device as well.. My market updated to the new version just fine after I made the change. (albeit I used vi on the device through adb shell). I just posted the sed string for people not familiar with unix, or who might want to script it..
Click to expand...
Click to collapse
I meant to say the first method where you only posted
Adb shell
su
sed
reboot.
Nothing about remounting, like what Da_G posted. Might have something to do with it?
Fixter said:
I meant to say the first method where you only posted
Adb shell
su
sed
reboot.
Nothing about remounting, like what Da_G posted. Might have something to do with it?
Click to expand...
Click to collapse
Ahhh, you must have already run something that re-mounted it rw for you. It would have failed otherwise... You can always try to put it back, and let the market update, and then change it again to get the apps back. I seriously doubt that is what is keeping your market from updating though.
ghost_o said:
Ahhh, you must have already run something that re-mounted it rw for you. It would have failed otherwise... You can always try to put it back, and let the market update, and then change it again to get the apps back. I seriously doubt that is what is keeping your market from updating though.
Click to expand...
Click to collapse
Thats exactly what I'm thinking. That doesn't have to do anything with the Market updating... Stupid market... -kicks-
Fixter said:
Thats exactly what I'm thinking. That doesn't have to do anything with the Market updating... Stupid market... -kicks-
Click to expand...
Click to collapse
should be able to reverse by switching up this part:
sed -i 's!OLYFR_U4_1.5.2/1298398352!OLYFR_U4_1.2.6/1296900353!' /system/build.prop
to:
sed -i 's!OLYFR_U4_1.2.6/1296900353!OLYFR_U4_1.5.2/1298398352!' /system/build.prop
then have the market update without a problem and then reapply the fix, though I'm sure you thought of this already XD
Djazin said:
should be able to reverse by switching up this part:
sed -i 's!OLYFR_U4_1.5.2/1298398352!OLYFR_U4_1.2.6/1296900353!' /system/build.prop
to:
sed -i 's!OLYFR_U4_1.2.6/1296900353!OLYFR_U4_1.5.2/1298398352!' /system/build.prop
then have the market update without a problem and then reapply the fix, though I'm sure you thought of this already XD
Click to expand...
Click to collapse
Yeah I tried that with no success... I wonder if it was the Gingerblur.
Works great. I was wondering where some of my apps had ran off to!
sed: write error
Hey, I was wondering if anyone here could help me.
I've reflashed from GingerBLUR 6.5, and can't seem to apply the market fix. I keep getting a write error when I apply the sed command.
You have to be rooted, and remount /system as read/write prior. The mount command right before the serd command is needed. Also, make sure your "su" command is successful. If not, the rest will not work..

Getting Ad-Hoc Mode on a SG Tab

I finally got it working, **It sees them, but disconnects right after I try to connect, at least its a good start**
I followed http://forum.xda-developers.com/showthread.php?t=854913 however, his instructions were not clear. I did post my answer in that thread, but, who is going to check page 9. I will just re-cap it Here.
Download wpa_suppliment from the post mentioned above, or here http://www.gasjen.com/?p=888 (I used this one, but they could be the same) I posted the one from Gasjen
Make sure your tab is rooted
For Froyo, go here
http://forum.xda-developers.com/showthread.php?t=812367
Gingerbread go here (This is what I am using)
http://forum.xda-developers.com/showthread.php?t=1115318
But I followed the directions and downloads Here
http://www.addictivetips.com/mobile/how-to-root-samsung-galaxy-tab-on-android-2-3-3-gingerbread/
(Its also good I went there, since I didn't know there was a download mode when you press volume down and power. I had no idea why I couldn't till I realized this )
Download the ADB shell
from here http://developer.android.com/sdk/index.html
1) Put the adb shell in the PATH
Right click my computer > Properties > Advanced System Settings > Advanced > Environment Variables > System Variables > Locate Path in the window. Mine is C:\Program Files\Android\android-sdk\platform-tools
2) Pull up cmd and type "ADB" (without quotes, nor this text too ), you should be able to see the help stuff if it worked correctly.
Turn on Tab
Make sure the tab is on
Make sure Wifi is off
Connect your tab to the computer
Upload wpa_supplicant to the Tab
In cmd, type this. ### is a comment
Code:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
chmod 777 /system/bin ###This code was not in the XDA explanation, but a different source
cp "/system/bin/wpa_supplicant" "/system/bin/wpa_supplicant2" ###Copy the file just encase you mess up
exit ###Exits out of su
exit ###Exits out of the ADB shell
adb push "D:\wpa_supplicant" "/system/bin" ###First param is the location of the wpa_supplicant file, second is where you put it, instead of D:\wpa_supplicant, change it to where you put it
adb shell
su
chmod 777 "/system/bin/wpa_supplicant" ###I didn't do this the first time, nor was it shown in the previous thread. This is why it didn't work for me, and most likely, if you followed the previous thread and didn't do this, this will probably help :)
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system ###Changes it to read only
exit ###Exits out of su
exit ###Exits out of ADB shell
Turn Wifi on, and you should be able to see adhoc networks with (adhoc) attached to them.
____________________
Now, the only problem is that when I connect, I disconnect right away. I am searching for a solution to this, I think it may be in the /etc/wifi/wpa_supplicant.conf file. I am going to take a look and I will get back when I find it out. Or if you know what to do, tell me I will update the post when I find a solution.
I hope this helps!
~404
In case I need a second post!
I used root explorer to replace wpa_supplicant in/systems/bin/ . I did not experience any problems connecting tab to my nokia phone that has joiku hotspot as adhoc.
I looked at the properties of the wpa file seems the same. I also did not do any changes to the file whatsoever.
Sent from my GT-P1000 using Tapatalk
For root explorer, do you have to pay for that?
Whereis404 said:
For root explorer, do you have to pay for that?
Click to expand...
Click to collapse
yes but it is very cheap....

[Q] Where do I delete Wi-fi settings?

Like many, I have CM installed on the Touchpad, with that frakking wifi problem plaguing me.
I don't mind redoing my connection every time I take the tablet; however where is the wifi settings "kept" in the file system? I need to delete the profile in order to redo the connection.
Can someone help? There are so many bazillion posts mentioning wifi that nothing of value can be found.
you can see the wifi settings in settings>wireless and networks>wifi settings and you can make your touchpad forget the connection settings by holding on the name of the connection and hitting forget on the pop up. after that you connect to your connection as if for the first time.
isanrap said:
you can see the wifi settings in settings>wireless and networks>wifi settings and you can make your touchpad forget the connection settings by holding on the name of the connection and hitting forget on the pop up. after that you connect to your connection as if for the first time.
Click to expand...
Click to collapse
Yep I tried doing that, and I have Force Close problems on the Wi-Fi menu, when the device does not connect. It's as if internally, there is a loop of something happening.
I thought somewhere in the filesystem bowels, there is a way to delete it "directly" without going via the UI. Thanks for trying to help, I appreciate it
Anyone knows if there is such a file somewhere?
i had this problem two days ago. i changed the channel of my router to 2 and restarted my touchpad into webos and back into android and made my touchpad to forget the network and reconnected it and i don't know what happened but that worked. wish i could be of more help to you, hope you get it working sooner so you could enjoy the android goodness.
don't where where it lives on the filesystem, but this app does it: market.android.com/details?id=com.brilliapps.wifiandmorefixer
http://forum.xda-developers.com/showpost.php?p=20963737&postcount=8
HOW DO I CLEAR OUT *ALL* MY WIFI SETTINGS AND START FRESH?
If you find that your wifi is "strobing" on and off, or you wish to completely wipe out all wifi settings, you can do this in one of three ways:
THE "RIGHT" WAY (USING ADB):
adb shell rm -rf /data/misc/wifi && reboot
(this will remove the settings and then force a reboot)
THE "I-DON'T HAVE ADB INSTALLED" WAY:
From the Terminal app.
# rm -rf /data/misc/wifi && reboot
(similar command as above. The # is a prompt-- don't type that part. If you see a $ prompt instead, type "su" (no quotes) and it should become a #)
Click to expand...
Click to collapse
from here http://rootzwiki.com/topic/10121-releasealpha35cyanogenmod-touchpad/
speakxj7 said:
don't where where it lives on the filesystem, but this app does it: market.android.com/details?id=com.brilliapps.wifiandmorefixer
http://forum.xda-developers.com/showpost.php?p=20963737&postcount=8
Click to expand...
Click to collapse
Yesssssss. Thanks a lot, it works.
It's a (mini) chore each time to clear up everything, but at least it works.
Again, thanks.
speakxj7 said:
don't where where it lives on the filesystem, but this app does it: market.android.com/details?id=com.brilliapps.wifiandmorefixer
http://forum.xda-developers.com/showpost.php?p=20963737&postcount=8
Click to expand...
Click to collapse
b.huss2 said:
from here http://rootzwiki.com/topic/10121-releasealpha35cyanogenmod-touchpad/
Click to expand...
Click to collapse
a benefit of the app i referenced is that no reboot (or worse) required.
speakxj7 said:
a benefit of the app i referenced is that no reboot (or worse) required.
Click to expand...
Click to collapse
true. I'm with ya, just throwing it out there. ADB would be the preferred method but for those that are not familiar with ADB, then an app would be easier, although i don't know if that app is doing the same thing as the ADB approach. if it is then win-win. if not, and problems still exsist, then ADB is an alternative approach.
b.huss2 said:
from here http://rootzwiki.com/topic/10121-releasealpha35cyanogenmod-touchpad/
Click to expand...
Click to collapse
What is adb? I activated it in development options, but where do I get it?
deafasheck said:
What is adb? I activated it in development options, but where do I get it?
Click to expand...
Click to collapse
Why not do your own research? A quick Google search reveals:
http://lifehacker.com/the-easiest-way-to-install-androids-adb-and-fastboot-to-1586992378
https://developer.android.com/studio/command-line/adb.html
Ask only when you really need it.
b.huss2 said:
from here http://rootzwiki.com/topic/10121-releasealpha35cyanogenmod-touchpad/
Click to expand...
Click to collapse
Thanks, I got terminal and I typed in all the commands. Do I include the & & reboot in the code? Any spaces or straight type?

Categories

Resources