The Following User Says Thank You to b-man For This Useful Post: | ||
![]() |
2008-07-21
, 02:47
|
|
Posts: 549 |
Thanked: 502 times |
Joined on Feb 2008
@ Bowling Green Ohio (united states)
|
#3
|
![]() |
2008-07-21
, 14:40
|
Posts: 2 |
Thanked: 2 times |
Joined on Jul 2008
|
#4
|
The Following User Says Thank You to androidboards For This Useful Post: | ||
![]() |
2009-09-25
, 00:58
|
Posts: 9 |
Thanked: 0 times |
Joined on Sep 2009
|
#5
|
![]() |
2009-10-15
, 06:31
|
Posts: 76 |
Thanked: 33 times |
Joined on Oct 2009
@ Portland, Or
|
#6
|
This will allow you to run Android within Debian the old way, manualy installing Android.
Basic requirements:
root acsess
bootable Debian
bzip2
First, as root, you need to mount your Debian partition to your /opt directory, this will give your device acsess to Debian, just type this into x-terminal.
mount /dev/mmcblk1p2 /opt
that example assumes that your Debian partition is on the secod partition on your exturnal memory card.
This is the first script that will start android, you shuld name this sandroid.sh
sudo /usr/bin/android.sh
Just place this script into /opt/usr/bin and give it execute permissions in x-terminal as root as shown below, assuming your moving the file from your MyDocs folder.
mv /home/user/MyDocs/sandroid.sh /opt/usr/bin
chmod +x /opt/usr/bin/sandroid.sh
Next, you need to create a script that will launch Android, it will be named android.sh:
#!/bin/sh
/root/fb_update/fb_update_mode auto
find /mnt/ -name mbcache.ko | xargs insmod 2> /dev/null
find /mnt/ -name ext2.ko | xargs insmod 2> /dev/null
export ANDROID=`find /media -name android.img 2> /dev/null`
mount $ANDROID /android -o loop
for i in `find /media/ -name *.apk`
do
mv $i /android/system/app
done
echo "Starting Android..."
touch /etc/no_lg_reboots
/etc/init.d/zzinitdone stop
/etc/init.d/bme-dbus-proxy stop
/etc/init.d/af-base-apps stop
/etc/init.d/dbus stop
/etc/init.d/libgpsbt stop
/etc/init.d/bluez-utils stop
/etc/init.d/product-code stop
/etc/init.d/esd stop
rm -rf /android/tmp/*
#umount -l /proc
#umount -l /sys
#mount -t proc proc /android/proc
#mount -t sysfs sysfs /android/sys
#mount --bind /dev /android/dev
#chmod -R 777 /android # if you know the exact permissions, email me
umask 000
echo z > /proc/sysrq-trigger
chroot /android /init
echo z > /proc/sysrq-trigger
Assuming you've placed that file in your MyDocs folder, Just run the following in x-terminal as root.
mv /home/user/MyDocs/android.sh /opt/usr/bin
chmod +x /opt/usr/bin/android.sh
Next, you need to grab one of qwerty12's Android kernels from the Android forum and install a kernel flasher and run the following as root, assuming that you've extracted the kernel flasher into your documents folder and the kernel is in the same folder.
cd /home/user/MyDocs/.documents/kernel_flasher
./kernel_flash n800zImage (or n810zImage)
Now you need to extract the android.img.bz2 Android Image into your /media/mmc1 or mmc2 directory, assuming that the file is in your MyDocs folder, as root, run the following:
mv /home/user/MyDocs/android.img.bz2 /media/mmc1 (or mmc2)
bzip2 -d /media/mmc2/android.img.bz2 or
bzip2 -d /media/mmc1/android.img.bz2
now to finish the install:
mkdir /opt/android
umount /opt
shutdown -r now
After your device reboots, boot into Debian and in a terminal as root, run the following:
sandroid.sh
I am trying to create a desktop file that is compatible with Debian so Android could just simply be launched from a menu item. If enyone has eny suggeststions, please share them.
Also, if you want to install eny applications, the android.sh script will automaticly scan your mmc for eny files containing a .apk file ending so place eny Android application that you want to install on your mmc. Enjoy
I'm an advanced user and a bit of a modder.
----------------------------------------------
I am involved with Mer, Deblet, and NITdroid.
My ports/creations/hacks: GNOME (for Deblet), Cdeb2», Ubuntu, playable flash games in the "Get Started" app, DBS, ect...
enhanced fedora port has been canceled in favor of NITDebian (TBA)
Last edited by b-man; 2008-07-21 at 15:35.