element-hq / riot-android

A glossy Matrix collaboration client for Android
Apache License 2.0
1.4k stars 394 forks source link

Accessing system ring tone requires READ_EXTERNAL_STORAGE permission #3400

Open awesome-manuel opened 4 years ago

awesome-manuel commented 4 years ago
2019-12-11 10:17:29.987 21337-21337/chat.amp.messenger W/AudioManager: Use of stream types is deprecated for operations other than volume control
2019-12-11 10:17:29.987 21337-21337/chat.amp.messenger W/AudioManager: See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case
2019-12-11 10:17:30.013 21337-21337/chat.amp.messenger E/CallSoundsManager: ## getRingToneUri():  Exception2 Msg=Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=21337, uid=10291 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
    java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=21337, uid=10291 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
        at android.os.Parcel.readException(Parcel.java:1951)
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
        at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
        at android.content.ContentProviderProxy.query(ContentProviderNative.java:418)
        at android.content.ContentResolver.query(ContentResolver.java:754)
        at android.content.ContentResolver.query(ContentResolver.java:704)
        at android.content.ContentResolver.query(ContentResolver.java:662)
        at org.matrix.androidsdk.call.CallSoundsManager.getRingToneUri(CallSoundsManager.java:564)
        at org.matrix.androidsdk.call.CallSoundsManager.getRingTone(CallSoundsManager.java:657)
        at org.matrix.androidsdk.call.CallSoundsManager.startRinging(CallSoundsManager.java:398)
        at im.vector.util.CallsManager.startRinging(CallsManager.java:558)
        at im.vector.util.CallsManager.access$500(CallsManager.java:57)
        at im.vector.util.CallsManager$4$1.run(CallsManager.java:417)
        at android.os.Handler.handleCallback(Handler.java:789)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6592)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:769)