You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate
Hi, I've just started w Automate. Succeeded in writing a backup within the internal storage (Nexus 5X, Android 7) and now I would like write a backup that copies files from the internal storage to an OTG mounted USB flash drive, but I don't see a way to select the Destination Path in the File copy block. Noticed the thread (https://groups.google.com/forum/#!searchin/automate-user/otg|sort:relevance/automate-user/x22iFWOvOug/G143Xud3IgAJ), sadly did not understand. Could anybody kindly help me a bit here, pls?
Best regards,
Karel
Henrik "The Developer" Lindqvist
unread,
Nov 1, 2016, 9:13:17 PM11/1/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate, kare...@gmail.com
"Destination path" is the second field.
kare...@gmail.com
unread,
Nov 2, 2016, 5:04:14 AM11/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate, kare...@gmail.com
Well, thank you... sort of :-) Yes, it is. It is written there. In text. It says "DESTINATION PATH" in capitals :-D My problem is not to locate this input line, but how to fill it so it uses the OTG connected USB flash drive. So far I have only succeeded in using it for manipulating files on the internal storage.
:) K
FeoniX4YoonA
unread,
Nov 2, 2016, 6:56:42 AM11/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate
Firstly, you need to give Automate permission to access mountable storage: Goto 'Settings -> Permissions -> External storage access' and select the flash drive.
Next, use the block: File&Storage -> File pick to select the flash drive. Make sure you tick 'Directory' for types, then you can use that path to manipulate its files.
kare...@gmail.com
unread,
Nov 2, 2016, 9:24:32 AM11/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate
Thank you, I did not have the External storage access permission granted. That's done now. Something still does not work though. When I choose the PICK PATH, I can navigate using the back arrow to a new root:
/storage DIRECTORIES emulated self
"self" is probably the one I need to go with, but choosing either of them produces "Permission denied" message.
Any idea, pls?
Best, K
Henrik "The Developer" Lindqvist
unread,
Nov 2, 2016, 10:23:25 AM11/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate, kare...@gmail.com
The path to the USB drive should be something like /storage/XXX-XXX as seen in the External storage access list.
kare...@gmail.com
unread,
Nov 2, 2016, 11:19:05 AM11/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate, kare...@gmail.com
Thank you all. Finally got it to work. The working solution differs though. The working path is: /mnt/media_rw/XXXX-XXXX/
Best, K
kare...@gmail.com
unread,
Nov 2, 2016, 6:43:57 PM11/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate, kare...@gmail.com
I am sorry to being a bother again, but there are still some issues. I granted the External storage access rights to "/mnt/media_rw/XXXX-XXXX" When I run the script, the log says in red "...FAIL 67@8 com.llamalab.fs.AccessDeniedException: /mnt/media_rw/XXXX-XXXX/testfile (where testfile is the file/folder I access and 67@8 part varies w each run) Does it make any sense to anybody, pls? Thanks in advance! :) K
Henrik "The Developer" Lindqvist
unread,
Nov 3, 2016, 10:22:08 AM11/3/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate, kare...@gmail.com
/mnt/media_rw/XXXX-XXXX is the system mount point, its the "internal" path which bypass FUSE so it's unlikely apps have access to it.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate, kare...@gmail.com
Thanks for your reply. The code started to work, probably after a phone restart, but I will look into it again with your information. Best :) K
kare...@gmail.com
unread,
Nov 4, 2016, 6:57:32 PM11/4/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Automate, kare...@gmail.com
I gave it another short and probably discovered the reason behind the above mentioned red errors. It appears I need to restart the phone after giving Automate the External Storage Access permission. Until I restart, Automate does not seem to be able to access the OTG USB. As for the correct path, Icannot help it :( When I try to use /storage/XXXX-XXXX/ it just doesn't work. Automate cannot access any files that way. The link you used in your answer mentions Android 6. Maybe there were some changes in Android 7, that I use. Best :) K