Skip to content

Instantly share code, notes, and snippets.

@tokoiwesley
Created March 21, 2022 13:18
Show Gist options
  • Save tokoiwesley/27a644312fe657626996f4af0b77a276 to your computer and use it in GitHub Desktop.
Save tokoiwesley/27a644312fe657626996f4af0b77a276 to your computer and use it in GitHub Desktop.
Generate a unique Android Device ID
String s = Build.BOARD.length() % 10 +
Build.BRAND.length() % 10 +
Build.DEVICE.length() % 10 +
Build.DISPLAY.length() % 10 +
Build.HOST.length() % 10 +
Build.ID.length() % 10 +
Build.MANUFACTURER.length() % 10 +
Build.MODEL.length() % 10 +
Build.PRODUCT.length() % 10 +
Build.TAGS.length() % 10 +
Build.TYPE +
Build.USER.length() % 10;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment