Android-10 build for RPi4

1,524 views
Skip to first unread message

Peter Yoon

unread,
Jun 18, 2020, 9:58:06 AM6/18/20
to Android-rpi
Entry point : https://github.com/android-rpi/local_manifests/tree/arpi-10

Status : 
  - Android TV UI (1280x720)
  - Audio output to Headphone jack
  - Ethernet / WIFI
  - AOSP software video-codec enabled

It's somewhat unstable, but you can build Android image working with RPi4 GPU.

clinton....@gmail.com

unread,
Jun 29, 2020, 7:46:59 PM6/29/20
to Android-rpi
So I was taking a look at this and I got a little lost on the steps to compile this. I am using FX850 4 core 8 threads 32 gig ram ubuntu 20.0. I will admit this is my first time trying to compile android. I have made android app before but I have not done this. Any help would be great this is what I have so far.

mkdir ~/bin
PATH=~/bin:$PATH
chmod a+x ~/bin/repo
gpg --recv-key 8BB9AD793E8E6153AF0F9A4416530D5E920F5C65
mkdir home/android
cd home/android
git config --global user.name "Your Name"
git config --global user.email "y...@example.com"
repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r39
repo sync
sudo apt install gcc-arm-linux-gnueabihf libssl-dev
cd kernel/arpi
ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/bcm2711_defconfig kernel/configs/android-base.config
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make dtbs
sudo apt install python-mako

Does this look corect. Thank You for any help at all.

Max Weninger

unread,
Jul 14, 2020, 12:12:54 PM7/14/20
to Android-rpi
Hey

Are you interessted in some cooperation on that project?
You can checkout my progress at


Feel free to contact me
Message has been deleted
Message has been deleted

Peter Yoon

unread,
Jul 18, 2020, 11:29:38 AM7/18/20
to Android-rpi
Someone has shared prebuilt image in the link :

But regrettably, they did not notify that the source is from android-rpi.

Followings are Review videos of the prebuilt image.

kons...@gmail.com

unread,
Jul 19, 2020, 4:38:57 AM7/19/20
to Android-rpi
That's a real shame. You certainly deserve credit for all the hard work you've done all these years to bring Android to Raspberry Pis.

mitgen...@gmail.com

unread,
Jul 20, 2020, 12:26:21 AM7/20/20
to Android-rpi
Can I install cinema hd apk on Rpi4?

Vào 20:58:06 UTC+7 Thứ Năm, ngày 18 tháng 6 năm 2020, Peter Yoon đã viết:

Max Weninger

unread,
Jul 20, 2020, 3:12:05 AM7/20/20
to Android-rpi
There are literally 2 pages of of hits when searching just for the string cinema hd and apk :)
So which one exactlky

miezb...@googlemail.com

unread,
Jul 20, 2020, 11:54:56 PM7/20/20
to Android-rpi
please release a flashable image 


Message has been deleted

Max Weninger

unread,
Jul 21, 2020, 5:21:01 AM7/21/20
to Android-rpi
Dont support illegal sharing of prebuilt google services that might lead to DMCA takedowns
Donwload without and add yourself

On Tuesday, July 21, 2020 at 9:49:10 AM UTC+2, Peter Yoon wrote:
Installation guide video by ETA Prime : https://www.youtube.com/watch?v=gbe_Eu3ilpQ  

On Tuesday, July 21, 2020 at 12:54:56 PM UTC+9 

kons...@gmail.com

unread,
Jul 21, 2020, 7:05:20 AM7/21/20
to Android-rpi
Agreed. Especially after Google has shown some good faith and whitelisted rpi4 for Play Services. Users no longer need to jump through hoops and register Google Service Framework Android ID for exception after installing gapps.

Peter Yoon

unread,
Jul 21, 2020, 7:32:15 AM7/21/20
to Android-rpi
Deleted the posting. 
I thought the image was without Google packages.

Max Weninger

unread,
Jul 21, 2020, 8:33:59 AM7/21/20
to Android-rpi
well TBH I did not inspect the image yet - was just looking at the "advertisment" about "activated google services"
Will inspect now and report back

Max Weninger

unread,
Jul 21, 2020, 10:08:49 AM7/21/20
to Android-rpi
ok - here are the facts (aside from the really disturbing fact that it is a 2GB download that contains a
15GB image :))

and YES - it cointains google service apks e.g.

GmsCoreSetupPrebuilt
GoogleBackupTransport:
GoogleExtServices:
GoogleFeedback:
GoogleOneTimeInitializer:
a.s.o.:

Max Weninger

unread,
Jul 22, 2020, 12:18:28 PM7/22/20
to Android-rpi
@Peter

Attached is one of the aborts I sometimes still get in v3d - since you already fixed something in that v3d_bufmgr.c file
you might can make more sense out of this then me :)

crash_log.txt

Peter Yoon

unread,
Jul 22, 2020, 7:10:41 PM7/22/20
to Android-rpi
It’s better to discuss the issue at https://github.com/android-rpi/external_mesa3d/issues
But I didn’t get a sense of resolution with the log. 

But Android environment may not common to mesa people. 

Peter Yoon

unread,
Jul 31, 2020, 7:06:08 PM7/31/20
to Android-rpi
Good build guidance is posted on Medium by J-P Nurmi.


On Thursday, June 18, 2020 at 10:58:06 PM UTC+9, Peter Yoon wrote:
Message has been deleted
Message has been deleted

Max Weninger

unread,
Aug 8, 2020, 3:18:54 AM8/8/20
to Android-rpi
Just as a side note - tried to use drm_hwcomposer and gpm based on konstas repos
instead of your native hidl impl.

and while I prefer the way compared to passthrough and hwcomposer I have
to say its more stable then what we have here now :)

Just compared to others (wink wink, nod nod :)) I share my device tree for others to work with it

Max Weninger

unread,
Aug 8, 2020, 3:29:37 AM8/8/20
to Android-rpi


On Saturday, August 8, 2020 at 3:06:29 AM UTC+2, Clinton Shoemaker wrote:
I followed the instructions at the link you provided but when I did this (repo init -u https://android.googlesource.com/platform/manifest \
-b android-10.0.0_r40 --depth=1)

I got this

...

This looks like a problem with python2 on your system
Cant remember I have seen that so far

On Saturday, August 8, 2020 at 3:06:29 AM UTC+2, Clinton Shoemaker wrote:

This is my first time ever doing something like this so I am a noob at this per say I do understand permissions but I don't know what it wants me to do exactly.

Setting up an android build is not a simple task (doing this now for over 8 years and it did not got easier)

On Saturday, August 8, 2020 at 3:06:29 AM UTC+2, Clinton Shoemaker wrote:
Thank you for the link by the way. I also want to thank you for all your hard work on this and all the other contributors on this project. The fact is androidtv is a highly sought out OS for the raspberry pi 4B who ever can get this going will be a hero to the world of raspbery pi which is a lot. Just ask KonstaKANG (lol) he gets requests all the time I am just doing what he said and doing it myself with your help that is (lol).

 
I have to say that I will not agree to that :)
You will get a way better out of the box experience with ANY Android TV stick which is about the same money a raspi is

Trying to run Android TV on a raspi is a purely academical practice mostly to show
"that it works" - which has some charme but nothing "normal users" will admire

But that aside - will try to amend my device tree to contain whats needed
to build an atv image instead of a general android image later

Clinton Shoemaker

unread,
Aug 12, 2020, 6:13:43 PM8/12/20
to Android-rpi
Hey Max it was python I had to do this
sudo ln -s /usr/bin/python3 /usr/bin/python
and it worked thank you for the hint I am syncing repo now many thanks. And thank you too Peter for the link this is my very first time ever trying to do this so thank you both and all the hard work everyone has done on all the projects. Looking forward to testing it out and many others now. How big is this?

Max Weninger

unread,
Aug 12, 2020, 8:36:49 PM8/12/20
to Android-rpi
Big in what regard? Disk size? For sources and build of a single device you can check about 300gb

clinton....@gmail.com

unread,
Aug 13, 2020, 5:02:06 PM8/13/20
to Android-rpi
Yes I was referring to size and that is alot. Like I said before my first time doing this so why is it so big? Do you know of any sources so I can read and study so I could better understand the fundimentals of this type of endever. I looked on the link Peter gave me but not answearing my spacific questions or I missed them completely in the link.

max.we...@gmail.com

unread,
Aug 13, 2020, 5:34:17 PM8/13/20
to Android-rpi
Not sure if this here is the right place to discuss such things in more detail.
But its not that big actually given the fact what a complex piece of software Android is
From a pure disk space perspective a big chunk are prebuilts like clang and all needed to build

But that is also the biggest problem for every beginner to even get a glimpse where to
start. Burt I have to tell you there is no real good answer to that question.

The advice that I always give beginners is first to try to get a perspective about
the big building blocks and where they are located in the source tree

So that are the root folders
frameworks packages devices kernel external hardware
Reply all
Reply to author
Forward
0 new messages