JLChen
2019-12-05 ec3f0ff822398d752511d516d0f3873e24c3fd41
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
45
46
47
48
49
50
51
52
package com.mediatek.elian;
 
/**
 * Created by yangyuan on 12/17/14.
 */
public class ElianNative {
    static {
//        System.loadLibrary("elianjni");
    }
 
    public ElianNative()
    {
 
    }
 
    public static boolean LoadLib() 
    {
        try {
            System.loadLibrary("elianjni");
            return true;
        } catch (UnsatisfiedLinkError ule) {
            System.err.println("WARNING: Could not load elianjni library!");
            return false;
        }
    }
    
    public native int GetProtoVersion();
 
    public native int GetLibVersion();
    
    /*
     * Init SmartConnection
     */
    public native int InitSmartConnection(String Target, int sendV1, int sendV4);
 
    /**
     * Start SmartConnection with Home AP
     *
     * @SSID : SSID of Home AP
     * @Password : Password of Home AP
     * @Auth : Auth of Home AP
     */
    public native int StartSmartConnection(String SSID, String Password, String Custom);
 
    /**
     * Stop SmartConnection by user
     *
     */
 
    public native int StopSmartConnection();
 
}