Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Friday, May 20, 2011

Remote host debugging on android x86

There is a pretty cool way to debug android applications on an android x86 host
when you don't have usb connection between your workstation and the the device (in my case the netbook)

Here is described how can be done
And here is my screenshot with my Eclipse session debugging one remote app (you can even put breakpoints and is quite fast at deploying the app)

Image

Here is the remote breakpoint example

Image


What is next class ? nacl native apps for x86 at last
and maybe qt debugging on the device

Thursday, May 05, 2011

Android x86 and grub2 - peace at last


I found a way to add android to the grub2 menu from debian on my eeepc laptop and on my debian/ubuntu workstations
Thanks for this page http://www.ceh-photo.de/blog/?p=357 I have downloaded the latest nightly for
eeepc http://android-x86.moonman.dk/
downloaded and created a usb disk
http://android-x86.moonman.dk/files/eeepc/eeepc-20110505_usb.img
dd if=eeepc-20110505_usb.img of=/dev/sdb
or if you use generic
dd if=eeepc-20110505_usb.img of=/dev/sdb
booted installed (without the grub installation option)
added android to the grub2 menu (debian sid, it should work on natty
too) and all worked without issues after that 




for me the system dir was /android-2011-02-xx and the
androidboot_hardware=eeepc
or if you run a genric pc
androidboot_hardware=generic_x86
please verify your dirs and mount your android partition to check the
dir name before running update-grub
mount /dev/sdb4 /mnt
ls /mnt/
android-2011-02-20  lost+found
Here is the full custom grub

And don't forget to update the grub2 config
update-grub



ps: now i should create a fake sdcard so applications can be installed

Wednesday, April 27, 2011

android-x86 nightly builds are back

I started to build my own images but nightly builds for android x86 are back
http://android-x86.moonman.dk/

Downloaded the gingerbread version dd it on the usb stick

sudo dd if=eeepc-20110427_usb.img of=/dev/sdb
sync

and rebooted the eeepc with the new image
wow how fast it is !

ps: got this issue (android skipping incompatible /usr/lib/libz.a when searching for -lz) when building gingerbread on debian 64 but was easy solvable :
sudo apt-get install ia32-libs g++-multilib gcc-multilib lib32z1-dev lib32ncurses5-dev

Saturday, April 16, 2011

booting Android from a Cheap mp3/mp4 player on my eeepc

my usb stick is not booting anymore , i guess is time to buy another so i had a cheap mp3/mp4 player with z80 cpu ?!!

lsusb: ID 10d6:1101 Actions Semiconductor Co., Ltd D-Wave 2GB MP4 Player / AK1025 MP3/MP4 Player

i formated the /dev/sdb as ext4 just to be sure
then used the usual android usb instructions

zcat android-x86-1.6-r2_usb.img.gz | dd of=/dev/sdb

Android booted quite niceley on eeepc with wireless and all
next is to build the 2.2 / 2.3 image and burn it on the player's partition
I wanted to test the quake on it but it said that sdcard is not present
so i have to mount somehow the sdcard(the debian parition) and
install from there (put the data there)

Friday, February 18, 2011

The power of open source i can build my own android-x86

I have a spare partition so i will build from source and install android-x86 on it just to test it how it works on a real desktop

The only problems to build on my 64bit stattion were to add
some 32bit libs and headers
sudo apt-get install ia32-libs  g++-multilib gcc-multilib 
lib32z1-dev lib32ncurses5-dev 

checked my partition with fdisk -l
sudo fdisk -l /dev/sda

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         243     1951866   82  Linux swap 
/dev/sda2            7781        9729    15655342+  83  Linux
/dev/sda3             244        3890    29294527+  83  Linux
/dev/sda4            3891        5111     9807682+  83  Linux

my android partition is sda4
sudo mkfs.ext3 /dev/sda4
sudo mount /dev/sda4 /mnt/

from
android-x86/out/target/product/generic_x86/usb_boot
i copied all the android-system folder
sudo cp -rp * /mnt/

added these lines in
/etc/grub.d/40_custom

menuentry "Android_x86" {
set root=(hd0,3)
linux /android-system/kernel root=/dev/ram0 ro  acpi_sleep=s3_bios,s3_mode SCR=/android-system
initrd /android-system/initrd.img
}

hd0,3 is first hdd (sda) and fourth partition (if you do partition numbering from 0..3)

sudo su 
cd /boot/grub
grub-mkconfig > grub.cfg

hmm grub doesn't find my kernel
i will try to dd to the usb stick

Wednesday, December 01, 2010

compiling quake 1 for #android

This time we use a simpler code than quake 2 or 3 and it should work on slower devices and emulator without problems

code is hosted in mercurial

http://code.google.com/p/glesquake/source/checkout

hg clone https://glesquake.googlecode.com/hg/ glesquake
cd glesquake
ndk-build

ls -lah  release/QuakeActivity.apk
-rw-rw-r-- 1 mariuz mariuz 278K Dec  1 22:57 release/QuakeActivity.apk
next you need to upload the apk to the device and the data file (pak)

follow the intructions from install readme

Saturday, August 14, 2010

Life is good after #Oracle , see you in 10 years

OpenSolaris is dead kudos to Linux type fundations like debian , fedora ...(see the distrowatch to see the enemies of Solaris)
MySQL is dead kudos to the Firebird and Postgresql real open source fundations. No one that sane will ever touch mysql source code that will come from oracle . See the java patent patern from bellow.
Java is dead and replaced by native and scripting languages , I see google opening the native code floodgates
and maybe entering meego fundation and this way who knows in the future we will see a QT based  android
There is is already a port of QT to android called android lighthouse
http://code.google.com/p/android-lighthouse/
and read the Qt on Android - the Bogdan Vatra interview

And you can watch some really interesting demos for qt on android , it really works well
http://taipan.blip.tv/

LightHouse is a project to make porting Qt easy. Essentially, you just need to create a plugin which moves your content to the screen of the device. In my case, I did that and ported the shared memory concept and semaphore model -> done.


with better speed :C++ is always faster than any interpreted code (You read this with an C++ browser and NOT with a java based one). And already i see they push the scripting languages like python and ruby and php and javascript . You can build a real apk now with full power of scripting languges inside. May the lua force be with you .Mono is nice but there is another enemy at the gates: Microsoft and they do have a lot of patents on their war chest

Also community reacts and people leave the oracle's open source projects

I can't continue to contribute to a project sponsored by a company that use an Open Source language to monetize the patents portfolio they got from the acquisition of another company. I will feel like I'm paying money to SCO to have the right to use Linux... Yeah, I'll feel that bad.
So, I choose to leave the team instead of going against my convictions.


Take a look at the map yes Firebird and Postgres is fighting a strong war against Microsoft and Oracle (there are Billions there in the middle )

Map should be updated with mysql code split inside of the oracle and some of it outside somewhere in the ubuntu's launchpad

Image


Interesting that the browser war is a lost cause for microsoft , you can't do anything against webkit period
and to add salt to the injury you can't do anything against firefox
The same with open source databases you can't do anything against them it's lost war
Ahh and by the way SCO is dead , nginx is getting web market share and the army of IPhones and Androids
killed everything microsoft had put on the table in the mobile area : Do you want a Kin anyone
I'm wet after Android and nokia but i will never use a Windows based mobile phone .

http://www.theinquirer.net/inquirer/news/1602970/microsoft-won-t-dominating-os


Gartner's study shows Android to be the fastest growing mobile smartphone operating system (OS) in the second quarter .Android overtook Apple’s iPhone OS to become the third-most-popular OS in the world  As has been confirmed by several other reports, the Linux-based Android overtook RIM’s BlackBerry OS to become the top selling smartphone OS in the U.S.,

http://www.linuxfordevices.com/c/a/News/Gartner-2Q-report-and-AndroidLinux-fork/

Thursday, February 12, 2009

root password on android g1 dev phone aka dream

seems that all you need to do on this unlocked phone is to install an terminal emulator , then
do an simple su
with no password

what is next ?
i wait for r33 update so i can have google latitude or seach by voice
more useful would be gtalk with voice or skype with voice

also i think i will install the debian in paralel on it , so i can play with firebird/nginx/php
http://www.saurik.com/id/10