Builing Android from Scratch

Started by vince747, September 11, 2013, 09:20:30 PM

Previous topic - Next topic


i'm still use my a10s with linux, i reinstall android but the app data is out of space so i try to modify the partition size
so i try to re compile android , using the last sdk, here is how i do that :
- download / install virtualbox
- install ubuntu 12.04 (it's a 4.x android), recommended here https://source.android.com/source/requirements.html
- install virtualbox guest addons and reboot
- do the things below

sudo apt-get upgrade
sudo apt-get install libgl1-mesa-dri:i386

- then follow the final procedure here, https://source.android.com/source/initializing#installing-required-packages-ubuntu-1204
- i need to install java6sdk manually, , download jdk-6u45-linux-x64.bin you'll need to register and then

chmod +x ./jdk-6u45-linux-x64.bin
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_34/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_34/bin/javac" 1
sudo update-alternatives --install "/usr/bin/jar" "jar" "/usr/lib/jvm/jdk1.6.0_34/bin/jar" 1

- the linux compilation tis ok ,
- the compilation process gives a lot of error

whant's wrong , can you explain the process to generate a android image ?
best regards


last update, i give up!  :-[
i've found the tool imgrepacker to resize the "data" partition see abstract here http://linux-sunxi.org/LiveSuit_images#RedScorpio_tools on windows, the linux version unpack but fail to pack
- first unpack
imgRePacker.exe a10s_android_nand_HDMI_en_3.img
in the newly created directory a10s_android_nand_HDMI_en_3.img.dump, you must modify the sys_config.fex size_lo parameter , here the targetted size is 1.5Go
;------------------------------>nande, user data
    class_name  = DISK
    name        = data
    size_hi     = 0
    size_lo     = 1572864
    user_type   = 1
    ro          = 0

after that use imgrepacker,
imgRePacker.exe a10s_android_nand_HDMI_en_3.img.dump
the new image is named a10s_android_nand_HDMI_en_3.img the old one is a10s_android_nand_HDMI_en_3.img.bak
flash it using livesuit, that's it