Use a flag to grant a temporary URI permission. · android/platform_frameworks_base@45700fa

It turns out that we can let the system to call InputMethodService#exposeContent(InputContentInfo, EditorInfo), which added in my previous CL [1], during the IME is calling InputConnection#commitCo...