Page 7 of 11

Re: Porting Android

Posted: Wed Aug 01, 2012 4:00 pm
by goggin
Looks like Ice Cream sandwhich works on it fairly well, Just gotta wait to get the kernal they used.

http://www.engadget.com/2012/08/01/rasp ... -sandwich/

Re: Porting Android

Posted: Wed Aug 01, 2012 7:56 pm
by fodi
Mathijs wrote:
fodi wrote:
fodi wrote:is it a viable option? (possibly it'd get lost among the video links)
We already tried that, they didn't work at all with the Pi. I think there are some differences between the Videocore IV in the Galaxy Y and the one in the Pi. Broadcom will release the drivers anyway eventually, so our best bet is to wait. Also, I'm not sure if CyanogenMOD for the Pi is worth it when there's going to be an official Android build.
it's always worth to have more distros, since everyone has different expectations of android (a single smartphone usually has a stock rom from the manufacturer, a cyanogen rom, a miui rom and a vanilla-like rom for all the expectations that users have)

Re: Porting Android

Posted: Thu Aug 02, 2012 7:37 am
by zAo
This is great! I really hope that someone will port the Nexus Q image to the RPi: the $299 machine will be replaced by the $35 machine! :D

Re: Porting Android

Posted: Sat Aug 04, 2012 3:47 am
by bud-pnq
We promise we won't fork until September, right guys?, please put up the current unfinished ICS build. we're dying to try it out :evil: :D Please people don't push these wonderful people for jelly bean until they finish ice cream sandwich, it will follow naturally.

Re: Porting Android

Posted: Sat Aug 04, 2012 1:42 pm
by CrysisLTU
bud-pnq wrote:We promise we won't fork until September, right guys?, please put up the current unfinished ICS build. we're dying to try it out :evil: :D Please people don't push these wonderful people for jelly bean until they finish ice cream sandwich, it will follow naturally.
You can try these builds here: http://androidpi.wikia.com/wiki/Android_Pi_Wiki
Downloads are at the bottom.

Re: Porting Android

Posted: Sat Aug 04, 2012 11:02 pm
by bud-pnq
I appreciate your help and thanks for the link but I tried that already, and it was slower than squeeze. I wanted to load unfinished broadcom image they demonstrated on the Android 4.0 video.

Re: Porting Android

Posted: Sat Aug 04, 2012 11:13 pm
by aaa801
bud-pnq wrote:I appreciate your help and thanks for the link but I tried that already, and it was slower than squeeze. I wanted to load unfinished broadcom image they demonstrated on the Android 4.0 video.
Its not out.
Also the gingerbread image is prety fast once your fast lockscreen.

Re: Porting Android

Posted: Sat Aug 04, 2012 11:17 pm
by bud-pnq
aaa801 wrote:
bud-pnq wrote:I appreciate your help and thanks for the link but I tried that already, and it was slower than squeeze. I wanted to load unfinished broadcom image they demonstrated on the Android 4.0 video.
Its not out.
Also the gingerbread image is prety fast once your fast lockscreen.
Yeah tried gingerbread also, but fast after what? first lockscreen? well I rebooted about two three times afterwards but it wasn't usable. Sandisk class 10 ultra, rpi not overclocked, is that why it was so slow?

Re: Porting Android

Posted: Sat Aug 04, 2012 11:35 pm
by aaa801
bud-pnq wrote:
aaa801 wrote:
bud-pnq wrote:I appreciate your help and thanks for the link but I tried that already, and it was slower than squeeze. I wanted to load unfinished broadcom image they demonstrated on the Android 4.0 video.
Its not out.
Also the gingerbread image is prety fast once your fast lockscreen.
Yeah tried gingerbread also, but fast after what? first lockscreen? well I rebooted about two three times afterwards but it wasn't usable. Sandisk class 10 ultra, rpi not overclocked, is that why it was so slow?
the mouse is slow but the system is fast =/
Atleast on my pi it was

Re: Porting Android

Posted: Sun Aug 05, 2012 4:26 am
by bud-pnq
Its not out.
Also the gingerbread image is prety fast once your fast lockscreen.[/quote]
Yeah tried gingerbread also, but fast after what? first lockscreen? well I rebooted about two three times afterwards but it wasn't usable. Sandisk class 10 ultra, rpi not overclocked, is that why it was so slow?[/quote]

the mouse is slow but the system is fast =/
Atleast on my pi it was[/quote]

I just threw gingerbread image out when mouse worked so slow, thinking the whole system is unusable at this stage. Sorry I should've looked around more. :mrgreen:

Re: Porting Android

Posted: Sun Aug 05, 2012 9:14 am
by MaxxB1ade
I am soo close to buying a WD TV Live but this topic is keeping me hanging on.

In fact the clincher might just be that Spotify was just released on Android.

I'll be ordering a RPi as soon as payday comes around again, but if this project is looking like a winner around that time, I just might go for two. One for learning Python (and possibly C) and one for Android/Netflix/Spotify.

I wish you all good luck and much success, even if it is for my own personal benefit :)

Re: Porting Android

Posted: Sun Aug 05, 2012 2:54 pm
by mstefano80
Hi,
was someone able to login into his google account?

I've installed the "CyanogenMOD 7.2 image" found here http://androidpi.wikia.com/wiki/Android_Pi_Wiki.
DHCP worked fine but I had to play a lot with "setprop net.dns" to get internet working properly with the stock browser (initially the browser cannot resolve hostnames)
With the new image "CyanogenMOD 7.2 image (with Ethernet Menu)" internet worked fine from the first time, stock browser, youtube, ...

Also I have installed the google apps for Cyanogen 7 (downloaded from here: http://goo.im/gapps ) but when I try to sign in in my google account I get always the error "You don't have a network connection".
I tried also the trick to login using the YouTube app but without success.
It seams that I can login into my google account only with 3G or WIFI, but the raspberry has only the ethernet device, eth0.

I searched a lot (rmnet 3g emulation, wifi emulation, ethernet reverse tethering ... ) but I found nothing.

Can someone help me or suggest a wifi usb dongle supported by Raspberry and by this android distribution?

Thankssss.

Re: Porting Android

Posted: Sun Aug 05, 2012 10:34 pm
by aaa801
mstefano80 wrote:Hi,
was someone able to login into his google account?

I've installed the "CyanogenMOD 7.2 image" found here http://androidpi.wikia.com/wiki/Android_Pi_Wiki.
DHCP worked fine but I had to play a lot with "setprop net.dns" to get internet working properly with the stock browser (initially the browser cannot resolve hostnames)
With the new image "CyanogenMOD 7.2 image (with Ethernet Menu)" internet worked fine from the first time, stock browser, youtube, ...

Also I have installed the google apps for Cyanogen 7 (downloaded from here: http://goo.im/gapps ) but when I try to sign in in my google account I get always the error "You don't have a network connection".
I tried also the trick to login using the YouTube app but without success.
It seams that I can login into my google account only with 3G or WIFI, but the raspberry has only the ethernet device, eth0.

I searched a lot (rmnet 3g emulation, wifi emulation, ethernet reverse tethering ... ) but I found nothing.

Can someone help me or suggest a wifi usb dongle supported by Raspberry and by this android distribution?

Thankssss.
I managed to get market working just fine
You have to exit out of the setup and set the network to use the static settings beforehand
then just launch market and it should log right in

Re: Porting Android

Posted: Mon Aug 06, 2012 9:02 am
by Jancis
i admire you guys for making this work. too bad you didn't have all the closed drivers and blobs needed, otherwise this would rock.
it's also nice to see foundation picked up this topic and decided to go for supported android distro.

i tested images, of course they are slow-ish, but you made it happen from 0 to 100 in few weeks, only the broadcom part missing. premium work, thank you so much.

Re: Porting Android

Posted: Mon Aug 06, 2012 6:21 pm
by 6677
Jancis wrote:it's also nice to see foundation picked up this topic and decided to go for supported android distro.
The foundations version uses an altered kernel from what these images use, theirs I believe has full hardware acceleration but it is using closed source code whereas we only have access to the open source stuff.

Re: Porting Android

Posted: Mon Aug 06, 2012 7:03 pm
by jamesh
There is a lot of custom code both on the Arm side (Android and Linux) and on the GPU to support HW acceleration under Android. It's taken well over a year to make it work to the current level, and that with an experienced team (at the SoC manufacturer). Fortunately, this work is (mostly) applicable to any SoC using the VIdeocore, which is a few, including the one on the Raspi.

Re: Porting Android

Posted: Tue Aug 07, 2012 8:03 pm
by rino757
Hey, I'm really a newbie at this. I'm borrowing my dad's pi and I was wondering if anybody could give some step-by-step instructions to install (any) android version on it.

P.S. I tried simply extracting the isos from different listed android versions for the raspberry pi, but it never shows any signs of booting.

Re: Porting Android

Posted: Tue Aug 07, 2012 9:45 pm
by 6677
Theres where your going wrong, you don't extract the iso.

Use a piece of software called an iso burner, a .iso file contains details about how a CD or DVD etc is meant to look, the iso burner then constructs your CD/DVD/this case SD to match the iso. Just dragging the ISO onto the SD or extracting the contents of the ISO onto the SD aren't the same.
This is the recommended tool on windows: http://www.softpedia.com/get/CD-DVD-Too ... ager.shtml
Searching "ISO burner mac" will easily find a burner for mac and most linux distro's already support ISO burning, just google "[name of your distro] ISO burning"

Re: Porting Android

Posted: Wed Aug 08, 2012 5:50 am
by mstefano80
thanks for the answer but I was unsuccessful.

Ethernet is enabled and configured with static ip address.
Internet is working because with the browser I can surf.

Every application that requires a google account (market, gtalk), when started, displays a message that on the device there isn't a google account and asks me if I want to create one, if I answer 'NO' the application closes itself, if I answer 'YES' the application "Add a google account" will be loaded, the same that I can load through Settings>Account&Sync>Add Account.
This is the only app that does not go on internet, after I enter my username and pwd of google and tap SignIn the app displays the spinner (connecting to google account) and after one or two minutes it displays that I haven't a network connections and a button "Add Wifi".
This is weird, between my sign-in tap and the 'no network' message I watched logcat and tcpdump, no attempt to connect to internet or errors. I suppose that the Google-Sign-In app detect that I haven't any mobile data connection or Wifi, put itself in a waiting status and after a timeout displays the error.



aaa801 wrote:
mstefano80 wrote:Hi,
was someone able to login into his google account?

I've installed the "CyanogenMOD 7.2 image" found here http://androidpi.wikia.com/wiki/Android_Pi_Wiki.
DHCP worked fine but I had to play a lot with "setprop net.dns" to get internet working properly with the stock browser (initially the browser cannot resolve hostnames)
With the new image "CyanogenMOD 7.2 image (with Ethernet Menu)" internet worked fine from the first time, stock browser, youtube, ...

Also I have installed the google apps for Cyanogen 7 (downloaded from here: http://goo.im/gapps ) but when I try to sign in in my google account I get always the error "You don't have a network connection".
I tried also the trick to login using the YouTube app but without success.
It seams that I can login into my google account only with 3G or WIFI, but the raspberry has only the ethernet device, eth0.

I searched a lot (rmnet 3g emulation, wifi emulation, ethernet reverse tethering ... ) but I found nothing.

Can someone help me or suggest a wifi usb dongle supported by Raspberry and by this android distribution?

Thankssss.
I managed to get market working just fine
You have to exit out of the setup and set the network to use the static settings beforehand
then just launch market and it should log right in

Re: Porting Android

Posted: Wed Aug 08, 2012 12:23 pm
by aaa801
mstefano80 wrote:thanks for the answer but I was unsuccessful.

Ethernet is enabled and configured with static ip address.
Internet is working because with the browser I can surf.

Every application that requires a google account (market, gtalk), when started, displays a message that on the device there isn't a google account and asks me if I want to create one, if I answer 'NO' the application closes itself, if I answer 'YES' the application "Add a google account" will be loaded, the same that I can load through Settings>Account&Sync>Add Account.
This is the only app that does not go on internet, after I enter my username and pwd of google and tap SignIn the app displays the spinner (connecting to google account) and after one or two minutes it displays that I haven't a network connections and a button "Add Wifi".
This is weird, between my sign-in tap and the 'no network' message I watched logcat and tcpdump, no attempt to connect to internet or errors. I suppose that the Google-Sign-In app detect that I haven't any mobile data connection or Wifi, put itself in a waiting status and after a timeout displays the error.



aaa801 wrote:
mstefano80 wrote:Hi,
was someone able to login into his google account?

I've installed the "CyanogenMOD 7.2 image" found here http://androidpi.wikia.com/wiki/Android_Pi_Wiki.
DHCP worked fine but I had to play a lot with "setprop net.dns" to get internet working properly with the stock browser (initially the browser cannot resolve hostnames)
With the new image "CyanogenMOD 7.2 image (with Ethernet Menu)" internet worked fine from the first time, stock browser, youtube, ...

Also I have installed the google apps for Cyanogen 7 (downloaded from here: http://goo.im/gapps ) but when I try to sign in in my google account I get always the error "You don't have a network connection".
I tried also the trick to login using the YouTube app but without success.
It seams that I can login into my google account only with 3G or WIFI, but the raspberry has only the ethernet device, eth0.

I searched a lot (rmnet 3g emulation, wifi emulation, ethernet reverse tethering ... ) but I found nothing.

Can someone help me or suggest a wifi usb dongle supported by Raspberry and by this android distribution?

Thankssss.
I managed to get market working just fine
You have to exit out of the setup and set the network to use the static settings beforehand
then just launch market and it should log right in
make sure the ethernet icon is actualy displaying on the hotbar
if its not then go into the menu and turn the ethernet off and on
you should be able to see the lights onboard turn off and on
then it should work ok

Re: Porting Android

Posted: Sat Aug 18, 2012 7:20 pm
by mstefano80
Very thanks, It works. :D :D

After some attempts I found the method to load ethernet networking at boot,
and it works with DHCP too.

1' step: create the file /system/bin/starteth0.sh with the following commands:

Code: Select all

#!/system/bin/sh
ip link set eth0 down
ip link set eth0 name rmnet0
netcfg rmnet0 dhcp
ip link set rmnet0 up
and make it executable.

2' step: add the following line at the end of /system/etc/init.goldfish.sh :

Code: Select all

# Start Ethernet Networking
/system/bin/starteth0.sh
I found the rmnet0 hack here: http://goo.gl/XBdRu

All of the apps have full network connectivity.

Thanks for your help.

aaa801 wrote: make sure the ethernet icon is actualy displaying on the hotbar
if its not then go into the menu and turn the ethernet off and on
you should be able to see the lights onboard turn off and on
then it should work ok

Re: Porting Android

Posted: Sat Aug 18, 2012 9:56 pm
by caprica6
How did you manage to install the gapps? I've downloaded them, but I can't reboot into recovery (if that's even possible). ROM Manager & terminal crash each time I open them. Is there another way to do this?

Re: Porting Android

Posted: Sat Aug 18, 2012 10:24 pm
by caprica6
Ah, resinstalled ROM Manager, which now works without crashing, but it's not letting me allow superuser permissions (auto denies) to reboot into recovery. Still playing around, but if someone has any advice, would be much appreciated!

Thanks!

Re: Porting Android

Posted: Sun Aug 19, 2012 10:05 am
by mstefano80
For Google Apps:
If you have a pc or laptop with Linux, connect the Raspberry SD card with a card-reader and mount the root partition. Extract the google apps zip, i.e. http://goo.im/gapps/gapps-gb-20110828-signed.zip , it contains two directory META-INF and system; copy all contents of the system directory of the zip into the /system directory of raspberry partition.
The META-INF contains the script executed by the recovery of a normal smartphone, you can see what the script do and do it manually.

Another method is to copy the google apps zip into the raspberry sd card and perform the same operation with a terminal (obviously rooted) and with / mounted read-write: mount -orw,remount /

For Superuser permission / Root:
For that I mounted the system partition of the raspberry sd on my linux laptop and set the sticky-bit to the /system/bin/su script, for example if the root partition of the raspberry is mapped ad /dev/sdb2:

Code: Select all

mkdir /tmp/sdb2
mount /dev/sdb2 /tmp/sdb2
cd /tmp/sdb2/system/bin
chmod u+s su
chmod g+s su
Unmount, put the sd card in the raspberry, boot it and su is fully functional!

caprica6 wrote:Ah, resinstalled ROM Manager, which now works without crashing, but it's not letting me allow superuser permissions (auto denies) to reboot into recovery. Still playing around, but if someone has any advice, would be much appreciated!

Thanks!

Re: Porting Android

Posted: Tue Aug 21, 2012 2:05 am
by caprica6
Excellent, thank you, I'll try that this week. Is gingerbread having sound out problems, like they are with ICS? I have yet to hear a peep as output from GB.