Feature Request: Android platform support
Hi, Guys. All my family now using Linux, but Android for mobile devices. I would prefer configure android by Salt - this is possible in the future?
Possible, but not probable (at least not in the very near future). Too many linux bugs and feature requests to get through! Also, I'm not sure how you would get python running natively on Android. But it might be possible.
Salt on Android is something we've had on our wish list for quite a while, but we haven't been able to dedicate the resources to make that happen yet.
On Tue, Oct 29, 2013 at 4:29 PM, Colton Myers [email protected]:
Possible, but not probable (at least not in the very near future). Too many linux bugs and feature requests to get through! Also, I'm not sure how you would get python running natively on Android. But it might be possible.
— Reply to this email directly or view it on GitHubhttps://github.com/saltstack/salt/issues/8168#issuecomment-27349856 .
Dave Boucha | Sr. Engineer
5272 South College Drive, Suite 301 | Murray, UT 84123 office 801-305-3563 [email protected] | www.saltstack.com http://saltstack.com/
Plus 1 on this. What would it take to be able to make this happen?
There are a number of Python for Android projects out there:
https://code.google.com/p/python-for-android/
https://play.google.com/store/apps/details?id=com.hipipal.qpyplus&hl=en
https://ep2013.europython.eu/conference/talks/developing-android-apps-completely-in-python
Supporting Android is easy: all we need to do is find a way to run Python apps as a service on Android. Thoughts?
This looks like it is possible using the Service class similar to the example below:
Service Class: http://developer.android.com/reference/android/app/Service.html
Example: http://www.codeproject.com/Articles/336929/Calling-Python-from-Java-for-Android-using-CLE-and
@mross462 you are so freakin' the man.
I'll investigate further today. Thanks for the links!
@techhat Did you get anywhere with this?
Don't know if this might be of interest, but concerning Android Configuration Management in general, it seems like only CFEngine has a bit of a working implementation, see http://www.cfengineers.net/cfengine-community-on-android/ and https://speakerdeck.com/cedriccabessa/cfengine-android.
downloading and installing would be useful for build/testing apps Or even an interface to the SDK to test.
I think the biggest blocker here would not be Python, but would rather be ZMQ. We may be able to do this someday with RAET, however...
Some asked me about this. A few extra pointers (yes @basepi you're right, the tricky part will probably be zmq) :
- http://zeromq.org/build:android
- pure java zmq : https://github.com/zeromq/jeromq
- pyzmq issue about android : https://github.com/zeromq/pyzmq/issues/227
Another approach would be to use a chrooted environement with a real distro in it (debian for example). For this :
- install https://f-droid.org/ (forget about play!)
- install Lil' Debi https://f-droid.org/repository/browse/?fdfilter=debian&fdid=info.guardianproject.lildebi
- alternative chroot projects : https://f-droid.org/repository/browse/?fdfilter=debian&fdid=org.dyndns.sven_ola.debian_kit and https://f-droid.org/repository/browse/?fdfilter=debian&fdid=com.botbrew.basil
- ssh into it
- apt-get install salt-minion
- enjoy!
now, have to find the time to try it out ;-)
I assume both of these open the door for Android:
- https://docs.saltstack.com/en/latest/topics/transports/tcp.html
- https://docs.saltstack.com/en/latest/topics/transports/raet/index.html (2018 update, support being dropped for this)
They definitely improve the situation. There are still a few binary deps for salt (msgpack, etc) but it's getting closer!
+1 is zmq support on android difficult? I've used the NDK to build it before, it seemed to work ok. Did anyone get started with this in a branch somewhere?
i have been able to install the salt-minion via pip in termux with root, but it errors with UNSUPPORTED_OS. seems like it shouldn't be much of a leap from here?
See if you can run salt-call --versions-report
Might be worth post here apt list output (or maybe some of it)
and uname -a
Looks like the newest version is using semaphores. It installs but i run into this error:
[ERROR ] This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
from the Termux repo:
SYSV semaphores is not supported by the kernel. Use unnamed POSIX semaphores instead (named semaphores are unimplemented).
currently, we are using the salt-stack and would like to get support for android OS. From the discussions, so far it is not possible to run salt minion on android. Can i still use proxyminion https://docs.saltstack.com/en/latest/topics/proxyminion/demo.html to make it work?
I would also find platform support for android, a great feature. The current MDM Solution for android are all pretty unsophisticated compared to the abilities of salt.
I'd definitely enjoy using salt-ssh from my Samsung Tablet/DeX.