Welcome, Guest

Author Topic: Builing Android from Scratch  (Read 6293 times)

yoann_q

  • Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
    • my blog
Re: Builing Android from Scratch
« Reply #15 on: October 15, 2017, 01:27:18 PM »
hi,
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
Code: [Select]
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
Code: [Select]
chmod +x ./jdk-6u45-linux-x64.bin
./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 Edit: October 15, 2017, 05:28:06 PM by yoann_q »

yoann_q

  • Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
    • my blog
Re: Builing Android from Scratch
« Reply #16 on: October 15, 2017, 09:32:16 PM »
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
Code: [Select]
imgRePacker.exe a10s_android_nand_HDMI_en_3.imgin 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
Code: [Select]
;------------------------------>nande, user data
[partition4]
    class_name  = DISK
    name        = data
    size_hi     = 0
    size_lo     = 1572864
    user_type   = 1
    ro          = 0
after that use imgrepacker,
Code: [Select]
imgRePacker.exe a10s_android_nand_HDMI_en_3.img.dumpthe 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