[Q] Sync folder with Foldersync Profile - Android Apps and Games

I would like some more experienced opinions/ideas with a profile I created on Tasker. First of all, I'm on a rooted Verizon Galaxy S4 - SCH-I545 running Goldfinger ROM. I've been using Taker for several months. The new profile that I just created is where, whenever I have Firefox or Chrome download a file, they download to /storage/sdcard0/Download/. I can't change where they download to. Now I have Foldersync that I have sync the files between the location /storage/sdcard0/Download/ and /storage/extSdCard/Downloads/ and then remove the file from the original download path storage/sdcard0/Download/. Now, in Tasker, the profile is:
Context: Event: File Modified --> /storage/sdcard0/Download/
Task: Foldersync: Sync folder pair now. Foldersync's folder pair is /storage/sdcard0/Download/ and /storage/extSdCard/Downloads/.
My problem is this:
Sometimes my download only takes a second and then it syncs. But if the file takes longer than a few seconds, it tries to sync while it's downloading so it moves the partially downloaded file, thus corrupting the file. I know that I can set up Tasker to wait any X number of seconds or minutes before syncing but it's different for every download. Can anyone think of any variables that I can program for this task that will sync the downloaded file(s) but NOT UNTIL the download completes?
I love Tasker but I don't understand enough of programming to come up with Variables or to even understand them.
Edit: If anyone knows how to go about changing the default download path of Chrome and Firefox mobile to /storage/extSdCard/Downloads/ that would be perfect too. Then I wouldn't need this Tasker profile.

Note
Now I know it would make sense to use Foldersync to do a daily sync but a lot of files I download are flashable zips that I want on the extsdcard right then and there so I can go right into recovery and flash it. But what I've been having to do is use ROM Toolbox to manually move the file from internal to external sdcard before booting into recovery. It's a hassle and really annoying though.

Command
Might it be possible to create a script with an app like Scripter to do this task? Maybe even something along the lines like this: When a file is being downloaded with Chrome or Firefox it creates a temp file. Would the creation/removal of that temp file be enough of an event, either with Tasker or an automated script, to trigger the Foldersync task or execute a mv command for the file that was downloaded?

Maybe try Event > UI > Notification > Download Complete
Or something to that effect. After Chrome downloads a file it says download complete in the notification tray. I would imagine some playing around would make it work.

vlamnire said:
Maybe try Event > UI > Notification > Download Complete
Or something to that effect. After Chrome downloads a file it says download complete in the notification tray. I would imagine some playing around would make it work.
Click to expand...
Click to collapse
Thanks for the input. I figured out a different way to do this. I'm using this app to symlink the two download folders. Now I don't even need to use Foldersync or Tasker. Thanks for your help!

Related

[Q] Automated Wifi File Sync

I was looking at some apps for wifi file sync but could not find which are automated.
What I would like is install app on phone and corresponding s/w on Windows.
Set which folders(/sdcard) to sync( not interested in music/photos etc) .
Set a time to sync say at 9pm everyday. So the app will automatically sync at that time without explicitly running/starting it on the phone.
Thanks
What's the point in backing up your /system/app folder? Nothing ever changes there unless you mount /system as r/w and make changes yourself.
Sent from my SAMSUNG-SGH-I777
Ok forget about /system/app.
i used to do this with Tasker+Rsync (which sync'd everything up to my linux server)
there are probably other ways of automating it, but i cant think of anything out of the box and easy to use....
I use unison for sync my sdcard with my PC, with a little configuration file you can sync the changes between the two and also configure a backup folder if something is deleted. But as someone said, maybe is not an easy task, and you may need to read the manual. I think you can use it on windows too.
Sent from my Inspire 4G using XDA App
Okay, So I looked at rsync and found how to set it up for Windows. I can now backup the files. Now I need to setup Tasker/Automate it on the phone.
How do you run the rsync profile with Tasker? I add profile and task to Tasker and selected to run at 10pm but it did not run.
Edit... Scratch that... Little tinkering and backup is running.

Tasker: Help With Task To Daily Download File

Hey Guys -
I hope I've got this in the correct category. If not, please let me know or move...
I love Tasker! I consider myself an intermediate user as I'm no expert, but have made many scripts to automate various tasks - many of them in great detail. There's one that I'm trying to create which I need your assistance with and/or suggestions for the best method, please...
I already have a Profile set up so that when I enter my car the following happens:
- Bluetooth is enabled
- My phone connects to my car's bluetooth
- My morning radio show starts to play in Poweramp
This is great, but I'm having to manually download and copy the MP3 to my phone daily. The functionality I want to add is:
- Every x hours / minutes, my phone connects to an FTP server
- It checks a specific folder for an MP3 file (See Note below)
- If it exists, it downloads & deletes it. If not there, it disconnects and stops the task
- Once downloaded, it moves it to a specified folder located off the root
- The next time I get in my car, I want it to start playing the new file instead of the last one played if possible. I don't care if Poweramp is used as long as it has resume support if there's no new file
Note
Here's a catch - I'll have to use wildcards for both the folder and file name as both have the date of broadcast in their name. Fortunatly, there are other parts of their name which do not change. One option is that I can use wildcards on my FTP server so that each day's folder (+ files) download to a specific folder on the FTP site. This way, I could have the task check for any folder + files to download and not have to be more specific. Also, the only reason I have the "delete" option in there is so that once it downloads, it doesn't try to download it again on the next run.
So what do you suggest? I just bought and downloaded the Tasker plugin "SSHFTPDownUploader," so am going to play with it. If you have any other ideas - even those which may not use Tasker, let me know.
Thanks!
bzowk said:
Hey Guys -
I hope I've got this in the correct category. If not, please let me know or move...
I love Tasker! I consider myself an intermediate user as I'm no expert, but have made many scripts to automate various tasks - many of them in great detail. There's one that I'm trying to create which I need your assistance with and/or suggestions for the best method, please...
I already have a Profile set up so that when I enter my car the following happens:
- Bluetooth is enabled
- My phone connects to my car's bluetooth
- My morning radio show starts to play in Poweramp
This is great, but I'm having to manually download and copy the MP3 to my phone daily. The functionality I want to add is:
- Every x hours / minutes, my phone connects to an FTP server
- It checks a specific folder for an MP3 file (See Note below)
- If it exists, it downloads & deletes it. If not there, it disconnects and stops the task
- Once downloaded, it moves it to a specified folder located off the root
- The next time I get in my car, I want it to start playing the new file instead of the last one played if possible. I don't care if Poweramp is used as long as it has resume support if there's no new file
Note
Here's a catch - I'll have to use wildcards for both the folder and file name as both have the date of broadcast in their name. Fortunatly, there are other parts of their name which do not change. One option is that I can use wildcards on my FTP server so that each day's folder (+ files) download to a specific folder on the FTP site. This way, I could have the task check for any folder + files to download and not have to be more specific. Also, the only reason I have the "delete" option in there is so that once it downloads, it doesn't try to download it again on the next run.
So what do you suggest? I just bought and downloaded the Tasker plugin "SSHFTPDownUploader," so am going to play with it. If you have any other ideas - even those which may not use Tasker, let me know.
Thanks!
Click to expand...
Click to collapse
How does tasker know when you get info your car?
Sent from Galaxy Note 3 SM-N9005

[APP] EasyJoin - A Decentralized and Secure Communication System

XDAdevelopers article
Send P2P messages, links, files, folders, notifications and the clipboard easily and securely.
• Connect: easily connect your devices using only your local network and only when you need it over the Internet*. Without the mandatory use of external servers. Without ads and tracking. Your data stays in your devices.
• Phone calls & SMS*: read and send SMS / MMS messages from your PC, mac, linux or tablet: there are free applications for all major operating systems. Send to PC a notification regarding a phone call and initiate phone calls from your computer. Auto forward SMS to PC.
• Files & folders: send to PC and mobile devices files and folders fast, accurate and without limitations. Take advantage of all the bandwidth of your network and safeguard your data plan and internet bandwidth.
• Remote file management*: download, rename, delete the files of a remote device.
• Notifications: Share the notifications between your devices. Read and reply* to the notifications of your phone from your computer.
• Clipboard: send the clipboard text from one device to another. Auto-sync* the clipboards between your devices. Auto-sync works on the Q version of Android using a private clipboard.
• Messages & Links: Send P2P messages and links to one or more devices even when they are offline. Once available they'll receive the pending messages!
• Remote control*: Remotely control a device. You can change the volume, lock the screen, restart the device and more.
• Voice calls: make unlimited*, end-to-end encrypted, voice calls for free.
• Android TV*: a simple and functional interface to send and receive files from your Android TV.
• Free browser plugins: there are free extensions for Firefox, Chrome and all Chromium based browsers.
• Safety: End-to-end encryption when you transfer files, send messages and share notifications and clipboard.
• Private network: Create your own hotspot with one click and keep your data out of the grid.
• Privacy policy: We don't collect any data from you when you use this application.
Android app
EasyJoin "Essential": Download it from the site: https://easyjoin.net/android_free.html
* EasyJoin "Pro": XDA thread.
EasyJoin "Go TV": XDA thread.
EasyJoin "Go": XDA thread.
Windows app
Download it from the site: https://easyjoin.net/windows.html.
Linux app
Download it from the site: https://easyjoin.net/linux.html.
macOS app
Download it from the site: https://easyjoin.net/mac.html.
Learn more at EasyJoin.net. If you have any issues read the FAQ to find a solution.
If you have installed the Windows app v1.0 you have to uninstall it and use the live version. If you want to move your current data (messages, trusted devices and configuration) you have to:
- open the directory "c:\users\your_user_name\appdata\local\apps\2.0"
- locate the "easyjoin.exe" file. In the same directory exist the directory "data".
- Copy and paste the "data" directory in the directory "easyjoin.live"
From v1.0.1 you have to follow the steps below to update the Windows version:
1. unzip the " easyjoin.portable-v*.zip" file
2. select all files in folder "easyjoin.portable*"
3. copy the selected files in the folder with the current installation of the program
Note: All your data (devices, messages, settings) are in the "data" folder. By following the above procedure you don't delete your data, you only update the program.
In the Windows version there is a button in the "Settings" menu to check for updates.
Great App.
Your app is very useful. I am using it on windows 10 and android devices. It's working very smooth.
Suggestions:
1. If possible you should add an option to select different sound for notifications.
2. You should add theme options in future updates.
3. In message section, Long pressing on message or file should select the message. Just like you can select message & It gives more options in whatsApp.
4. Are you planning to make an app for iOS in future?
Uninstall guide for Windows app.
You should add step by step uninstall guide for windows app. I am a very basic windows 10 user and I am not able to uninstall the app. I am not able to find directory. It would be great if you can help me with it. Thanks in advance!
VeProid7 said:
Your app is very useful. I am using it on windows 10 and android devices. It's working very smooth.
Suggestions:
1. If possible you should add an option to select different sound for notifications.
2. You should add theme options in future updates.
3. In message section, Long pressing on message or file should select the message. Just like you can select message & It gives more options in whatsApp.
4. Are you planning to make an app for iOS in future?
Uninstall guide for Windows app.
You should add step by step uninstall guide for windows app. I am a very basic windows 10 user and I am not able to uninstall the app. I am not able to find directory. It would be great if you can help me with it. Thanks in advance!
Click to expand...
Click to collapse
About uninstalling the windows version. All you have to do is delete the directory containing the program. Only, if you have enabled the "startup on boot", you have to disabled it in order to remove the key from the registry. Is a self contained app, if you exclude the Microsoft .NET Framework that you have installed separately, and all the files that it use are in the same folder/subfolder.
1,2 are in the todo list.
3. will be available in the next version.
4. Creating an iOs version is not in the current plan because I miss the hardware needed for development.
VeProid7 said:
3. In message section, Long pressing on message or file should select the message. Just like you can select message & It gives more options in whatsApp.
Click to expand...
Click to collapse
Available from version 1.0.10. You can send a message (text or file/image) to another application. You can also select multiple messages to forward to an other device or delete.
Awesome!
That's awesome and It was fast! Thanks a lot for quick update!
Just one suggestion about point 3. When you select text, there should be an option to copy it. Just like WhatsApp.
*About uninstalling windows version:
- I am not able to find the directory. Is it unzipped folder location for easyjoin.exe file? Deleting easyjoin.exe deletes the program, right?
- Also what's the location for that registry file?
*About future plans:
1.What are your plans about easyjoin?
2.There are only few good apps that does file sharing notification sharing for devices. Is it a fun project to provide a free app to users or You are planning to make premium version in future?
3.When did you think about making this app? Are you working on some other apps?
VeProid7 said:
- I am not able to find the directory. Is it unzipped folder location for easyjoin.exe file? Deleting easyjoin.exe deletes the program, right?
- Also what's the location for that registry file?
Click to expand...
Click to collapse
Is the folder containing the easyjoin.exe file. If you have enabled "startup on boot" open the app, uncheck the box and then delete the easyjoin folder. The registry file is the Windows one but don't worry about it, just follow the above instructions..
My plan at the moment is to create an easy-to-use application, improve the UI (the current user interface should be considered in alpha version), which does not need an external server to share files and notifications and do not overwhelm the user with advertising.
Android app update
There is a new file browser to select the files or folder to send to other devices.
You can use the file browser as stand alone app - there is a new icon in the app list.
Very good job. 'Till now I've used an app that use the ip addresss within the same network to make connection between phone and pc. But your app is faster and simpler.
Hi, i like it. Will you implement a Exit / run-in-background choice on Android?
That would be a great addition. But It will use some battery, right?
ks123 said:
Hi, i like it. Will you implement a Exit / run-in-background choice on Android?
Click to expand...
Click to collapse
Hello. The app continues to run in the background even when you exit. Is that what you are asking for or have I misunderstood?
Btw in my devices I have not noticed an increase in battery consumption leaving the app running in the background.
easyjoin said:
Hello. The app continues to run in the background even when you exit. Is that what you are asking for or have I misunderstood?
Btw in my devices I have not noticed an increase in battery consumption leaving the app running in the background.
Click to expand...
Click to collapse
The key word is "choice".
Sooner or later i always have to manage apps with services (freeze, take away receiver intent or uninstall if they refuse to play along) because no matter how small the impact (battery drain, CPU time, RAM) it just sums up.... (or because i hate not be in control...otherwise i would accept an iphone-approach).
So if it does not hurt your philosophy and you like the power of the user, pretty please provide a choice. Thanks for considering.
ks123 said:
The key word is "choice".
Sooner or later i always have to manage apps with services (freeze, take away receiver intent or uninstall if they refuse to play along) because no matter how small the impact (battery drain, CPU time, RAM) it just sums up.... (or because i hate not be in control...otherwise i would accept an iphone-approach).
So if it does not hurt your philosophy and you like the power of the user, pretty please provide a choice. Thanks for considering.
Click to expand...
Click to collapse
I misunderstood
It's already in the to do list.
I'm on windows 8.1, what am I supposed to do to install this program?
edit, it's ok once I kicked my antivirus a bit, I got it working
How to add something as a trusted device though?
techguyone said:
I'm on windows 8.1, what am I supposed to do to install this program?
Click to expand...
Click to collapse
If I am correct, You need to download that zip file. (Link for zip is in the main post or you can download it from easyjoin.net)
Unzip that downloaded file. Open the folder. There will be .exe file. Run it & Pin it to taskbar. So that you can open from there.
Link for windows: https://forum.xda-developers.com/attachment.php?attachmentid=4281040&d=1506182662
Edit: Open EasyJoin on both devices. The app will detect available device with It's default/given name. There will be a + button with device name. Click on it to add it as trusted device.
techguyone said:
I'm on windows 8.1, what am I supposed to do to install this program?
edit, it's ok once I kicked my antivirus a bit, I got it working
How to add something as a trusted device though?
Click to expand...
Click to collapse
VeProid7 was correct. Btw if you have issues with the Windows firewall you can use the vbscript file to open the port. You can execute the vbscript file directly from the folder or from the "Settings" window.
VeProid7 said:
Link for windows: https://forum.xda-developers.com/attachment.php?attachmentid=4281040&d=1506182662
Click to expand...
Click to collapse
You can find the link for the latest update of the Windows app in the main post. Usually i delete the previous attachments in order to preserve the disk space. The above link is not anymore available.

kindle RCE plugin, hidden files.

I saw this on my device, and only found little info/threads, with almost zero content/analysis. Aparently the kindle app leaves a bunch of random files around. And since the prefix is "RCE" i am a little paranoid, since that usually means "Remote code execution" and is usually associated with exploits
Files:
CS_JIT_Animation.mp4
jit_cs_positive_preview.png
rce_plugin_strings_resource_cs_CZ.json.min
rce_plugin_strings_resource_de_DE.json.min
rce_plugin_strings_resource_en_US.json.min
rce_plugin_strings_resource_es_ES.json.min
rce_plugin_strings_resource_fr_FR.json.min
rce_plugin_strings_resource_it_IT.json.min
rce_plugin_strings_resource_ja_JP.json.min
rce_plugin_strings_resource_nl_NL.json.min
rce_plugin_strings_resource_pt_BR.json.min
rce_plugin_strings_resource_v2_TYPO_TEST.json
rce_plugin_strings_resource_zh_CN.json.min
All Attached in a zip created by the android native file manager.
Current places mentioning this
https://forums.oneplus.com/threads/unkown-files-in-download.948860/
https://talk.sonymobile.com/t5/Xper...erious-Files-in-Downloads-Folder/td-p/1353185
https://forum.xda-developers.com/xperia-xz1/help/phone-mysterious-files-download-folder-t3871763
https://www.youtube.com/watch?v=eMmx5tRm0jM (one of the files is a video, someone uploaded to youtube ...and to https://gfycat.com/generouspinkcolt
How to make those files appear for you:
Install kindle from the google app store
if you already have it installed, or want to see the files again after you deleted, Stop the app and delete all storage. (nothing will be lost, this app syncs everything and some more to the amazon servers)
perform the first Sync on kindle app
Now, insert a pen drive and open the native android File Mananger and look at the local Download folder
Files are somewhat hidden:
If you look into the download folder with any other app (I tried, blackberry file manager, oi file manager, Ghost Commander, and Termux --after enabling the storage setup)
Files probably have a weird attribute or ownership... but the native android file manager does not show anything other than creation date! And every single file operation (copy, move, compress) reset the information to "regular user, creation time set to now". So either I see them on the Native File Manager, without any information available, or I do not see the files until I destroy the information.
Android version is not important (seems to happen on several versions) and has been happening for a while (First mention seems to be Nov2018)
Anyone have any idea what this is? I know I will probably reverse eng the kindle app at some point, wast a bunch of time, and realize it is just some dumb amateur library badly implemented by amazon... or maybe not. I think at this point I am most curious as to how the app "hides" the files from most everything.

Chrome save path...

Hi,
WTF happend to the option in chrome where to save downloads?
It seems like you can only change it to SD now, but it is buried in the android folder... Is there a way to change it directly to the folder emu..SD/downloads?
Searched for a few day, couldn't find any proper info on it.
Thanks in advanced
NeCrash said:
Hi,
WTF happend to the option in chrome where to save downloads?
It seems like you can only change it to SD now, but it is buried in the android folder... Is there a way to change it directly to the folder emu..SD/downloads?
Searched for a few day, couldn't find any proper info on it.
Thanks in advanced
Click to expand...
Click to collapse
Note: this will delete all data associated with chrome (stuff you logged in with chrome and possibly the things you downloaded as well)
Fix:
Disable the app and re-enable it (it'll go back to the first time you loaded it and download anything, you can choose where you want to save files)

Categories

Resources