Nexus 5 folder paths

Senlis

New member
Mar 3, 2017
2
0
0
Visit site
Hello,

I am trying to set up taskwarrior sync on my phone, and I am having trouble having the app access some files on my device. Ideally, I would place the ca, key and cert files in the working directory of taskwarrior:

/storage/emulated/0/Android/data/kvj.taskw/files/dab[...]af/.taskrc.android

However, I can't access it from either connecting the Nexus 5x to my computer and enabling file sharing. Nor can I access it from the file browser on the Android device. The area I can access is "Internal shared storage". If I go further up the directory tree, it takes me to /storage/emulated. When I try to view (ls) the directories above "Internal shared storage" using Termux, I get a permissions denied error message. I can not change directory to a /storage/emulated/0, so I am assuming I don't have permissions to place files in the taskwarrior working directory unless I root my phone.

My alternative was to place the files (ca, cert and key) in Internal shared storage/Taskwarrior/. Then, I changed the config file to:

taskd.server=freecinc.com:53589
taskd.certificate="/Internal shared storage/Taskwarrior/freecinc_1c4d328b.cert.pem"
taskd.key="/Internal shared storage/Taskwarrior/freecinc_1c4d328b.key.pem"
taskd.ca="/Internal shared storage/Taskwarrior/freecinc_1c4d328b.ca.pem"
taskd.credentials="FreeCinc/freecinc_1c4d328b/[REDACTED]"

However, taskwarrior still wasn't syncing. The message in the log says:

17:24:41: CA file: /Internal shared storage/Taskwarrior/freecinc_1c4d328b.ca.pem, exist: false, isFile: false, isFolder: false
17:24:41: Certificate file: /Internal shared storage/Taskwarrior/freecinc_1c4d328b.cert.pem, exist: false, isFile: false, isFolder: false
17:24:41: Key file: /Internal shared storage/Taskwarrior/freecinc_1c4d328b.key.pem, exist: false, isFile: false, isFolder: false

So, apparently taskwarrior is not finding the files. I think I have the directory incorrect, but I don't know what to change it to.

I am requesting some help. How do I find the path for files in /Internal shared storage/Taskwarrior? Could I put the files in the taskwarrior working directory instead? Any help you could provide would be greatly appreciated.
 

Senlis

New member
Mar 3, 2017
2
0
0
Visit site
Here is the full log of Taskwarrior

17:24:41: Thu Mar 02 17:24:41 AKST 2017 Ready to log
17:24:41: Device is: google Nexus 5X arm64-v8a 25
17:24:41: Application is: 0.1.1604102123 1604102123
17:24:41: Profile: Richard dab85fc4-965c-4cc8-9b09-642a857318af /storage/emulated/0/Android/data/kvj.taskw/files/dab85fc4-965c-4cc8-9b09-642a857318af, exist: true, isFile: false, isFolder: true, canRead: true, canWrite: true, size: 4096
17:24:41: taskd.* config: {taskd.ca=/Internal shared storage/Taskwarrior/freecinc_1c4d328b.ca.pem, taskd.certificate=/Internal shared storage/Taskwarrior/freecinc_1c4d328b.cert.pem, taskd.key=/Internal shared storage/Taskwarrior/freecinc_1c4d328b.key.pem, taskd.server=freecinc.com:53589, taskd.trust=strict}
17:24:41: Host and port: freecinc.com 53589
17:24:41: CA file: /Internal shared storage/Taskwarrior/freecinc_1c4d328b.ca.pem, exist: false, isFile: false, isFolder: false
17:24:41: Certificate file: /Internal shared storage/Taskwarrior/freecinc_1c4d328b.cert.pem, exist: false, isFile: false, isFolder: false
17:24:41: Key file: /Internal shared storage/Taskwarrior/freecinc_1c4d328b.key.pem, exist: false, isFile: false, isFolder: false
java.io.FileNotFoundException: /Internal shared storage/Taskwarrior/freecinc_1c4d328b.ca.pem (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at kvj.taskw.data.AccountController$LocalSocketRunner.<init>(AccountController.java:740)
at kvj.taskw.data.AccountController$LocalSocketRunner.<init>(AccountController.java:718)
at kvj.taskw.data.AccountController.openLocalSocket(AccountController.java:850)
at kvj.taskw.data.AccountController.<init>(AccountController.java:199)
at kvj.taskw.data.Controller.accountController(Controller.java:330)
at kvj.taskw.ui.MainActivity$10.doInBackground(MainActivity.java:333)
at kvj.taskw.ui.MainActivity$10.doInBackground(MainActivity.java:329)
at org.kvj.bravo7.util.Tasks$SimpleTask.doInBackground(Tasks.java:15)
at org.kvj.bravo7.util.Tasks$SimpleTask.doInBackground(Tasks.java:11)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)

17:24:42: List query: (status:pending limit:page) context: <NULL>
17:24:53: List query: (status:pending limit:page) context: <NULL>
18:20:48: List query: (status:pending limit:page) context: <NULL>
 

Forum statistics

Threads
943,005
Messages
6,916,847
Members
3,158,768
Latest member
jokomad