|
|
|
@ -567,6 +567,10 @@ public class MpMasterService extends Service {
|
|
|
|
|
if (appConfig.heartbeat > 0) {
|
|
|
|
|
mMpHeartbeatDuration = appConfig.heartbeat * 60000;
|
|
|
|
|
}
|
|
|
|
|
if(TextUtils.isEmpty(appConfig.cmdid))
|
|
|
|
|
{
|
|
|
|
|
appConfig.cmdid = MpMasterService.getSerialNumber();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
logger.warning("Start Mntn report: " + masterUrl + " MntnMode=" + (mMntnMode ? "1" : "0") + " QuickHB=" + (mQuickHbMode ? "1" : "0"));
|
|
|
|
|
|
|
|
|
@ -1347,6 +1351,7 @@ public class MpMasterService extends Service {
|
|
|
|
|
|
|
|
|
|
public native static int getInt(int cmd);
|
|
|
|
|
public native static int setInt(int cmd, int val);
|
|
|
|
|
public static native String getSerialNumber();
|
|
|
|
|
public native static int[] getStats(long ts);
|
|
|
|
|
public native static String getSystemProperty(String key);
|
|
|
|
|
public native static void rebootDevice();
|
|
|
|
|