I am trying to get some information about android devices using python my goal is here:
getting the model name(if possible)
getting the manufacturer’s name (if possible)
getting device id
I have tried to get a mac id using UUID
import uuid
# printing the value of unique MAC
# address using uuid and getnode() function
result = (hex(uuid.getnode()))
print(result)
it is worked on my pc but on my android when I run it 0x142d276a20b2 it generated id but if I run it again generated different IDs all time. how can I get a static id of an android device?
understand. I have a ready project. I want to sell it but first I have to make sure it runs only on my customer’s devices. I managed to do that on pc but on android, I can not find any solution to identify the device.