How can one open a file located in a subfolder of the rootfolder, using tasker, in LineageOS 14.1?
My attempts so far have been to:
- Create a new task in tasker.
- Check if tasker has root permission with variable named "root available":
%ROOT
. This returnsyes
. Therefore, I assume Tasker has root permission. - create the action: "open file"
- This only allows the accessing the
/storage/
of either the internal or external drive. Therefore, I manually entered the path to the file located in the rootfolder I am trying to access as:
/data/misc/wifi/wpa_supplicant.conf
and ran the task, but it returns the error:file not found
.So I tried
/data/misc/wifi/wpa_supplicant.conf
and ran the task, but it returns the same error.- I tried to open the file with fdroid's app:
editor
, without opening a file explorer to open the file. But I am unable to pass the file location as an argument to the appeditor
when I create a task to do it.
cd /data/misc/wifi/
to add another command&&
or;
should do the trick example :cd /data/misc/wifi/ && your command
orcd /data/misc/wifi/; your command
depending on how you the commmand to follow through.!
to tell Tasker to perfrom it with root powers AFAIR (could be that meanwhile there's a check-box for that). However, I don't know if there's an equivalent for opening a file.nano
command should do the trick looking like!nano /data/misc/wifi/wpa_supplicant.conf
if it comes back with the unknown file/directory error then cd into the directory. On first comment put!
in front of the cd.cd /data/misc/wifi/
to browse to the directory, verified the file existance usingls
. But then got stuck on how to open the file from Termux. wiki.termux.com/wiki/Sharing_Data suggestedtermux-open wpa_supplicant.conf
but I was unable to use or installtermux-open
from Termux. I did not try nano yet, as I will not be able to access Termux/terminal in ordinary use. I will look into that, thank you!