Posts: 45
Joined: Jul 2008
Reputation:
0
Thats too bad, i'd love it if i could get things working with just one box, but i happen to have a spare raspPI laying around, and i got that working. However i'm using libreelec and it seems kind of wasteful to have kodi running on a pi that is just used to run boblightd (or hyperion.) Does anyone have a suggestion on an distro that would work without wasting resources to just run kodi that will never be seen. This RasPI will headless.
I'm guessing that the boblightd code could be ported by a motivated android developer (maybe it is worth looking in to it myself. Even if it is just to run as a boblight server and not a capture of any kind (we will let kodi handle the capture) We have access to the a usb serial device (you might have to be root, which isn't a problem at least for my devices)
Just thinking out loud, anyone interested in using an android hosted boblightd, or interested in writing the code themselves?
Posts: 16,946
Joined: Feb 2011
Reputation:
256
the problem is letting a daemon run on android ... its different then simply starting an android app. So before you start you should checkout what is possible on android at all...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 45
Joined: Jul 2008
Reputation:
0
2016-10-22, 23:28
(This post was last modified: 2016-10-22, 23:29 by darkmadda.)
I've written daemons before that gets called whenever a usb device is inserted with a specific HID id. It's not as hard as you might think. But porting the hyperion code from c to java wouldn't be that much harder either. Maybe if i get some free time in the next few weeks i can give it a crack. Is there anyone out there other than myself that would be interested in an android port?
Posts: 45
Joined: Jul 2008
Reputation:
0
well i was able to get my boblightd (or in this case the compatible hyperiond) on a headless build of raspbian, this time with a direct connection to the gpio pins eliminating the need for the the arduino (1 less device in the chain) now to work on getting a port of hyperion or boblight written for android, and i will be down to just a android tv box and an arduino. Hmmm not sure how much better it would be since it is still 2 devices. still it would be nice to support more devices. Who knows how far i will get or how long it will take, i guess we will see.
Posts: 16,946
Joined: Feb 2011
Reputation:
256
2016-10-23, 10:04
(This post was last modified: 2016-10-23, 10:06 by Memphiz.)
i wouldn't port it to java ... you can build with the native toolchain for android like kodi does to build c and c++ code...
You have written a daemon for android? Really? its not about writing really. Android is a restricted system - i doubt you can start a daemon with non rooted android devices. Everything is sandboxed and i am not even sure if you are allowed to open a listening tcp port.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 45
Joined: Jul 2008
Reputation:
0
I think this has gotten a little off the topic of this post, but yes i've written services that respond to device intents and open sockets. Opening tcp ports for listening is definitely possible without root. connecting to and writing to a serial port is also possible without root. There are permissions that can be granted to those things through the standard permissions. There are plenty of non-root apps that do both of these. not sure if there are any that do both but there isn't any reason it why it couldn't be done (at least from my previous experiences.) I did see some stuff online that ports below 1024 are restricted to root but actual port #s doesn't matter.
As for compiling c++/c code with jni, i don't have any experience with it, so it is possible that these things are restricted from jni, if they are, then porting the code to java would be needed as i know it is possible from android's java sdk.
You might be concerned by the fact that the add-on requires a binary that requires root. I'm not sure why, but my guess would be that it has to screencap and i think that is restricted. honestly i don't know why without going through the code myself, doing some more research, or having the author explains it. but if it comes to permissions of a jni library/app it can always be written in java since i know it works there.
but even if it comes down to having root, i think we are requiring the user to have root just to get the plugin binary working, so extending this requirement doesn't require anything that is already required.
I don't really know if i have the time to do it but i don't know why someone couldn't with enough motivation. Sorry, i really didn't mean to get in an argument about it but i wanted clarify things
If i start and make any progress i will open a new topic about it and then report here if it gets done.
Like i said no promises on development, but if we are talking tcp and serial connections it is possible. so i know with an arduino/adalight and an android box (which is how i was setting things up) is possible (that's where i would start) but i really want to know if anyone has interest in this or if i would be working on this for me solely
If anyone else wants to correct me i won't be offended.
Posts: 127
Joined: Oct 2004
Reputation:
0
Duduke
Senior Member
Posts: 127
Hi,
boblight Binary addon for the new ARMv8A 64bit build of Kodi beta4 is missing, any guides on how to get it?
Thanks.
Posts: 16,946
Joined: Feb 2011
Reputation:
256
There is no support to load 64bit binaries from addons yet - i need to talk to whoever is doing those builds
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 16,946
Joined: Feb 2011
Reputation:
256
1. please don't post logs into the forum directly but use something like pastebin.com
2. i only take full logs uncut
3. post a log from your second approach please.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)