06-15-2016, 05:25 AM
Background:
I bought two 2GB boards with wifi module.
My intention was that one of those boards would replace my Raspberry PI running OpenElec as my media center. I have Kodi and Netflix installed from the play store. My main issue preventing the move is a better control mechanism than a wireless mouse.
So, like others here I would like to get the android remote working. The problem others have reported with that is that the remote doesn't pick up the pine as an android tv. To me, that says that something running on a "real" android tv isn't running on our current android builds. Searching for what that was eventually led me to:
Android Player Binaries
The binaries from Google in that table include 'Remote'. Sounds promising...
Downloading and extracting it gives me three apk files. The one I'm most interested in is AtvRemoteService.apk. I copied all three into my system apps directory of the mounted sd card. I also copied the libiperf.so file into a lib directory.
After booting, the Android TV Remote now detects PINE64 as a TV on my network. I click connect, and my phone prompts for a 4 digit code, which is displayed on my TV. Unfortunately, that's when things go wrong. After I enter the code AtvRemoteService crashes.
Those of you with programming experience will probably realise my error. The .so file I mentioned will be a compiled binary targeting a specific cpu architecture. The nexus player it was for is not a 64bit arm processor, so it isn't going to work on the pine. Fortunately, I've been able to track down that library down as iperf. The down side is that nearly all my programming experience is in the Windows world.
The following commands are as far as I've gone in building iperf for the pine on my ubuntu 14.04 box.
I'm not 100% sure that's the right architecture to use etc. My wife is watching the tv, so I can't test the new .so file tonight. I'll post again with any further progress I make.
I bought two 2GB boards with wifi module.
My intention was that one of those boards would replace my Raspberry PI running OpenElec as my media center. I have Kodi and Netflix installed from the play store. My main issue preventing the move is a better control mechanism than a wireless mouse.
So, like others here I would like to get the android remote working. The problem others have reported with that is that the remote doesn't pick up the pine as an android tv. To me, that says that something running on a "real" android tv isn't running on our current android builds. Searching for what that was eventually led me to:
Android Player Binaries
The binaries from Google in that table include 'Remote'. Sounds promising...
Downloading and extracting it gives me three apk files. The one I'm most interested in is AtvRemoteService.apk. I copied all three into my system apps directory of the mounted sd card. I also copied the libiperf.so file into a lib directory.
After booting, the Android TV Remote now detects PINE64 as a TV on my network. I click connect, and my phone prompts for a 4 digit code, which is displayed on my TV. Unfortunately, that's when things go wrong. After I enter the code AtvRemoteService crashes.
Those of you with programming experience will probably realise my error. The .so file I mentioned will be a compiled binary targeting a specific cpu architecture. The nexus player it was for is not a 64bit arm processor, so it isn't going to work on the pine. Fortunately, I've been able to track down that library down as iperf. The down side is that nearly all my programming experience is in the Windows world.
The following commands are as far as I've gone in building iperf for the pine on my ubuntu 14.04 box.
Code:
sudo apt-get install gcc-aarch64-linux-gnu
git clone https://github.com/esnet/iperf.git
./configure --prefix=$prefix --target=aarch64-none-linux
make
make install
I'm not 100% sure that's the right architecture to use etc. My wife is watching the tv, so I can't test the new .so file tonight. I'll post again with any further progress I make.