title: Content resolver returns wrong size
body: <p>I am picking an image from the gallery and querying its size via <code>ContentResolver</code> API, it returns 29kb.</p>
  
  <p>However when I check the file via adb using <code>ls -al</code> it is 44kb</p>
  
  <p>here is how I query the size of the image:</p>
  
  <pre><code>    private fun getFileInfo(contentResolver: ContentResolver, fileUri: Uri): Pair&lt;String, Long&gt;? {
      val projection = arrayOf(MediaStore.MediaColumns.DISPLAY_NAME, MediaStore.MediaColumns.SIZE)
      val metaCursor = contentResolver.query(fileUri, projection, null, null, null)
          metaCursor?.use {
              if (it.moveToFirst()) {
                  val displayNameIndex = it.getColumnIndex(MediaStore.MediaColumns.DISPLAY_NAME)
                  val sizeIndex = it.getColumnIndex(MediaStore.MediaColumns.SIZE)
                  return Pair(it.getString(displayNameIndex), it.getLong(sizeIndex))
              }
      }
      return null
  }
  </code></pre>
  
  <p>I am using an Oreo Emulator.
  I have also checked via emulator's tools, file browser shows as 29kb on the other hand file details shows 45kb.
  What is going on?</p>
  
  <p>Here are the images from file browser:</p>
  
  <p><a href="https://i.stack.imgur.com/4llnz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4llnz.png" alt="Summary"></a></p>
  
  <p><a href="https://i.stack.imgur.com/pMFZc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pMFZc.png" alt="Details"></a></p>
  
  <p>Another side note, above situation can be reproducible every time when using camera app on emulator with Android 26-Oreo emulator, however it is fine with emulator Android 25-Nougat.</p>
  
  <p>I have checked, new <a href="https://developer.android.com/reference/android/support/v4/provider/DocumentFile.html" rel="noreferrer">Document API</a> also returns 29kb</p>