k3b / intent-intercept

Android dev tool to view inter-app communication
Apache License 2.0
201 stars 20 forks source link

Android-12 FileUriExposedException when sending Intent #26

Open locuturus opened 1 year ago

locuturus commented 1 year ago

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

k3b commented 1 year ago

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 :-(