rahulgurnani / sensorlog

Log the changes in sensors and sync them periodically
3 stars 0 forks source link

Issue on syncing in background #4

Open pradeepiisc opened 6 years ago

pradeepiisc commented 6 years ago

Whenever the app tries to sync in background or when we open, it gives an error of "Sync Account Error". Could you give a small flow diagram of how the flow should be when sending data to server on app launch or when in background. This will make it easy to debug. Thanks

rahulgurnani commented 6 years ago

Was it an error in SyncAdapter.java line number 36 ? ( can you see the logs), I addressed one such issue in the Pull request raised. To answer your question, the flow is : SyncAdapter is the class responsible for syncing, inside that the onPerformSync function is always called whenever Syncadapter.onPerformSync on I think sync thread. So, to see how syncing happens, go through syncSensorData(..) function in the SyncAdapter file. The idea is to convert raw readings into smaller aggregates per duration (something like 5 minutes), and sync them ...

pradeepiisc commented 6 years ago

2018-10-04 00:29:05.734 3244-3244/? D/Rajesh: 78 2018-10-04 00:29:05.743 2191-2191/? I/LatinIme: onActivate() : EditorInfo = Package = co.siempo.phone : Type = Text : Learning = Enable : Suggestion = Hide : AutoCorrection = Enable : Microphone = Show : NoPersonalizedLearning = Disable 2018-10-04 00:29:05.748 2191-2191/? W/VoiceImeTranscriptor: UIME feature enabled: true 2018-10-04 00:29:05.750 2191-2191/? W/VoiceImeTranscriptor: UIME feature enabled: true 2018-10-04 00:29:05.757 1334-1421/? D/CompatibilityInfo: mCompatibilityFlags - 10 2018-10-04 00:29:05.757 1334-1421/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:05.757 1334-1421/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:05.767 1334-1421/? D/CompatibilityInfo: mCompatibilityFlags - 10 2018-10-04 00:29:05.767 1334-1421/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:05.767 1334-1421/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:05.768 2191-2191/? I/Conv2QueryExtension: Current locale: en_IN, config allows these locales: de,en,fr,it,es,pt 2018-10-04 00:29:05.768 2191-2191/? I/Conv2QueryExtension: Conv2Query not enabled due to current app [co.siempo.phone] not in whitelist 2018-10-04 00:29:05.768 2191-2191/? I/Conv2QueryExtension: onActivate() : Disabled by unsupported host app 2018-10-04 00:29:05.768 2191-2191/? W/VoiceImeTranscriptor: UIME feature enabled: true 2018-10-04 00:29:05.772 2211-2211/? I/NavigationBarTransitions: applyDarkIntensity darkIntensity: 0.0 buttonDispatchers.size(): 6 2018-10-04 00:29:05.772 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 0 mVisibility = 4 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@7049ab3 2018-10-04 00:29:05.772 2211-2211/? I/ButtonDispatcher: setVisibility() : mVisibility = 0 this = com.android.systemui.statusbar.phone.ButtonDispatcher@7049ab3 2018-10-04 00:29:05.772 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 4 mVisibility = 4 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@a60022 2018-10-04 00:29:05.772 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 4 mVisibility = 4 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@d8a9870 2018-10-04 00:29:05.773 2363-18245/? E/NetworkScheduler: Invalid component specified. 2018-10-04 00:29:05.773 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 0 mVisibility = 0 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@fd0d417 2018-10-04 00:29:05.773 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 0 mVisibility = 0 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@d538004 2018-10-04 00:29:05.773 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 0 mVisibility = 0 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@4a6e9ed 2018-10-04 00:29:05.774 2211-2211/? I/StatusBar/NavBarView: setDisabledFlags disabledFlags: 0 disableBack: false disableHome: false disableRecent: false 2018-10-04 00:29:05.774 2211-2211/? I/NavigationBarTransitions: applyDarkIntensity darkIntensity: 0.0 buttonDispatchers.size(): 6 2018-10-04 00:29:05.781 2191-3681/? E/native: personalized-decoder.cc:769 Cannot create graph rescoring model. 2018-10-04 00:29:05.809 2191-2191/? I/FeaturePermissions: onSharedPreferenceChanged() : Key = pref_key_latest_ime_activation_time : Feature = null 2018-10-04 00:29:05.810 2191-2191/? I/FeaturePermissions: onSharedPreferenceChanged() : Key = latest_activation_time : Feature = null 2018-10-04 00:29:06.122 20833-20964/com.curefit.sensorapp:sync I/FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions. 2018-10-04 00:29:06.123 20833-20964/com.curefit.sensorapp:sync I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation 2018-10-04 00:29:06.301 2413-2413/? W/ResourceType: No package identifier when getting value for resource number 0x00000000 2018-10-04 00:29:06.303 2211-2360/? D/NetworkController.MobileSignalController(5): updateTelephony: hasService=true ss=SignalStrength: 99 0 -120 -160 -120 -1 -1 25 -95 -11 12 2147483647 0 2147483647 gsm|lte 99 99 2018-10-04 00:29:06.303 2211-2360/? I/NetworkController.MobileSignalController(5): updateVoiceNetworkType voiceNetType: 13 mCurrentState.connected: true 2018-10-04 00:29:06.308 2211-2360/? I/NetworkController.MobileSignalController(5): isShowSXLTEStyle: false isRoaming: false 2018-10-04 00:29:06.470 2191-2191/? I/PhenotypeExpConfig: refreshConfiguration() : Force = false : UpdateAvailable = false : Age = 34 minutes : MaxAge = 720 minutes 2018-10-04 00:29:06.472 2191-2191/? I/LatinIme: onDeactivate() 2018-10-04 00:29:06.474 1334-3221/? I/ActivityManager: Send message START_OTA_APP_MSG to handler 2018-10-04 00:29:06.475 1334-1421/? I/ActivityManager: Handle message START_OTA_APP_MSG ... 2018-10-04 00:29:06.475 1334-3221/? D/ActivityManager: userId2 =0 2018-10-04 00:29:06.475 1334-1421/? I/ActivityManager: Message Object: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.curefit.sensorapp cmp=com.curefit.sensorapp/.MainActivity } 2018-10-04 00:29:06.476 1334-1421/? I/ActivityManager: Candidate Number: 1 2018-10-04 00:29:06.476 1334-1421/? I/ActivityManager: APP OTA intent - Intent { act=com.evenwell.OTAUpdate.CHECK_APP_OTA flg=0x10000000 pkg=com.evenwell.OTAUpdate (has extras) } 2018-10-04 00:29:06.476 1334-1421/? I/ActivityManager: APP OTA intent extras - Bundle[{ORG_INTENT=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.curefit.sensorapp cmp=com.curefit.sensorapp/.MainActivity }, PKG_NAME=com.curefit.sensorapp}] 2018-10-04 00:29:06.476 1334-3221/? D/ActivityManager: resolveActivity - rInfo =ResolveInfo{1d0c72f com.curefit.sensorapp/.MainActivity m=0x0} 2018-10-04 00:29:06.476 2211-2211/? I/NavigationBarTransitions: applyDarkIntensity darkIntensity: 0.0 buttonDispatchers.size(): 6 2018-10-04 00:29:06.476 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 4 mVisibility = 0 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@7049ab3 2018-10-04 00:29:06.476 1334-1421/? I/ActivityManager: OTA_APP activity started. 2018-10-04 00:29:06.476 2211-2211/? I/ButtonDispatcher: setVisibility() : mVisibility = 4 this = com.android.systemui.statusbar.phone.ButtonDispatcher@7049ab3 2018-10-04 00:29:06.477 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 4 mVisibility = 4 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@a60022 2018-10-04 00:29:06.477 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 4 mVisibility = 4 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@d8a9870 2018-10-04 00:29:06.482 1334-1421/? D/CompatibilityInfo: mCompatibilityFlags - 0 2018-10-04 00:29:06.482 1334-1421/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.482 1334-1421/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.483 1334-3221/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.curefit.sensorapp cmp=com.curefit.sensorapp/.MainActivity} from uid 10249 2018-10-04 00:29:06.485 5735-5735/? D/OTAUpdate: [OTAReceiver] Receive action: com.evenwell.OTAUpdate.CHECK_APP_OTA 2018-10-04 00:29:06.486 5735-5735/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1476 android.content.ContextWrapper.startService:650 android.content.ContextWrapper.startService:650 com.evenwell.OTAUpdate.OTAReceiver.invokeCheckAPPOTA:332 com.evenwell.OTAUpdate.OTAReceiver.onReceive:189 2018-10-04 00:29:06.498 1334-3221/? D/ActivityTrigger: activityStartTrigger: Activity is Triggerred in full screen ApplicationInfo{b1c6d27 com.curefit.sensorapp} 2018-10-04 00:29:06.499 1334-3221/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.curefit.sensorapp/com.curefit.sensorapp.MainActivity/1 2018-10-04 00:29:06.499 1334-3221/? D/CompatibilityInfo: mCompatibilityFlags - 0 2018-10-04 00:29:06.499 1334-3221/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.499 1334-3221/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.500 1334-3221/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{b1c6d27 com.curefit.sensorapp} is now in focus and seems to be in full-screen mode 2018-10-04 00:29:06.500 1334-3221/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.curefit.sensorapp/com.curefit.sensorapp.MainActivity/1 2018-10-04 00:29:06.500 1334-3221/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger 2018-10-04 00:29:06.503 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 0 mVisibility = 0 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@fd0d417 2018-10-04 00:29:06.503 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 0 mVisibility = 0 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@d538004 2018-10-04 00:29:06.503 2211-2211/? I/ButtonDispatcher: setVisibility() : visibility = 0 mVisibility = 0 mIsTemporaryInvisible = false this = com.android.systemui.statusbar.phone.ButtonDispatcher@4a6e9ed 2018-10-04 00:29:06.503 2211-2211/? I/StatusBar/NavBarView: setDisabledFlags disabledFlags: 0 disableBack: false disableHome: false disableRecent: false 2018-10-04 00:29:06.503 2211-2211/? I/NavigationBarTransitions: applyDarkIntensity darkIntensity: 0.0 buttonDispatchers.size(): 6 2018-10-04 00:29:06.504 5735-5735/? D/OTAUpdate: [OTAService] onStart() receive action: ACTION_CHECK_APP_OTA_SERVICE. status: STATUS_NONE(0) 2018-10-04 00:29:06.506 1334-2050/? I/PhoneWindow: isNeedChangeStatusBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@e50f872] size: 1 2018-10-04 00:29:06.506 1334-2050/? I/PhoneWindow: isAPPNeedChangeSBColor pkgName: com.curefit.sensorapp needKeep: false 2018-10-04 00:29:06.506 1334-2050/? I/PhoneWindow: isNeedChangeStatusBarColor false 2018-10-04 00:29:06.507 5735-21143/? W/System.err: org.json.JSONException: End of input at character 0 of 2018-10-04 00:29:06.507 5735-21143/? W/System.err: at org.json.JSONTokener.syntaxError(JSONTokener.java:449) 2018-10-04 00:29:06.507 5735-21143/? W/System.err: at org.json.JSONTokener.nextValue(JSONTokener.java:97) 2018-10-04 00:29:06.507 5735-21143/? W/System.err: at org.json.JSONArray.(JSONArray.java:92) 2018-10-04 00:29:06.507 5735-21143/? W/System.err: at org.json.JSONArray.(JSONArray.java:108) 2018-10-04 00:29:06.507 5735-21143/? W/System.err: at com.evenwell.OTAUpdate.PackageHandler.DeserializeAPKInfo(PackageHandler.java:1176) 2018-10-04 00:29:06.507 5735-21143/? W/System.err: at com.evenwell.OTAUpdate.OTAService.CheckAPKNextCheckTime(OTAService.java:4001) 2018-10-04 00:29:06.507 5735-21143/? W/System.err: at com.evenwell.OTAUpdate.OTAService.access$6700(OTAService.java:75) 2018-10-04 00:29:06.507 5735-21143/? W/System.err: at com.evenwell.OTAUpdate.OTAService$26.run(OTAService.java:4691) 2018-10-04 00:29:06.507 5735-21143/? W/System.err: at java.lang.Thread.run(Thread.java:764) 2018-10-04 00:29:06.509 5735-21143/? D/OTAUpdate: [ReceiverRestrictedContext] writeAutoUpdateConfig(), enable:true 2018-10-04 00:29:06.511 1334-2050/? I/PhoneWindow: isNeedChangeNaviBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@e58b4c3] size: 1 2018-10-04 00:29:06.511 1334-2050/? I/PhoneWindow: isAPPNeedChange pkgName: com.curefit.sensorapp needKeep: false 2018-10-04 00:29:06.511 1334-2050/? I/PhoneWindow: isNeedChangeNaviBarColor false 2018-10-04 00:29:06.511 1334-2050/? I/PhoneWindow: generateLayout mNavigationBarColor: ff000000 2018-10-04 00:29:06.511 1334-2050/? I/PhoneWindow: generateLayout isLightNavi false, Visibility: 0 2018-10-04 00:29:06.514 5735-21143/? D/OTAUpdate: [OTAService] com.curefit.sensorapp NextCheckTime: 2018/10/04 15:24:52 2018-10-04 00:29:06.553 3244-3244/? V/d-tag: ╔════════════════════════════════════════════════════════════════════════════════════════ 2018-10-04 00:29:06.554 3244-3244/? V/d-tag: ║ CoreActivity.onPause (SourceFile:303) 2018-10-04 00:29:06.554 3244-3244/? V/d-tag: ╟──────────────────────────────────────────────────────────────────────────────────────── 2018-10-04 00:29:06.554 3244-3244/? V/d-tag: ║ Application in background: false 2018-10-04 00:29:06.554 3244-3244/? V/d-tag: ╚════════════════════════════════════════════════════════════════════════════════════════ 2018-10-04 00:29:06.556 3244-3244/? D/Firebase: Favorite End 2018-10-04 00:29:06.558 1334-3221/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{b1c6d27 com.curefit.sensorapp} is now in focus and seems to be in full-screen mode 2018-10-04 00:29:06.558 1334-3221/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.curefit.sensorapp/com.curefit.sensorapp.MainActivity/1 2018-10-04 00:29:06.565 1334-3221/? D/CompatibilityInfo: mCompatibilityFlags - 0 2018-10-04 00:29:06.565 1334-3221/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.565 1334-3221/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.586 3244-21086/? W/ResourceType: ResTable_typeSpec entry count inconsistent: given 17, previously 25 2018-10-04 00:29:06.615 1334-1421/? D/CompatibilityInfo: mCompatibilityFlags - 10 2018-10-04 00:29:06.615 1334-1421/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.615 1334-1421/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.624 1334-6747/? D/CompatibilityInfo: mCompatibilityFlags - 10 2018-10-04 00:29:06.624 1334-6747/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.624 1334-6747/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.627 20464-20464/com.curefit.sensorapp I/PhoneWindow: isNeedChangeStatusBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@8a9814c] size: 1 2018-10-04 00:29:06.628 2363-19459/? E/NetworkScheduler: Invalid component specified. 2018-10-04 00:29:06.628 20464-20464/com.curefit.sensorapp I/PhoneWindow: isAPPNeedChangeSBColor pkgName: com.curefit.sensorapp needKeep: false 2018-10-04 00:29:06.628 20464-20464/com.curefit.sensorapp I/PhoneWindow: isNeedChangeStatusBarColor false 2018-10-04 00:29:06.630 20464-20464/com.curefit.sensorapp I/PhoneWindow: isNeedChangeNaviBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@2596595] size: 1 2018-10-04 00:29:06.631 20464-20464/com.curefit.sensorapp I/PhoneWindow: isAPPNeedChange pkgName: com.curefit.sensorapp needKeep: false 2018-10-04 00:29:06.631 20464-20464/com.curefit.sensorapp I/PhoneWindow: isNeedChangeNaviBarColor false 2018-10-04 00:29:06.631 20464-20464/com.curefit.sensorapp I/PhoneWindow: generateLayout mNavigationBarColor: ff000000 2018-10-04 00:29:06.632 20464-20464/com.curefit.sensorapp I/PhoneWindow: generateLayout isLightNavi false, Visibility: 0 2018-10-04 00:29:06.648 1334-1421/? D/CompatibilityInfo: mCompatibilityFlags - 10 2018-10-04 00:29:06.648 1334-1421/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.648 1334-1421/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.654 1334-13830/? D/CompatibilityInfo: mCompatibilityFlags - 10 2018-10-04 00:29:06.654 1334-13830/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.654 1334-13830/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.660 2363-19459/? E/NetworkScheduler: Invalid component specified. 2018-10-04 00:29:06.683 1334-1421/? D/CompatibilityInfo: mCompatibilityFlags - 10 2018-10-04 00:29:06.683 1334-1421/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.683 1334-1421/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.689 1334-13830/? D/CompatibilityInfo: mCompatibilityFlags - 10 2018-10-04 00:29:06.689 1334-13830/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.689 1334-13830/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.693 2363-19459/? E/NetworkScheduler: Invalid component specified. 2018-10-04 00:29:06.695 3244-21086/? D/PackageItemInfo: loadLabel() sume=StarHub ,sume1=JIO 4G 2018-10-04 00:29:06.712 1334-6747/? D/BatteryService: Processing new values: chargerAcOnline=false, chargerUsbOnline=true, chargerWirelessOnline=false, maxChargingCurrent500000, maxChargingVoltage5000000, batteryStatus=2, batteryHealth=2, batteryPresent=true, batteryLevel=100, batteryTechnology=Li-ion, batteryVoltage=4392, batteryChargeCounter=3093240, batteryFullCharge=0, batteryCurrent=-148 mA, batteryCycleCount= 0, batteryTemperature=320, mBatteryLevelCritical=false, mPlugType=2 2018-10-04 00:29:06.713 1334-6747/? I/BatteryService: shutdownIfLowCurrentLocked mBatteryMinVoltage = -1 , isNegativeCurrent = true , batteryVoltage = 4392 , isSystemReady = true 2018-10-04 00:29:06.713 1334-1427/? D/BatteryStatsImpl: resetWhenChargingLongTime resetTime=25200000 ,mchargingUPTime=30109496 , (resetTime-(uptime-mchargingUPTime))=25127854 ,onBattery=false 2018-10-04 00:29:06.713 1334-6747/? D/BatteryService: Sending ACTION_BATTERY_CHANGED. level:100, scale:100, status:2, health:2, present:true, voltage: 4392, temperature: 320, technology: Li-ion, Current: -148mA, CycleCount= 0, AC powered:false, USB powered:true, Wireless powered:false, icon:17303454, invalid charger:0, maxChargingCurrent:500000, maxChargingVoltage:5000000, chargeCounter:3093240 EXTRA_WIRELESS_CHARGER_DISABLE = false 2018-10-04 00:29:06.698 3244-21086/? D/PackageItemInfo: loadLabel() sume=StarHub ,sume1=JIO 4G 2018-10-04 00:29:06.715 24456-24456/? I/[BatteryProtectApp]: DetectBatteryService: ACTION_BATTERY_CHANGED -> mTemprature : 32.0 2018-10-04 00:29:06.715 24456-24456/? I/[BatteryProtectApp]: DetectBatteryService: mMaxTempShutDown : false 2018-10-04 00:29:06.715 24456-24456/? I/[BatteryProtectApp]: DetectBatteryService: mLowTempShutDown : false 2018-10-04 00:29:06.715 24456-24456/? I/[BatteryProtectApp]: DetectBatteryService:IS_SUPPORT_DECREASE_CHARGING : true 2018-10-04 00:29:06.715 24456-24456/? I/[BatteryProtectApp]: DetectBatteryService:phone not in any mode now,and health is Good [mTemprature = 32.0 ] 2018-10-04 00:29:06.715 24456-24456/? I/[BatteryProtectApp]: DetectBatteryService:-Not need to display 2018-10-04 00:29:06.715 20833-20833/com.curefit.sensorapp:sync I/System.out: Power connection changed 2018-10-04 00:29:06.717 1334-2084/? D/WifiController: ApStaDisabledState : processMessage => 155652 2018-10-04 00:29:06.718 1334-2084/? D/WifiController: DefaultState : processMessage => 155652 2018-10-04 00:29:06.718 1334-2084/? D/WifiController: DefaultState : CMD_BATTERY_CHANGED 2018-10-04 00:29:06.722 2211-2211/? D/KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED 2018-10-04 00:29:06.723 2211-2211/? D/KeyguardUpdateMonitor: ACTION_BATTERY_CHANGED...maxChargingMicroAmp: 500000 maxChargingMicroVolt: 5000000 current: -148000 isDisableWireless: false 2018-10-04 00:29:06.723 2211-2211/? D/BatteryController: mPluggedIn = true;mCharging =true; status=2; level=100 2018-10-04 00:29:06.723 2211-2211/? I/BatteryView: updateShowPercent showPercent: 0 mUseSmallBatteryLevel: false mAllowShowPercentage: true 2018-10-04 00:29:06.723 2211-2211/? I/BatteryMeterDrawableBase: isHideWaring mHideWaring: false 2018-10-04 00:29:06.724 1334-1421/? D/CompatibilityInfo: mCompatibilityFlags - 10 2018-10-04 00:29:06.724 1334-1421/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.724 1334-1421/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.724 2211-2211/? I/BatteryView: updateShowPercent showPercent: 0 mUseSmallBatteryLevel: false mAllowShowPercentage: true 2018-10-04 00:29:06.724 2211-2211/? I/BatteryMeterDrawableBase: isHideWaring mHideWaring: false 2018-10-04 00:29:06.726 2211-2211/? D/CustomizeUtils: getConfig() : srsId = F_REMOVE_LOW_BATTERY_NOTIFY result = false type = bool pkg = com.android.systemui 2018-10-04 00:29:06.729 1334-2207/? D/CompatibilityInfo: mCompatibilityFlags - 10 2018-10-04 00:29:06.729 1334-2207/? D/CompatibilityInfo: applicationDensity - 420 2018-10-04 00:29:06.729 1334-2207/? D/CompatibilityInfo: applicationScale - 1.0 2018-10-04 00:29:06.733 2363-19459/? E/NetworkScheduler: Invalid component specified. 2018-10-04 00:29:06.747 2211-2211/? D/KeyguardUpdateMonitor: handleBatteryUpdate 2018-10-04 00:29:06.810 2211-18279/? W/ResourceType: ResTable_typeSpec entry count inconsistent: given 17, previously 25 2018-10-04 00:29:06.825 2211-18279/? D/CustomizeUtils: getConfig() : srsId = F_FORCE_STOP_PROCESS result = false type = bool pkg = com.android.systemui 2018-10-04 00:29:06.980 1334-13830/? D/AppOps: startOperation: code = 40, packageName = com.evenwell.PowerMonitor, op.nesting = 1 2018-10-04 00:29:06.982 1334-1427/? I/WifiService: requestActivityInfo uid=1000 2018-10-04 00:29:06.982 1334-1427/? I/WifiService: reportActivityInfo uid=1000 2018-10-04 00:29:06.982 1334-1427/? I/WifiService: getSupportedFeatures uid=1000 2018-10-04 00:29:06.982 1334-2085/? D/HalDeviceManager: isWifiStart 2018-10-04 00:29:06.984 1334-1427/? E/BatteryExternalStatsWorker: no controller energy info supplied for wifi 2018-10-04 00:29:06.984 1334-1427/? E/BatteryExternalStatsWorker: no controller energy info supplied for bluetooth 2018-10-04 00:29:06.985 1334-2207/? D/AppOps: startOperation: code = 40, packageName = com.android.phone, op.nesting = 1 2018-10-04 00:29:06.990 1334-2207/? D/AppOps: finishOperation: uid = 1001, packageName = com.android.phone, op.nesting = 1, code = 40 2018-10-04 00:29:07.001 1334-1427/? E/BatteryExternalStatsWorker: modem info is invalid: ModemActivityInfo{ mTimestamp=47034458 mSleepTimeMs=30966 mIdleTimeMs=-19512 mTxTimeMs[]=[324, 1375, 32, 0, 549] mRxTimeMs=43649 mEnergyUsed=0} 2018-10-04 00:29:07.020 3154-3154/? D/DataBatteryUsageRecord: type: WIFI mIsCharging: true diffBytes: 0 lastBytes: 72910331 currentBytes: 72910331 2018-10-04 00:29:07.020 3154-3154/? D/DataBatteryUsageRecord: type: MOBILE mIsCharging: true diffBytes: 276423 lastBytes: 29026483 currentBytes: 29302906 2018-10-04 00:29:07.021 3154-3154/? I/AlarmRecord: getAlarmDumpInfo() 2018-10-04 00:29:07.044 2211-2360/? D/NetworkController.MobileSignalController(5): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(4G),activityIn=false,activityOut=false,rssi=0,lastModified=10-04 12:29:03,dataSim=true,networkName=StarHub,networkNameData=StarHub,dataConnected=true,roaming=false,isDefault=true,isEmergency=false,airplaneMode=false,carrierNetworkChangeMode=false,userSetup=true,imsRadioTechnology=0,comboTypeIcon=2131232055,roamingIcon=0,voiceNetType=13strengthIconCT=0,carrierConfigUpdated=0,voiceLevel=0,dataActivity=0,dataNetType=13,voiceNetType=13,dataRegState=0,voiceRegState=0 to: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(4G),activityIn=true,activityOut=true,rssi=0,lastModified=10-04 12:29:03,dataSim=true,networkName=StarHub,networkNameData=StarHub,dataConnected=true,roaming=false,isDefault=true,isEmergency=false,airplaneMode=false,carrierNetworkChangeMode=false,userSetup=true,imsRadioTechnology=0,comboTypeIcon=2131232055,roamingIcon=0,voiceNetType=13strengthIconCT=0,carrierConfigUpdated=0,voiceLevel=0,dataActivity=0,dataNetType=13,voiceNetType=13,dataRegState=0,voiceRegState=0 2018-10-04 00:29:07.044 2211-2360/? I/NetworkController.MobileSignalController(5): isShowSXLTEStyle: false isRoaming: false 2018-10-04 00:29:07.044 2211-2360/? I/NetworkController.MobileSignalController(5): notifyListeners showDataIcon: true mDataType: 2131232030 mShowNoData: true mComboNetworkTypeIconId: 0 mRoamingNetworkTypeIconId: 0 mDataNetType: 13 mCurrentState.userSetup: true dataDisabled: false mCurrentState.dataConnected: true mCurrentState.imsRadioTechnology: 0 mAllowShowVoLTE[0]: true mAllowShowVoLTE[1]: true mAllowShowVoWiFi[0]: true mAllowShowVoWiFi[1]: true mSignalStyleCT: false SubscriptionId: 5 mShowVoLTEOption: 0 mShowVoWiFiOption: 0 mSubInfoSize: 2 mSimSlotId: 0 2018-10-04 00:29:07.046 2211-2360/? I/NetworkController.MobileSignalController(5): isMobileIms slotId: 0 subId: 5 showVoLTE_Slot0: false showVoLTE_Slot1: false isMobileIms: false 2018-10-04 00:29:07.047 2211-2360/? I/NetworkController.MobileSignalController(5): isMobileIms slotId: 1 subId: 3 showVoLTE_Slot0: false showVoLTE_Slot1: false isMobileIms: false 2018-10-04 00:29:07.047 2211-2360/? I/NetworkController.MobileSignalController(5): isMobileIms return false 2018-10-04 00:29:07.048 2211-2360/? I/NetworkController.MobileSignalController(5): isImsRegisteredInWifi slotId: 0 subId: 5 showVoWiFi_Slot0: false showVoWiFi_Slot1: false isImsRegisteredInWifi: false 2018-10-04 00:29:07.049 2211-2360/? I/NetworkController.MobileSignalController(5): isImsRegisteredInWifi slotId: 1 subId: 3 showVoWiFi_Slot0: false showVoWiFi_Slot1: false isImsRegisteredInWifi: false 2018-10-04 00:29:07.049 2211-2360/? I/NetworkController.MobileSignalController(5): isImsRegisteredInWifi return false 2018-10-04 00:29:07.049 2211-2211/? I/SignalClusterView: setMobileDataIndicators mMobileVisible: true mMobileVisibleSim1: true mMobileVisibleSim2: true 2018-10-04 00:29:07.050 10254-13179/? D/ContentProvider: checkPermissionAndAppOp, co.siempo.phone want to check android.permission.READ_CONTACTS(4) was skipped. 4/5 2018-10-04 00:29:07.051 2211-2211/? I/SignalClusterView: setMobileDataIndicators mMobileVisible: true mMobileVisibleSim1: true mMobileVisibleSim2: true 2018-10-04 00:29:07.082 3154-3154/? I/AlarmRecord: Process exitValue: 0 2018-10-04 00:29:07.083 3154-3154/? D/FileOperator: Mode change to READ_MODE! 2018-10-04 00:29:07.083 3154-3154/? D/FileOperator: initiateReadFile(),mRecordDirectory=/data/data/com.evenwell.PowerMonitor/files/,mFileName=WakeUpTable@7002011.tbl 2018-10-04 00:29:07.086 3154-3154/? I/PowerCalculator: writeToTable: 20181004002907,180,0.98,38.6,(0.0,1:6:5,206:2:4,201:1:0,163:0:3,165:1:0),0,276423,-5.65,100,131.93,P0Q0,3:0,::::,,,(),-1,4,1,6,B0,2677,(),0,0,0,0 2018-10-04 00:29:07.086 3154-3154/? D/FileOperator: Mode change to WRITE_MODE! 2018-10-04 00:29:07.086 3154-3154/? D/FileOperator: initiateWrittenFile(),mRecordDirectory=/data/data/com.evenwell.PowerMonitor/files/,mFileName=PowerCalculator@7002011.log 2018-10-04 00:29:07.095 3154-21150/? D/FileOperator: Mode change to WRITE_MODE! 2018-10-04 00:29:07.095 3154-21150/? D/FileOperator: initiateWrittenFile(),mRecordDirectory=/data/data/com.evenwell.PowerMonitor/files/,mFileName=batteryUsage@7002011.log 2018-10-04 00:29:07.095 3154-21150/? I/DataBatteryUsageRecord: setDataUsageUpdateFlag!! 2018-10-04 00:29:07.096 3154-21150/? D/DataBatteryUsageRecord: updateBatteryUsageRecord!! 2018-10-04 00:29:07.096 3154-21150/? D/DataBatteryUsageRecord: processAppUsage!! 2018-10-04 00:29:07.099 3154-3154/? D/FileOperator: Mode change to WRITE_MODE! 2018-10-04 00:29:07.099 3154-3154/? D/FileOperator: initiateWrittenFile(),mRecordDirectory=/data/data/com.evenwell.PowerMonitor/files/,mFileName=event@7002011.log 2018-10-04 00:29:07.099 3154-3154/? D/FileOperator: Mode change to WRITE_MODE! 2018-10-04 00:29:07.099 3154-3154/? D/FileOperator: initiateWrittenFile(),mRecordDirectory=/data/data/com.evenwell.PowerMonitor/files/,mFileName=event@7002011.log 2018-10-04 00:29:07.467 3154-21150/? D/FileOperator: Mode change to WRITE_MODE! 2018-10-04 00:29:07.467 3154-21150/? D/FileOperator: initiateWrittenFile(),mRecordDirectory=/data/data/com.evenwell.PowerMonitor/files/,mFileName=AppTable@7002011.tbl 2018-10-04 00:29:07.477 3154-21150/? I/DataBatteryUsageRecord: rawRealtimeUs = 47034451000 2018-10-04 00:29:07.485 3154-21150/? I/DataBatteryUsageRecord: getDataUsageToFile!! 2018-10-04 00:29:07.491 3154-21150/? D/LOG_TAG: getWakelockUsageNew()!! 2018-10-04 00:29:07.491 3154-21150/? D/PowerCalculator: saveUsageMapToFile 2018-10-04 00:29:07.492 3154-21150/? D/FileOperator: Mode change to WRITE_MODE! 2018-10-04 00:29:07.492 3154-21150/? D/FileOperator: initiateWrittenFile(),mRecordDirectory=/data/data/com.evenwell.PowerMonitor/files/,mFileName=wakelock_recovery@7002011.log 2018-10-04 00:29:07.493 3154-21150/? D/PowerCalculator: saveUsageMapToFile 2018-10-04 00:29:07.517 3154-21150/? D/FileOperator: Mode change to WRITE_MODE! 2018-10-04 00:29:07.517 3154-21150/? D/FileOperator: initiateWrittenFile(),mRecordDirectory=/data/data/com.evenwell.PowerMonitor/files/,mFileName=warning_kw_wakelock_recovery@7002011.log 2018-10-04 00:29:07.536 3154-21150/? D/FileOperator: Mode change to WRITE_MODE! 2018-10-04 00:29:07.536 3154-21150/? D/FileOperator: initiateWrittenFile(),mRecordDirectory=/data/data/com.evenwell.PowerMonitor/files/,mFileName=DetailAlarm@7002011.log 2018-10-04 00:29:07.537 3154-21150/? D/PowerCalculator: topApCounter com.curefit.sensorapp 2018-10-04 00:29:07.537 3154-21150/? D/PowerCalculator: topApCounter co.siempo.phone 2018-10-04 00:29:07.537 3154-21150/? D/PowerCalculator: topApCounter com.android.settings 2018-10-04 00:29:07.537 3154-21150/? D/PowerCalculator: topApCounter co.siempo.phone 2018-10-04 00:29:07.537 3154-21150/? D/PowerCalculator: topApCounter com.android.settings 2018-10-04 00:29:07.537 3154-21150/? D/PowerCalculator: topApCounter com.google.android.packageinstaller 2018-10-04 00:29:07.537 3154-21150/? D/PowerCalculator: topApCounter com.curefit.sensorapp 2018-10-04 00:29:07.537 3154-21150/? D/PowerCalculator: topApCounter com.android.settings 2018-10-04 00:29:07.537 3154-21150/? D/PowerCalculator: topApCounter co.siempo.phone 2018-10-04 00:29:07.537 3154-21150/? D/PowerCalculator: topApCounter com.curefit.sensorapp 2018-10-04 00:29:07.539 1334-18757/? D/AppOps: finishOperation: uid = 1000, packageName = com.evenwell.PowerMonitor, op.nesting = 1, code = 40 2018-10-04 00:29:07.821 20833-20833/com.curefit.sensorapp:sync I/System.out: num increment 2018-10-04 00:29:07.822 20833-20833/com.curefit.sensorapp:sync I/System.out: --Get stats: Accelerometer 2018-10-04 00:29:07.822 20833-20833/com.curefit.sensorapp:sync I/System.out: Timestamp : 2018-10-04 00:29:05 2018-10-04 00:29:07.822 20833-20833/com.curefit.sensorapp:sync I/System.out: Numupdates : 2 2018-10-04 00:29:07.823 20833-20833/com.curefit.sensorapp:sync I/System.out: Num = 2 2018-10-04 00:29:07.835 20833-20833/com.curefit.sensorapp:sync I/System.out: Accelerometer Sensor changed 2018-10-04 00:29:07.857 3244-3244/? D/Rajesh: 78 2018-10-04 00:29:07.918 813-821/? I/mmid: select timeout: wait for receiving msg 2018-10-04 00:29:08.046 2211-2360/? D/NetworkController.MobileSignalController(5): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(4G),activityIn=true,activityOut=true,rssi=0,lastModified=10-04 12:29:07,dataSim=true,networkName=StarHub,networkNameData=StarHub,dataConnected=true,roaming=false,isDefault=true,isEmergency=false,airplaneMode=false,carrierNetworkChangeMode=false,userSetup=true,imsRadioTechnology=0,comboTypeIcon=2131232055,roamingIcon=0,voiceNetType=13strengthIconCT=0,carrierConfigUpdated=0,voiceLevel=0,dataActivity=0,dataNetType=13,voiceNetType=13,dataRegState=0,voiceRegState=0 to: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(4G),activityIn=false,activityOut=false,rssi=0,lastModified=10-04 12:29:07,dataSim=true,networkName=StarHub,networkNameData=StarHub,dataConnected=true,roaming=false,isDefault=true,isEmergency=false,airplaneMode=false,carrierNetworkChangeMode=false,userSetup=true,imsRadioTechnology=0,comboTypeIcon=2131232055,roamingIcon=0,voiceNetType=13strengthIconCT=0,carrierConfigUpdated=0,voiceLevel=0,dataActivity=0,dataNetType=13,voiceNetType=13,dataRegState=0,voiceRegState=0 2018-10-04 00:29:08.047 2211-2360/? I/NetworkController.MobileSignalController(5): isShowSXLTEStyle: false isRoaming: false 2018-10-04 00:29:08.047 2211-2360/? I/NetworkController.MobileSignalController(5): notifyListeners showDataIcon: true mDataType: 2131232030 mShowNoData: true mComboNetworkTypeIconId: 0 mRoamingNetworkTypeIconId: 0 mDataNetType: 13 mCurrentState.userSetup: true dataDisabled: false mCurrentState.dataConnected: true mCurrentState.imsRadioTechnology: 0 mAllowShowVoLTE[0]: true mAllowShowVoLTE[1]: true mAllowShowVoWiFi[0]: true mAllowShowVoWiFi[1]: true mSignalStyleCT: false SubscriptionId: 5 mShowVoLTEOption: 0 mShowVoWiFiOption: 0 mSubInfoSize: 2 mSimSlotId: 0 2018-10-04 00:29:08.049 2211-2360/? I/NetworkController.MobileSignalController(5): isMobileIms slotId: 0 subId: 5 showVoLTE_Slot0: false showVoLTE_Slot1: false isMobileIms: false 2018-10-04 00:29:08.050 2211-2360/? I/NetworkController.MobileSignalController(5): isMobileIms slotId: 1 subId: 3 showVoLTE_Slot0: false showVoLTE_Slot1: false isMobileIms: false 2018-10-04 00:29:08.050 2211-2360/? I/NetworkController.MobileSignalController(5): isMobileIms return false

pradeepiisc commented 6 years ago

okay, I have put a breakpoint in onPerformSync(...) but it never came here. Issue could be in SyncUtils.java where on first launch it goes to the if (flag) { ... } section and on any subsequent launch, it goes to the else { } part where the error message is printed - "Sync Account Error"

rahulgurnani commented 6 years ago

That shouldn't happen, syncable is true by default, any way I merged the latest pull request to master, try pulling the changes and launch the app. If you still see a crash, please try sharing logs at the point crash is happening, i.e. your device being connected to the laptop, by cable. And try filtering the logs to ones corresponding to error, using filters in the logcat console. The above logs don't have any exception corresponding to the process run by the SensorApp, so they are not useful.

pradeepiisc commented 6 years ago

2018-10-04 01:37:35.350 1334-1427/? E/BatteryExternalStatsWorker: modem info is invalid: ModemActivityInfo{ mTimestamp=51142817 mSleepTimeMs=7766 mIdleTimeMs=-6183 mTxTimeMs[]=[0, 1, 337, 7, 15] mRxTimeMs=12383 mEnergyUsed=0} 2018-10-04 01:37:51.952 1334-1427/? E/BatteryExternalStatsWorker: no controller energy info supplied for wifi 2018-10-04 01:37:51.952 1334-1427/? E/BatteryExternalStatsWorker: no controller energy info supplied for bluetooth 2018-10-04 01:37:59.075 660-665/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found 2018-10-04 01:37:59.075 660-665/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'STATE' not found 2018-10-04 01:37:59.075 660-665/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found 2018-10-04 01:37:59.075 660-665/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found 2018-10-04 01:37:59.245 759-2346/? E/IzatSvc_ComboNetworkProvider: Exiting with error proc line 208 "1" 2018-10-04 01:38:08.043 1334-1422/? E/LightsService: Light requested not available on this device. 2 2018-10-04 01:38:09.449 1334-1427/? E/BatteryExternalStatsWorker: modem info is invalid: ModemActivityInfo{ mTimestamp=51176915 mSleepTimeMs=11672 mIdleTimeMs=-5113 mTxTimeMs[]=[0, 1, 280, 10, 13] mRxTimeMs=10620 mEnergyUsed=0} 2018-10-04 01:38:09.936 1334-6114/? E/ActivityTrigger: activityResumeTrigger: not whiteListedco.siempo.phone/co.siempo.phone.activities.DashboardActivity/12311 2018-10-04 01:38:10.070 775-775/? E/SurfaceFlinger: CaptureScreen: layer name = com.curefit.sensorapp/com.curefit.sensorapp.ViewDataActivity#0 2018-10-04 01:38:11.414 2363-30570/? E/NetworkScheduler: Invalid component specified. 2018-10-04 01:38:11.937 1334-2437/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.curefit.sensorapp/com.curefit.sensorapp.MainActivity/1 2018-10-04 01:38:11.938 1334-2437/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.curefit.sensorapp/com.curefit.sensorapp.MainActivity/1 2018-10-04 01:38:11.983 1334-17951/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.curefit.sensorapp/com.curefit.sensorapp.MainActivity/1 2018-10-04 01:38:12.033 2363-30570/? E/NetworkScheduler: Invalid component specified. 2018-10-04 01:38:12.085 2363-30570/? E/NetworkScheduler: Invalid component specified. 2018-10-04 01:38:12.124 2363-30570/? E/NetworkScheduler: Invalid component specified. 2018-10-04 01:38:12.149 2363-30570/? E/NetworkScheduler: Invalid component specified. 2018-10-04 01:38:13.801 1334-1422/? E/LightsService: Light requested not available on this device. 2 2018-10-04 01:38:16.178 29270-29270/com.curefit.sensorapp E/SensorApp: PerformSync called 2018-10-04 01:38:16.221 1334-5603/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.curefit.sensorapp/com.curefit.sensorapp.ViewDataActivity/1 2018-10-04 01:38:16.222 1334-5603/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.curefit.sensorapp/com.curefit.sensorapp.ViewDataActivity/1 2018-10-04 01:38:16.260 1334-5603/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.curefit.sensorapp/com.curefit.sensorapp.ViewDataActivity/1 2018-10-04 01:38:16.386 30602-30618/com.curefit.sensorapp:sync E/AndroidRuntime: FATAL EXCEPTION: SyncAdapterThread-1 Process: com.curefit.sensorapp:sync, PID: 30602 java.lang.ArrayIndexOutOfBoundsException: length=15; index=15 at com.curefit.sensorapp.data.AccDataContracted.(AccDataContracted.java:53) at com.curefit.sensorapp.sync.SyncAdapter.getAggAccelerometerData(SyncAdapter.java:130) at com.curefit.sensorapp.sync.SyncAdapter.syncSensorData(SyncAdapter.java:219) at com.curefit.sensorapp.sync.SyncAdapter.onPerformSync(SyncAdapter.java:80) at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:321) 2018-10-04 01:38:16.432 30505-30505/? E/STBMonitorReceiver: dropboxTag:data_app_crash;dropboxTime:1538588296406 2018-10-04 01:38:16.439 30505-30505/? E/STBIntentService: Service Started.. 2018-10-04 01:38:16.471 30505-30628/? E/StabilityMonitor: [APRReport] get APRReport from memory 2018-10-04 01:38:16.512 30505-30628/? E/STBIntentService: send error message:data_app_crash;1538588296406(pkgName:com.curefit.sensorapp;version:1.0;versionCode:1) to BBS for ANR/FC/TOMB_STONE... 2018-10-04 01:38:16.512 30505-30628/? E/STBIntentService: Add /data/system/dropbox/data_app_crash@1538588296406.txt into short queue... 2018-10-04 01:38:16.513 30505-30628/? E/STBIntentService: alarm had already been set... 2018-10-04 01:38:16.567 30505-30505/? E/STBIntentService: Service Destroyed..

rahulgurnani commented 6 years ago

This has been fixed on latest master

pradeepiisc commented 6 years ago

java.lang.ArrayIndexOutOfBoundsException: length=63; index=63 at com.curefit.sensorapp.data.AccDataContracted.(AccDataContracted.java:53)

rahulgurnani commented 6 years ago

Hmm, changes has size of n-1, and the loop runs till n-1, so the bug. May be you can change array to be of size n. Better, you should play with this file based on what kind of stats you need etc

pradeepiisc commented 6 years ago

Did these changes -> crash isn't there but data is not coming to the server/ 2018-10-04 01:58:32.095 5957-5957/com.curefit.sensorapp:sync E/ActivityThread: Service com.curefit.sensorapp.services.SensorUpdateService has leaked IntentReceiver com.curefit.sensorapp.receivers.ScreenReceiver@ffdc0d8 that was originally registered here. Are you missing a call to unregisterReceiver()? android.app.IntentReceiverLeaked: Service com.curefit.sensorapp.services.SensorUpdateService has leaked IntentReceiver com.curefit.sensorapp.receivers.ScreenReceiver@ffdc0d8 that was originally registered here. Are you missing a call to unregisterReceiver()? at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:1351) at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1132) at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1421) at android.app.ContextImpl.registerReceiver(ContextImpl.java:1394) at android.app.ContextImpl.registerReceiver(ContextImpl.java:1382) at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:609) at com.curefit.sensorapp.services.SensorUpdateService.onStartCommand(SensorUpdateService.java:56) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3474) at android.app.ActivityThread.-wrap20(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6501) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

pradeepiisc commented 6 years ago

some issue with registerReceiver(...) in SensorUpdateService.java file

com.curefit.sensorapp.services.SensorUpdateService.onStartCommand(SensorUpdateService.java:56)