desc:新平台代码 to rtsp
# Conflicts: # app/src/main/java/com/yinuo/safetywatcher/watcher/utils/LztekUtil.ktmain
parent
b4b896bc3a
commit
725640f1b9
@ -0,0 +1,17 @@
|
||||
package com.yinuo.safetywatcher.watcher.utils;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
public class SnUtils {
|
||||
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;
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue