-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":776,"versionName":"2104151936","enabled":true,"outputFile":"ICSer_V776_2104151936_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V776_2104151936_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":777,"versionName":"2104161453","enabled":true,"outputFile":"ICSer_V777_2104161453_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V777_2104161453_release.apk","properties":{}}]
\ No newline at end of file
this.invokeHandlerServiceChain.processAttach(this.connection, this.runtime);
// setAlarm(alarmCycle);
-
// if (Config.LOG_TOFILE) FileOutputUtil.fileOutput(runtime.getCacheDir(), "log", "初始化网络协议服务");
this.locationClient = new LocationClient(this.connection, this.runtime);
this.connection.open();
//启动inner Service
startService(new Intent(this, InnerService.class));
-
this.locationClient.init();
-
-
//设置本service为前台运行,不被会被清理
Notification notification = new Notification();
notification.flags = Notification.FLAG_ONGOING_EVENT;
//重置缓存中的在等待命令
Deliver.resetCMDReocrdsDB();
-
ReConnectToServer();
}
private void test() {
-
ICLogger.i("周一清除所有睡眠数据Record");
runtime.getDbHelper().deleteSleepData();
}
import com.enqualcomm.support.adapter.BTHelper;
import com.enqualcomm.support.adapter.LBSHelper;
-import com.enqualcomm.support.bean.EventLooperHandlerThread;
import com.enqualcomm.support.bean.ICLocation;
import com.enqualcomm.support.bean.Runtime;
import com.enqualcomm.support.bean.StringMessage;
public PowerManager.WakeLock getLocationWakeLock() {
- PowerManager.WakeLock wakeLock = ((PowerManager) (runtime.getContextProxy()).context.getSystemService(Context.POWER_SERVICE)).newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, this.getClass().getSimpleName());
+ PowerManager.WakeLock wakeLock = ((PowerManager) (runtime.getContextProxy())
+ .context.getSystemService(Context.POWER_SERVICE)).newWakeLock(
+ PowerManager.PARTIAL_WAKE_LOCK, this.getClass().getSimpleName());
wakeLock.acquire(1000L);
return wakeLock;
}
import android.content.Context;
+import android.database.Cursor;
+import android.net.Uri;
import android.os.RemoteCallbackList;
import com.enqualcomm.support.Config;
import com.enqualcomm.support.IFZDCallback;
import com.enqualcomm.support.adapter.LBSHelper;
+import com.enqualcomm.support.provider.FZDDatabaseHelper;
+import com.enqualcomm.support.provider.FZDSettingsProvider;
import com.enqualcomm.support.utils.ContextProxy;
import com.enqualcomm.support.utils.DBHelper;
import com.enqualcomm.support.utils.DnsUtil;
}
- public void updateFZDDevStatusLowbat(boolean lowbattery) {
+ private String getSettingsValue(String key) {
+ Cursor query = contextProxy.getResolver().query(Uri.parse(FZDSettingsProvider.SETTINGS),
+ new String[]{FZDDatabaseHelper.sValue},
+ FZDDatabaseHelper.sKey + "=?", new String[]{
+ key
+ }, null);
+ if (query != null) {
+ if (query.moveToNext()) {
+ return query.getString(0);
+ }
+ query.close();
+ }
+ return null;
+ }
+
+ //TODO:要判断是否开启低电量报警
+ public void updateFZDDevStatusLowbat(boolean lowbattery) {
+ //TODO:
if (lowbattery) {
fzdDevStatus |= 0x00000001;
fzdDevStatus |= 0x00020000;
}
}
+ //TODO:要判断是否支持防摘报警
public void updateFZDDevStatusWeared(boolean weared) {
if (weared) {
fzdDevStatus |= 0x00000008;
}
}
+
public void updateFZDDevStatusMoving(boolean moving) {
if (moving) {
fzdDevStatus &= ~0x00000010;
fzdDevStatus |= 0x00100000;
break;
case ALARM_FALL:
+ //TODO:判断是否需要监听跌到的状态上报
fzdDevStatus |= 0x00200000;
break;
case ALARM_ABNORMAL_HEART_RATE:
}
public interface MessageType {
+ int FRIEND_VOICE = 0;
int VOICE = 1;
int TEXT = 2;
int PIC = 3;
private static final int MATH_CODE_TABLE = 1;
public static final String PATH = "members";
- public static final String AUTHORITY = "com.ic.fzd.video-call";
+ public static final String AUTHORITY = "com.ic.fzd.members";
public static final String MEMBERS = "content://" + AUTHORITY + "/" + PATH;
-
static {
sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
sUriMatcher.addURI(AUTHORITY, PATH, MATH_CODE_TABLE);
-#Thu Apr 15 19:36:29 CST 2021
-VERSION_CODE=776
+#Fri Apr 16 14:53:25 CST 2021
+VERSION_CODE=777