Working towards Android TV
#1
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. Big Grin 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.


Messages In This Thread
Working towards Android TV - by tomgeekery - 06-15-2016, 05:25 AM
RE: Working towards Android TV - by tavalin - 06-15-2016, 09:37 AM
RE: Working towards Android TV - by sspectre - 06-16-2016, 08:02 AM
RE: Working towards Android TV - by VAAviator - 06-16-2016, 02:13 PM
RE: Working towards Android TV - by tomgeekery - 06-17-2016, 04:10 AM
RE: Working towards Android TV - by sspectre - 06-17-2016, 07:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 228 435,899 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 33,277 12-23-2020, 06:11 AM
Last Post: Learnincurve
  3,5mm audio out not working MikkoL 9 16,230 11-22-2020, 06:42 AM
Last Post: Little_Johnny
  Adding an accelerometer to Android modsbyus 11 18,925 11-02-2020, 08:12 PM
Last Post: Little_Johnny
  MTP Stopped Working miller08 0 2,681 12-24-2019, 02:42 AM
Last Post: miller08
  Android Things OS dqvsra 2 7,718 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 7,851 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 6,274 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 3,689 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 292,250 03-12-2019, 04:53 PM
Last Post: neosapien

Forum Jump:


Users browsing this thread: 3 Guest(s)