-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":944,"versionName":"2111231630","enabled":true,"outputFile":"ICProtocol81_V944_2111231630_release.apk","fullName":"release","baseName":"release"},"path":"ICProtocol81_V944_2111231630_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":955,"versionName":"2203302017","enabled":true,"outputFile":"ICProtocol81_V955_2203302017_release.apk","fullName":"release","baseName":"release"},"path":"ICProtocol81_V955_2203302017_release.apk","properties":{}}]
\ No newline at end of file
}
public void startGpsLocate() {
+ //唤醒Doze模式到激活状态,要不然GPS有可能不工作
+ PowerManager powerManager = (PowerManager) runtime.getContextProxy().context.getSystemService(Context.POWER_SERVICE);//true为打开,false为关闭
+ if(!powerManager.isScreenOn()){
+ runtime.getContextProxy().context.sendBroadcast(new Intent("com.ic.action.wake_up_doze"));
+ }
boolean FactoryModeOpening = DeviceInfoUtil.isFactoryTestTopActivity(runtime.getContextProxy().context);
boolean needReOpenGPS = runtime.getFactoryTestingStat();
// }
// }else {
Deliver.sendLocationMSG(msg);
+ //add k.liang 发完GPS数据后,让doze模式进入下一个阶段状态,以保证来能快速进入Doze的深睡状态
+ PowerManager powerManager = (PowerManager) runtime.getContextProxy().context.getSystemService(Context.POWER_SERVICE);//true为打开,false为关闭
+ if(!powerManager.isScreenOn()){
+ runtime.getContextProxy().context.sendBroadcast(new Intent("com.ic.action.sleep_doze"));
+ }
// }
}
isLocating = false;
startCheckTime = 0L;
isWifiScanning = false;
+ stopGpsLocate();
// ICLogger.i(" stopCheckLocationResult Done ");
}
//响应定位指令
if ("StartLocate".equals(paramStringMessage.cmd())) {
forceLocation = 1;
- this.startLocationProcess(runtime.getLocationInstance().getWorkingMod());
+ //this.startLocationProcess(runtime.getLocationInstance().getWorkingMod());
+ this.triggerLocationProcess();
} else if ("setWorkMod".equals(paramStringMessage.cmd())) {
//此处不负责给工作模式赋值,在API接收的位置能够直接拿到变量,可以直接赋值较方便。
int mod = runtime.getLocationInstance().getWorkingMod();
# For customization when using a Version Control System, please read the\r
# header note.\r
#Mon Sep 06 17:17:01 CST 2021\r
-sdk.dir=E\:\\Android\\Sdk\r
+sdk.dir=D\:\\android\\Android\\sdk\r