In the licensing documentation the android developers mention an easy way to more or less securely identify an android device. They are using android.Settings.Secure.ANDROID_ID.
They say they query the system settings for this. But they don't explain this any further.
How do I obtain the android_id and do I need special permissions for doing so?