title: Can't update MediaStore on Android 10
body: <p>I've been updating meta data in the MediaStore through a ContentResolver, but this no longer works with Android Q (API 29). The following code gives me a warning, and the description is not updated:</p>
  
  <pre><code>ContentValues values = new ContentValues();
  values.put(MediaStore.Images.Media.DESCRIPTION, "Some text");
  
  int res = getContext().getContentResolver().update(
          MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
          values,
          MediaStore.Images.Media._ID + "= ?", new String[]{sImageId});
  </code></pre>
  
  <blockquote>
    <p>android.process.media W/MediaProvider: Ignoring mutation of
    description from com.example.android.someapp.app</p>
  </blockquote>
  
  <p>This Medium post describes <a href="https://proandroiddev.com/working-with-scoped-storage-8a7e7cafea3" rel="noreferrer">how Google has changed the API for accessing and updating files</a>, but what about updating just the <em>meta data</em>? The warning seems to tell me Google no longer wants to allow third party apps to use the MediaStore, and I also found where the warning comes from: 
  <a href="https://android.googlesource.com/platform/packages/providers/MediaProvider/+/master/src/com/android/providers/media/MediaProvider.java#2960" rel="noreferrer">https://android.googlesource.com/platform/packages/providers/MediaProvider/+/master/src/com/android/providers/media/MediaProvider.java#2960</a></p>
  
  <p>Does anyone know why the update is not working on Android 10, and what is the proper workaround?</p>