获取android手机、平板的ID

Secure.getString(getContentResolver(), Secure.ANDROID_ID)

本人已经测试,手机和pad都能用。

原文地址:https://www.cnblogs.com/wangyuehome/p/2959020.html