lzh
3 days ago 9e3ee0fb3332f604000c20863cece6a09ad23f90
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
package android.app;
 
import android.os.IZysjSystemService;
 
import java.util.List;
import java.util.Map;
 
import javax.naming.Context;
 
public class ZysjSystemManager {
    IZysjSystemService mService;
 
    public static final String STATIC_IP = "ip";
    public static final String STATIC_GATEWAY = "gateway";
    public static final String STATIC_NETMASK = "netmask";
    public static final String STATIC_DNS1 = "dns1";
    public static final String STATIC_DNS2 = "dns2";
 
    public ZysjSystemManager(Context context, IZysjSystemService service) {
        mService = service;
    }
 
    public void execSuCmd(String command) {
        mService.execSuCmd(command);
    }
 
    public int get_zysj_gpio_value(int which) {
        return mService.get_zysj_gpio_value(which);
    }
 
    public int set_zysj_gpio_value(int which, int value) {
        return mService.set_zysj_gpio_value(which, value);
    }
 
    public String zYgetDeviceKernelInfo() {
        return mService.zYgetDeviceKernelInfo();
    }
 
    public int setTimeToRtc(int cmd, String date, String time) {
        return mService.setTimeToRtc(cmd, date, time);
    }
 
    public int zYRebootSys() {
        return mService.zYRebootSys();
    }
 
    public int zYShutdownSys() {
        return mService.zYShutdownSys();
    }
 
    public int zYSystemStatusBar(int cmd) {
        return mService.zYSystemStatusBar(cmd);
    }
 
    public int zYSystemNavigationBar(int cmd) {
        return mService.zYSystemNavigationBar(cmd);
    }
 
    public byte[] readDataFromCh34Flash() {
        return mService.readDataFromCh34Flash();
    }
 
    public int witeDataToCh34Flash(String flashData) {
        return mService.witeDataToCh34Flash(flashData);
    }
 
    public String getPowerOnTimeFromCh34() {
        return mService.getPowerOnTimeFromCh34();
    }
 
    public int getPowerOnTimeStatus() {
        return mService.getPowerOnTimeStatus();
    }
 
    public int setWatchDogConfigToCh34(int time, boolean enable) {
        return mService.setWatchDogConfigToCh34(time, enable);
    }
 
    public int getWatchDogStatus() {
        return mService.getWatchDogStatus();
    }
 
    public int feedWatchDog() {
        return mService.feedWatchDog();
    }
 
    public int getWatchDogTimeout() {
        return mService.getWatchDogTimeout();
    }
 
    public int getMcuVersion() {
        return mService.getMcuVersion();
    }
 
    public String zYShotScreen(String picPath, String fileName, int screenId) {
        return mService.zYShotScreen(picPath, fileName, screenId);
    }
 
    public int zYresetSys() {
        return mService.zYresetSys();
    }
 
    public int zYgetBackLight() {
        return mService.zYgetBackLight();
    }
 
    public int zYsetBackLight(int backageLight) {
        return mService.zYsetBackLight(backageLight);
    }
 
    public int zYgetScreenDirection() {
        return mService.zYgetScreenDirection();
    }
 
    public int zYsetScreenDirection(int rotate) {
        return mService.zYsetScreenDirection(rotate);
    }
 
    public boolean zYsetSysTime(String time) {
        return mService.zYsetSysTime(time);
    }
 
    public boolean zYsetTimeZone(String timeZone) {
        return mService.zYsetTimeZone(timeZone);
    }
 
    public void zYsetAdbWiress(boolean enable) {
        mService.zYsetAdbWiress(enable);
    }
 
    public void zYsetAdb(boolean enable) {
        mService.zYsetAdb(enable);
    }
 
    public String zYgetApiVersion() {
        return mService.zYgetApiVersion();
    }
 
    public String zYgetEthIp(String iface) {
        return mService.zYgetEthIp(iface);
    }
 
    public String zYgetEthMacAddress(String iface) {
        return mService.zYgetEthMacAddress(iface);
    }
 
    public String zYgetEthGateway(String iface) {
        return mService.zYgetEthGateway(iface);
    }
 
    public String zYgetEthNetMask(String iface) {
        return mService.zYgetEthNetMask(iface);
    }
 
    public String zYgetEthDns1(String iface) {
        return mService.zYgetEthDns1(iface);
    }
 
    public String zYgetEthDns2(String iface) {
        return mService.zYgetEthDns2(iface);
    }
 
    public int zYgetEthernetIfaceState(String iface) {
        return mService.zYgetEthernetIfaceState(iface);
    }
 
    public boolean zYsetEthernetEnabled(String iface, boolean enabled) {
        return mService.zYsetEthernetEnabled(iface, enabled);
    }
 
    public void zYsetEthernetParams(String iface, int mode, Map<String, String> params) {
        mService.zYsetEthernetParams(iface, mode, params);
    }
 
    public String zYgetWifiIp() {
        return mService.zYgetWifiIp();
    }
 
    public String zYgetWifiMacAddress() {
        return mService.zYgetWifiMacAddress();
    }
 
    public String zYgetWifiNetMask() {
        return mService.zYgetWifiNetMask();
    }
 
    public String zYgetWifiGateway() {
        return mService.zYgetWifiGateway();
    }
 
    public String zYgetWifiDns1() {
        return mService.zYgetWifiDns1();
    }
 
    public String zYgetWifiDns2() {
        return mService.zYgetWifiDns2();
    }
 
    public void zYsetWifiParams(int mode, Map<String, String> params) {
        mService.zYsetWifiParams(mode, params);
    }
 
    public int setPowerOnOffTime(String time, int powerType) {
        return mService.setPowerOnOffTime(time, powerType);
    }
 
    public void setOutputChannel(int channel) {
        mService.setOutputChannel(channel);
    }
 
    public int getOutputChannel() {
        return mService.getOutputChannel();
    }
 
    public int ZYSystemBar(int cmd) {
        return mService.ZYSystemBar(cmd);
    }
 
    public int zYSystemBar(int cmd) {
        return mService.zYSystemBar(cmd);
    }
 
    public String setHotspot(String ssid, String password, boolean enabled) {
        return mService.setHotspot(ssid, password, enabled);
    }
 
    public boolean setWiFiSsid(String ssid) {
        return mService.setWiFiSsid(ssid);
    }
 
    public boolean setWiFiPassword(String password) {
        return mService.setWiFiPassword(password);
    }
 
    public void setWiFiApSW(boolean enabled) {
        mService.setWiFiApSW(enabled);
    }
 
    public void addWhiteList(List<String> list) {
        mService.addWhiteList(list);
    }
 
    public void deleteWhiteList(List<String> list) {
        mService.deleteWhiteList(list);
    }
 
    public List queryWhiteList() {
        return mService.queryWhiteList();
    }
 
    public void keepAlive(int timeOut, String packageName, String className) {
        mService.keepAlive(timeOut, packageName, className);
    }
 
    public int installAPK(String filePath) {
        return mService.installAPK(filePath);
    }
 
    public String getCpuUsage() {
        return mService.getCpuUsage();
    }
 
    public int watchDogFeed() {
        return mService.watchDogFeed();
    }
 
    public int watchDogEnable(int enabled, int timeOut) {
        return mService.watchDogEnable(enabled, timeOut);
    }
 
    public int ZYRebootSys() {
        return mService.ZYRebootSys();
    }
 
    public String zYgetEthGatWay() {
        return mService.zYgetEthGatWay();
    }
 
    public String zYgetWifiGatWay() {
        return mService.zYgetWifiGatWay();
    }
 
    public boolean getWiFiApSW() {
        return mService.getWiFiApSW();
    }
 
    public void bootstrap(String packageName, String className, boolean enabled) {
        mService.bootstrap(packageName, className, enabled);
    }
 
    public void whiteListSwitch(boolean enable) {
        mService.whiteListSwitch(enable);
    }
 
    public boolean whiteListSwitchState() {
        return mService.whiteListSwitchState();
    }
 
    public void whiteListSwitchUn(boolean enable) {
        mService.whiteListSwitchUn(enable);
    }
 
    public boolean whiteListSwitchStateUn() {
        return mService.whiteListSwitchStateUn();
    }
 
    public void addWhiteListUn(List<String> list) {
        mService.addWhiteListUn(list);
    }
 
    public void deleteWhiteListUn(List<String> list) {
        mService.deleteWhiteListUn(list);
    }
 
    public List queryWhiteListUn() {
        return mService.queryWhiteListUn();
    }
}