I'm trying to preload my enccharts with the command line for senc creation but I don't understand how to do this in android. I've downloaded a terminal emulator app but the code given in the opencpn manual doesn't seem to work on android, ie:
@chagallwifi:/ $ opencpn [-unit_test_1]
/system/bin/sh: opencpn: not found
Presumably I have to tell it where to find opencpn in order to execute it, but I've got no idea how.
Sorry, can you be a bit more specific? I'm not at all familiar with android OS and its file systems. I tried a handful of combinations:
/system/bin/sh: opencpn: not found
127|u0_a200@chagallwifi:/ $ opencpn -unit_test_1
/system/bin/sh: opencpn: not found
127|u0_a200@chagallwifi:/ $ /storage/emulated/0/Android/data/org.opencpn.opencpn_free/files opencpn -unit_test_1
/system/bin/sh: /storage/emulated/0/Android/data/org.opencpn.opencpn_free/files: can't execute: Is a directory
126|u0_a200@chagallwifi:/ $ encpn: not found
/system/bin/sh: encpn:: not found
127|u0_a200@chagallwifi:/ $ 127|u0_a200@chagallwifi:/ $ /storage/emulated/0/Android/data/org.opencpn.opencpn_free/files opencpn -unit_test_1
/system/bin/sh: 127: not found
/system/bin/sh: u0_a200@chagallwifi:/: not found
127|u0_a200@chagallwifi:/ $
127|u0_a200@chagallwifi:/ $ data/org.opencpn.opencpn_free/files/opencpn -unit_test_1
/system/bin/sh: data/org.opencpn.opencpn_free/files/opencpn: not found
127|u0_a200@chagallwifi:/ $ data/org.opencpn.opencpn_free/files opencpn -unit_test_1
/system/bin/sh: data/org.opencpn.opencpn_free/files: not found
127|u0_a200@chagallwifi:/ $ /storage/emulated/0/Android/data/org.opencpn.opencpn_free/files/opencpn -unit_test_1
/system/bin/sh: /storage/emulated/0/Android/data/org.opencpn.opencpn_free/files/opencpn: not found
127|u0_a200@chagallwifi:/ $
I'm not sure that the this directory is even the one opencpn runs out of or just where it stores data, I actually don't know what I'm looking for since I'm not sure what the android equivalent of .exe is. I also suspect I'm entering the path wrong.
Thanks for the help!
While your idea is sound, this approach will not work for OpenCPN for Android. On un-rooted Android, there seems to be no way to start an app from a native command shell. One can start an arbitrary Activity from a remote adb shell, but I don't think that command line parameters can be passed for startup. Android Activities don't work that way.