Change bluetooth mtu value - Moto G5S Questions & Answers

is there any way to change a bluetooth mtu into a custom ROM?

MTU? Whats that exactly? Im Not getting It

Some random said:
MTU? Whats that exactly? Im Not getting It
Click to expand...
Click to collapse
I need to change the bluetoth MTU in my custom rom, because the standard MTU comes in 23kb, but I want to change the 512 stop, making it similar to a samsung device that has this MTU value, currently the only way I found was to recompile the rom, but wanted to find a more practical method, through some command or repository via magisck

TidragonX said:
I need to change the bluetoth MTU in my custom rom, because the standard MTU comes in 23kb, but I want to change the 512 stop, making it similar to a samsung device that has this MTU value, currently the only way I found was to recompile the rom, but wanted to find a more practical method, through some command or repository via magisck
Click to expand...
Click to collapse
If you have to recompile to do this, I don't think there is a Magisk Method, also, I still don't quite get what "Bluetooth MTU" is...

Some random said:
If you have to recompile to do this, I don't think there is a Magisk Method, also, I still don't quite get what "Bluetooth MTU" is...
Click to expand...
Click to collapse
this allow me to use emulation of Amiibos on joycondroid app.

Related

[Q] Can defy with cm7 tether in infrastructure mode?‎

I've try the wifi tether for root user. But it seems not work on infrastructure mode. How can I tether in infrastructure mode instead of ad-hoc mode?
The same in MIUI
The same problem in MIUI.
Just ad-hoc. In Eclair and Froyo the infrastucture was possible with "thether for root users".
That isn't the same on MIUI. Just ad-hoc, even with the same software.
Any suggestion?
My Defy running uk stock 2.2 generates a hotspot in infrastructure mode and it works well with my Asus Transformer.
I have seen comments in the CM7 thread that suggest that to generate a tether spot you need to install wireless tether for root - I think others have mentioned that this is only adhoc.
Obviously I am not running CM7 so can't confirm this for you.
Have a look at the main CM7 thread.
Infact the "wifi tether for root" worked in infrastructure in Eclair and in Froyo, but just in ad-hoc in MIUI and CM.
I really can not figure why ...
i posted this in CM7 thread, just to answer your question, im pasting it here:
found it!
thanks to a thread at modaco, just copy hostapd file from /system/bin of any Defy froyo rom, and paste it in CM7 /system/bin , chmod 755, run wifi tether for root, it will now have WPA/WPA2 not only WEP, and also run as infrastructure mode!
file is attached for those who want the solution quick and dont have froyo at hand.
What's the exact name of the wifi tether app you guys are using? I couldn't find one named "wifi tether for root users" in the market. I found this one googling around though: http://code.google.com/p/android-wifi-tether/. Is this the one?
Thanks
twa_priv said:
What's the exact name of the wifi tether app you guys are using? I couldn't find one named "wifi tether for root users" in the market. I found this one googling around though: http://code.google.com/p/android-wifi-tether/. Is this the one?
Thanks
Click to expand...
Click to collapse
yes it is.
Hello! I used to use Wireless Tether(the released version, not the beta one) and it worked fine on my default eclair. now that i have CM7 RC0, i have some problem, but ONLY if i activate access control.
Tried the version above, the beta one, and i couldn't even be able to find the network(and don't have the hide SSID option to be enabled )
any idea of what could it be?
soueumesmoaki said:
Hello! I used to use Wireless Tether(the released version, not the beta one) and it worked fine on my default eclair. now that i have CM7 RC0, i have some problem, but ONLY if i activate access control.
Tried the version above, the beta one, and i couldn't even be able to find the network(and don't have the hide SSID option to be enabled )
any idea of what could it be?
Click to expand...
Click to collapse
try version 2.07:
http://code.google.com/p/android-wi...etail?name=wireless_tether_2_0_7.apk&can=2&q=
Hey guys... i'm sorry for what i'll say now.. but i'm not a developer =(
BUT, i can find some solutions on the web. (=
well.. here is the deal... As i said before, i used to use Wireless tether(what seems to be the non-beta version of this wifi tether, as the interface is pretty much the same)
after upgrading my cellphone to Gingerbread CM7 RC0, i tested it today and got a problem on activating access control...
Well.. i guess that i found some possible solution for this:
Why does the "access-control"-feature not work or is disabled.
If the feature "CONFIG_NETFILTER_XT_MATCH_MAC" is missing the "access control"-feature will not work correctly (you will see a "failed"-status in "Show log" for "Enabling access control"). To detect if all kernel-option were enabled in your current kernel the following kernel-options should be enabled: CONFIG_PROC_FS, CONFIG_IKCONFIG, and CONFIG_IKCONFIG_PRO. This dumps the current kernel-config to /proc/config.gz.
Click to expand...
Click to collapse
the ONLY problem, is that i have no idea on how to do what is written above
could anyone help?
nolimitzz said:
try version 2.07:
http://code.google.com/p/android-wi...etail?name=wireless_tether_2_0_7.apk&can=2&q=
Click to expand...
Click to collapse
Heya. thanks for answering, but I just checked. the version i'm using and having problem, is the 2.0.7.
when i tried the beta, couldn't even broadcast the SSID, so got back to the "market" version
nolimitzz said:
i posted this in CM7 thread, just to answer your question, im pasting it here:
found it!
thanks to a thread at modaco, just copy hostapd file from /system/bin of any Defy froyo rom, and paste it in CM7 /system/bin , chmod 755, run wifi tether for root, it will now have WPA/WPA2 not only WEP, and also run as infrastructure mode!
file is attached for those who want the solution quick and dont have froyo at hand.
Click to expand...
Click to collapse
hay mate, how do you copy to the sys dir?
bit of a novice
You have to use some application capable of remounting the /system partition as read/write (it is read-only by default) and copy the file, and you need a way to edit permissions.
I've used root explorer to do both things above. Remember the file has to be named hostapd (all in small caps). It works for me -- now I have infrastructure tether in my CM7 defy.
I'm not having any luck with MIUI 1.10.8 with Hostapd & android-wifi-tether unfortunately.
Tether starts with an error in the log in 2.0.7, "Starting hostapd... failed" & "Activating WiFi interface... failed" but I can't see further details than this.
Tether starts without error in 3.1-beta6 but SSID does not come up.
Permissions of Hostapd (with uppercase H) are "rwx rwx rwx", using ES File Explorer, and have rebooted between attempts.

Mac Address Spoofing

I've been trying to spoof a mac address however I can not get it to work. I've tried 3 different utilities off the app store along with pryfi. I've also tried to change it through terminal and through a wifi config file, however nothing works. I've also tried 3 different kernels.
Current rom: 4.4.4 Exodus
https://www.google.com/url?sa=t&rct...HZjTaG3Bd2lu9ewGkmcY20w&bvm=bv.90491159,d.eXY
Current kernel: ElementalX
All help would be appreciated
Make sure busybox is installed and running.
It is
Which file did you edit? WCNSS_qcom_cfg.ini?
Q8-V08 said:
Which file did you edit? WCNSS_qcom_cfg.ini?
Click to expand...
Click to collapse
I tried that, it did not work
and
persist/wifi/.macaddr
?
Do the values in the files reset back to the original mac address after reboot?
Q8-V08 said:
and
persist/wifi/.macaddr
?
Do the values in the files reset back to the original mac address after reboot?
Click to expand...
Click to collapse
Yep tried that one a while ago. It does not revert back however the mac does not match the mac i set
autonomousperson said:
Yep tried that one a while ago. It does not revert back however the mac does not match the mac i set
Click to expand...
Click to collapse
Does it match the mac address displayed under status? you say it doesn't revert back to your original mac address but it's displaying a different one to the one you set? very strange. If you turn on bluetooth and check the status the mac address of the bluetooth and wifi should be exactly the same by default except the last value
??:??:??: ??:??

(Need "more" help) WIfi mac address still stuck to 02:00:00:00:00))

Hi,
I have read almost everything that this forum gave me and some solution from the rest of the internet and STILL my wifi mac address is still stcuk at 02:00:00:00:00:00
Wifi won't turn on and it won't display available wifi
I can't remember exactly what caused it but i'll try to share my recollection
I vaguely remember that i was able to connect to the wifi before trying to fix it. Can't recall what really happened
I fixed the random rebooting nexus 5x by using unblod fix
I think i tried rooting it and succeeded with a twrp recovery
I vaguely remember flashing a zip custom rom with wrong version and brought it into a soft brick. Cant find the file anymore.
I reflashed it with flash all batch file from stock firmware
the phone is bootlooping
Fixed it again using unblod exe using the stock firmware's boot.img
Wifi wont turn on
mac address is 02:00:00:00:00:00
Tried on android 6.0, 7.0, 7.1.2, 8.0 and 8.1.0
Other solutions tried:
Nil Mac app. Seems to work app wise but mac is still stuck at 02:00:00:00:00:00 on settings. Wifi wont turn on
Manually edited, placed *.bin file in /persist, and /etc/firmware/wlan/qca_cld/
WIfi mac changer apps from appstore (they dont work)
Some root apps that mess with the phone's setting (cant find anything that seems to deal with wifi mac address)
p.s.
I also tried bricking the phone using TWRP wipe and checking all the wipe locations to eliminate remnants from previous mods
I cant seem to do anything. Still stuck at 02:00:00:00:00:00
Any more suggestions on where to look?
Or is android not getting the real mac address and revert to 02:00:00:00:00:00 and wont let wifi turn on during flash all script?
Thanks in advance.
Recent Android hides the MAC address to prevent tracking. 02:xx:xx:xx:xx:xx means a site-local MAC address.
Try using "ip link" and looking for the wlan0 entry. eg.
Code:
22: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 3000
link/ether 2c:59:8a:xx:xx:xx brd ff:ff:ff:ff:ff:ff
nowster said:
Recent Android hides the MAC address to prevent tracking. 02:xx:xx:xx:xx:xx means a site-local MAC address.
Try using "ip link" and looking for the wlan0 entry. eg.
Code:
22: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 3000
link/ether 2c:59:8a:xx:xx:xx brd ff:ff:ff:ff:ff:ff
Click to expand...
Click to collapse
HI,
thanks for the reply. I already did that and i got a mac address that is not 02:00:00...
then i tried to change it using if config just to see if it changes using the command.
I got an error saying wlan0 not found (not exact words)
Is there a different MAC address in Settings -> System -> About phone -> Status ?
nowster said:
Is there a different MAC address in Settings -> System -> About phone -> Status ?
Click to expand...
Click to collapse
No, it is 02:00:00:00:00:00.
arviverona said:
No, it is 02:00:00:00:00:00.
Click to expand...
Click to collapse
Did this ever get fixed? I'm facing the same issue. However, the steps I did was trying to spoof a MacAddress using Busybox and a terminal emulator.
Just using that would not allow me to connect to wifi, but wifi was turned on. Then I read to change the wlan.bin file in the persists folder.
After I changed that file and did a reboot wifi would not turn on.
I tried:
1. factory reset
2.Changing the wlan.bin back to what it was
3.Sideload android 8.0
4.Flash OEM back to factory
Nothing seems to work. Settings->about->status MacAddress says "unavailable", but
wifi -> preferences -> advance shows MacAddress 02:00:00:00:00:00
Any help would be great,
-realkewl
Try AMC, its the only MAC Address Changer app I could find that worked on my 5x. That was without a screwed up MAC address to begin with, but It might work for you.
I downloaded it from the play store, but now its not there. Here's the apk from my phone:
https://sqerk.com/pythonlimited.amc.apk
Looks like AMC was forked from nMAC :
https://forum.xda-developers.com/android/software-hacking/app-nmac-nil-mac-changer-t3391283
sqerk said:
Try AMC, its the only MAC Address Changer app I could find that worked on my 5x. That was without a screwed up MAC address to begin with, but It might work for you.
I downloaded it from the play store, but now its not there. Here's the apk from my phone:
https://sqerk.com/pythonlimited.amc.apk
Looks like AMC was forked from nMAC :
https://forum.xda-developers.com/android/software-hacking/app-nmac-nil-mac-changer-t3391283
Click to expand...
Click to collapse
Thanks, but I figured it out. I was trying to flash with the same version 8.0...and for whatever reason that did not work, so I tried a costume ROM and it brought back my MAC address, so then I flash again to android 8.1 and my MAC address problems are fixed. Not sure why flashing with the same version did not fix it.
Thanks,
realkewl
realkewl said:
Thanks, but I figured it out. I was trying to flash with the same version 8.0...and for whatever reason that did not work, so I tried a costume ROM and it brought back my MAC address, so then I flash again to android 8.1 and my MAC address problems are fixed. Not sure why flashing with the same version did not fix it.
Thanks,
realkewl
Click to expand...
Click to collapse
What Custom ROM did you use friend? I have the same exact issue with my Nexus 5. Maybe finding your previously installed Custom ROM, I can fix the issue too. I saw a lot of threads says that installing Custom ROMs or downgrading then upgrading OS using OTA updates given from their Android System fixed the issue. MAC address is important and controls everything that has to do with wireless connections in your device. Maybe this can help be fix my issue too. I am almost convinced to buy a brand new smartphone. It's almost my limit here... If this doesn't bother you, please, can you tell me what is the ROM you used?

Looking to bypass t-mobile hotspot throttling

My device is an HD1907 T-mobile variant, running global firmware with magisk root and bluspark kernel on OxygenOS. Tethering is my only way of getting my laptop connected while at work, and on my old razer phone I got around this issue with settings put global tether_dun_required 0 in ADB. This doesn't seem to work on the OP7T, Even after setting the TTL on my laptop to 65.
I tried the command adb settings put global tether_dun_apn tethering,fast.t-mobile.com,,,,,,,,,310,260,,dun as described in another post, and now my hotspot isn't working (nbd, I'll just keep using PDAnet for now.)
Does anybody have more information on how this all works in android 10 and how we could get around T-mobile's artificially imposed, unusable tethering speeds? PDAnet works good for me however some of the linux apps I use don't work behind a proxy and I'd like to use the built in hotspot.
Also, could somebody ADB to their phone and enter: settings get global tether_dun_apn and give me the output so I can set mine back to default? (should've done it first myself, I know.) Any help or information is appreciated, thank you.
Bump. Same
Same.
attached the result from my device.
my device is OP7T, GLOBAL, not locked for tethering.
From the OnePlus 7 Pro forum: https://forum.xda-developers.com/on...aight-talk-t4035813/post81503219#post81503219
Only thing stopping us is mounting as rw
settings put global tether_dun_required doesn't work anymore edit son I explained how here https://forum.xda-developers.com/oneplus-7-pro/how-to/how-to-enable-dun-apn-t3966580 it works there's few other ways but only way to get some is
https://forum.xda-developers.com/on...abling-speed-hotspot-tethering-t3905948/page7
Download the magisk modules from page 7, VPN Hotspot and TTL Master from links in the thread follow latest instructions (just posted an update today) Should work on any rooted device, android 9/10. There's a non rooted version as well... Try these lemme know in my thread if it works for the 7t.
trying to find a away to mod product apn files new to phone so ill keep trying if someone finds a way to write to system dont know maybe super.img also ill fix a way and that setting tether dun 0 dont work as good terminal settings put net.tethering.noprovisioning=true idk if it works but a better option for now
ecompton59 said:
trying to find a away to mod product apn files new to phone so ill keep trying if someone finds a way to write to system dont know maybe super.img also ill fix a way and that setting tether dun 0 dont work as good terminal settings put net.tethering.noprovisioning=true idk if it works but a better option for now
Click to expand...
Click to collapse
System-less as a magisk module isn't holding?
7t the product file is located different
i fixed it thought it wasn't that hard testing had to do different then i did the 7 pro but it sticks. but that enable_dun global wont work past Android 8. its also in system table and usb is secure table if you want global try net.tethering.noprovisioning 0 may help once i test ill post apn is<apn carrier="T-Mobile Tethering" apn="pcweb.tmobile.com" is apn information
ecompton59 said:
i fixed it thought it wasn't that hard testing had to do different then i did the 7 pro but it sticks. but that enable_dun global wont work past Android 8. its also in system table and usb is secure table if you want global try net.tethering.noprovisioning 0 may help once i test ill post apn is<apn carrier="T-Mobile Tethering" apn="pcweb.tmobile.com" is apn information
Click to expand...
Click to collapse
What
GuyInDogSuit said:
What
Click to expand...
Click to collapse
done apn sticks and works on 7t with dun enabled
Sporos said:
My device is an HD1907 T-mobile variant, running global firmware with magisk root and bluspark kernel on OxygenOS. Tethering is my only way of getting my laptop connected while at work, and on my old razer phone I got around this issue with settings put global tether_dun_required 0 in ADB. This doesn't seem to work on the OP7T, Even after setting the TTL on my laptop to 65.
I tried the command adb settings put global tether_dun_apn tethering,fast.t-mobile.com,,,,,,,,,310,260,,dun as described in another post, and now my hotspot isn't working (nbd, I'll just keep using PDAnet for now.)
Does anybody have more information on how this all works in android 10 and how we could get around T-mobile's artificially imposed, unusable tethering speeds? PDAnet works good for me however some of the linux apps I use don't work behind a proxy and I'd like to use the built in hotspot.
Also, could somebody ADB to their phone and enter: settings get global tether_dun_apn and give me the output so I can set mine back to default? (should've done it first myself, I know.) Any help or information is appreciated, thank you.
Click to expand...
Click to collapse
https://forum.xda-developers.com/oneplus-7t/how-to/easy-tether-fix-magisk-mod-t4075639 theres the fix i put it up working great
Found a new method that's working for me. You need to add these apn settings and use ttl editor to set ttl to 65. I'm getting 30mb down over usb tethering:
I'm using a different phone now but it should work fine as long as you can set these apn settings in OOS.
ecompton59 said:
<apn carrier="T-Mobile Tethering" apn="pcweb.tmobile.com" is apn information
Click to expand...
Click to collapse
I think the key is to make sure the domain is tmobile.com, without the hyphen. The subdomain "fast" works with DUN on my OP7T. I also set APN protocol to IPv4, but this does not appear to have been necessary. This results in full up/down of 130/33 on my best test.
Just something to try for fun, with Verizon I kill ipv6 via teminal (# sysctl -w net.ipv6.conf.all.disable_ipv6=1) before enabling the hotspot and set it back to =0 once my device has connected to the hotspot and this results in uncapped speeds, no idea if applicable here but thought I'd share.
Ttl=65 obviously a must on device wanting to connect to hotspot. Good luck!
LastSilmaril said:
I think the key is to make sure the domain is tmobile.com, without the hyphen.
Click to expand...
Click to collapse
It appears that eventually the OS (I am on OP11 Beta 4) will eventually complain that dun is not allowed, however initially, omitting the hyphen appears to be a good workaround. Using 'pcweb' in the APN type field still works though, and this appears to be enough. I have not had to change ttl on the one client device I've tried it with. That said I have not tried long-term testing.
I just switched from a OnePlus 6T to an iPhone 12 mini today. I have been using this solution by Sporos up until now to bypass mobile hotspot usage through T-Mobile. Does anyone know if this same method can be used to accomplish on an iPhone? iPhones have APN settings too, but the fill-in spots are not as in depth. If no one is familiar, do you at least know which fill-in spots are the ones making the workaround happen?
***I do not want to jailbreak my device***

Question TTL, APN, and Hotspot Setting Help(AKA Free & Unlimited Native Hotspot)

Hello
I'm going to start off with I don't think there is a resolution to my problem but maybe someone knows a different method.
I have the US Unlocked ZFold 4 (SM-F936U1)
What I have been able to do so far.
1. Setup Custom APN to add "dun" to the "APN Type" setting
2. Add IPv4 support back into the custom APN
3. Changed TTL on the client (In my case Windows 11 via reg edit method)
Method:
In Reg Edit go to -> HKEY_LOCAL_MACHINE subtree, go to the following key: \SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Add REG_DWORD "DefaultTTL"
Set to 65(dec)
4. Profit
This lets me use the Native hotspot without a cap or even paying for it .....HOWEVER. Having to change the TTL on each client device is such a pain or not even possible on say an XBOX or Smart TV. I want to be able to change it on the phone directly but there does not seem to be a way with out root.
There is a Terminal Command that seems to do this "cat /proc/sys/net/ipv4/ip_default_ttl 65" but I get an error and I think this is because you need root to make this change.
Are there any ways to change this or am I just stuck only being able to use the hotspot on clients I can change the TTL?
81 Views no replys :/ as I assumed no way to change this.
Maybe this can change going forward. Until then I want for a root method for the US unlocked version.
xVoidx said:
81 Views no replys :/ as I assumed no way to change this.
Maybe this can change going forward. Until then I want for a root method for the US unlocked version.
Click to expand...
Click to collapse
I can't change the apn
Unlocked fold 4 USA variant
Poopnasty said:
I can't change the apn
Unlocked fold 4 USA variant
Click to expand...
Click to collapse
You can't change the current APN but you can add a new APN and manually copy in the same thing for each field. Verify it works first before making any changes. It should work without issue as long as you copy everything exactly as it is from the one you can't edit. From there you can add "dun" to the APN type field and it will work with the native hot spot. Keep in mind you need to change the TTL on the client device you are connecting to the hotspot. This is not always possible, however it is on a Mac or a PC.

Categories

Resources