Hi everyone.
I'm trying to bypass my ISPs throttling with changing MTU. If I connect the cellular network with changed MTU, I can bypass (For example, each month first 300MB is very fast but after that my internet speed generally 128 Kbps even though my data plan is unlimited. And there is no law about this throttling, I told problem to customer service then I complained my problem to other authorities, still no result). But I can't change my MTU before connect the cellular network, the interface of cellular network can't seen. I used that command when cellular data on in Terminal Emulator app with superuser privileges:
Code:
ifconfig rmnet_data0 mtu 8511
I tried an app for changing MTU, too. On reboot or disconnect from cellular network, MTU 1500 again. So I need change MTU permanently. I googled and really struggled but no result. I'm thinking that a file that storing default MTU info of all interfaces. Sorry for my bad english. I need help
Device: Redmi 5 Plus 4/64 Global
ROM: MIUI Global 10.2.3 Stable with Magisk and OrangeFox Recovery R9.0
Related
I spent most of a day trying to get an APN definition for MMS working on my new (and first) smartphone. Searching for answers, I found a lot of conflicting information regarding the meaning and specification of "APN type." I finally decided to go to the source (code) to understand. Here's what I found for Android 4.1.1 (sorry if this is duplicative, but nowhere could I find an exhaustive list):
from /android/4.1.1/frameworks/base/telephony/java/com/android/internal/telephony/Phone.java, /android/4.1.1/frameworks/base/telephony/java/com/android/internal/telephony/DataConnectionTracker.java, and /android/4.1.1/frameworks/base/core/java/android/net/ConnectivityManager.java
default any type for which no APN entry is defined
mms Multimedia Messaging Service
supl Secure User Plane Location, geographic device location
dun Dial Up Networking bridge
hipri High Priority Mobile data
ims IP Multimedia Subsystem
fota Over the air Adminstration
cbs Carrier Branded Services
* all types of traffic (literal asterisk string)
"APN type" may be specified by including one or more of the above strings in a comma-separated list (apparently only lower-case, no spaces). In my case (Italy Coop-Voce branded service apparently carried by TIM), specifying a GPRS APN with APN type "default" and a second APN definition with APN type "mms" was sufficient to provide working Internet, SMS, and MMS access. After saving the MMS APN definition, I saw that it showed no radio-button for selection. I thought that meant the definition was faulty, but not so; it works just fine for MMS nonetheless (apparently the radio button selects only the primary data APN).
from /android/4.1.1/frameworks/base/core/java/android/net/ConnectivityManager.java
MMS An MMS-specific Mobile data connection. This connection may be the same as TYPE_MOBILE but it may be different. This is used by applications needing to talk to the carrier's Multimedia Messaging Service servers. It may coexist with default data connections.
SUPL A SUPL-specific Mobile data connection. This connection may be the same as TYPE_MOBILE but it may be different. This is used by applications needing to talk to the carrier's Secure User Plane Location servers for help locating the device. It may coexist with default data connections.
DUN A DUN-specific Mobile data connection. This connection may be thesame as TYPE_MOBILE but it may be different. This is used by applicaitons performing a Dial Up Networking bridge so that the carrier is aware of DUN traffic. It may coexist with default data connections.
HIPRI A High Priority Mobile data connection. This connection is typically the same as TYPE_MOBILE but the routing setup is different. Only requesting processes will have access to the Mobile DNS servers and only IP's explicitly requested via requestRouteToHost will route over this interface if a default route exists.
IMS IP Multimedia Subsystem
FOTA Over the air Adminstration.
CBS Carrier Branded Services
Note: directory structure and module content vary with Android version. Some earlier versions do not define all above APN types; otherwise, type strings and meanings appear to be consistent across versions.
Thank you for sharing.
I know it's an old post but I won't to open a new thread since I think this is still gave good informations about apn.
I would like to know if it's useful tu change apn type values manually.
My previous carrier(wind) in type apn had this values:
Code:
default,supl,agps,fota,dun
.
My current carrier (kena mobile) has just
Code:
default
in apn type and
Code:
pap
in authentication method.
This are the settings obtained via carrier auto-configuration procedure for Moto G5 plus(my smartphone).
What do you think? It's useful tu add different values after
Code:
default
or it's a total waste of time since the carrier system override what you set locally on your device?
Thank you very much.
there's also the "admin" type which you can use for using duplicated SIM cards.
T-Mobile's APN settings for the LG ThinQ has a type called "xcap":
Sorry, don't have enough posts to include the link.
Anyone know what xcap is for? I Googled for this APN type value, but haven't found anything about this value.
Thanks,
Q
Thanks for the info. Valuable information in this post. Thumbs up!
On Galaxy Alpha International 850M there are settings in APN for:
IMSI
GID
SPN
or None.
The IMSI if selected defaults to 310260x
The GID if selected defaults to 6d38.
Are these defaults from the SIM card ?
Any advantage to setting them versus "None" ?
They appear to work but not sure if they have any effect versus " None".
The SIM is Metro PCS and Metro PCS phones work with either
fast.t-mobile.com
or fast.metropcs.com
the different IPv4 IPv6 IPv4/IPv6 all work but the Alpha does not seem to have stable fast data on Metro PCS like Metro branded phones which have software optimised for the network.
However TMo or Metro may be prioritizing down to 5 to 8 mgps download speed.
I notice an occasional very fast speed at 20 to 50mgps but it goes back down within
2 minutes.
I can change the APN in strong signal area and get a fast speed but 2 minutes later the speed
will go back down to 3 to 7 mgps.
This is OOKLA which may be inaccurate ...
But does this look like a type of throttling ?
Playing with APNs to try for a better more stable data speed.
Any thoughts ?
Thanks.
I didn't even notice this till the other day but the M9 has IP6 enabled by default. Just an idea but they could be related to some of the data problems this phone has had such as some apps not working, etc. Sprint appears to have fixed most of it on the back end however I would still like to disable IP6 anyway. I did give the app Disable IPv6 [root] a try however this just disabled IP6 for the wi-fi connection and not LTE.
I noticed in the PDN internet settings, the IP Version is set to IPv4v6 by default. When I change it to IPv4 only, the phone will no longer connect to LTE at all. It also appears to clear the APN settings out so even if you change it back to the default, I was unable to reconnect to LTE until I did a profile update.
The phone gets a 10/10 score on http://test-ipv6.com/ but again I think this might be causing some of the issues and would just like to disable IP6 all together. You can also verify your IPv6 addy in the 4G settings menu it will show your IPv6 addy. Any ideas how to force this back to ipV4 and still connect to LTE?
Sim-X said:
I didn't even notice this till the other day but the M9 has IP6 enabled by default. Just an idea but they could be related to some of the data problems this phone has had such as some apps not working, etc. Sprint appears to have fixed most of it on the back end however I would still like to disable IP6 anyway. I did give the app Disable IPv6 [root] a try however this just disabled IP6 for the wi-fi connection and not LTE.
I noticed in the PDN internet settings, the IP Version is set to IPv4v6 by default. When I change it to IPv4 only, the phone will no longer connect to LTE at all. It also appears to clear the APN settings out so even if you change it back to the default, I was unable to reconnect to LTE until I did a profile update.
The phone gets a 10/10 score on http://test-ipv6.com/ but again I think this might be causing some of the issues and would just like to disable IP6 all together. You can also verify your IPv6 addy in the 4G settings menu it will show your IPv6 addy. Any ideas how to force this back to ipV4 and still connect to LTE?
Click to expand...
Click to collapse
You are under the assumption your provider is even handing out IPv4 on LTE........ Sprint may not be.
tws101 said:
You are under the assumption your provider is even handing out IPv4 on LTE........ Sprint may not be.
Click to expand...
Click to collapse
It looks like that may be the case unless I need to change another setting. LTE won't get a connection if set to ipv4 like I said. Although my M8 would pick up an ip4 address on LTE so this could be a more recent change. If I set the phone to CDMA it will draw a ip4 address but this phone can't hold a 3G connection and just bounces to 1X all the time.
I accidentially formatted and reflashed the whole phone. Now there are minor issues like changed IMEIs and MAC addys but there's also one major issue: My mobile network connection: I'm completely offline most of the time. I guess the reason for this is that my network operator uses different frequencies for inner-city and rural areas but the 2g/3g modem thinks it's not allowed to use the inner-city ones (I'm living in a large city).
Does anyone have a backup of the needed data or any other way to change allowed frequencies at runtime (phone is rooted)?
Hello, do you still need it?
No but thanks for the offer.
I was trying to maximize the use of the data plan we have. Say, SIM1 is with provider A and SIM2 is provider B.
Both has data plan - say, SIM1 with 20 GB data monthly and SIM2 is unlimited data but on 4Mbps speed.
So, I'd like to maximize both - say, if remote site is Youtube or Facebook, use SIM2 (as 4Mbps speed). All other use SIM1.
I had been searching but to no available. Is there such a thing?
Thank you.
BTW, current phone is Huawei and not root.
Note: The phone is capable of dual 4G, both SIM connects to 4G at the same time and both already runs VoLTE connection so they should be fine. Huawei has Dual-Sim Default 4G selector only which means it goes *either* on SIM1 or SIM2.
With the above assumption, the only missing is the 'router' part within Android. This which redirect traffic based on destination server IP - similar to a home router with multi-link capability.
Which, in turn, if there is such a thing, it maybe much much benefits that you can configure to Prefer youtube on WIFI connection, facebook on SIM1 and the rest on SIM2