[Question] Bluetooth PAN network on Jelly Bean and later

Airpil

Senior Member
Feb 12, 2007
258
73
0
Hello.
I am using n7000 like media device, music, games, video. SIM card is not installed. Most of the time I am share internet from my iPhone by Bluetooth PAN.

As I understood starting from Jelly Bean google replaced BlueZ Bluetooth stack by BlueDroid from Broadcom.
Problem is that Bluetooth PAN doesn't work on any JB rom ( stock custom or AOSP) that is why I am stack with ICS roms.

I tried to troubleshoot this issue, but unsuccessful.

By default n7000 receives ipv6 IP address from iPhone.

Dhcpcd bt-pan

makes possible to receive ipv4 address. So it possible to ping 8.8.8.8.

getprop net.dns1

Provides DNS of priveously connected WIFI network.

Setprop net.dns1 8.8.8.8

resets DNS settings, but name resolving still doesn't work.

QUESTIONS:

How to push OS to renew DNS settings?

How to rollback Bluetooth stack to BlueZ on JB and KIT-kat ROMs?

Ps
I am apologize for my bad English. :)


Sent from my iPhone using Tapatalk
 

Airpil

Senior Member
Feb 12, 2007
258
73
0
Ok.

After some additional troubleshooting i found that inside android exist several DNS settings per interface.
Also it seams that DHCP configured correctly only for wi-fi (wlan0) interface.
For bluetooth PAN (reverse tether) Android creates bt-pan interface and can't assign DNS settings correctly.
 

Airpil

Senior Member
Feb 12, 2007
258
73
0
Did you manage to solve this? I am stuck at the same situation you describe (with another device, KFHD7).
Root cause is that BT-PAN dont works correctly.
1 - bt-pan interface cant recive IP address from other device
2 - DNS settings is not updated after connection to BT PAN. Android device use DNS settings from previously connected Wi-Fi network/

workaround.

You have to connect to the Wi-Fi network (any). Then you have to open Wi-Fi settings and change it to STATIC.
Inside STATIC settings you have to set up manual DNS 8.8.8.8.

then you have to connect to BT PAN
and type in Mobile Terminal
1 - su
2 - dhcpcd bt-pan