Identify Android devices from PC programmatically

Tutorials with advanced 'difficulty' and more Lines of Code.

Identify Android devices from PC programmatically

Postby nold » Thu Feb 23, 2012 10:36 am

can you help me please with the following issue?

I have a WiFi network with several mobile devices/ smartphones (e.g.: Samsung). I know their IPs, but wish to identify them programatically from my PC without installing any app on them (e.g.: "noldS2" - "GT 9100" - "Android 2.3.5" .. friendly name - device name - os)

there were various methods described on the internet, but ActiveSync seems to be the best. I've investigated and attempted to connect at the devices using OpenNETCF, RAPI [..] without luck. (also investigated other methods like port scans which seem less accurate)

how could i use ActiveSync to programatically identify the mobile devices connected to WiFi from my PC without needing special apps or permissions from them?

thank you and have a great day forwards!
nold
Freshman
Freshman
 
Posts: 2
Joined: Tue Feb 21, 2012 6:28 pm

Top

Re: Identify Android devices from PC programmatically

Postby aj87uk » Thu Feb 23, 2012 2:58 pm

ActiveSync and its replacement Windows Mobile Device Center are for connecting to Windows Mobile (and possibly Windows Phone 7) devices via a USB cable. Not Android devices!

The only way to communicate with an Android device without installing an app is via a USB cable and using the Android Debug Bridge (ADB) you must first enable USB debugging on the device though. This would not tell you what the device is rather give you a unique ID for each device.

Over the ADB you can push apps directly to the device to make it show the information you are after but it is not possible without another app.

Your wifi communication idea would require an app already installed on the phone listening on a port and replying with the information you wanted.

I hope this helps or at least saves you wasting more time with ActiveSync!
aj87uk
Freshman
Freshman
 
Posts: 2
Joined: Thu Mar 03, 2011 10:27 am

Re: Identify Android devices from PC programmatically

Postby nold » Thu Feb 23, 2012 4:47 pm

thank you aj87uk for the reply.

unfortunately, only WiFi connection is possible. As an example, Samsung Kies offers possibility to connect on WiFi via ActiveSync (Galaxy S2); the connection needs to be initiated from the phone. Monitoring communication, i saw some ports opened by the phone to identify itself (ports that are closed by default, closed even after hand-shaking... surely for security issues).

Unfortunately, i can't identify the phone with communication initiated from PC via WiFi. According to wiki, there are (some) Android phones using ActiveSync protocol. ActiveSync also offers discovery mechanisms (the phone did show a list of all computers where it could connect).

I'm not expecting to identify all possible Android devices, but the requirement is to identify via WiFi without anything installed on them.

is there any better mechanism that would allow this to happen?
nold
Freshman
Freshman
 
Posts: 2
Joined: Tue Feb 21, 2012 6:28 pm

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 12 guests