agent-bigo/app/src/main/java/com/example/studyapp/utils/DeviceUtils.java

27 lines
718 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.example.studyapp.utils;
public class DeviceUtils {
// 加载本地库
static {
try {
System.loadLibrary("native");
} catch (UnsatisfiedLinkError e) {
e.printStackTrace();
}
}
/** 设置设备ID */
public static native void setDeviceId(String deviceId);
/** 更新Boot ID */
public static native void updateBootId(String newBootId);
/** 获取系统信息 */
public static native long[] getSysInfo();
/** 修改CPU信息需系统权限 */
public static native boolean cpuInfoChange(String path);
/** 修改内存大小,需系统权限 */
public static native boolean changeMemSize(String path);
}