I'm trying to throttle my device's network connection while testing it on Android studio. My strategy will be to try and reverse tether the phone to my macbook Air so the computer acts as a hotspot. The computer will be connected to the internet via wifi, and should be acting as an internet hotspot for any paired devices.
However the internet connectivity is never set, so the android device never connects online.
What I did:
- Turn on network sharing via Wi-Fi, checked the Blue Tooth Pan Option.
- Paired the devices (i.e. the phone is detected by the macbook and vice/versa.
- Set up a static IP on the blue tooth pan configuration (see image).
And here is my Bluetooth setup on the device:
My phone is not rooted and frankly I'd rather not have to root it - but for some reason the phone is not detecting Bluetooth on the macbook air. But the macbook does detect the phone and is able to send files to it.
What gives?
I did working reverse tethering from MacBook Pro El Capitan to android mobile. Sharing the network Macbook Pro with Bluetooth PAN.
The trick is, to have android mobile rooted. First connect your mobile to any wifi, change advanced network options in mobile as Static IP, 192.168.2.1 router 192.168.2.1 DNS 8.8.8.8 8.8.4.4.
With terminal emulator apk, enter: su dhcpcd bt-pan
Now you can close your wifi in mobile.
be sure you have bluetooth pan configured as "Use DHCP with manual address" option matching same IP and DNS your put in android.
Note; of course android paired with the macbook, and sharing network and sharing bluetooth options active.
All working very stable.