yashsingh1/xdaforums huggingface dataset:
[Raspberry Pi Development] ad_on_is:
Well, I got it to work too on WiFi and on a VM ;) BUT....

I found out, that GooglePackageInstaller is causing the bootloop. Since the PlayStore isn't showing up, I assume this PackageInstaller is also responsible for it, isn't it?

Can you check via adb, if you have a GooglePackageInstaller in your /system/priv-app folder?
[Raspberry Pi Development] cdnron:
Still no go. Oh well.
[Raspberry Pi Development] lifeisfun:
I wish this was available as image for SD card for us amateurs :)
[Raspberry Pi Development] B3lph3g0r:
What about bash in windows 10??? It's basically a minimum installation of ubuntu
[Raspberry Pi Development] ad_on_is:
Theoretically you could do this on a Windows machine too, but the script and all the commands are for linux. So just setup a VirtualBox machine and Ubuntu and you're ready to go. What's the problem?
[Raspberry Pi Development] B3lph3g0r:
It's not a problem :).... I only want give another option , win10 now has bash (aka Linux subsystem) so I was mention it if someone want to use it
[Raspberry Pi Development] canbonbon:
Please make downloadable the SD card img file

+1

Can you please create an img file? The even folks on Windows could just push the img on the sd card. That would really help.
[Raspberry Pi Development] Voltran:
Let's see if netflix will finally work
[Raspberry Pi Development] karolp1993:
Is there any possibility to work with GPIO ports?
[Raspberry Pi Development] acme64:
im wondering, is the nexus player remote simple bluetooth? can you pair it with a pie and navigate the ui like normal?
[Raspberry Pi Development] caraar12345:
Could the fact that it's rooted be having an effect on DRM playback? (I'm not an Android dev of any kind so correct me if I'm completely wrong!)
[Raspberry Pi Development] :
[MENTION=5471195]tabp0le[/MENTION] in the OP you have

this was not working until the X was lowercase.
[Raspberry Pi Development] tabp0le:
No, being rooted alone is not the issue. It's the fact we don't have valid DRM keys. :(

It should work. :)

Thanks, will update.
[Raspberry Pi Development] cdnron:
I had no issue copying and pasting the command with the uppercase X.
[Raspberry Pi Development] mrdigit420:
just bought an android box.. didn't see this otherwise could've ordered myself Rasberry Pi. good luck OP , thank you :)
[Raspberry Pi Development] Valkiry:
Glad you didn't buy a Pi dude. This is no where near stable.
[Raspberry Pi Development] bedelaitre:
Really hope that someone could provide a "ready-to-use" iso or img filte to be written directly on SD card.
[Raspberry Pi Development] tabp0le:
Haha, yeah definitely not production ready.

Could I get someone to test this gapps script please?

https://cloud.spryservers.net/s/uulJTwHcdH15Agk (Updated to TEST2)

Just unzip it to your computer, set your Pi's IP in config.ini, then:

$ chmod +x gapps.sh && source gapps.sh

Do NOT unzip the other .zip's within the main zip.
[Raspberry Pi Development] tabp0le:
In regards to my previous post, I corrected a small error and re-uploaded. Please now try the TEST2 zip instead. https://cloud.spryservers.net/s/uulJTwHcdH15Agk
[Raspberry Pi Development] Valkiry:
I'll get onto it tonight when I get back from work if no one beats me to it :)
[Raspberry Pi Development] tabp0le:
Thanks! I really appreciate it. I'm crossing my fingers it works. It hopefully makes it much easier. Basically, instead of pushing a bunch of files via adb, it pushes a zip to /tmp, then runs a script to extract that zip directly into /system, then sets appropriate permissions and reboots.
[Raspberry Pi Development] Valkiry:
I think that method is going to be far more appropriate. Any chance we can make script to help those having issues with actually DD'ing the .imgs to the sdcard. Maybe make it option based in regards to 8/16/32gb sd cards. I have a 32Gb and 16Gb so I can get data sizes for that just no 8gb
[Raspberry Pi Development] tabp0le:
I'd like to, but it's going to be alot of work making individual images for each size SD card. Additionally, since not all manufacturers are exactly the same, it could end up damaging them. Really, the safest method is to dd partition by partition.
[Raspberry Pi Development] Valkiry:
What about making the final partition 250-500mb smaller to equate for the different manafcturers
[Raspberry Pi Development] Xzavier2142:
Can somebody explain what I might be doing wrong here, I Formatted a Class 10 SD Card too the 4 Partitions using Gparted, Then using Debian 8 I DD'd the System and boot images to /dev/sdb1 and /dev/sdb2 Once that was done I took the card from the VM plugged it into the PI and it booted to the android logo but hung on the logo and still hanging 3 hours later. I've tried multiple linux VM's I've tried 8GB SD, 16,32 cards I've gone over and over the formatting the flags boot and LBA, Still hangs at Android logo, Any ideas? I'm completely Out of luck
[Raspberry Pi Development] tabp0le:
Did you make sure partition 1 was boot, 2 system, 3 cache, and 4 data? Also, did you make sure to set the bs=1M with your dd command? Without the bs=1M, for some reason it will not boot.
[Raspberry Pi Development] Valkiry:
I had a bit of an issue with VM and installing. Whenever DD bootimg was successful it would eject the SD card from the VM and when I tried to DD the system.img it would work properly. If you can avoid using the VM
[Raspberry Pi Development] Xzavier2142:
Yeah I followed your instructions to the letter I also tried both with bs=1M and without just incase. I even checked out previous builds on videos people tried userdata instead of data so I tried that label too, I really for the life of me workout why it won't work, I'm ready to install ubuntu on one of my spare Blade servers to get this working

Thanks,

Edit: I'm installing Linux on a Blade Server Will let know if worked as non-vm
[Raspberry Pi Development] Xzavier2142:
Okay Installed Ubuntu on Blade Server Did all the instructions again to 3 SD Cards to make sure its not the cards, used 2 card readers to cross out card reader fault, This time it boots to the colors thats it it just keeps booting back to colors this doesn't get any further

Edit: you can use a VM to DD system image, If you just extract boot image and copy it to P1 it works fine, I'm now in Android
[Raspberry Pi Development] :
Someone knows why i can't download anything from play store? Keeps telling me "installation pending" even i don't have any app installing.

Deleted google play data, 2 hours waiting, delete account, nothing worked.
[Raspberry Pi Development] matteo2:
Can I install it from Windows?
[Raspberry Pi Development] Android-xp:
As stated in the post, you'll either need a pc running Linux or a VM.
[Raspberry Pi Development] tabp0le:
Wow, that's great. Maybe I'll just update OP with that information and use a tarball for boot instead. Thank you!
[Raspberry Pi Development] tabp0le:
Probably, it's untested. I don't have anything to test with though.

Can you look at my post a page or so back and try the alternative Gapps method i posted please? AFAIK no one tested it yet.
[Raspberry Pi Development] Xzavier2142:
Running into a whole new ball park Unable to install Gapps at all, Device connects fine then just gives device not connected errors, I attempted to do each command in terminal with no result, what I get is File system is read only error, I tried adb shell mount -o remount,rw even then It won't allow the upload of Gapps.zip

edit :

[root@localhost test]# ./gapps.sh
already connected to 192.168.1.144:5555
adbd is already running as root
remount succeeded
failed to copy 'gapps.zip' to '/tmp': couldn't create file: Read-only file system
/system/bin/sh: unzip: not found
chmod: /tmp/install.sh: No such file or directory
/system/bin/sh: ./tmp/install.sh: not found
Done, rebooting...

Edit: I've tried the Original Script and got

./gapps.sh: line 129: prepare_gapps: command not found ./gapps.sh: line 130: create_partition: command not found
[Raspberry Pi Development] armandom123:
I'm stuck at the exact same spot. Read-only file system with the new test script. And those 2 errors with the original script. Any help would be greatly appreciated!

Here's what's currently mounted.

1|rpi3:/ # mount
rootfs on / type rootfs (ro,seclabel)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600,ptmxmode=000)
proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt type tmpfs (rw,seclabel,relatime,mode=755,gid=1000)
none on /config type configfs (rw,relatime)
none on /dev/memcg type cgroup (rw,relatime,memory)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
pstore on /sys/fs/pstore type pstore (rw,seclabel,relatime)
/dev/block/mmcblk0p2 on /system type ext4 (rw,seclabel,relatime,data=ordered)
/dev/block/mmcblk0p3 on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,errors=panic,data=ordered)
/dev/block/mmcblk0p4 on /data type ext4 (rw,seclabel,nosuid,nodev,noatime,errors=panic,data=ordered)
tmpfs on /storage type tmpfs (rw,seclabel,relatime,mode=755,gid=1000)
/dev/fuse on /mnt/runtime/default/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /storage/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/read/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/write/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
[Raspberry Pi Development] tabp0le:
Ok, new method to try. Please download this: https://cloud.spryservers.net/s/YHHNsDf8SL24SyF

Then do the following:

Insert your SD card into a reader on your PC

Extract the downloaded zip

Open a terminal in the gapps folder that was created during extraction

$ chmod +x gapps.sh

Edit the config.ini to match the partition name of the pi's system partition on the SD card

$ source gapps.sh

Re-insert the SD into the Pi and turn it on

Please let me know if this works. Thank you!
[Raspberry Pi Development] Xzavier2142:
This looked promising as it did copy everything across and did finish without error but sadly it won't boot past the android logo, it hung for an hour
[Raspberry Pi Development] Xzavier2142:
If anyone else is stuck you can use the original method some functions won't work but it does half work, You can bypass google apk's not working by following this work around:

1) Follow Original method

2) in terminal do

adb root
adb connect 192.x.x.x (You device ip)
adb install Yourapk.apk

Help this helps those who want something to work with
[Raspberry Pi Development] Android-xp:
I'm facing the same problem. Even enabling all permissions from within settings and re-installing latest versions of PlayStore/Google PlayServices didn't help. Any other solutions?
[Raspberry Pi Development] poelvord:
How can i do the installation of the gapps if i am on windows without virtual machine?

Not possible to propose an install with Noobs?
[Raspberry Pi Development] angel038:
+1 maybe it's possible to have a .img to directly burn to our SD?

Thanks for noobs
[Raspberry Pi Development] idsparco97:
I tried your method and it worked. Next I wiped data and cache of Google Play Store and Google Play services and they works fine.

There's an issue with apps installation. When i try to update or install an app, appear "Waiting installation...", can you help me?

I installed manually the apps whitout problems :confused:
[Raspberry Pi Development] bedelaitre:
I'm really a noob. I can't do partitions with ubuntu. I've installed gParted, but I don't know how to use it to create the 4 partitions
[Raspberry Pi Development] bd314:
Probably you should use fdisk, it's really easy and on the web you can get some helps for the commands like :

https://www.howtogeek.com/106873/how-to-use-fdisk-to-manage-partitions-on-linux/

For the first, I got a bootloop, when I restart the pi3.

Some commands can't be execute on our device, and we need busybox ( test 2 for the gapps )

And for the last, I simply can't get it working without a lot of modifications. I think, I need to custom some paths, and probably more.

And I was thinking ? Why shouldn't you developpe a recovery like TWRP ? It could be so easy to patch all the ressource on the pi. If you need, I can help you for the testing.

Overall, thanks for all your efforts, it will work, i'm sure. The alpha is really stable otherwise, I got only 2 reboot without prompt in more than 2 hours. Keep working, all my respect guy.
[Raspberry Pi Development] letroll59:
Hello, anyone can help me? I have formated my sdcard and use boot and system.img, set the boot flag. But Android Tv don't start. Just a black screen. Or can someone build a global .img to flash, with maybe just one partition to resize after flashing.
[Raspberry Pi Development] drumnbass31:
what it work and what doesnt

Hello,

thanks for your work on raspberry :good:

Sorry for my english :D

I have install it (thats work) and i have got a lot of issue:

I cant get hdmi cec working even with the same modification in config.txt as openelec where i can get hdmi cec working with my toshiba tv remote (regza link).

I can associated my android phone but control doesn't work, like if every second bluetooh is disconnected. (may be in relation with the message at boot bluetooh share closing)

i can start google play but i cant install anything (installation pending)

With Youtube i can get the sound, with video i have a black screen.

I cannot activated root option in developer mode to be able to have the shutdown icon.

Thanks for your help.

---------- Post added at 01:28 PM ---------- Previous post was at 01:22 PM ----------

---------- Post added at 01:31 PM ---------- Previous post was at 01:28 PM ----------

Hi,

the easy way with gparted to do this job:

First create the partition fat32 then apply, then right click on it and find the appropriate menu for the parameters lba boot and to name it BOOT. apply

do the the same for the others partition ext4.

voili voilou en espérant que ça puisse t'aider
[Raspberry Pi Development] bedelaitre:
Thanks a lot.

Merci beaucoup. J'attends un 6e raspberry pour me lancer dans l'installation
[Raspberry Pi Development] takatuka291:
Can you explain how you install gapps with every steps? Cause my device is stuck at bootani after installation. I executed the script and there wasn't any error but it is just don't boot.
[Raspberry Pi Development] thematrixisgone:
in Italian language google play hangs on - waiting for the installation... :(
[Raspberry Pi Development] bub_79:
I'm a noob ?

In first thank you for the job...

I have installed All partitions, the sdcard run on raspberry.

But i don"t know how to launch gapps.sh.

How to connect in ssh on raspberry with this android image ?

Thanks

PS Sorry for my poor english :crying:
[Raspberry Pi Development] letroll59:
Same here, I'll try with other store like apptoide.
[Raspberry Pi Development] shivasiddharth:
Download the apps on the linux PC from apkmirror and move into the directory, where you have downloaded the apps. Then open terminal and type the following commands without the quotes.

adb connect "IP address of you Pi"

adb install "name of the app that you have downloaded"
[Raspberry Pi Development] totalgaara:
Nice project but it's unusable, too slow, it's horrible, one hour for the google account setup, a lot of crash etc.., but i hope it will be fixed, i enjoy Android on my raspberry because i don't have a android tv and i don't want to buy a new one.

For everyone who want to install it, you need to follow instruction on linux, also for the gapps installation
[Raspberry Pi Development] drumnbass31:
Hi +1 it's unusable

Google play work only with english installation

hdmi cec not working

bluetooh control with android phone not working

a lot of crash every time

drm issue

But Something strange also:

im not sure that is an Android tv version , because i have install mycanal app with Google play, and this application ask for phone permission ?

but there is no phone permission to add, it seems that the application detect an android phone ?

maybe i have not install correctly android on the raspberry.

i will try with next version, today it's unusable, thanks again ;)
[Raspberry Pi Development] bub_79:
THANK YOU !!!

Android TV installed !!!

Tests in running
[Raspberry Pi Development] shivasiddharth:
For all all the noobs, i have prepared a noob friendly step-by-step guide for implementing this build. Search for "How to Install AOSP Android TV 7.1.2 on Raspberry Pi 3" in youtube.
[Raspberry Pi Development] Cantalou:
What about Skype ?

Thanks for this very good work !

I have 2 questions :

- How can I tune the display to fit with my TV screen ? (I can't see all the items, especially at right & left)

- What about Skype ? Is it possible to communicate with the Skype app and a USB webcam ?
[Raspberry Pi Development] shivasiddharth:
For changing resolution, you need to eject your card from Pi insert it into a PC and open the config.txt file. change the framebuffer_width=1280 framebuffer_height=720 to match your TV's screen resolution. Setting width to 1920 and height to 1080 should work. Skype should work, the key is get your webcam up and running in android. By default, if your Skype app does not detect your USB webcam, you may have to install an app to get the webcam working. There are plenty of apps in playstore..
[Raspberry Pi Development] ad_on_is:
Still bootloop, but when I delete system/priv-app/GooglePackageInstaller it boots up.
[Raspberry Pi Development] MartiniGM:
Brings back memories... i built Android 7.0 myself a while back (based on Android-rpi [MENTION=4166799]github[/MENTION]) but my conclusion was that because of limited resources, even running Android on Pi 3 is probably more for "academical interest" than actual everyday usefulness.

But thumbs-up to thread starter.
[Raspberry Pi Development] StarScream159:
I am looking forward to this. I want to give it a try once DRM support is added. Netflix and YouTube playback would be amazing.

What about video acceleration from the GPU? Can it handle playing back 1080p video? (Like, for example, OSMC.)
[Raspberry Pi Development] takatuka291:
thnx bud, after some reboots and patience it is stable right now. but i have only one issue right now; Google servers. You know when i trying to download some apps from play store, it is blocking me and play store keep saying "download pending" to me. did you see that too pr it is just regional problem. if it is that, i'll install a VPN that's why i am asking. or if you have different idea to fix that, im listenin you.
[Raspberry Pi Development] NeoAmnesyth:
is it normal if after flashing gapps at "enabling root" and "enforcing reboot" my rpi3 reboots and is stuck on boot animation? or does it just take longer? (i tried with wifi, is that the issue?)

thanks for your replies ;)
[Raspberry Pi Development] ad_on_is:
Dude, try the search, or read the thread from the beginning. There're many complaints about bootloop and there's a temporary solution posted by me, a few posts back. Just read and search, before asking.
[Raspberry Pi Development] shivasiddharth:
One thing that i observed is, once you shut down and restart the Pi, the Wifi does not auto connect. Since the pi reboots a number of times during the gapps installation, i would suspect connecting through wifi for gapps installation would be an issue. The gapps script continuously checks for the status of Pi using the IP address. So i would suggest you to always use the Ethernet for Gapps installation. delete system/priv-app/GooglePackageInstaller for the pi to boot...
[Raspberry Pi Development] ad_on_is:
I just stumbled upon the Android TV version for ODROID xu3/xu4, which is also ARM. Can this be somehow helpful?

https://forum.odroid.com/viewtopic.php?f=94&t=24201

Kernel-Sources:

https://github.com/voodik/android_kernel_hardkernel_odroidxu3
[Raspberry Pi Development] shivasiddharth:
Khadas too... they have a stable Android 7.1 running..
[Raspberry Pi Development] velis74:
This worked for me as well, but now Pi won't boot any more whereas previously (without gapps) it did.

A bit more information:

"standard" gapps available at your download link don't have the install.sh script

second version (which attempts to push the .zip to Pi and then extract / install it) - I found the following problems with it:

after adb root, connection resets and another adb connect is necessary

the Pi ROM at the download location does not have an unzip utility

also chmod has no effect. it completes, but the script's flags remain as they were when copied from the PC (yes, adb running in root, triple checked). even running su within adb shell doesn't help

Other than that, stock ROM (without gapps) seems to be working fine. launcher flickers (both in main view and drawer view), but settings app doesn't so I'm assuming it's a launcher problem. Attempting to install more apps to see how it goes.

Can you tell me how you got the .zip you install in third attempt? I'd like to install stock (non-TV) pico open-gapps to see it that works.
[Raspberry Pi Development] alnsnk:
AndroidTV + Nestcam

Anybody know if the Nest app works? Thanks.
[Raspberry Pi Development] kevin761:
Good job!! I will wait a more easy method for windows user!

Thanks!
[Raspberry Pi Development] tabp0le:
To be completely honest, there may never be an easy way or really any way for windows. You MIGHT be able to use bash for Windows, but this is untested.
[Raspberry Pi Development] takatuka291:
Dude, i tried everything. Spotify doesn't respond, Vimeo and Dailymation videos also giving me a black screen. I didn't try Kodi but idc it because i want online materials. Thanks for your effort but at this time, it is useless. But i must admit, interface is very smooth :)

Oh, i am almost forgetting, screen refreshing a lot and it can solve with 2D cpu enforcing in developer settings. You know what i am talking about. This screen tearing or something like that. Whatever I'm waiting for next update. Thanks again.
[Raspberry Pi Development] adhossain:
Eagerly waiting for a good release with working Youtube
[Raspberry Pi Development] takatuka291:
bash doesn't recognize sdcards, usbs, hdds and other device. i spent a lot of time with bash, it is funny and sometimes you can use some useful scripts but that's it. but may be somebody can get an image with win32diskimager for beginners. im using a 32gb sdcard that's why i didn't do that. im too lazy to repartition for 16gb sdcards. may be one day...
[Raspberry Pi Development] shivasiddharth:
I have prepared a pre-partitioned image of this android build. You can just write it onto a sd card using win32diskimager or etcher.io. But still you need to install gapps. I am working on preparing an image with Gapps and it should be out in some time.

Download links for prepartitioned image: https://goo.gl/ZdsPWE

Installation guide on Youtube: https://www.youtube.com/watch?v=9_9_Ss9NJZM
[Raspberry Pi Development] canary31:
Hello shivasiddharth,

I followed your procedure but when I launch the raspberry pi with the sdcard prepared, I have a black screen.

Nothing is happening. I do not know if this is a display problem (hdmi_mode) or Android TV does not launch.

Do you have an idea ?

Thx

Regards

canary
[Raspberry Pi Development] shivasiddharth:
May i know as to which image you used? The last one i shared ? or you partitioned the sd card by yourself? Is this before installing gapps or after gapps installation ?

---------- Post added at 03:37 PM ---------- Previous post was at 03:10 PM ----------

connect a keyboard and press esc... It may sound ridiculous, but it worked in my case.
[Raspberry Pi Development] canary31:
1. the problem was when i partitioned the sd card.

2. I used too the image and no pb. Everything is ok on a computer screen. Thank you !

-> but when I plug the raspeberry pi on my tv sony no signal on the HDMI.

canary31