Все ленты — последние статьи

Образы android и установка в Virtualbox

http://www.android-x86.org/download — сами образы

есть еще https://code.google.com/p/android-x86/downloads/list

свежая статья… анг..

KitKat in VirtualBox

I want you to exult in how easy it is to setup KitKat in VirtualBox.
Click the blue New button in Virtualbox, name the new VM Droid, change the Type to Linux and change the version to Linux 2.6 / 3.x.
Crank the Memory up to 1024MB and click Create.
Android KitKat 4.4 in VirtualBox

On the Create Virtual Hard Drive screen, change the File Size to 6 GB, leave the Hard drive file type at VDI but change the Storage on physical hard drive to Fixed size.

Create Virtual Hard Drive in VirtualBox for KitKat
Now back in the image list, double click your tasty KitKat build. You should see a Select start-up disk window poof onto the screen.

Click the tiny manila folder icon to find the Android .ISO file you downloaded earlier and then hit the Start button. VirtualBox choose your Virtual Optical Drive

VirtualBox attempts to boot off the ISO and immediately displays the Android-x86 Live & Installation CD test screen.
Keep hitting the arrow keys until you select the Installation option — then hit Enter.
Android-x86 Installation KitKat

The first thing we need to do is Create a new Partition.

Think of a partition as an isolated section of your hard disk.  In this case, we’re going to set aside the entire virtual hard disk to Android but we need to create it first.

Select Create/modify partitions and keep moving.

Create/Modify partitions

This next screen may look daunting at first but it’s pretty straight forward when you think about it. The top section shows various drive facts such as:

    Drive name: /dev/sda
    Size: 6,442MB (6 Gigs)

The middle section shows that there are currently no partitions.

Hit the right arrow key to highlight the [NEW] option along the bottom the screen, then press Enter.

Create a new KitKat partition in Virtualbox

Press enter again to make it a Primary Partition.

To be honest, I don’t think it matters if you pick the Logical Partition; however, the Primary partition makes the most sense to me so go with that.

If you’re curious about the differences between Primary and Logical partitions, just think of a Primary partition like a container which can comprise one or more logical partitions.

KitKat Virtualbox Primary Partition

Press enter again to confirm the size. Here I’m confirming the 6440.39 MB partition size.

Android 4.4 Kitkat Primary Partition Size Confirmation

Alright, now we need to make the partition bootable so make sure [Bootable] is highlighted below and press Enter. Make KitKat Virtualbox partition bootable

When you press enter it places the word “Boot” under the column called Flags between Name and Part Type. Now — keep pressing the right arrow key until you highlight [Write].

Go for it, you’ve got this my friend.

VirtualBox KitKat Bootable Write in VirtualBox

Hit enter and you’ll see a confirmation warning about destroying all the data on your disk. Remember, this is your virtual disk not your real disk.

In other words, we’re about to nuke the Guest OS hard drive which is currently empty so this is perfectly safe and necessary. Type yes and hit Enter.

Erase KitKat data on bootable partition

When it finishes it’ll take you back to the previous screen.  Just keep hitting the right arrow until you highlight [Quit].  

Press enter so we can finish up. You should find yourself back in the Choose Partition screen; however, this time you should see your newly created Partition in the list.

Since we now have a place to park the KitKat installation we can start installing it.  Select sda1 Linux and hit Enter. Choose Partition in VirtualBox for KitKat

Change the filesystem to ext3 and press Enter.

The other filesystems are for different purposes. ext2 is better suited for removable media such as USB flash drives and memory cards; however, the main advantage of ext3 is that it offers journaling.

Journaling file systems are ideal because they track file system changes in a log called a journal.   This means that journaling file systems can recovery faster from crashes and are less likely to get corrupted.

You definitely want this.

Choose Virtualbox Android Filesystem as ext3

You’ll get a warning about losing all your data. This is fine because we have no data in the Guest OS.

Choose Yes and continue.

Virtualbox confirm format from sda1 to ext3

Install GRUB and hit Yes.

GRUB will give us the flexibility to boot up different Linux installations at startup.

Install Grub in Virtualbox for KitKat

Now hit Yes to install the /system directory as read-write.

Install /system directory as Read Write in Android KitKat Virtualbox

We’re on the home stretch now baby!

Installing Android 4.4 Kitkat in Virtualbox Yay!

When you hit the finish line, in the VirtualBox menu bar, click Devices, go to CD/DVD Devices and choose Remove disk from virtual drive.

You might get a terrifying error about unmounting the disk. Don’t worry, just click Force unmount and choose Run Android-x86!

Run Android x86!

If it doesn’t start up right or it freezes, press Ctrl + r to manually restart the virtual machine.

In a few seconds it should boot up the GRUB loader.  Just leave it alone for a few seconds and it’ll finish starting up.

VirtualBox GNU GRUB loader for KitKat

Now you can set it up just like a new tablet

Android welcome screen

By the way, if the mouse doesn’t work you may need to click Disable Mouse Integration from the Machine menu in the upper left corner of the Virtualbox window.  This will keep the mouse gliding over the VirtualBox menu instead of getting trapped inside it.

On the Select Wi-Fi screen just click Skip.  Virtualbox will use your host computers network card for data connectivity.

Select WiFi Network KitKat

And that’s it!

Now you can download Google apps, setup Gmail and have a ball without fear of destroying a precious tablet.

Android 4.4 KitKat home screen

Have fun.

 

 

 

древняя статейка, рабочая…

Подробное руководство по установке Android-x86
Разработка под Android*
Эмулятор который идет в комплекте с Android SDK, не очень шустрый.
Основная идея использовать VirtualBox + Android X86, для преодоления проблем с производительностью.

Что нам необходимо:
Среда разработки Eclipse + Android SDK тут,
а также VirtualBox.

Под катом много картинок, и процесс установки, а также некоторые полезные советы.

Создаем Виртуальную машину:
Имя: Android-2.2-Generic
Операционная система: Linux
Версия: Linux 2.6
Память: 512 MB
Жесткий диск: 3GB

В Настройках машины:

Свойства->Сеть
Адаптер 1 — NAT (в виртуальной машине будет виден как eth0, для интернета).
Адаптер 2 — Виртуальный адаптер хоста (в виртуальной машине будет виден как eth1, для управления ADB).

Загрузите образ по ссылке android-x86-2.2-generic.iso.

Подключите образ к виртуальной машине.
И так сверимся какие параметры машины.


Запускаем виртуальную машину


Управление производится стрелками влево, вправо, вверх, вниз

По шагам как инсталлировать линукс:

В загрузчике выбрать пункт меню
1. Installation — Install Android-x86 to harddisk
Создаем разделы.
2. Create/Modify partitions
Выбрать [New] -> [Primary] -> Size (in MB) 3216 press [ok]
Выбрать [Bootable]
Выбрать [Write] подтвердить запись изменений yes
Выход [Quit]
Выбираем раздел для установки
3. Select partitions to install Android-X86
[sda1 Linux VBOX HARDDISK]
Выбор файловой системы
4. Please select a filesystem to format sda1
[ext3]
Подвердить форматирование Yes
Установка загрузчика GRUB
5. Do you want install boot loader GRUB?
Подвердить Yes
Вы хотите сделать /system для чтения и записи
6. Do you want to install /system directory as read-write?
Подтвердить Yes

В Этом образе идет много примеров Snake,NotePad из Eclipse будет не возможно будет установить свои, в самом низу статьи есть утилита для разрешения данной проблемы.
Процесс установки завершен
7. Android-x86 is installed successfully.
Создаем SD карту
[Create a fake SD Card]
size 2000 MB
отключить CD-ROM

Перегрузить систему
Reboot

Горячие клавиши:

    esc, правая кнопка мыши Назад
    кнопка меню между правым ctrl и alt, на некоторых ноутбуках отсутствует
    alt+f1, alt+f7 переключение между консолями
    alt+курсор влево , alt + курсор вправо
    f6 Выбор режимов, авиа режим, выключение
    , перегрузка
    клавиша win домой

Если у вас не работает курсор мыши.
Идем в Машина-> Выключить интеграцию мыши host + i ( клавиша host по умолчанию правый ctrl).

Разблокируем экран потянув стрелку вверх

Настройка Сети
По умолчанию эмулятор не может работать с двумя сетевыми адаптерами — не проблема.Нам нужен интернет + внутренний адрес для отладки.
Идем в запуск приложений


Выбираем приложение
Settings -> Configure Ethernet
Ставим eth0 dhcp выбираем save.

Перегружаем Эмулятор.
Когда машина загрузится переключаемся в текстовую консоль alt+f1

Магический порядок
root@android:/ #
# netcfg
# netcfg eth1 down
# netcfg eth1 dhcp
*action 'dhcp' failed (invalid argument)*
*без этой комманды не выделялся адрес вообще*
# netcfg eth1 up
# netcfg
Всё выглядит приблизительно так.

Запоминаем адрес eth1 он будет нужен для adb.

Шаги по настройки сети с консолью к сожалению надо делать каждый раз, когда эмулятор стартуете по новой.

Теперь на компьютере переходим в папку где стоит Android-SDK, в вашей системе может другая папка
C:\Program Files\Android\android-sdk\platform-tools\
Используем команду adb eth1 адрес, у меня был 192.168.56.101

Вывод будет подобный:
C:\Program Files\Android\android-sdk\platform-tools>adb connect 192.168.56.101
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to 192.168.56.101:5555

Выполняем Eclipse.

Пример работающего приложения.

Как быть если хочу поставить NotePad,Snake и другие примеры
можно поставить данную утилиту SystemApp_Remover_4_19.ap.

Процесс установки будет выглядеть приблизительно так.
C:\Program Files\Android\android-sdk\platform-tools>adb install c:\temp\SystemApp_Remover_4.19.apk

Потом удаляете из списка системных приложений то с чем конфликтует Eclipse

p/s Переключение видео режимов.
В Меню загрузки нажимаем e
Появится другое меню
kernel /android-2.2/kernel /quiet root ....
Еще раз нажимаем e и добавляем в конце строки через пробел vga=ask
Чтобы загрузится нажимаем enter b, и потом выбираем нужный режим из списка.

p/p/s Это мой первый пост на Хабре, не судите строго.