Is it possible to get the unique device id (UUID) into a variable?

24fun

New member
Is it possible to get the unique device id into a variable, so I can respond to a specific sms with this ID?
 

MacroDroidDev

Administrator
Staff member
I'm afraid there is currently no easy way I know of to do this. Firstly there is not really any such thing as a single well defined unique device id on Android. The typical approach recommended on Android is to generate a unique UUID on first app run and then this becomes an app instance id but it is specific and private to each app. I do have such as UUID but it's not currently exposed in any way to be able to get at.

It could also be possible to use the device's MAC address as a unique identifier. I tried to get this into a variable using the following shell script:
shell "ip addr show wlan0 | grep 'link/ether '| cut -d' ' -f6"

Unfortunately this will only work on a rooted device, so it's not really a universal solution

If you think it's useful I could expose the MacroDroid UUID in magic text so you can get at it?
 

24fun

New member
First of all, thank you very much for your response. Maybe my question was a little bit too short, and yes, what I want to get is the MacroDruid UUID that ist used for webhooks (or the webhook link at all).
This would make it possible to send an SMS to a tablet (these tablets are all serviced remotely and are used in emergency cars to push them address of an alert, find there psositions etc.) and the tablet to respond with it's webhook Url (or the UUID, then I can concat the url myself).
Would be extremly useful for me!
 
Top