Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root Access For Native Modules #11

Closed
No9 opened this issue Oct 27, 2012 · 2 comments
Closed

Root Access For Native Modules #11

No9 opened this issue Oct 27, 2012 · 2 comments

Comments

@No9
Copy link

No9 commented Oct 27, 2012

Hi
I see there is a requirement to put the addons into
/data/data/org.meshpoint.anode/app/module/
This requires root access to the phone.
Any idea when it will be resolved or a clue on what prevented the modules being placed on the SDCARD for example?

Thanks and loved the talk @ LXJS BTW.

@paddybyers
Copy link
Owner

You can install modules into that area with an intent. Put the module onto the sdcard and then do something like

adb shell am broadcast -a org.meshpoint.anode.INSTALL -e path /sdcard/<your module>

which will put the module into that directory on a non-rooted phone. Have a look in the wiki:
https://github.com/paddybyers/anode/wiki/Modules

If you want to be able to load modules from the sdcard, then it should just work by specifying the absolute path and doing a require().

Alternatively you could rebuild the app and change the hard-coded NODE_PATH to include the location(s) you want.

@No9
Copy link
Author

No9 commented Oct 28, 2012

Thanks @paddybyers both options worked as I found the location of the NodePath in RuntimeNative.java

@No9 No9 closed this as completed Oct 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants