TBH NVRAM Hack and USB Tether - Droid X Android Development

Since the TBH (thank you!!) NVRAM hack fixes the NAI that gets created for your MIP profile, there is no need for NAI manipulation at the application level with apps such as easytether.
My question is:
What is the suggested method for USB tether after removing the ".dun" from your NAI?
Ideally Im looking for RNDIS based tethering since its built into Windows 7 and most flavors of Linux. Its also simple to install a RNDIS driver on XP. It seems way less invasive to me then having to install a client application.
I have done some searching but have not found any USB RNDIS based tethering solution that works. Have working kernel modules been created (like the working tun.ko) that can be used to enable this?
Thanks
PleaseStirMe

Yes, search this forum for tun.ko as there is a post a few under yours where someone posted a working version of the tun.ko and a config.ko file as well.
Sent from my DROIDX using XDA App

Thanks SysAdmin but tun.ko is the not kernel module I am looking for. tun.ko is used to enable VPN. I am wondering if anyone has made a similar kernel module to enable RNDIS tether.
PleaseStirMe

All you need to do to enable USB tethering in Windows is edit the build.prop to get Phone as Modem to be included in the USB notification dropdown menu.
Simply edit the line ro.modem_available=0 to ro.modem_available=1.
Then reboot and connect the phone to the PC and select Phone as Modem from the drop menu.
You will get a notification that internal data will be disabled.
Open Network and Sharing Center and create a new DialUpNetworking connection and configure as follows:
User Name: [email protected] where the Xs are your 10 digit MDN.
Password: vzw
Number to Dial: #777
Save and hit connect and you're done.

cellzealot
Thanks for your reply. Pretty sure you have helped me in the past too.
That was not the exact solution I was looking for but it is a nice option since in windows can automatically open the connection when you launch your browser. I used to use that same DUN method with my e815.
PleaseStirMe

I realize that it's not RNDIS but it works fine and no client is required.
And yes, this hack dates back to the old days of e815 hacking and if you were hanging around the VZW Motorola forum on HoFo back then you might know me as kbman.

PleaseStirMe said:
Thanks SysAdmin but tun.ko is the not kernel module I am looking for. tun.ko is used to enable VPN. I am wondering if anyone has made a similar kernel module to enable RNDIS tether.
PleaseStirMe
Click to expand...
Click to collapse
You're right, my apologies! I believe that was for openVPN, and I had read something else similar earlier that day! Thnx to cellzealot for the info as well!
Sent from my DROIDX using XDA App

Related

[FanZhang]Wifi Helper [May 11 update]

Hi All,
I've made a program supporting all originally supported wifi protocols as well as WPA/WPA2 enterprise protocols. This program can be used to set up connection with wireless networks using enterprise protocols.
What you need to do is to select proper protocol/authentification methods. Provide certification files if you have them. You can put certs files anywhere in your SD card. Then click OK.
You need to disable your wifi and re-enable it. Root is required.
Please visit my blog for more updates: http://fredzhung.blogspot.com/
** THIS IS NOT WELL TESTED, But works for Purdue University. (WPA ENTERPRISE WITH THAWTE_PREMIUM_SERVIER certs.)**
[UPDATE MAY-11] 1.0.2 RELEASE
ADDED SUPPORT FOR AD-HOC!
Added support for memorizing all configurations.
Need some test.
[EDIT] v0.2 RELEASE.
fixed a bug connecting to open network.
added support for anonymous indentity in EAP
added help/about
added input validation
changed icon
If this Wifi Helper doesn't work with your company's/school's wifi settings, please provide me your wifi setup so I can figure out what's wrong.
There seem to be a bug that first time run will hang. Close the program when the "force close" window pops up. Then run it again. Add the program to superuser list when asked.
This seem to be a bug for all applications requiring root access in android 1.5. I tested with terminal emulator and it has the same bug as well. Something is wrong with superuser program.
The app is uploaded to Market. Have fun!
Using this to access wifi on campus
Hi
I am a novice at all this root stuff so my questions is straightforward
a) If i buy a G1 (not rooted etc) and install this application from the market, i should be able to access my campus wifi? This is one reason why I am still using the iphone (unlocked on tmobile).
b) Is this likely to work even after the 1.5/cupcake transition that seems to be imminent?
Thanks
ps I am at LSU and here are some of the wifi details for the campus:
http://grok.lsu.edu/Article.aspx?articleId=8198
Hi, if you buy a g1 from store, you need to root it first before using this app. totorials for rooting your phone can be found on the sticky threads.
After you root your phone and use this app, you should be able to connect to your campus wifi. This is the purpose of this app.
May 11: 1.0.2 is released. Available in market
Hey zhang!
Great work, but i am having problems getting the ad-hoc to work.
It's been setup on my laptop and i have tried w/WPA & open to no avail.
The phone does not seem to detect the network.
I'm running 1.5 JF ADP.
Any thoughts as to what i might be doing wrong?
And thanks for the ad-hoc capability, been waiting on that one
Sean
Hi Sean,
I've been doing experiments with adhoc, I am not 100% sure adhoc will work. I will keep trying.
Great, great, great job!
I'm gonna buy the pro one, just as a "thank you"..
It seems it won't even detect my adhoc network
Hi. I use the free version (will buy it if it actually works) but I can't seem to even detect my adhoc networh. I use the ICS on XP laptop. I setup an open network with no encryption for the test but the G1 doesn't detect it (it sets it up and says it's unavailable, thus allowing me only to "forget" it). Do I have to change anything else on my device (for example the tiwlan.ini) so my device actually shows those elusive adhoc networks. Has anyone actually succeeded to setup properly an adhoc connection on G1 ever with any kind of software or is it like the UFO - we hear it exists but we've never actually seen it?
I cna't get it to work on my university's WPA2 Enterprise with a 'GTE CyberTrust Global Root' certificate (with extention cer).
I'm using a Vodafone Magic
I am also having a problem with a WPA2 enterprise setup.
It is a eduroam network.
On my computer I have entered the following setup in wicd:
encryption: PEAP with TKIP/MSCHAPv2
identity: my username
password: my password
In the wifi list (in the android system menu) the eduroam network shows as "Not in range, remembered"
I have another problem with the app itself: "Modify configurations" does not work. This makes it a hassle to try different encryption settings.
I know the network also works with PEAP with GTC, but don't know how to set that up.
Where did this go? It's no longer on the market. I can't find it anywhere!
Yeah, I was looking for this app and can't seem to find it anywhere. It disappeared. Does anyone have the apk?
Boogy
Try WiFi Buddy...free and works great.
All you had to do was go to his site...
http://fredzhung.blogspot.com/2009/05/download-for-wifi-helper.html

Internet Tethering via USB??

Internet Tethering over USB? Is that something that was added with 1.6 or is that Eclair functionality? I notice it is in the CyanogenMod latest builds.
How does it work in comparison to bluetooth or wifi tether?
Does it require root?
TIA
What do you mean work in comparison, it's wired and the others are wireless. Speeds shouldn't depend on connection.
If you install cyanogen's build, then you have root so it shouldn't matter as you have it already. There is an application wired tether for root users, name explains.
I don't think it is in the AOSP build, so it was added by him or whoever he gives credit to.
There are 2 different Tethers for root users
Wired - Means u gotta connect your usb to your computer
Wireless - This will create an Ad Hoc wireless connection to your computer (no cable required)
This was added by cyanogen and is not part of eclair
nephron said:
There are 2 different Tethers for root users
Wired - Means u gotta connect your usb to your computer
Wireless - This will create an Ad Hoc wireless connection to your computer (no cable required)
This was added by cyanogen and is not part of eclair
Click to expand...
Click to collapse
What I was originally asking I guess was if the Wired USB tethering was now standard issue in Android 1.6 or 2.0 and as such was available to non-root users. From your response, I understand that is incorrect, and that wired tethering via USB was added by CM in the CM builds and therefore implicitly requires root.
Thanks for clarifying that for me!
If you wanted a non rooted version, search the market -there are several that don't require root.
so...
how is this done exactly on cyanogens rom? i cant find anything about it after searching for about an hour...
mr_brain said:
how is this done exactly on cyanogens rom? i cant find anything about it after searching for about an hour...
Click to expand...
Click to collapse
Yeah me and some people on another thread figured it out......
But first things first you need Windows XP service pack 3 or Windows Vista or Windows 7... I dont know about Mac.....
but Windows Xp is different than Vista or 7 because you need to download HTC sync to get the drivers for your G1 to be reconized as a modem..... Do not mount your G1..... once you have HTC sync installed you do not need to run it..... but now when you connect your G1 just check the internet tethering box and it should work(unless I missed a step)...
OK With Vista and Windows 7 the drivers are preloaded into the OS s do NOT need to download HTC synce... You just need to connect your phone do NOT mount and check the tehtering box... it should work....
is there a certain version for the G1 that I need?
Reverse tether g1 to pc network over usb cable
My android os is CyanogenMod 4.2.14.1,
1.Enable "Settings\Wireless controls\Internet tethering"
2.Install HTC Remote NDIS based Device driver(View attachment 277122)
3.Set the HTC adapter as: IP:192.168.2.1, Mask:255.255.255.0
4.Set the PC ethercard as shared connection
5.Run these codes in terminal:
su
ifconfig usb0 192.168.2.2 netmask 255.255.255.0
busybox route delete default
iptables -F
iptables -F -t nat
busybox route add default gw 192.168.2.1
setprop net.dns1 8.8.8.8
setprop "net.gprs.http-proxy" ""
6.Now your g1 could open browser to view any web pages on the internet, and update apps in the Market.
for diyism
just wanted to say that
This works on Nexus One as well!
The routing stuff disuse posted, I mean.
The only problem is that I can't download stuff from the market yet. But hopefully I'll find a solution to this soon.
Thanks a lot! I've been looking for this for like a whole week.
I think I'll write an app which will just run this as a shell script.
thanks again!
XBOX PS3 Wii anyone????
can someone please tell us or provide a step-by-step on how to have gaming consoles tether the device's web connectivity...or in other words how to make my xbox 360 connect to the web by tethering my device's internet....PLEASE PLEASE...I SWEAR I BUY BEER...I BUY BEER !!!
Reverse tethering not working with Play Store
GuShPaNdA said:
This works on Nexus One as well!
The routing stuff disuse posted, I mean.
The only problem is that I can't download stuff from the market yet. But hopefully I'll find a solution to this soon.
Thanks a lot! I've been looking for this for like a whole week.
I think I'll write an app which will just run this as a shell script.
thanks again!
Click to expand...
Click to collapse
Sure, I've seen before two attempts of reverse tethering with this approach with the same problem: Play Store stays "Downloading" or "Waiting for network" but It doesn't work. I've tried also my own method with the same results: Play Store is not working.
I think this has something to do with the way Play Store app is testing for Internet conectivity. Since it doesn't know if you've got one, it doesn't let you download nothing.
Maybe there is some Android SDK API call to flag the system that Internet connection is up? Any other clue?

Monitor Froyo hotspot clients?

Hi,
Let's say I want to check, who's connected to my hotspot. I've searched for an application or terminal commands that can show this info, but didn't find anything. Is there such a thing?
Thanks,
William.
Good question, I'm interested as well.
Sent from my Nexus One using XDA App
i never tried to monitor wifi hotspot clients but i think these ways should work.
way 1:
goto terminal, type:
arp -a
this command displays all entries, since the wifi connection actually makes the phone a router, so all connected clients should have corresponding arp entry.
way 2:
goto market and download Network Discovery application, use it to scan the whole network. Also it provides port scanning function too.
(but .. this application usually crashes on my phone after scanning for long time)
Interesting, thanks. I'll test and reply.
Tested, even the basic "busybox arp" with no switches works. The result needs to go through grep or use "specify interface" switch to avoid showing the 3G data IP.
I suppose that access control has to be implemented in the kernel, so I won't mess with it - but now I have a script line to see, who's connected. Thanks
And one day someone could write a widget for it. At least modify the on/off widgets to show the number of connected clients.
Any more news on this? The network discovery app kind of worked, but it had to use wifi which disabled tethering.
I think there has to be a way to see who is connected to your hotspot at one time without disabling anything.
The Palm Pre Plus on Verizon does this automatically. There are a lot of features that phone has that I wish android would impliment...Man it would have been nice if google had bought palm
Jack_R1 said:
Tested, even the basic "busybox arp" with no switches works.
Click to expand...
Click to collapse
Is that news?
You want an app/widget for that? There is none. I've turned to the creator of the "hotspot widget" and asked him to implement counter for connected clients (which should good enough for anything I can think of), but I got no answer. I also tried to find any open-source code for such widget to modify and add the functionality, but didn't find any.
The older Eclair CM build had such app for manual control, showing MACs of connected clients.
I dont think the stock froyo tethering implements this but the wired/wireless tether apps included in 2.1 roms has the function, mac address filtering too =D

[SOLVED] How do I enable Nexus 7 USB tether on Jelly Bean?

Is there a way compile the JB source so USB tether is enabled?
I made the following modification to frameworks/base/core/res/res/values/config.xml but the Nexus 7 with JB doesn't bring up any USB network interface or show the tethering option in the menu
Code:
<!-- List of regexpressions describing the interface (if any) that represent tetherable
USB interfaces. If the device doesn't want to support tething over USB this should
be empty. An example would be "usb.*" -->
<string-array translatable="false" name="config_tether_usb_regexs">
<item>"usb0"</item>
</string-array>
Not to be 'that guy', but could you please add a question mark to the title of your thread? I came in here hoping for a solution, not a question
I asked a similar question http://forum.xda-developers.com/showthread.php?t=1822788
a 3rd-party app may be able to help, but the kernel apparently has to be compiled with CONFIG_NETFILTER/CONFIG_IP_NF_IPTABLES and/or RNDIS
espionage724 said:
I asked a similar question http://forum.xda-developers.com/showthread.php?t=1822788
a 3rd-party app may be able to help, but the kernel apparently has to be compiled with CONFIG_NETFILTER/CONFIG_IP_NF_IPTABLES and/or RNDIS
Click to expand...
Click to collapse
I tried using android-wired-tether with a custom kernel that includes netfilter, iptables, and rndis. This still did not work since the application tries to access usb0 directly and the Nexus 7 never creates that interface even with a customized config.xml
I was able to get the USB tethering, Wi-Fi hotspot, and Bluetooth tethering options to come up in the menu on the Nexus 7 using the attached overlay placed in device/asus/grouper/overlay/frameworks/base/core/res/res/values/config.xml
The Wi-Fi hotspot and Bluetooth tethering options appear to work.
However, the USB tethering option unchecks itself after a second when I try to activate it.
I get the following error in logcat:
Code:
09-13 13:10:41.820: E/UsbDeviceManager(331): Failed to switch USB config to rndis,adb
I am happy to announce I got native USB tethering working on the Nexus 7
I had to make the changes to the config.xml as shown in the previous post and also had to modify out/target/product/grouper/root/init.usb.rc by adding the following
Code:
on property:sys.usb.config=rndis
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 18d1
write /sys/class/android_usb/android0/idProduct 4e23
write /sys/class/android_usb/android0/functions ${sys.usb.config}
write /sys/class/android_usb/android0/bDeviceClass 224
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state ${sys.usb.config}
on property:sys.usb.config=rndis,adb
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 18d1
write /sys/class/android_usb/android0/idProduct 4e24
write /sys/class/android_usb/android0/functions ${sys.usb.config}
write /sys/class/android_usb/android0/bDeviceClass 224
write /sys/class/android_usb/android0/enable 1
start adbd
setprop sys.usb.state ${sys.usb.config}
I'm also using a modified tegra kernel with RNDIS options activated...not sure if this is required (I'm assuming it is). I will try the stock kernel later.
That is good news indeed
Props to You!
cbdonohue said:
I was able to get the USB tethering, Wi-Fi hotspot, and Bluetooth tethering options to come up in the menu on the Nexus 7 using the attached overlay placed in device/asus/grouper/overlay/frameworks/base/core/res/res/values/config.xml
The Wi-Fi hotspot and Bluetooth tethering options appear to work.
However, the USB tethering option unchecks itself after a second when I try to activate it.
I get the following error in logcat:
Code:
09-13 13:10:41.820: E/UsbDeviceManager(331): Failed to switch USB config to rndis,adb
Click to expand...
Click to collapse
Nice work and quick as well, I do like those overlays, there is plenty of nice tweaks to be had out of them if folks are willing to put the effort in.
I built my own overlay earlier on after you planted the seed and was quite surprised to get Wifi-Hotspot for free. It does work, well my HTC Sensation connects to it, which is quite amusing as Cm10 on the sensation doesn't have a working WifiHotspot :laugh: I think a bit of cross device hacking is in order there
cbdonohue said:
I'm also using a modified tegra kernel with RNDIS options activated...not sure if this is required (I'm assuming it is). I will try the stock kernel later.
Click to expand...
Click to collapse
I think this is my missing link, I was going to have a proper look at some point and you've saved me a job there, I'll build myself a fresh kernel now and see if it is the case.
:good:
So does this require both a modified (before compile) Kernel and ROM?
espionage724 said:
So does this require both a modified (before compile) Kernel and ROM?
Click to expand...
Click to collapse
After talking with trevd, I am pretty confident you need to modify the .config created by "make tegra3_android_defconfig" so the RNDIS driver is in the kernel. I won't be able to compare the stock kernel to my modified one until the weekend (I only have one Nexus 7 and have to do other testing with it). The .config file I used for my modified tegra kernel is attached.
So yes, modify the kernel and Jelly Bean source. I can certainly help anyone if they run into trouble.
I plan on putting up flashable images when I can and submitting a patch to cyanogen.
cbdonohue said:
I was able to get the USB tethering, Wi-Fi hotspot, and Bluetooth tethering options to come up in the menu on the Nexus 7 using the attached overlay placed in device/asus/grouper/overlay/frameworks/base/core/res/res/values/config.xml
The Wi-Fi hotspot and Bluetooth tethering options appear to work.
However, the USB tethering option unchecks itself after a second when I try to activate it.
I get the following error in logcat:
Code:
09-13 13:10:41.820: E/UsbDeviceManager(331): Failed to switch USB config to rndis,adb
Click to expand...
Click to collapse
Would love to use your overlay.
Where exactly do I find the above mentioned path?
When I connect Nexus 7 to my Mac and see the file structure, it is missing the device/asus/grouper/overlay/frameworks/base/core/res/res/values/config.xml
retfeg said:
Would love to use your overlay.
Where exactly do I find the above mentioned path?
When I connect Nexus 7 to my Mac and see the file structure, it is missing the device/asus/grouper/overlay/frameworks/base/core/res/res/values/config.xml
Click to expand...
Click to collapse
You need to modify the files in the Jelly Bean source code and recompile the operating system.
@cbdonohue:
Hey! Do you think you could upload your kernel/framework files to use in the mean time?
I'm very curious and I have asked this so many times and no one has answered me.
Why would you want to tether your device? your device cant and does note generate its own Mobile internet service like a 3G/4G device. its wifi only so why would you want to share your devices wireless connectivity?
the only thing I can think of is if you have a desktop or laptop that does NOT have a wireless card and you want to use your Nexus 7 as a wireless card essentially and then plugging it in via USB to your desktop/laptop?
what other reason could you have for wanting to share your devices wireless connectivity?
nextelbuddy said:
I'm very curious and I have asked this so many times and no one has answered me.
Why would you want to tether your device? your device cant and does note generate its own Mobile internet service like a 3G/4G device. its wifi only so why would you want to share your devices wireless connectivity?
the only thing I can think of is if you have a desktop or laptop that does NOT have a wireless card and you want to use your Nexus 7 as a wireless card essentially and then plugging it in via USB to your desktop/laptop?
what other reason could you have for wanting to share your devices wireless connectivity?
Click to expand...
Click to collapse
You can reverse-tether a device in order to get connectivity from your PC. This is what I'm looking to accomplish with my device while I'm at work so I can access the company intranet.
ObsidianX said:
You can reverse-tether a device in order to get connectivity from your PC. This is what I'm looking to accomplish with my device while I'm at work so I can access the company intranet.
Click to expand...
Click to collapse
^ This.
ObsidianX said:
@cbdonohue:
Hey! Do you think you could upload your kernel/framework files to use in the mean time?
Click to expand...
Click to collapse
1. Download the tegra kernel branch android-tegra3-grouper-3.1-jb-fr2 and compile using the attached defconfig. (This enables the RNDIS driver)
2. Download grouper branch android-4.1.1_r1.1 and copy the compiled tegra kernel into it.
3. Modify the following grouper file with the attached config.xml (This allows the 'Tether to USB' option to come up in the settings')
device/asus/grouper/overlay/frameworks/base/core/res/res/values/config.xml
4. Compile grouper
5. Modify the following file with the attached init.usb.rc (This allows the OS to enable RNDIS USB tethering)
out/target/product/grouper/root/init.usb.rc
6. Flash to device.
At some point in the future I can make a flashable image or patch that will make this easier. In the mean time these steps should do it. Let me know if you have any issues.
nextelbuddy said:
I'm very curious and I have asked this so many times and no one has answered me.
Why would you want to tether your device? your device cant and does note generate its own Mobile internet service like a 3G/4G device. its wifi only so why would you want to share your devices wireless connectivity?
the only thing I can think of is if you have a desktop or laptop that does NOT have a wireless card and you want to use your Nexus 7 as a wireless card essentially and then plugging it in via USB to your desktop/laptop?
what other reason could you have for wanting to share your devices wireless connectivity?
Click to expand...
Click to collapse
One reason would be If you wanted to communicate between a PC and an Android device without being wireless. This could be to hide the connection or reduce the impact of RF interference. Not all applications need internet access...it might be just to send data between two end points.
USB interface and addressing specifics
For those of you who are interested...
If the Nexus 7 is acting as a USB device you can turn USB tethering on from the settings menu. The Android device automatically assigns its USB interface a hard coded IP address and starts DHCP server to hand out an address to the USB host at the other end.
If you want to change the IP address that the Android assigns itself you can modifiy the USB_NEAR_IFACE_ADDR constant in following file:
frameworks/base/services/java/com/android/server/connectivity/Tethering.java
If you want to disable the DHCP server, you can simply remove the address space you are using from the mDhcpRange array in the same file.
If the Nexus 7 is acting as a USB host (using USB OTG) then you must manually bring up the USB interface (ifconfig rndis0 x.x.x.x) since the USB menu settings will not do anything.
As an aside, am I the only one surprised to find hard coded IP addresses deep in the Android code?! haha
I've found some other gems like "shoud not get here" lines and c/c++ goto statements.
Hey folks,
I took cbdonohue's modifications and built them into CM10 and it works like a charm! I took the liberty of uploading the ZIP to dev-host:
http://d-h.st/KIr
All credit goes to cbdonohue for finding and creating the modification. I just built it

[MOD] Native Hotspot- Working 4G

This mod will enable native hotspot to work w/ 4G
You will need a root file explorer and sqlite editor to complete this mod.
Your choice to flash this- Do a back up
After that- GET S-OFF
Sunshine will cost you, but is well worth it.
Instructions:
1) Flash the attached aroma installer in recovery.
2) Select the appropriate option, click install, and reboot. Upon reboot your phone will optimize
3) Once rebooted, navigate to /data/data/com.android.providers.telephony/databases with a root explorer
4) Open the cdmaapn.db with a sqlite editor and select carriers.
5) Scroll over until you see the block of apns with a 1 in the current column
6) In that block you want to edit the apn labeled Internet. Open it and delete hidden. Just leave it blank, and hit save.
7) Go to settings>mobile data. You will see a new option named Access point names. Tap that, and then tap the apn
8) In the Apn type section add ,dun. IMPORTANT- no spaces. So you would end up w/ default,mms,supl,hipri,dun w/ no space after.
9) Tap the Apn protocol and change it to IPv4.
10) Reboot. After booting back up, tether should be good to go
Notes:
1) The flash will install a script that disables IPv6 for wlan0. If you need that don't flash this
2) It is a good idea to forget any wifi networks that you regularly connect to, and reconnect
3) When you are not tethering you can switch the APN protocol back to IPv4/IPv6 if you choose, though I have found no benefit to doing so
Credits:
@OMJ- He put the aroma installer together. It would be a lot more complicated to get this on your phone without it. I have been working on this for a good while, but didn't have 4G in my area until last week. Without he and @benny3 testing, this would have been a while longer coming out.
I have tested this on the following Bad Boyz roms- Stock Rooted, L w/ Sense 6, and L w/ Sense 7
EDIT: Please do a profile update after doing this.
EDIT2 New option added for Non- Bad Boyz sense 7 ROM's HERE
huge kudos to @chas123 for figuring this out!
Chas put a lot of time into this, make sure you thank him!!!
this 1
This is amazing work and a huge step forward.
I have a question for you though.
Is there a way to cut out any of these steps by flashing a modified file to the corresponding location?
My idea is to write a modified cdmaapn.db to /data/data/com.android.providers.telephony/databases
and possibly even a modified APN config.xml.
Would it be the same across roms?
I know most would frown on this because if you want the goods you should be able to make a few edits and reboot, but if it can all be done by flashing something in recovery or through the same aroma, it could save time and cut out user errors.
dopy25 said:
This is amazing work and a huge step forward.
I have a question for you though.
Is there a way to cut out any of these steps by flashing a modified file to the corresponding location?
My idea is to write a modified cdmaapn.db to /data/data/com.android.providers.telephony/databases
and possibly even a modified APN config.xml.
Would it be the same across roms?
I know most would frown on this because if you want the goods you should be able to make a few edits and reboot, but if it can all be done by flashing something in recovery or through the same aroma, it could save time and cut out user errors.
Click to expand...
Click to collapse
It was tried. Flashing a modified database causes the phone to fc, and revert back to the old apns. Sprint doesn't use the apn config file. It uses a .dat file in /system/customize
Is this mod only for badboyz or can it be use on any rom?
carrilloevo said:
Is this mod only for badboyz or can it be use on any rom?
Click to expand...
Click to collapse
Should work on any rom. There is an option in aroma for roms w/ init.d support that doesn't flash our boot
Question @Chas. Is this for those that have a tether plan? Do you have the tethering option from sprint? I don't have tethering plan and after the adjustments i can connect but data will disconnect after loading a few pages on my surface. Thanks!
itsachirpthing said:
Question @Chas. Is this for those that have a tether plan? Do you have the tethering option from sprint? I don't have tethering plan and after the adjustments i can connect but data will disconnect after loading a few pages on my surface. Thanks!
Click to expand...
Click to collapse
None of this is necessary with a tethering plan. If you want to post up a logcat of when the data disconnects I'll look at it.
@chas123
The sql edit can be done via a script flashed in recovery. Hit me up for more info and I can link you to scripts I've put together in the past
itsachirpthing said:
Question @Chas. Is this for those that have a tether plan? Do you have the tethering option from sprint? I don't have tethering plan and after the adjustments i can connect but data will disconnect after loading a few pages on my surface. Thanks!
Click to expand...
Click to collapse
Did you reboot the phone after the changes?
Yes, I have. I'm running Badboyz sense 6 rom. Had no issues with root explorer or sqlite making the changes to the db. I'll try to get a log cat
This worked like a charm on my Bad Boyz Sense 7 ROM.
Thank you for your hard work on this.
chas123 said:
None of this is necessary with a tethering plan. If you want to post up a logcat of when the data disconnects I'll look at it.
Click to expand...
Click to collapse
Here is a log. Log should begin when I use the tether in the quick settings. I connect my windows surface pro 2. Everything connects and I am able to successfully browse for a couple minutes then the data connection on my phone will disconnect then reconnect several seconds later. I have to reset the tether connection to get back online. Does this on 3g and 4g. I have flashed the aroma file and made the edits as necessary. Think this is related to this being a windows device which would be red flag to tethering without a plan? If this device was pinging a MS server for an update it would be very obvious. On the plus side my market WiFi tether app works good, however having the native app to work would be great. Many thanks for your contributions.
RonMac said:
This worked like a charm on my Bad Boyz Sense 7 ROM.
Thank you for your hard work on this.
Click to expand...
Click to collapse
What devices were you tethering? Just curious.
itsachirpthing said:
Here is a log. Log should begin when I use the tether in the quick settings. I connect my windows surface pro 2. Everything connects and I am able to successfully browse for a couple minutes then the data connection on my phone will disconnect then reconnect several seconds later. I have to reset the tether connection to get back online. Does this on 3g and 4g. I have flashed the aroma file and made the edits as necessary. Think this is related to this being a windows device which would be red flag to tethering without a plan? If this device was pinging a MS server for an update it would be very obvious. On the plus side my market WiFi tether app works good, however having the native app to work would be great. Many thanks for your contributions.
Click to expand...
Click to collapse
Can you put a google browser on that device?
I tested w/ a HP envy hybrid device w/ chrome. Everything worked fine- email, internet, etc...
Edit: Are you on a vpn?
You are s-on?
OP amended
I was able to connect my Galaxy Tab 3 and my Xbox One and was able to stream netflix on both of them. I wasn't able to get my Acer desktop running Win 8.1 to connect though. Gonna try the tether app and see if that makes a differnece.
itsachirpthing said:
What devices were you tethering? Just curious.
Click to expand...
Click to collapse
RonMac said:
I was able to connect my Galaxy Tab 3 and my Xbox One and was able to stream netflix on both of them. I wasn't able to get my Acer desktop running Win 8.1 to connect though. Gonna try the tether app and see if that makes a differnece.
Click to expand...
Click to collapse
IE whatever was not tested w/ this. If there is a large contingency w/ this problem, I will have to look into the reporting algorithms.
WiFi Tether app is working with my desktop FYI.
chas123 said:
IE whatever was not tested w/ this. If there is a large contingency w/ this problem, I will have to look into the reporting algorithms.
Click to expand...
Click to collapse

Categories

Resources