Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use and purpose of Android.local

Recently I was looking at the Android-Things SDK, and I have installed it on my Raspberry Pi device.

To connect Raspberry Pi with ADB I have used:

adb connect <ip address>:5555

But then I have found something like this:

adb connect Android.local

Reference

By searching lot of things on Google I have not found anything related to Android.local. Is there any documentation about this or not?

like image 752
Ravi Avatar asked Jan 06 '17 06:01

Ravi


2 Answers

Also on operating systems like Windows that doesn't support mDNS out of the box you can install the Bonjour Service developed by Apple. The Bonjour Service provides a new command line tool for mDNS requests called dns-sd. Execute the following command to search for your Android Things device:

dns-sd -Q Android.local

The tool doesn't terminate and will continuously print out all devices with the passed FQDN. I connected my Raspberry Pi over Ethernet and WiFi. Because of that I get two addresses:

Timestamp     A/R Flags if Name                             T   C Rdata
22:18:47.771  Add     2 13 Android.local.                   1   1 192.168.x.123
22:18:51.247  Add     2 13 Android.local.                   1   1 192.168.x.124

Also changes will be tracked like a link down of my WiFi connection:

22:19:52.940  Rmv     0 13 Android.local.                   1   1 192.168.x.124
like image 125
ferraith Avatar answered Sep 22 '22 03:09

ferraith


Raspberry Pi broadcasts the hostname Android.local over Multicast DNS. So, if your PC supports MDNS, you can config like this link.

And this is document for mDNS

like image 29
ToanNV Avatar answered Sep 20 '22 03:09

ToanNV