Skip to main content

Android Build and Flash

Source Package​

Get the Android source package from the network-disk path DVD_x8385/source/. The example package name in the manual is:

x8385_Android13.tar.gz

Extract it:

tar -xzvf x8385_Android13.tar.gz
cd x8385_Android13
note

The package name may vary by release date. Use the actual file name in the network-disk package.

Build Source​

Build images with a normal user account. MTK projects are usually full builds, so it is better to batch changes before rebuilding.

./build.sh -A -u

Generated images are placed in the output directory.

Build Help​

./build.sh -h
OptionMeaning
-A, --AndroidBuild Android system
-U, --updateBuild update file
-S, --systemBuild MSSI system, debug only
-V, --vendorBuild AP vendor, debug only
-K, --kernelBuild kernel, debug only
-M, --mergeBuild merge, debug only
-a, --allBuild all
-h, --helpShow help

Windows Flashing Tools​

Driver path:

tools\Driver_Auto_Installer_SP_Drivers_20160804.zip

Flash tool:

tools\SP_Flash_Tool_v5.2020_Win.rar

SP Flash Tool Flow​

  1. Extract and open SP_Flash_Tool_v5.2020_Win.
  2. Select the generated scatter file under output:
output/MT6771_Android_scatter.txt
  1. Select Format All + Download.
  2. Configure the tool and connect the board.
  3. Connect the Micro USB cable and 12V DC power cable.
  4. Click Download in the tool first.
  5. Press SW6.
  6. Press the Power key to boot.
  7. Wait for the progress bar and let the upgrade finish.
warning

Format All + Download erases target partitions. Before using it in production or after-sales workflows, confirm whether calibration data, serial numbers, MAC addresses, IMEI, or other personalized data must be preserved.