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 returns
yes. 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.confand ran the task, but it returns the error:
file not found.
So I tried
/data/misc/wifi/wpa_supplicant.confand 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 app
editorwhen I create a task to do it.
cd /data/misc/wifi/to add another command
;should do the trick example :
cd /data/misc/wifi/ && your commandor
cd /data/misc/wifi/; your commanddepending 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.
nanocommand should do the trick looking like
!nano /data/misc/wifi/wpa_supplicant.confif 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 using
ls. But then got stuck on how to open the file from Termux. wiki.termux.com/wiki/Sharing_Data suggested
termux-open wpa_supplicant.confbut I was unable to use or install
termux-openfrom 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!