1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| package common;
|
| /**
| * @Description
| * @Author Forrest
| * @Mail 1255187617@qq.com
| * @Date 2021/1/12
| */
| public class Environment {
| private native int jniInit();
|
| private native int jniIsInit();
|
| private native void jniRelease();
|
| private native int statusCode();
|
| /**
| * 初始化环境
| */
| public int init() {
| return jniInit();
| }
|
| /**
| * 获取初始化状态
| */
| public int isInit() {
| return jniIsInit();
| }
|
| /**
| * 释放资源
| */
| public void release() {
| jniRelease();
| }
| /**
| *校验机器码
| * */
| // public int checkMachineCode(String mCode){
| // return statusCode();
| // }
| }
|
|