Closed kamilj closed 7 years ago
What device are you using?
Nvidia Shield K1
Android 7.0 Kernel 3.10.96+ Shield tablet software version 5.1(24.29.404.127) External GARMIN ANT+ adapter (USB 2.0)
Oh, so you are using OTG adapter. Which sample are you trying, the plugin sampler or the heart rate grapher?
Trainer FE-C, HR, Bike Power, Bike Speed/Cadence etc. The problem appears in the default built-in ANT+ plugins service. It does not matter which sample I'm using.
Everything works on Sony Active (Android 4.0.3), Motorola G 2nd (Android 6.0) and Nvidia Shield K1 (Android 6.x) I guess the problem is caused by Android 7
04-30 13:08:04.256 6314-6314/com.test.test V/FA: Registered activity lifecycle callback
04-30 13:08:04.257 6314-6314/com.test.test I/FirebaseInitProvider: FirebaseApp initialization successful
04-30 13:08:04.260 6314-6314/com.test.test I/InstantRun: starting instant run server: is main process
04-30 13:08:04.262 6314-6392/com.test.test V/FA: Using measurement service
04-30 13:08:04.267 6314-6392/com.test.test V/FA: Connecting to remote service
04-30 13:08:04.346 6314-6314/com.test.test V/FA: onActivityCreated
04-30 13:08:04.757 6314-6314/com.test.test I/SQLiteAssetHelper: successfully opened database plans.sqlite
04-30 13:08:04.786 6314-6392/com.test.test V/FA: Activity resumed, time: 9989303
04-30 13:08:04.927 6314-6314/com.test.test D/phs:ipc-binder-client: phs: RegisterClient(): transact returned 0, NO_ERROR=0
04-30 13:08:04.927 6314-6314/com.test.test D/phs:ipc-binder-client: phs: RegisterClient() timeout is 5000
04-30 13:08:05.063 6314-6314/com.test.test I/SQLiteAssetHelper: successfully opened database plans.sqlite
04-30 13:08:05.151 6314-6464/com.test.test I/OpenGLRenderer: Initialized EGL, version 1.4
04-30 13:08:05.151 6314-6464/com.test.test D/OpenGLRenderer: Swap behavior 2
04-30 13:08:05.271 6314-6314/com.test.test W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
04-30 13:08:05.545 6314-6392/com.test.test V/FA: Activity paused, time: 9990063
04-30 13:08:05.573 6314-6392/com.test.test D/FA: Connected to remote service
04-30 13:08:05.573 6314-6392/com.test.test V/FA: Processing queued up service tasks: 1
04-30 13:08:06.294 6314-6392/com.test.test V/FA: Activity resumed, time: 9990812
04-30 13:08:08.244 6314-6392/com.test.test V/FA: Activity paused, time: 9992761
04-30 13:08:08.310 6314-6314/com.test.test V/FA: onActivityCreated
04-30 13:08:08.358 6314-6314/com.test.test V/power_meter: Non valid
04-30 13:08:08.363 6314-6314/com.test.test I/SQLiteAssetHelper: successfully opened database trainers.sqlite
04-30 13:08:08.366 6314-6392/com.test.test V/FA: Activity resumed, time: 9992884
04-30 13:08:10.725 6314-6392/com.test.test V/FA: Inactivity, disconnecting from AppMeasurementService
04-30 13:08:15.659 6314-6392/com.test.test V/FA: Session started, time: 10000177
04-30 13:08:15.668 6314-6392/com.test.test I/FA: Tag Manager is not found and thus will not be used
04-30 13:08:15.673 6314-6392/com.test.test D/FA: Logging event (FE): _s, Bundle[{_o=auto}]
04-30 13:08:15.678 6314-6392/com.test.test V/FA: Using measurement service
04-30 13:08:15.678 6314-6392/com.test.test V/FA: Connecting to remote service
04-30 13:08:15.689 6314-6392/com.test.test D/FA: Connected to remote service
04-30 13:08:15.690 6314-6392/com.test.test V/FA: Processing queued up service tasks: 1
04-30 13:08:16.821 6314-6392/com.test.test V/FA: Activity paused, time: 10001339
04-30 13:08:16.847 6314-6314/com.test.test V/FA: onActivityCreated
04-30 13:08:16.859 6314-6392/com.test.test V/FA: Activity resumed, time: 10001377
04-30 13:08:16.867 6314-6392/com.test.test V/FA: Activity paused, time: 10001385
04-30 13:08:16.903 6314-6314/com.test.test V/FA: onActivityCreated
04-30 13:08:17.062 6314-6392/com.test.test V/FA: Activity resumed, time: 10001580
04-30 13:08:17.538 6314-6392/com.test.test V/FA: Activity paused, time: 10002055
04-30 13:08:17.859 6314-6314/com.test.test E/ActivityThread: Activity com.test.test.ant.search.Trainer has leaked ServiceConnection com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc$1@34c0598 that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.test.test.ant.search.Trainer has leaked ServiceConnection com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc$1@34c0598 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.
04-30 13:08:20.320 6314-6314/com.test.test E/ActivityThread: Activity com.test.test.ant.search.Trainer has leaked ServiceConnection com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc$1@f72d43 that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.test.test.ant.search.Trainer has leaked ServiceConnection com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc$1@f72d43 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.
04-30 13:08:21.181 6314-6314/com.test.test E/ActivityThread: Activity com.test.test.ant.search.Trainer has leaked ServiceConnection com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc$1@ff94bf7 that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.test.test.ant.search.Trainer has leaked ServiceConnection com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc$1@ff94bf7 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.
Will someone take care of it?
The logs are saying that your activity 'com.test.test.ant.search.Trainer' is leaking ServiceConnections repeatedly. You need to make sure you close the pcc after you have requested access.
Also, do you have any of the developer options to destroy or restrict background services enabled?
This issue is not related with my code. Try https://play.google.com/store/apps/details?id=com.dsi.ant.antplus.pluginsampler to reproduce the issue on Android 7.
Here's an example https://www.youtube.com/watch?v=LrbLYIRVxog
Also, do you have any of the developer options to destroy or restrict background services enabled?
GOOD TIP! Developer options -> Don't keep activities -> Enabled Strange because this option did not affect any other application.
There is an issue with finding the devices on Android 7 Nougat. Sample does not working too. GUI go into an infinite loop!
Try https://play.google.com/store/apps/details?id=com.dsi.ant.antplus.pluginsampler to reproduce the issue.