Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

AutoShare on Android 14 - send image to apps doesn't working anymore

94 views
Skip to first unread message

francwalter

unread,
Nov 10, 2024, 9:39:36 AM11/10/24
to Tasker
Hallo

is there a fix for AutoShare on Android 14 that I can send images to e.g. Telegram, WhatsApp or such?

I had some Tasks on Android 9, where I let Tasker take a small picture with small resolution (and size) and send it with AutoShare to a messenger. This was very handy, because it didn't use much size when I just wanted to send very basic photos with not much use so no need to use a lot of storage space for such pictures.
I had several Shortcuts on my homescreen for it, so that was very fast.

When I switched to Android 14 now, it doesnt work anymore, it shows an error:

android.os.FileUriExposedException: file:///storage/emulated/0/mypic.jpg exposed beyond app through ClipData.Item.getUri()

I found only unresolved threads about it, e.g. on reddit: Are you still using AutoShare on Android 14/OneUI 6.1?

In my picture Task I specify the path of my new picture with file://mypath and give that file's path to AutoShare.
I read, that this is the issue, I should not give the path to the image with file:// but with content://
If I do that, the error is gone, but it happens just nothing, no App is opening with my picture to send.

Can you help, @Joao?
Thanks.frank

--
Tasker 6.3.13 (Google Play version) on Xiaomi Poco X6 Pro 5G with 512 GB storage.

João Dias

unread,
Nov 11, 2024, 5:16:04 AM11/11/24
to tas...@googlegroups.com
Hi there, thanks for the report! Can you please try this version? https://drive.google.com/file/d/1UFswVFH0yV2iNzJ4oJneq-etVeJjkwdd/view?usp=sharing

Use the normal file path (starting with /) and check if you get a notification asking you to grant access to the file to AutoShare. Hope this helps!

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Frank Roehm

unread,
Nov 12, 2024, 1:43:15 AM11/12/24
to tas...@googlegroups.com
Sorry, with this version I get still the same error:

...
07.18.59/E Error: 783835763
07.18.59/E android.os.FileUriExposedException: file:///storage/emulated/0/DCIM/Camera/IMG_20241106_122905.jpg exposed beyond app through ClipData.Item.getUri()

This is the description of the test task:

    Task: TestAutoShare
   
    A1: AutoShare [
         Configuration: Package: com.whatsapp
         Class: com.whatsapp.contact.picker.ContactPicker
         App: AutoShare
         Action: Share
         MimeType: file/jpeg
         File: /storage/emulated/0/DCIM/Camera/IMG_20241105_140316.jpg
         Timeout (Seconds): 5
         Continue Task After Error:On ]
   

Permissions are all set in AutoShare.
I tried to set the path as you said, also then with file:// or content:// but nothing works.


Is AutoShare working in Android 14 at all?

Thank.frank

Erik Carlin

unread,
Nov 12, 2024, 2:33:22 AM11/12/24
to tas...@googlegroups.com
I was only able to fix this with the ADB command and giving it 'extra' permissions. I'm ecarlin in that post. 

Let me see if I can dig them up. These were commands necessary to get it going - both on one UI 6 and then this new pixel on 14.

These commands allows Tasker to finally have the right permissions. Odd though the developer either glosses over my posts and questions here or I am not visible.

adb shell pm grant net.dinglisch.android.taskerm android.permission.DUMP
adb shell pm grant net.dinglisch.android.taskerm android.permission.PACKAGE_USAGE_STATS
//Specific for auto share

adb shell appops set com.joaomgcd.autoshare WRITE_MEDIA_AUDIO allow
adb shell appops set com.joaomgcd.autoshare WRITE_MEDIA_VIDEO allow
adb shell appops set com.joaomgcd.autoshare WRITE_MEDIA_IMAGES allow
adb shell appops set com.joaomgcd.autoshare MANAGE_EXTERNAL_STORAGE allow
adb shell appops set com.joaomgcd.autoshare NO_ISOLATED_STORAGE allow

No matter how many times I cleared storage to try and get the permission prompt to redo it... None of it worked say for this.

Hope it helps you.

Erik

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tasker/d1cf521d-5a4b-4d36-841e-2daecad12295%40gmail.com.

João Dias

unread,
Nov 12, 2024, 4:20:55 AM11/12/24
to tas...@googlegroups.com
Yes, it's working for me at least...
Can you please try using the path /storage/emulated/0/DCIM/Camera/IMG_20241106_122905.jpg instead?

francwalter

unread,
Nov 12, 2024, 4:38:53 AM11/12/24
to Tasker
That is exactly the path I tried, but it does NOT work (I wrote it: "...I tried to set the path as you said, also then with file:// or content:// but nothing works....").

João Dias

unread,
Nov 12, 2024, 4:48:02 AM11/12/24
to tas...@googlegroups.com
What happens if you use the helper to select the file in the AutoShare action itself? Same thing?

Frank Roehm

unread,
Nov 12, 2024, 5:03:23 AM11/12/24
to tas...@googlegroups.com
Yes the same thing happens, same error.

francwalter

unread,
Nov 12, 2024, 11:54:02 AM11/12/24
to Tasker
My workaround is to deactivate the AutoShare Action and use instead a Launch App Action: the gallery app ("Simple Gallery") where I use to view my pictures. From there I open the folder for shared images, open that new pic, hit the Share button and select WhatsApp or else to share it to some contacts. Its some four clicks more, but if I compare the time, I spent already to fix this thing I could easily click several years 4 times more ;) ;) ;)

Thanks anyway!!!

francwalter

unread,
Nov 13, 2024, 1:43:37 AM11/13/24
to Tasker
joaomgcd schrieb am Dienstag, 12. November 2024 um 10:48:02 UTC+1:
What happens if you use the helper to select the file in the AutoShare action itself? Same thing?


If I use the new version and if I use content:// instead of the path from the helper, there is at least no error but then I get an "unsupported file format" message in any target app, where I send the image to.
Tried with different images.

So maybe this version could work if that error could be fixed?


Erik Carlin

unread,
Nov 15, 2024, 6:13:30 AM11/15/24
to tas...@googlegroups.com
Those ADB commands didn't do anything for you?

On Tue, Nov 12, 2024, 9:54 AM francwalter <franc...@gmail.com> wrote:
My workaround is to deactivate the AutoShare Action and use instead a Launch App Action: the gallery app ("Simple Gallery") where I use to view my pictures. From there I open the folder for shared images, open that new pic, hit the Share button and select WhatsApp or else to share it to some contacts. Its some four clicks more, but if I compare the time, I spent already to fix this thing I could easily click several years 4 times more ;) ;) ;)

Thanks anyway!!!

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.

Frank Roehm

unread,
Nov 16, 2024, 1:37:04 AM11/16/24
to tas...@googlegroups.com
No, they didn't change that issue.
Reply all
Reply to author
Forward
0 new messages