salt icon indicating copy to clipboard operation
salt copied to clipboard

Feature Request: Android platform support

Open rabits opened this issue 13 years ago • 25 comments

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?

rabits avatar Oct 29 '13 19:10 rabits

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.

basepi avatar Oct 29 '13 22:10 basepi

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/

UtahDave avatar Oct 29 '13 22:10 UtahDave

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

ibenrodriguez avatar Feb 12 '14 00:02 ibenrodriguez

Supporting Android is easy: all we need to do is find a way to run Python apps as a service on Android. Thoughts?

techhat avatar Feb 12 '14 00:02 techhat

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 avatar Feb 12 '14 17:02 mross462

@mross462 you are so freakin' the man.

I'll investigate further today. Thanks for the links!

techhat avatar Feb 12 '14 17:02 techhat

@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.

simonvanderveldt avatar Apr 03 '14 20:04 simonvanderveldt

downloading and installing would be useful for build/testing apps Or even an interface to the SDK to test.

damon-atkins avatar Jan 22 '15 08:01 damon-atkins

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...

basepi avatar Jan 23 '15 23:01 basepi

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 ;-)

arthurzenika avatar Aug 07 '15 10:08 arthurzenika

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)

damon-atkins avatar Dec 15 '15 08:12 damon-atkins

They definitely improve the situation. There are still a few binary deps for salt (msgpack, etc) but it's getting closer!

basepi avatar Dec 15 '15 21:12 basepi

+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?

vladimir-lu avatar May 18 '16 21:05 vladimir-lu

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?

icebal avatar Aug 29 '17 15:08 icebal

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

damon-atkins avatar Aug 29 '17 16:08 damon-atkins

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.

icebal avatar Aug 30 '17 04:08 icebal

from the Termux repo:

SYSV semaphores is not supported by the kernel. Use unnamed POSIX semaphores instead (named semaphores are unimplemented).

icebal avatar Aug 30 '17 04:08 icebal

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?

praveenramanujam avatar Jan 26 '18 14:01 praveenramanujam

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.

lordfolken avatar Jul 18 '18 09:07 lordfolken

I'd definitely enjoy using salt-ssh from my Samsung Tablet/DeX.

ghost avatar Dec 01 '18 21:12 ghost