title: How to get file path given a tree URI on Android 11?
body: <p>We only get a tree URI when a user selects a folder using the storage access framework. The <a href="https://developer.android.com/preview/privacy/storage#media-files-raw-paths" rel="nofollow noreferrer">docs</a> mention that starting Android 11, we can use raw file paths to access files. I need this so that I can use an existing native library. But I can't find any documentation of getting the raw path given a tree URI. How to get file path given a tree URI on Android 11? </p>
  
  <p>Note that all of the existing answers on stackoverflow are hacks and they are not even working now. I need an official API for this.</p>