[AospMusic][v1.3]The app crashes if i try to delete a song.

in #utopian-io5 years ago (edited)

Related Informations

Actual behavior


The app crashes if i try to delete a song from the app.

Expected behavior


I expected that I can delete a song succesfully without crashing the app.

How to reproduce

  1. Open the app and give all the permission
  2. Click "Songs"
  3. Choose a song ,click and hold to the song
  4. Option will appear then click delete
  5. See the error

Information

  • App version:v1.3
  • Operating system:9.0

Recording of the bug

Logcat


04-30 18:56:46.877 27049 27049 E AndroidRuntime: FATAL EXCEPTION: main
04-30 18:56:46.877 27049 27049 E AndroidRuntime: Process: com.android.music, PID: 27049
04-30 18:56:46.877 27049 27049 E AndroidRuntime: java.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=27049, uid=10193 requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission()
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.os.Parcel.createException(Parcel.java:1966)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.os.Parcel.readException(Parcel.java:1934)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.content.ContentProviderProxy.delete(ContentProviderNative.java:547)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.content.ContentResolver.delete(ContentResolver.java:1691)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at com.android.music.MusicUtils.deleteTracks(MusicUtils.java:490)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at com.android.music.DeleteItems$2.onClick(DeleteItems.java:63)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.view.View.performClick(View.java:7339)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.widget.TextView.performClick(TextView.java:14222)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.view.View.performClickInternal(View.java:7305)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.view.View.access$3200(View.java:846)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.view.View$PerformClick.run(View.java:27788)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:873)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:99)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:214)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7073)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
04-30 18:56:46.877 27049 27049 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)

Sort:  

Hi @masudrana, thanks for making this report

I was able to reproduce the behavior just like you described. The logcat you provided is very helpful. The application attempts to make a write request to local storage but is denied.

This is a simple issue. The simple fix will be to grant it access permissions in the AndroidManifest.xml file.

Thanks again for this report. I look forward to more of your reports.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @fego! Keep up the good work!

Hi @masudrana!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @masudrana!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.33
TRX 0.11
JST 0.034
BTC 66363.68
ETH 3207.73
USDT 1.00
SBD 4.27