I have an android device which is connected to a laptop via a usb connection.I need to get that laptop's mac address using an app which will be installed in the android device.
Can you suggest any ways to achieve this?Any help will be greatly appreciated.
My requirement is that i want to identify a pc machine using an android app.This app is in a device which is connected to that pc by a usb connection.when both device and laptop are connected, from time to time device needs to obtain the mac address of the connected laptop to distinguish it.
(As i found out so far, Adb,socket programming,etc is the way for this.)
netcfg
?adb
would be close to it, though when using android terminal you don't explicity useadb
unless its on PC. My thinking is, when a device is connected android is able to identify these interfaces which will be up or active. For example thermnet_usb0
and the commands shows all information of the connected device roght in terminal