[Q] Nexus 4 Tethering APN - Nexus 4 Q&A, Help & Troubleshooting

Hello,
I have a small issue with tethering on my Nexus 4.
I can't specify the APN to use for tethering (Same as Mobile connection).
With the default configuration Tethering work but verry slow (the tethering APN is limited).
I have make some search on XDA and google but no answer. some way :
Edit APN IN /data/data/com.android.providers.telephony/databases/telephony.db : Not Work.
Edit /etc/apns*.xml : Not Work
Edit / Recompile with apktool /system/framework/framework-res.apk (value config_tether_upstream_types) : The phone doesn't boot after that.
Have you a patch for Fix APN configuration for tethering ? is there a 3rd party software to make Wifi tethering without this limitation ?
Thanks in advance

Are you sure it's not just TMO blocking ports?

Hello,
Not it's Android since 4.1.2 he force a specific APN
I have tried to put my sim card in a 3G Router (Huawei) and i have full speed.
With Clockworkmod tether it's work fine but no wifi router ...

Quick update :
I have edited arrays.xml in framework-res.apk but no way : the tethering does'nt work with my configured APN but default APN.
<integer-array name="config_tether_upstream_types">
<item>0</item>
<item>1</item>
<item>5</item>
<item>7</item>
</integer-array>
What is the correct value for tether with the mobile APN (APN Config in the phone not the default)

Can you post your current 'tethering APN'?

Hello,
The current APN should be orange.fr or orange
I try to delete the "mobile_dun" in arrays.xml
With logcat / netcfg the phone doesn't reconnect a 2nd time with the default apn but nat is'nt enabled.
If I enable the nat with iptables (iptables -t nat -A POSTROUTING -s 192.168.43.0/24 -o rmnet_usb0 -j MASQUERADE ) it's work !
Logcat : http://pastebin.com/YB2s7auh
We can see the wan interface is'nt specified.
With netcfg I have only 1 WAN interface :
rmnet_usb3 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb1 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb2 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb0 UP 10.92.X.X/30 0x00000041 00:00:0
0:00:00:00

Anyone ?

guifort said:
Hello,
I have a small issue with tethering on my Nexus 4.
I can't specify the APN to use for tethering (Same as Mobile connection).
With the default configuration Tethering work but verry slow (the tethering APN is limited).
I have make some search on XDA and google but no answer. some way :
Edit APN IN /data/data/com.android.providers.telephony/databases/telephony.db : Not Work.
Edit /etc/apns*.xml : Not Work
Edit / Recompile with apktool /system/framework/framework-res.apk (value config_tether_upstream_types) : The phone doesn't boot after that.
Have you a patch for Fix APN configuration for tethering ? is there a 3rd party software to make Wifi tethering without this limitation ?
Thanks in advance
Click to expand...
Click to collapse
I'm with orange UK and had to phone CS and have them activate tethering before it would work on my N4, despite working perfectly on my old hd2 using the same account.

theabsurdman said:
I'm with orange UK and had to phone CS and have them activate tethering before it would work on my N4, despite working perfectly on my old hd2 using the same account.
Click to expand...
Click to collapse
Tethering is already enable but before N4 I use WAP apn to tether (faster than Tether APN)

Related

Wifi connection problems.

I am trying to connect to my university's wireless.
We have two different wireless ssid's that i can connect to with my laptop.
The first, called UBC is unsecured, but when you connect, it takes you to a web page where you enter your username/password.
The second, called ubcsecure, can authenticate with either WPA2 or WPA ( it shows up as WPA2-Enterprise).
The encryption method is AES for WPA2, and TKIP for WPA.
EAP type: PEAP v0 , Authentication protocol is MS-CHAP-V2
there is an option for mutual authentication using a certification server:
secure.wireless.ubc.ca
I am unable to connect to either using the stock HTC magic ROM, the HoFo community rom, and most recently, myHero 1.0.1
I have tried editing /system/etc/wifi/wpa_supplicant.conf to include
network={
ssid="ubcsecure"
proto=WPA
key_mgmt=WPA-EAP
pairwise=TKIP
group=TKIP
eap=PEAP
identity="[email protected]"
password="password"
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
Any ideas as to how to connect?
Data wipe.
Try to reset your phone's basic settings.
It could rebuild the information necessary to acquire the specific IP from their connection.
Manually entering the data couldn't hurt either. This is something that usually I would consider consulting the school about. Privatized internet connections could cause a number of issues for those seeking to utilize Wi-Fi.
The NAT settings might be too strict to support a handheld device.
Me too!
have you found any other solution??
i m here in ubc as well with my htc magic 1.5
when i'm trying to connect to ubc,, it keeps requiring the ip but doesnt connet
and ubcsecure doesnt even show up!
is really frustrating not being able to use internet in universityyy..
i thought by activating the wpa enterprise will work for the ubcsercure, i guess not??
will any of the heros rom work??
Im having this problem too.. anyone find a fix?
I have no idea why but ubcsecure seems to be working using JesterBlur ROM. http://forum.xda-developers.com/showthread.php?t=567122
it works on the Dream? or sapphire? I don't think it matters but... be interesting to know
Dream. Theres a version for the Sapphire. Maybe give it a shot? ubcsecure still working here.
Ask for working setting
absolutcamper said:
Dream. Theres a version for the Sapphire. Maybe give it a shot? ubcsecure still working here.
Click to expand...
Click to collapse
Did you use the UI setting or you edit the "wpa_supplicant.conf" file manually?
would you please send us your "wpa_supplicant.conf" file or its ubcsecure part? it would be the great help to have a working setting.
Cheers,
Ali
I used the UI that came up during first boot. How can I get to that file?
the wpa_supplicant is in /data/misc/wifi. But considering how it works using the ui settings, i dont think changing the config file will work...but please still post it.
I also tried replacing the wlan.ko from the jesterblur rom... and doesnt seem to be compatible with magic which is apparently normal because there is a patch for magic users that fixes wifi apparently. I will try the wlan.ko from the fix soon probably to see if it works.
Hi guys,
I'm at UBC with the same problem (I can't even connect to the regular UBC network). I went to the UBC help desk and they basically told me that they don't support android at all. The funny thing is I can connect to the fatport network with no problems but cannot connect to ubc, ubcsecure or eduroam networks on campus. I'm currently runnning on Cyanongen 4.2.4 (waiting for 32a kernel to upgrade to 4.2.5) on a rogers htc magic.
Anyway, the point of this post. If anyones interested in meeting up at UBC to find a solution to this problem it'd be great. I'm hoping we can eventually create a package of some sort that'll fix any android phone but lets focus on fixing the current prob first.
Also @fnkaze - aren't the dream and sapphire the same thing?
Er, i think the dream is the G1 and the sapphire is the G2 aka the rogers magic... well i think the dream has a differnt wifi driver? maybe.. thats the problem
I think the reason why they dont support android is because the stock rogers rom doesnt have native wpa2 support i think.... but the custom roms should have it.. the hero rom does have it... at home my wpa2 wifi works fine
I can also connect to fatport, i think the eduroam is also using the same thing...tho ive heard eduroam seems to work on the rogers rom at different univeristies..
I still have yet to try the jester rom wifi driver tho, ill try it soon...
Thanks for the clarification. And the reason eduroam works at other universities is because the WPA encryption settings are based on the uni's actual/main wireless network. So at different universites the authentication protocols might be a bit different.
What phone do you have? The dream or the magic? The jester rom doesn't work on my magic.
i have the magic, but i think it should work on the magic, they also have a seperate patch to get Wifi working for the it.. so im assuming its possible..
So yeah, Concordia University in Montreal has the same WPA2-Enterprise and this is how I got WIFI to work on my Magic (with HoFo's Sense UI ROM, would still probably work with a rooted 1.5/1.6 ROM)
In fact it will probably work with any rooted Dream or Magic
Remember you need your phone to be rooted for this to work, you will also need to have the drivers installed for your phone from the Android SDK.
- Go into recovery mode
- mount the /data/ folder
Code:
adb shell mount /data
- With ADB Pull the /data/misc/wifi/wpa_supplicant.conf file to your computer (in this example it will go to the tools folder where you have your androidsdk)
Code:
adb pull /data/misc/wifi/wpa_supplicant.conf .
- Make a backup of your conf file in case you mess something up
- Edit it and add in the configuration settings given by your University for Linux wpa_supplicant.conf files, so in your case
Code:
network={
ssid="ubcsecure"
proto=WPA
key_mgmt=WPA-EAP
pairwise=TKIP
group=TKIP
eap=PEAP
identity="[email protected]"
password="password"
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
- With ADB Push the wpa_supplicant.conf from your computer to the /data/misc/wifi/ folder
Code:
adb push wpa_supplicant.conf /data/misc/wifi/
mydewji13 said:
UBC help desk and they basically told me that they don't support android at all.
Also @fnkaze - aren't the dream and sapphire the same thing?
Click to expand...
Click to collapse
Honestly that person at the helpdesk probably doesn't even know what Android is. If they says they don't support Android at all, well using their logic any Linux distro using wpa_supplicant.conf isn't supported which OBVIOUSLY isn't the case.
And no the Dream and Magic are far from being the same device.
Thanks!
I'll try this solution and see if it works. Will post back to let you know how it goes.
Hi,
Ok, I just finished installing the sdk, fixing udev to recognize my phone etc...
The problem I'm having is that everytime I run:
Code:
adb shell mount /data
I get the following error:
Code:
mount: cannot read /etc/fstab: No such file or directory
Help?!?!
NVM after reading the adb -help i tried this:
Code:
adb pull /data/misc/wifi/wpa_supplicant.conf /home/myuser
Ok something really wierd happened...I pushed a new wpa supplicant file and the rebooted the phone and it stopped seeing wireless networks! But ubcsecure showed up as a known network. If I long press it an 'forget it' I can see networks again, but still cant connect to any ubc network?
WTF>?
Is there anyway I could use by ubuntu wpa_supplicant settings? Anyone know where the file is on Karmic? b/c I cant find it at all

[Q] wifi?

when i use my wifi it says that it is conected but it doens not work does anyone knows a fix
If you are using (wifi-adhoc network) then Tattoo does not connect to ad hoc networks through the wifi manager but we can hack it to allow scanning and connecting to ad hocs. I’ve been trying to figure this out for the longest time. Before you begin, you need to root your tattoo and be comfortable using the command line. We will be editing tiwlan.ini and wpa_supplicant.conf. I will be showing you 3 ways to edit the files. Using vi and adb and root explorer.
root explorer is the simple and best way.....
Settings:-
edit tiwlan.ini to read:
WiFiAdHoc = 1
dot11DesiredSSID = HydtechAdhoc (or whatever name u want)
dot11DesiredBSSType = 0
edit wpa_supplicant.conf to read:
ctrl_interface=tiwlan0
update_config=1
eapol_version=1
ap_scan=2 (tells wpa_supplicant to scan hidden networks)
network={
ssid=”HydtechAdhoc”
scan_ssid=1 (for APs with multiple SSIDS)
mode=1
key_mgmt=NONE
group=WEP104
auth_alg=SHARED
wep_key0=”MyWepKey” (replace MyWepKey with your key)
}
it works for me.....
im sorry but i haven't said somethings here they come
i am uising the latste release of the cm7 rom so maybe the problem lies here?
are you using adhoc wifi connection(connection through pc) or normal wifi??
i am using a normal wifi and when i am connected to the internet i can only use it for 5 minuts and than i must shut down the screen and unlock it afther that i can use it for 5 minuts etc.
I had the same problem while I was using stock (htc 1.6 rom).
My recommendation is that you update tattoo to Kalim's ROM.
ok but where excacly is the fault becasue i am on a 1.6 rom now and i don't have that porblem now
guuso50 said:
ok but where excacly is the fault becasue i am on a 1.6 rom now and i don't have that porblem now
Click to expand...
Click to collapse
I figure out with WEP security no problem, but with WPA2 the connection is working but internet is not open...I am on 1.6 original Htc. I don't have any idea why.

[Q] Unable to access internet after rooting to Gingerbread

I am new to xda..and bought the tab a month ago and from xda i rooted the tab succesfully.
but then realized that I am unable to access internet via gprs from the browsers. but other applications like nimbuzz, works.
internet works via wifi very well.
kindly help
Sent Via Samsung Galaxy Tab P1000
You need to set apn settings again. Check with your provider. Then input in settings / wireless and network / mobile networks / access point names. You probably need to create a new one.
Sent from my GT-P1000 using XDA App
my current settings
Name : Vodafone Live!
APN : siriusaplications.disabled.portalnmmsapndroid
Proxy : 10.10.1.100
Port : 9401
User Name : Not Set
Password : Not Set
Server : Not Set
MMSC : Not Set
MMS Proxy : Not Set
MMS Port : Not Set
MCC : 404
MNC : 20
Authentication Type : None
APN Type : None
this is my current settings and all seems fine coz my applications that needs net are working fine apart from browsers
So you can access the internet - its your browser that's broken? Fix your title please.
all browsers
all browers i am using....from default browser to dolphin browser hd aint working....
Sent Via Samsung Galaxy TAB p1000
Why not reinstall your ginggerbread? Maybe something got broken during the installation.

[Q] How to enable EAP-SIM on CM10?

Hi,
i try to enable EAP-SIM support on my Defy+. For the moment i have find only one solution:
Edit wpa_supplicant.conf, founded in /system/etc/wifi/.
I have added this entry at the end of file:
Code:
network={
ssid="FreeWifi_secure"
key_mgmt=WPA-EAP IEEE8021X
eap=SIM
priority=5
}
Saved the file and reboot my phone. That doesn't work, but it work on many phone. How i can enable EAP-SIM support on my phone or just for one SSID (FreeWifi_secure)?
Thx in advance, Geckø
Hi,
i have found wpa_suppliant.conf in /data/misc/wifi/
When i try to connect on SSID FreeWifi_secure the WIFI application add this into this file:
Code:
network={
ssid="FreeWifi_secure"
key_mgmt=WPA-EAP IEEE8021X
eap=PEAP
priority=5
}
I have edited this entry and changed eap method to SIM but that doesn't work. I got always fail message and disconnected status.
Actually i think the best way is add SIM into the available options in the wireless setting but i don't find how i can make it :/
Any informations/help are welcome
Thx in advance, Geckø

Hotspot Mod

Any hotspot mods anyone.
If you are on sprint this one works.
https://forum.xda-developers.com/sprint-s7-edge/how-to/hotspot-bypass-nougat-ok-t3563446 (SAUCE)
Here it goes (no root required):
1. Enable developer mode:
a. Go to settings
b. Scroll down to about phone
c. Repeatedly tap "Build number" until developer access is granted
2. Get ADB installed w/ drivers
a. https://forum.xda-developers.com/sho....php?t=2588979
3. Enable USB Debugging
a. Go to settings
b. Go down to developer options
c. Scroll down to USB Debugging and turn it on
d. Connect phone with USB to PC
4. Get into ADB shell
a. Open a command prompt (windows key + R , type "cmd" in the box and press enter is my favorite way)
b. Run:
Code:
adb shell
5. Enable the bypass
a. Disable the DUN requirement
Code:
settings put global tether_dun_required 0
b. Overwrite the DUN APN
Code:
settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,http://mms.sprintpcs.com,68.28.31.7,80,310,120,,default,dun,mms,supl"
6. Turn off Mobile Data
7. Turn on HotSpot
8. Turn on Mobile Data (The order is important for DNS to work properly)
Alternative 5-8: w/ static DNS
5.b (Does not attempt to replace default active APN at start)
Code:
settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,,,,310,120,,dun"
This one can also be tried if data does not work on the phone during hotspot:
Code:
settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,,,,310,120,,default,dun
(the extra default in there should keep the phone on data, but no guarantee)
6. Turn on Hotspot
7. On your devices, you might have to set a custom DNS server:
a. Google DNS: Google DNS Guide
b. OpenDNS: OpenDNS Guide
Sprint's IP's are:
Code:
68.28.31.30
68.28.31.31
c. If you must also specify a static ip, use:
Code:
IP: 192.168.43.XXX , where XXX is between 2 and 254
Gateway: 192.168.43.1
Subnet Mask: 255.255.255.0 or /24
DNS 1: 68.28.31.30
DNS 2: 68.28.31.31
To revert:
Code:
settings put global tether_dun_required 1
settings put global tether_dun_apn null
Notes:
Line 5.b:
For
"name,apn,proxy,port,username,password,server,mmsc ,mmsproxy,mmsport,mcc,mnc,auth,type"
Alternative line 5.b (you can run the command again, and yes the first part is required in []):
Code:
[ApnSettingV3] carrier/Name,apn,proxy,port,user,password,Unused/server,mmsc,mmscproxy,mmscport,mcc/part1,mcc/part2,authType,types[],protocol,roamingProtocol,carrierEnabled,bearer,profileId,modemCognitive,maxConns,waitTime,maxConnsTime,mtu,mvnoType,mvnoMatchData
[ApnSettingV3] SprintDUN,n.ispsn,,,,,,http://mms.sprintpcs.com,68.28.31.7,80,310,120,,default|mms|supl|dun,ipv4,ipv4,true,0,,false,0,0,0,,,
For types[], you can use default|dun|mms , separated by the pipe " | " for multiples. I'm not sure what is needed but you can test around. If you get an error about subscription then likely you put in a malformed string. For the mvno (prepaid) probably the last two are gid and 4E or something like that (0,0,0,,gid,4E) ; see your APN info
Survives Reboot, PRL Update, Profile Update, UICC Unlock
Last edited by paul2112; 15th March 2017 at 06:39 PM.
Has anyone been able to automate this process? I'm trying to use tasker to turn off mobile data which it does, then turn on hotspot which it does not. When I set tasker to turn off hotspot it'll do that just not turn it on. Anyone have any luck w/ that?

Categories

Resources