Skip to content

Compilation and Firmware Packaging

Extract the Source Code and Image

bash
# Extract the source code
tar -zxvf A6490MA1.tar.gz

# Extract the Ubuntu image
xz -d ubuntu.img.xz

# Copy the image to the build directory
cp ubuntu.img A6490MA1/ubuntu/

Enter the Docker Build Environment

Enter the code root directory and then enter Docker:

bash
cd A6490MA1
docker run --privileged -it --rm --hostname $(hostname) -v $(pwd):/home/build $(whoami)/androidbuilder:u22 android

Enter the ubuntu directory and run the build:

bash
cd ubuntu
Aidlux_build.sh user|debug version

For example, to build the user version (version number 01):

bash
./Aidlux_build.sh user 01

Generate the Image

After a successful build:

bash
sh do_ubuntu.sh

On success, img will be generated in img_out.