天天看点

android 9.0 10.0 framework系统api添加jni方法

1.添加自定义类

android下新添加mdm文件夹

建立SystemUtils.java类

package android.mdm;
import android.util.Log;

public class SystemUtils {
   
    private native void native_setValue(int vlaue);
    private native int native_getValue();
    public int getValue() {
   
        Log.e("SystemUtils",
           

继续阅读