intent-intercept icon indicating copy to clipboard operation
intent-intercept copied to clipboard

Android-12 FileUriExposedException when sending Intent

Open locuturus opened this issue 3 years ago • 1 comments

I can intercept and view intents but on my Android 12 Sony Xperia 5 iii I get a toast message warning if I try to send the edited intent. In this case I am intercepting the open directory buttons from Syncthing fork.

I wonder if it's related to this discussion: https://stackoverflow.com/questions/48117511/exposed-beyond-app-through-clipdata-item-geturi

See image from this app: Screenshot_20221122-223140

And from App Manager which behaves the same way but throws a different toast: Screenshot_20221122-223827

locuturus avatar Nov 23 '22 06:11 locuturus

Modern Android does not allow to send file uri-s any more.

file://storage/emulated..... is a file uri.

There is nothing i can do about :-(

k3b avatar Nov 24 '22 08:11 k3b