|
|
|
@ -445,9 +445,9 @@ public class AppMaster {
|
|
|
|
|
int enable = jsonObject.optInt("enable", 1);
|
|
|
|
|
String name = jsonObject.optString("name", "XYMP");
|
|
|
|
|
if (enable != 0) {
|
|
|
|
|
SysApi.enableApp(mService.getApplicationContext(), name);
|
|
|
|
|
SysApi.openHotSpot(mService.getApplicationContext());
|
|
|
|
|
} else {
|
|
|
|
|
SysApi.disableApp(mService.getApplicationContext(), name);
|
|
|
|
|
SysApi.closeHotSpot(mService.getApplicationContext());
|
|
|
|
|
}
|
|
|
|
|
} else if (TextUtils.equals(cmd, CMD_ENABLE_GPS)) {
|
|
|
|
|
int enable = jsonObject.optInt("enable", 1);
|
|
|
|
|