OpenTracksApp / OpenTracks

OpenTracks is a sport tracking application that completely respects your privacy.
https://OpenTracksApp.com
Apache License 2.0
952 stars 184 forks source link

When starting OpenTracks via GadgetBridge no data is being recorded #1904

Open sebastianha opened 2 months ago

sebastianha commented 2 months ago

When starting a new recording with my Mi Band 7 via Gadgetbridge a new recording is being started with opentracks but directly after the start stopped and no data is being recorded.

I know from old recordings that is worked until at least 2024-03-02, I just discovered that all other recordings are empty since then.

This is only the case when started via Gadgetbridge (via intent?), normal recording works. I checked all the settings, they seem to be correct.

...

Checklist

Technical information

dennisguse commented 2 months ago

Might be #1653.

If the screen is off, some Android devices might enforce permission to access the location in the background. And OpenTracks is not (yet) requesting this permission.

Can you check if it works, if the screen is on?

sebastianha commented 2 months ago

Also does not work with screen on. I see that only Gadgetbridge is accessing Location and on Opentracks a new record is being created but directly stopped with no data.

dennisguse commented 2 months ago

Can you check if there is a crash happening (check logcat)?

sebastianha commented 2 months ago

I cannot see any crash, also when the app is open in foreground it stays open. I do see a short popup at the top sometime when the app is not open and recording starts.

Screenshot_20240429-220823

dennisguse commented 2 months ago

Can you start a recording (that has data) via the UI? And the notification is only shown briefly or does it remain in the notification bar (assuming OpenTracks has a the notification permissoin)?

sebastianha commented 2 months ago

Yes, with the UI it works. The notification is only visible for a split second.

MagiX13 commented 2 months ago

I have the same issue when starting to track via intents (I have a device that I use only for sport activities and use tasker to start tracking once the connection is established). It creates a track of 0 seconds and that's all. Manually starting to track works without issues. I'm also running on GrapheneOS, but with a different device. The issue started occuring somewhere between 9 and 18 March. I can't say if this comes from 4.12 that I just installed or the new Graphene version that came out during that time frame. The GrapheneOS logs for the app don't show anything suspicious in my view, but happy to share if needed.

sebastianha commented 2 months ago

The GrapheneOS logs for the app don't show anything suspicious in my view

Same here

arjan-s commented 1 month ago

Came here to report this exact issue, glad to find it's already known!

arjan-s commented 1 month ago

Logcat:

1715018922.915 u0_a5 23063 23063 I guse.opentracks: Using CollectorTypeCC GC.
1715018922.918 u0_a5 23063 23063 E guse.opentracks: Not starting debugger since process cannot load the jdwp agent.
1715018922.923 u0_a5 23063 23063 D ActivityThread: setConscryptValidator
1715018922.923 u0_a5 23063 23063 D ActivityThread: setConscryptValidator - put
1715018922.965 u0_a5 23063 23063 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10005; state: ENABLED
1715018922.965 u0_a5 23063 23063 D CompatibilityChangeReporter: Compat change id reported: 242716250; UID 10005; state: ENABLED
1715018922.969 u0_a5 23063 23063 D ApplicationLoaders: Returning zygote-cached class loader: /system_ext/framework/androidx.window.extensions.jar
1715018922.969 u0_a5 23063 23063 D ApplicationLoaders: Returning zygote-cached class loader: /system_ext/framework/androidx.window.sidecar.jar
1715018922.974 u0_a5 23063 23063 D nativeloader: Configuring clns-6 for other apk /data/app/~~DPm3MH_INZEff7GjeqxeCA==/de.dennisguse.opentracks-snJw4ythCiCNwkrRxeEc5A==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~DPm3MH_INZEff7GjeqxeCA==/de.dennisguse.opentracks-snJw4ythCiCNwkrRxeEc5A==/lib/arm64, permitted_path=/data:/mnt/expand:/data/user/0/de.dennisguse.opentracks
1715018922.982 u0_a5 23063 23063 V GraphicsEnvironment: Currently set values for:
1715018922.982 u0_a5 23063 23063 V GraphicsEnvironment:   angle_gl_driver_selection_pkgs=[]
1715018922.982 u0_a5 23063 23063 V GraphicsEnvironment:   angle_gl_driver_selection_values=[]
1715018922.983 u0_a5 23063 23063 V GraphicsEnvironment: ANGLE GameManagerService for de.dennisguse.opentracks: false
1715018922.983 u0_a5 23063 23063 V GraphicsEnvironment: de.dennisguse.opentracks is not listed in per-application setting
1715018922.983 u0_a5 23063 23063 V GraphicsEnvironment: App is not on the allowlist for updatable production driver.
1715018923.014 u0_a5 23063 23063 I Startup : de.dennisguse.opentracks; BuildType: release; VersionName: v4.12.3/v4.12.3 VersionCode: 5753
1715018923.020 u0_a5 23063 23085 I AdrenoGLES-0: QUALCOMM build                   : 12ae96cb63, I409bbc12eb
1715018923.020 u0_a5 23063 23085 I AdrenoGLES-0: Build Date                       : 09/13/23
1715018923.020 u0_a5 23063 23085 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.35.01.10
1715018923.020 u0_a5 23063 23085 I AdrenoGLES-0: Local Branch                     :
1715018923.020 u0_a5 23063 23085 I AdrenoGLES-0: Remote Branch                    :
1715018923.020 u0_a5 23063 23085 I AdrenoGLES-0: Remote Branch                    :
1715018923.020 u0_a5 23063 23085 I AdrenoGLES-0: Reconstruct Branch               :
1715018923.020 u0_a5 23063 23085 I AdrenoGLES-0: Build Config                     : S P 10.0.7 AArch64
1715018923.020 u0_a5 23063 23085 I AdrenoGLES-0: Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
1715018923.022 u0_a5 23063 23063 D AppCompatDelegate: Checking for metadata for AppLocalesMetadataHolderService : Service not found
1715018923.025 u0_a5 23063 23085 I AdrenoGLES-0: PFP: 0x016dc112, ME: 0x00000000
1715018923.026 u0_a5 23063 23063 E guse.opentracks: Invalid resource ID 0x00000000.
1715018923.032 u0_a5 23063 23063 I DecorView: setWindowBackground: isPopOver=false color=ff141218 d=android.graphics.drawable.ColorDrawable@250703d
1715018923.036 u0_a5 23063 23063 I AbstractAPIActivity: Received and trying to execute requested action.
1715018923.036 u0_a5 23063 23063 I TrackRecordingServiceConnection: Binding and starting the service (not in foreground).
1715018923.044 u0_a5 23063 23063 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10005; state: DISABLED
1715018923.047 u0_a5 23063 23063 W libc    : Access denied finding property "persist.dm.passive.sub_display_brightness"
1715018923.047 u0_a5 23063 23063 W libc    : Access denied finding property "persist.dm.passive.sub_ambient_brightness"
1715018923.049 u0_a5 23063 23085 D NativeCustomFrequencyManager: [NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
1715018923.059 u0_a5 23063 23063 I InsetsController: onStateChanged: host=de.dennisguse.opentracks/de.dennisguse.opentracks.publicapi.StartRecording, from=android.view.ViewRootImpl.setView:1744, state=InsetsState: {mDisplayFrame=Rect(0, 0 - 840, 2289), mDisplayCutout=DisplayCutout{insets=Rect(0, 82 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(389, 0 - 451, 82), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=840 displayHeight=2289 physicalDisplayWidth=840 physicalDisplayHeight=2289 density={2.65} cutoutSpec={M 0,0 H -11.80952380952381 V 30.85714285714286 H 11.80952380952381 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=0, center=Point(0, 0)}, RoundedCorner{position=TopRight, radius=0, center=Point(0, 0)}, RoundedCorner{position=BottomRight, radius=0, center=Point(0, 0)}, RoundedCorner{position=BottomLeft, radius=0, center=Point(0, 0)}]}  mRoundedCornerFrame=Rect(0, 0 - 840, 2289), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(724, 0 - 840, 82) rotation=0}, mDisplayShape=DisplayShape{ spec=1792337615 displayWidth=832 displayHeight=2268 physicalPixelDisplaySizeRatio=1.0 rotation=0 offsetX=0 offsetY=0 scale=1.0}, mSources= { InsetsSource: {e0130000 mType=statusBars mFrame=[0,0][840,82] mVisible=true mFlags=[]}, InsetsSource: {e0130005 mType=mandatorySystemGestures mFrame=[0,0][840,114] mVisible=true mFlags=[]}, InsetsSource: {e0130006 mType=tappableElement mFrame=[0,0][840,82] mVisible=true mFlags=[]}, InsetsSource: {3 mType=ime mFrame=[0,0][0,0] mVisible=false mFlags=[]}, InsetsSource: {27 mType=displayCutout mFrame=[0,0][840,82] mVisible=true mFlags=[]}, InsetsSource: {6a7c0001 mType=navigationBars mFrame=[0,2250][840,2289] mVisible=true mFlags=[SUPPRESS_SCRIM]}, InsetsSource: {6a7c0004 mType=systemGestures mFrame=[0,0][78,2289] mVisible=true mFlags=[]}, InsetsSource: {6a7c0005 mType=mandatorySystemGestures mFrame=[0,2205][840,2289] mVisible=true mFlags=[]}, InsetsSource: {6a7c0006 mType=tappableElement mFrame=[0,0][0,0] mVisible=true mFlags=[]}, InsetsSource: {6a7c0024 mType=systemGestures mFrame=[762,0][840,2289] mVisible=true mFlags=[]} }
1715018923.059 u0_a5 23063 23063 I ViewRootImpl@909ce90[StartRecording]: synced displayState. AttachInfo displayState=2
1715018923.062 u0_a5 23063 23063 I ViewRootImpl@909ce90[StartRecording]: setView = com.android.internal.policy.DecorView@4e543bc TM=true
1715018923.062 u0_a5 23063 23063 I IDS_TAG : Starting IDS observe window
1715018923.062 u0_a5 23063 23063 I IDS_TAG : Getting Shared Preference for de.dennisguse.opentracks.Startup@fa94f45 uid = 10005
1715018923.063 u0_a5 23063 23063 I IDS_TAG : App de.dennisguse.opentracks.Startup@fa94f45 has not finished training
1715018923.065 u0_a5 23063 23063 I IDS_TAG : Closing IDS observe window
1715018923.065 u0_a5 23063 23063 I IDS_TAG : Getting Shared Preference for de.dennisguse.opentracks.Startup@fa94f45 uid = 10005
1715018923.066 u0_a5 23063 23063 I IDS_TAG : IDS count updated to 5 for de.dennisguse.opentracks.Startup@fa94f45
1715018923.083 u0_a5 23063 23063 I BLASTBufferQueue_Java: new BLASTBufferQueue, mName= ViewRootImpl@909ce90[StartRecording] mNativeObject= 0xb400007804934770 sc.mNativeObject= 0xb40000764492af90 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:3015 android.view.ViewRootImpl.relayoutWindow:10048 android.view.ViewRootImpl.performTraversals:4092 android.view.ViewRootImpl.doTraversal:3275 android.view.ViewRootImpl$TraversalRunnable.run:11257 android.view.Choreographer$CallbackRecord.run:1650 android.view.Choreographer$CallbackRecord.run:1659 android.view.Choreographer.doCallbacks:1129 android.view.Choreographer.doFrame:1055 android.view.Choreographer$FrameDisplayEventReceiver.run:1622
1715018923.083 u0_a5 23063 23063 I BLASTBufferQueue_Java: update, w= 840 h= 2289 mName = ViewRootImpl@909ce90[StartRecording] mNativeObject= 0xb400007804934770 sc.mNativeObject= 0xb40000764492af90 format= -1 caller= android.graphics.BLASTBufferQueue.<init>:89 android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:3015 android.view.ViewRootImpl.relayoutWindow:10048 android.view.ViewRootImpl.performTraversals:4092 android.view.ViewRootImpl.doTraversal:3275 android.view.ViewRootImpl$TraversalRunnable.run:11257
1715018923.085 u0_a5 23063 23063 I ViewRootImpl@909ce90[StartRecording]: Relayout returned: old=(0,0,840,2289) new=(0,0,840,2289) relayoutAsync=false req=(840,2289)0 dur=9 res=0x403 s={true 0xb4000077f49368d0} ch=true seqId=0
1715018923.085 u0_a5 23063 23063 I ViewRootImpl@909ce90[StartRecording]: performConfigurationChange setNightDimText nightDimLevel=0
1715018923.085 u0_a5 23063 23063 D ViewRootImpl@909ce90[StartRecording]: mThreadedRenderer.initialize() mSurface={isValid=true 0xb4000077f49368d0} hwInitialized=true
1715018923.086 u0_a5 23063 23063 D ViewRootImpl@909ce90[StartRecording]: reportNextDraw android.view.ViewRootImpl.performTraversals:4694 android.view.ViewRootImpl.doTraversal:3275 android.view.ViewRootImpl$TraversalRunnable.run:11257 android.view.Choreographer$CallbackRecord.run:1650 android.view.Choreographer$CallbackRecord.run:1659
1715018923.087 u0_a5 23063 23063 D TrackRecordingService: Create
1715018923.087 u0_a5 23063 23063 I TrackRecordingService: new status null -> RecordingStatus[trackId=null]
1715018923.094 u0_a5 23063 23063 I InsetsSourceConsumer: applyRequestedVisibilityToControl: visible=true, type=navigationBars, host=de.dennisguse.opentracks/de.dennisguse.opentracks.publicapi.StartRecording
1715018923.095 u0_a5 23063 23063 I InsetsSourceConsumer: applyRequestedVisibilityToControl: visible=true, type=statusBars, host=de.dennisguse.opentracks/de.dennisguse.opentracks.publicapi.StartRecording
1715018923.096 u0_a5 23063 23063 I TrackRecordingServiceConnection: Connected to the service: de.dennisguse.opentracks.services.TrackRecordingService$Binder@ab0e0f9
1715018923.096 u0_a5 23063 23063 I TrackRecordingService: startNewTrack
1715018923.104 u0_a5 23063 23063 I TrackRecordingService: new status RecordingStatus[trackId=null] -> RecordingStatus[trackId=Id[id=188]]
1715018923.104 u0_a5 23063 23063 I TrackRecordingService: startSensors
1715018923.104 u0_a5 23063 23063 I SystemUtils: Acquiring wake lock.
1715018923.108 u0_a5 23063 23063 D CompatibilityChangeReporter: Compat change id reported: 263076149; UID 10005; state: ENABLED
1715018923.115 u0_a5 23063 23063 I BluetoothAdapter: BluetoothAdapter() : de.dennisguse.opentracks
1715018923.117 u0_a5 23063 23063 I SensorDataSet: Setting aggregator de.dennisguse.opentracks.sensors.sensorData.AggregatorGPS to sensorAddress=internal data=null
1715018923.118 u0_a5 23063 23063 I GPSManager: Register for location updates de.dennisguse.opentracks.services.TrackRecordingService@afabef2
1715018923.122 u0_a5 23063 23063 I TrackRecordingService: newGpsStatus: 2131820778
1715018923.122 u0_a5 23063 23063 I NotificationManager: de.dennisguse.opentracks: notify(123, null, Notification(channel=TrackRecordingServiceNotificationManager shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0xa color=0x00000000 category=service vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user
1715018923.123 u0_a5 23063 23063 I SensorDataSet: Setting aggregator de.dennisguse.opentracks.sensors.sensorData.AggregatorBarometer to null
1715018923.124 u0_a5 23063 23063 W BluetoothConnectionManager: NONE: going to disconnect
1715018923.124 u0_a5 23063 23063 W BluetoothConnectionManager: NONE: going to disconnect
1715018923.124 u0_a5 23063 23063 W BluetoothConnectionManager: NONE: going to disconnect
1715018923.124 u0_a5 23063 23063 W BluetoothConnectionManager: NONE: going to disconnect
1715018923.124 u0_a5 23063 23063 W BluetoothConnectionManager: NONE: going to disconnect
1715018923.125 u0_a5 23063 23063 D CompatibilityChangeReporter: Compat change id reported: 160794467; UID 10005; state: ENABLED
1715018923.125 u0_a5 23063 23063 I NotificationManager: de.dennisguse.opentracks: notify(123, null, Notification(channel=TrackRecordingServiceNotificationManager shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0xa color=0x00000000 category=service vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user
1715018923.126 u0_a5 23063 23063 I NotificationManager: de.dennisguse.opentracks: notify(123, null, Notification(channel=TrackRecordingServiceNotificationManager shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0xa color=0x00000000 category=service vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user
1715018923.129 u0_a5 23063 23063 D TTSManager: Start
1715018923.136 u0_a5 23063 23063 I TextToSpeech: Sucessfully bound to com.google.android.tts
1715018923.138 u0_a5 23063 23063 V MediaPlayer-JNI: native_setup
1715018923.138 u0_a5 23063 23063 V MediaPlayerNative: constructor
1715018923.138 u0_a5 23063 23063 V MediaPlayerNative: setListener
1715018923.138 u0_a5 23063 23063 V MediaPlayer-JNI: get_session_id()
1715018923.144 u0_a5 23063 23063 V MediaPlayer-JNI: setParameter: key 1400
1715018923.144 u0_a5 23063 23063 V MediaPlayerNative: MediaPlayer::setParameter(1400)
1715018923.149 u0_a5 23063 23063 V MediaPlayer-JNI: setDataSourceFD: fd 111
1715018923.149 u0_a5 23063 23063 V MediaPlayerNative: setDataSource(111, 21321196, 66354)
1715018923.151 u0_a5 23063 23092 I TextToSpeech: Connected to TTS engine
1715018923.154 u0_a5 23063 23096 I TextToSpeech: Setting up the connection to TTS engine...
1715018923.162 u0_a5 23063 23063 V MediaPlayerNative: setVideoSurfaceTexture
1715018923.162 u0_a5 23063 23063 V MediaPlayerNative: prepare
1715018923.166 u0_a5 23063 23092 V MediaPlayerNative: message received msg=200, ext1=10973, ext2=0
1715018923.166 u0_a5 23063 23092 W MediaPlayerNative: info/warning (10973, 0)
1715018923.167 u0_a5 23063 23092 V MediaPlayerNative: message received msg=1, ext1=0, ext2=0
1715018923.167 u0_a5 23063 23092 V MediaPlayerNative: MediaPlayer::notify() prepared
1715018923.167 u0_a5 23063 23092 V MediaPlayerNative: signal application thread
1715018923.167 u0_a5 23063 23063 V MediaPlayerNative: prepare complete - status=0
1715018923.167 u0_a5 23063 23063 V MediaPlayerNative: invoke 80
1715018923.167 u0_a5 23063 23063 V MediaPlayerNative: invoke 76
1715018923.169 u0_a5 23063 23063 V MediaPlayer-JNI: setParameter: key 1400
1715018923.169 u0_a5 23063 23063 V MediaPlayerNative: MediaPlayer::setParameter(1400)
1715018923.169 u0_a5 23063 23063 E MediaPlayerNative: trying to set audio attributes called in state 8
1715018923.169 u0_a5 23063 23063 V MediaPlayer-JNI: setLooping: 0
1715018923.169 u0_a5 23063 23063 V MediaPlayerNative: MediaPlayer::setLooping
1715018923.173 u0_a5 23063 23063 I IntentDashboardUtils: Starting dashboard activity with explicit intent (package=nodomain.freeyourgadget.gadgetbridge, class=nodomain.freeyourgadget.gadgetbridge.externalevents.opentracks.OpenTracksController)
1715018923.188 u0_a5 23063 23063 I TTSManager: TextToSpeech initialized with status 0
1715018923.189 u0_a5 23063 23063 V MediaPlayerNative: invoke 76
1715018923.205 u0_a5 23063 23063 D TrackRecordingService: Destroying
1715018923.205 u0_a5 23063 23063 I TrackRecordingService: new status RecordingStatus[trackId=Id[id=188]] -> RecordingStatus[trackId=null]
1715018923.205 u0_a5 23063 23063 I SensorDataSet: Resetting data
1715018923.211 u0_a5 23063 23063 V MediaPlayer: resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
1715018923.211 u0_a5 23063 23063 V MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null
1715018923.211 u0_a5 23063 23063 V MediaPlayer-JNI: release
1715018923.211 u0_a5 23063 23063 V MediaPlayerNative: setListener
1715018923.211 u0_a5 23063 23063 V MediaPlayerNative: disconnect
1715018923.212 u0_a5 23063 23092 I TextToSpeech: Disconnected from TTS engine
1715018923.213 u0_a5 23063 23063 V MediaPlayerNative: destructor
1715018923.213 u0_a5 23063 23063 V MediaPlayerNative: disconnect
1715018923.213 u0_a5 23063 23063 W BluetoothConnectionManager: Not connected; no need to re-connect.
1715018923.213 u0_a5 23063 23063 W BluetoothConnectionManager: Not connected; no need to re-connect.
1715018923.213 u0_a5 23063 23063 W BluetoothConnectionManager: Not connected; no need to re-connect.
1715018923.213 u0_a5 23063 23063 W BluetoothConnectionManager: Not connected; no need to re-connect.
1715018923.213 u0_a5 23063 23063 W BluetoothConnectionManager: Not connected; no need to re-connect.
1715018923.213 u0_a5 23063 23063 D GainManager: Stop
1715018923.214 u0_a5 23063 23063 I TrackRecordingService: newGpsStatus: 2131820772
1715018923.214 u0_a5 23063 23063 I NotificationManager: de.dennisguse.opentracks: notify(123, null, Notification(channel=TrackRecordingServiceNotificationManager shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0xa color=0x00000000 category=service vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user
1715018923.215 u0_a5 23063 23063 I SensorDataSet: Setting aggregator de.dennisguse.opentracks.sensors.sensorData.AggregatorGPS to sensorAddress=internal data=null
1715018923.215 u0_a5 23063 23063 I SensorDataSet: Removing all aggregators
1715018923.216 u0_a5 23063 23063 D TrackRecordingService: Destroyed
1715018923.216 u0_a5 23063 23063 I ViewRootImpl@909ce90[StartRecording]: handleAppVisibility mAppVisible = true visible = false
1715018923.232 u0_a5 23063 23063 I ViewRootImpl@909ce90[StartRecording]: Relayout returned: old=(0,0,840,2289) new=(0,0,840,2289) relayoutAsync=false req=(840,2289)8 dur=5 res=0x402 s={false 0x0} ch=true seqId=0
1715018923.263 u0_a5 23063 23092 E DatabaseUtils: Writing exception to parcel
1715018923.263 u0_a5 23063 23092 E DatabaseUtils: java.lang.SecurityException: Permission Denial: reading de.dennisguse.opentracks.data.ShareContentProvider uri content://de.dennisguse.opentracks.content/tracks/187 from pid=21579, uid=10454 requires the provider be exported, or grantUriPermission()
1715018923.263 u0_a5 23063 23092 E DatabaseUtils:   at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:1050)
1715018923.263 u0_a5 23063 23092 E DatabaseUtils:   at android.content.ContentProvider.semEnforceReadPermission(ContentProvider.java:968)
1715018923.263 u0_a5 23063 23092 E DatabaseUtils:   at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:818)
1715018923.263 u0_a5 23063 23092 E DatabaseUtils:   at android.content.ContentProvider$Transport.query(ContentProvider.java:258)
1715018923.263 u0_a5 23063 23092 E DatabaseUtils:   at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:107)
1715018923.263 u0_a5 23063 23092 E DatabaseUtils:   at android.os.Binder.execTransactInternal(Binder.java:1375)
1715018923.263 u0_a5 23063 23092 E DatabaseUtils:   at android.os.Binder.execTransact(Binder.java:1311)
1715018923.540 u0_a5 23063 23063 I ViewRootImpl@909ce90[StartRecording]: stopped(true) old = false
1715018923.540 u0_a5 23063 23063 D ViewRootImpl@909ce90[StartRecording]: WindowStopped on de.dennisguse.opentracks/de.dennisguse.opentracks.publicapi.StartRecording set to true
1715018923.542 u0_a5 23063 23063 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Activity$$ExternalSyntheticLambda0@da71bcb
1715018923.545 u0_a5 23063 23063 I ViewRootImpl@909ce90[StartRecording]: dispatchDetachedFromWindow
1715018923.548 u0_a5 23063 23063 D InputTransport: Input channel destroyed: '51ab604', fd=98
1715018928.208 u0_a5 23063 23572 D ProfileInstaller: Installing profile for de.dennisguse.opentracks

Specifically this line seems to be the culprit:

1715018923.263 u0_a5 23063 23092 E DatabaseUtils: java.lang.SecurityException: Permission Denial: reading de.dennisguse.opentracks.data.ShareContentProvider uri content://de.dennisguse.opentracks.content/tracks/187 from pid=21579, uid=10454 requires the provider be exported, or grantUriPermission()
sgofferj commented 1 month ago

I have the same issue and I observed the following:

Those issues did not occur before 03 APR 2024. I'm using nightly via F-Droid on Andorid 12.