0 like 0 dislike
74 views
in UnCategory by Q&A Professional (5.3k points)

Please log in or register to answer this question.

1 Answer

0 like 0 dislike
by Q&A Professional (5.3k points)
You can refer to below method,if it doesn't work,send the SN to us to check.

key:persist.sys.imei1/persist.sys.imei2

private static String getIMEI() {

    String imei = "";

    try {

        Class<?> c = Class.forName("android.os.SystemProperties");

        Method get = c.getMethod("get", String.class);

        imei = (String) get.invoke(c, "persist.sys.imei1");

        } catch (Exception e) {

        e.printStackTrace();

}

    return imei;

}

private static String getSerialNumber() {

    String serial = "";

    try {

        Class<?> c = Class.forName("android.os.SystemProperties");

        Method get = c.getMethod("get", String.class);

        serial = (String) get.invoke(c, "ro.serialno");

    } catch (Exception e) {

        e.printStackTrace();

    }

    return serial;

}

Related questions

0 like 0 dislike
1 answer 51 views
asked in T20 by jason Q&A Expert (11.0k points)
0 like 1 dislike
1 answer 42 views
0 like 0 dislike
1 answer 26 views
0 like 0 dislike
1 answer 56 views
asked in UnCategory by jason Q&A Expert (11.0k points)
0 like 0 dislike
1 answer 71 views
Welcome to Telpo Q&A,

If you have a technical question ,please ask here, in English.
.
If you have faulty devices need be repaired,please create a issue ticket.

Please inquiry your ticket.

Notice :If you have an urgent question or cannot register account of Q&A, you can contact the online support in below jivochat .
...