Untitled

 avatar
unknown
plain_text
a year ago
558 B
11
Indexable
public static String generateDeviceSpecificGUID() {
    String deviceInfo = "35" +
    Build.BOARD.length() % 10 + Build.BRAND.length() % 10 +
    Build.CPU_ABI.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.length() % 10 +
    Build.USER.length() % 10;
return new UUID(deviceInfo.hashCode(), Build.SERIAL.hashCode()).toString();
}
Editor is loading...
Leave a Comment