Looking for unique device identification id/string on n900
Hello, hello.
Something that may be useful to other app developers, especially if tying in mobile apps to web apps and vice versa - I feel like there is an easily accessible Unique ID string for every device, like a mac address. Does this exist? If so, any ideas how to access it? (bonus points if it's in python) |
Re: Looking for unique device identification id/string on n900
The IMEI number of the device can be retrieved:
dbus-send --system --print-reply --type=method_call --dest=com.nokia.phone.SIM /com/nokia/phone/SIM/security Phone.Sim.Security.get_imei (Sorry, no Python example; I don't know python-dbus and my dbus-glib knowledge is quite bad anyway...) Two things returned (in this order): * IMEI as a string * An int32 (which says 0 here) |
Re: Looking for unique device identification id/string on n900
An n8x0 Python hack to get MAC address:
Code:
import os |
Re: Looking for unique device identification id/string on n900
Quote:
|
Re: Looking for unique device identification id/string on n900
Could one not install something like macchanger to spoof or get mac? I've used such a thing on Ubuntu a few years back when messing with WEP cracking.
|
Re: Looking for unique device identification id/string on n900
Quote:
|
Re: Looking for unique device identification id/string on n900
Linux uses vendor:device hex codes as in 046d:c03f for my Logitech mouse. Udev uses these to identify devices as well in /lib/udev/rules.d. Here's an example of rule file 50-video.rules which I created to set special mount points for video devices.
KERNEL=="video*", SYSFS{vendor}=="0x4444", SYSFS{device}=="0x0016", SYSFS{name}=="ivtv0 encoder MPEG", SYMLINK+="video/pvr150" KERNEL=="video*", SYSFS{vendor}=="0x109e", SYSFS{device}=="0x036e", SYMLINK+="video/bttv" KERNEL=="video*", SYSFS{vendor}=="0x046d", SYSFS{device}=="0x092e", SYMLINK+="video/webcam" Hopefully this will give you some hints on where to look as it relates to Nokia tablets. |
Re: Looking for unique device identification id/string on n900
Linux uses vendor:device hex codes as in 046d:c03f for my Logitech mouse. Udev uses these to identify devices as well in /lib/udev/rules.d. Here's an example of rule file 50-video.rules which I created to set special mount points for video devices.
KERNEL=="video*", SYSFS{vendor}=="0x4444", SYSFS{device}=="0x0016", SYSFS{name}=="ivtv0 encoder MPEG", SYMLINK+="video/pvr150" KERNEL=="video*", SYSFS{vendor}=="0x109e", SYSFS{device}=="0x036e", SYMLINK+="video/bttv" KERNEL=="video*", SYSFS{vendor}=="0x046d", SYSFS{device}=="0x092e", SYMLINK+="video/webcam" Hopefully this will give you some hints on where to look as it relates to Nokia tablets. Note that will identify the device as in vendor and model and isn't like a mac address which identifies a port on the network. |
Re: Looking for unique device identification id/string on n900
Quote:
|
Re: Looking for unique device identification id/string on n900
Quote:
ip link set wlan0 address 11:22:33:44:55:66 ...but one has to have ip tools installed, which I didn't find last time I tried n900 with RDA... :-/ and the device driver has to support this functionality, of course :) |
All times are GMT. The time now is 02:23. |
vBulletin® Version 3.8.8