Porting Android


258 posts   Page 7 of 11   1 ... 4, 5, 6, 7, 8, 9, 10, 11
by goggin » Wed Aug 01, 2012 4:00 pm
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/
Posts: 2
Joined: Thu Jul 26, 2012 6:59 pm
by fodi » Wed Aug 01, 2012 7:56 pm
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)
User avatar
Posts: 112
Joined: Wed Mar 14, 2012 9:03 pm
Location: Hungary
by zAo » Thu Aug 02, 2012 7:37 am
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
Posts: 7
Joined: Wed Jul 25, 2012 3:39 pm
by bud-pnq » Sat Aug 04, 2012 3:47 am
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.
Posts: 27
Joined: Sat Aug 04, 2012 3:09 am
by CrysisLTU » Sat Aug 04, 2012 1:42 pm
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.
Posts: 23
Joined: Tue May 29, 2012 11:43 am
by bud-pnq » Sat Aug 04, 2012 11:02 pm
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.
Posts: 27
Joined: Sat Aug 04, 2012 3:09 am
by aaa801 » Sat Aug 04, 2012 11:13 pm
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.
Posts: 427
Joined: Mon Jun 04, 2012 9:06 pm
Location: Berkshire
by bud-pnq » Sat Aug 04, 2012 11:17 pm
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?
Posts: 27
Joined: Sat Aug 04, 2012 3:09 am
by aaa801 » Sat Aug 04, 2012 11:35 pm
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
Posts: 427
Joined: Mon Jun 04, 2012 9:06 pm
Location: Berkshire
by bud-pnq » Sun Aug 05, 2012 4:26 am
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:
Posts: 27
Joined: Sat Aug 04, 2012 3:09 am
by MaxxB1ade » Sun Aug 05, 2012 9:14 am
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 :)
Posts: 2
Joined: Sun Aug 05, 2012 9:06 am
by mstefano80 » Sun Aug 05, 2012 2:54 pm
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.
Posts: 4
Joined: Sun Aug 05, 2012 2:33 pm
by aaa801 » Sun Aug 05, 2012 10:34 pm
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
Posts: 427
Joined: Mon Jun 04, 2012 9:06 pm
Location: Berkshire
by Jancis » Mon Aug 06, 2012 9:02 am
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.
Posts: 25
Joined: Thu Jan 26, 2012 3:54 pm
by 6677 » Mon Aug 06, 2012 6:21 pm
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.
Posts: 382
Joined: Wed Mar 14, 2012 9:23 pm
by jamesh » Mon Aug 06, 2012 7:03 pm
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.
Soon to be unemployed software engineer currently specialising in camera drivers and frameworks, but can put mind to most embedded tasks. Got a job in N.Cambridge or surroundings? I'm interested!
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11628
Joined: Sat Jul 30, 2011 7:41 pm
by rino757 » Tue Aug 07, 2012 8:03 pm
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.
Posts: 1
Joined: Tue Aug 07, 2012 7:58 pm
by 6677 » Tue Aug 07, 2012 9:45 pm
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"
Posts: 382
Joined: Wed Mar 14, 2012 9:23 pm
by mstefano80 » Wed Aug 08, 2012 5:50 am
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
Posts: 4
Joined: Sun Aug 05, 2012 2:33 pm
by aaa801 » Wed Aug 08, 2012 12:23 pm
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
Posts: 427
Joined: Mon Jun 04, 2012 9:06 pm
Location: Berkshire
by mstefano80 » Sat Aug 18, 2012 7:20 pm
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
Posts: 4
Joined: Sun Aug 05, 2012 2:33 pm
by caprica6 » Sat Aug 18, 2012 9:56 pm
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?
Posts: 3
Joined: Sat Aug 18, 2012 9:54 pm
by caprica6 » Sat Aug 18, 2012 10:24 pm
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!
Posts: 3
Joined: Sat Aug 18, 2012 9:54 pm
by mstefano80 » Sun Aug 19, 2012 10:05 am
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!
Posts: 4
Joined: Sun Aug 05, 2012 2:33 pm
by caprica6 » Tue Aug 21, 2012 2:05 am
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.
Posts: 3
Joined: Sat Aug 18, 2012 9:54 pm