I am creating an in house app to communicate with a soap server. In the app setup the user saves his username and password which is sent to the server for verification when he posts soap packets. I want further validation of the user and thought maybe sending the device phone number to be used for validation on the server but then tablets don't have phone number and I want the app to be used on both phones and tablets. So I figure every device will have a MAC address.
How do I get the MAC address of the Android device? I did a search and did not find an answer.
Of course, the MAC address will need to be saved in the users profile on the server so it can be compared to the device MAC address.
yes - you are right - the phone, or maybe even the tablet, may not have wi-fi and would not have a mac address. But does a tablet have an Android ID? I need a unique device identifier whether the device is a phone or a tablet.
I don't think.
Once while rooting my phone i bricked it :sign0137: .I downloaded original version by the device vendor then then unbricked it using Odin. When i checked old android id in a file i made and current android id both were different and changed.There are millions of android devices may be this new id will match any.
Since then i tried 2-3 times all times android id's were different.So i think that it is not unique for all devices it doesn't depends upon hardware.
And probably MAC address's are also changed and even they can be changed using superuser permission.