-
Notifications
You must be signed in to change notification settings - Fork 1
notes on setting up from linux #1
Comments
we can probably adapt this to get an apk: https://github.com/jxcore/jxcore-cordova |
okay so looking more deeply into this, we unfortunately cannot create a child process from cordova. I did some experiments with: https://github.com/petervojtek/cordova-plugin-shell-exec the conclusion I'm coming to, is that we need to make a java binding for node (it doesn't need any functions, though, just start node and pass in cli arguments. the only thing is it's gotta run in the same process) |
Okay, I did some more digging here... at least, I figured out a hello world that has C++ inside of Java. |
some resources that might be useful:
|
just saw this: https://github.com/brodybits/java-node it's a java binding to node, so maybe we can use that? |
I started creating a cordova plugin that interfaces with sbot/patchwork: https://github.com/gardner/cordova-plugin-patchwork It needs more work to be functional. It's on one of the burners (i think in the back). |
@gardner but how does it work? I don't see anything that starts the sbot process |
It hasn't been tested yet and currently the code just runs EDIT: Pointing to the correct line. |
does that execute a process? this was the docs I was able to find: On Fri, May 27, 2016 at 6:38 PM, Gardner Bickford notifications@github.com
|
Sorry, I updated my comment, it was pointing at the wrong line. The line is in Patchwork.java (line 61) |
I tried this approach, but I could only run the built in tools and not a node process... though, if node is part of the same apk then maybe it's owned by the same user and then it works? I couldn't figure out what path your apk contents ends up in |
I'm on ubuntu, after messing around loads trying to install adb from google's site (and it not even working) I realized I could use
apt-get
sudo apt-get install android-tools-adb android-tools-fastboot
https://developer.mozilla.org/en-US/docs/Archive/Firefox_OS/Debugging/Installing_ADB says it's obselete but hey it worked.
you'll need to switch your phone into developer mode.
on my phone, that means knowing a cheat code.
http://www.androidcentral.com/how-enable-samsung-galaxy-s5-developer-options
then plug in phone and
adb devices
(you might need to auth something on your phone)if that lists something you are ready.
adb shell
gets you to a command line (except most of the regular tools arn't there)adb push
copies. my phone didn't havetar
so I had to copy the opened fileswith
adb push ./dir /data/local/tmp/dir
that takes ages.but it can't copy symlinks, but luckly we don't need symlinks, can just delete them.
this script lists all symlinks under the current directory, then delete them.
that is what i did @mixmix
I havn't figured out how to run it in the background yet (have to be connect to a
adb shell
session, but once we have that we'll have this running on a phone!)The text was updated successfully, but these errors were encountered: