Here you can find the source of generateUUID()
public static String generateUUID()
//package com.java2s; //License from project: Apache License import java.util.UUID; public class Main { /**/*from www . j a v a2 s . c o m*/ * Generate Samsung uuid. * format: 4a682b0b-0361-dbae-6155-XXXXXXXXXXXX * * @return the string */ public static String generateUUID() { String uuid_prefix = "4a682b0b-0361-dbae-6155"; String uuid = String.valueOf(UUID.randomUUID()); String uuid_suffix = uuid.substring(uuid.lastIndexOf("-")); return uuid_prefix + uuid_suffix; } }