-
Notifications
You must be signed in to change notification settings - Fork 527
Tasker intent - specify a file name #1784
Comments
Test version: Send intent:
Speficying a file name will work for import and export. |
Thanks. I can't test the adb method here, so how can I test it directly in |
Just specify an extra with the name FileName and a value with the desired file name. You can run am from the terminal too, just omit adb shell from the command. |
With the terminal I get this error message: Starting: Intent { act=biz.bokhorst.xprivacy.action.IMPORT |
Try as superuser. |
it needs su rights |
however, at least for me, it still only export default values, ignoring the -e :( |
I have tested it and it works for me. |
Yeah, my bad, my thumbs are to thick. works perfectly |
Ok the command works as root, so now any idea about how can I send it via tasker ? Because the intent method doesn't seem to work as root... |
The intent works for me without root. |
Did you try with Tasker and not in the terminal ? |
It doesn't matter where the intent comes from. |
I got it to work with Secure Settings plugin in Tasker, allowing to send a shell command as root. If I disable root, it doesn't work. |
Allowing a file name for the IMPORT intent is a security risk Refs #1784
You should not use a shell command, see FAQ5 for how to setup the Tasker intent (only the extra is not documented yet, since I don't know how this needs to be done in Tasker, which I don't use myself). Please note that in the next release the file name extra for the IMPORT intent will be removed, since it is a security risk. An application could send an intent with to disable its restriction without user intervention else. |
Please let me know how to specify the file name extra in Tasker, so I can document it. |
I'm still trying to get the extra field to work. I will update once I have it. |
If that needs to be specified: the extra type is string. |
Oh please don't remove the IMPORT intent! I want to create a task that enables or disables internet access for an app which doesn't have built-in feature... |
The IMPORT intent stays, but you cannot use the file name extra. |
No this application doesn't receive any intent, so the only way I found is blocking internet access via xprivacy. |
That is not what I meant. |
Ok so I won't have any workaround... |
From http://tasker.dinglisch.net/userguide/en/intents.htmlExtras The extras must be in the form of a single colon-separated key and value. If the value can be parsed as an integer, long (integer ending in L), floating point number, double (float ending in D) or boolean (true/false) it will be treated as one, otherwise as a string. Example: have_flowers:true Example: this.is.an.integer.example:34Looks like it will not accept "FileName /sdcard/test.xml" in the extra field |
How about:
|
👍 |
Thanks the FileName:/sdcard/test.xml works. Anyway, sorry to bother you, but what is the goal of the IMPORT intent if we can't specify a file ? |
You can manually select a file for the IMPORT intent. |
@OyyoDams This may be a little OT, but you use import/export to temporarily give an app Internet permission? |
@an0n981 I have an app that permanently connects to internet, and drains battery. I'd like to automatically enable or disable its internet permission. I thought it could be possible with Tasker + XPrivacy, but it won't work if I can't specify an import file. |
@OyyoDams this is not what XPrivacy is designed for. |
Yes M66B I've understood :( |
Hi,
As requested in the XDA forum, could you add a way to specify the file name in intents via Tasker ?
The text was updated successfully, but these errors were encountered: