无需添加任何权限

public static String getDeviceSN(){
String serial = null;
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;
}

源码Demo:
链接: https://pan.baidu.com/s/1TZBbrDblhZ6we4Z3v-YHYA 密码: kl4k