Building a Rockchip Android 16 or Android 17 image can involve two source trees: an SSI SDK for the Android framework and a Vendor SDK for the board-specific implementation. In a split delivery, the two builds must be combined with matching partition, compatibility and signing settings before the result is ready for a device.
For developers building Android products with ArmSoM, we recommend starting with a working board image and recording its SDK, kernel and carrier-board configuration. Then identify which parts of the firmware your application needs to change. This guide follows that process through SDK selection, build inputs, firmware merging and configuration troubleshooting.

Conceptual build flow. The actual image set and packaging tools depend on the SDK release.
What SSI, Vendor SDK and GRF mean
An SSI, or Shared System Image, allows the common Android framework to be reused across compatible products. AOSP describes SSI as the shared system image, optionally including system extensions. A vendor's SDK packaging may also produce other system-side images; that packaging should not be confused with the definition of SSI itself. AOSP: Shared system image
The Vendor SDK contains the hardware-specific implementation. For board work, this is where you normally investigate the bootloader, kernel integration, device tree, HALs and vendor configuration. Use the following division of work to identify the inputs and outputs in your SDK; the exact image set depends on its release and product configuration.
Build area | Typical work | Outputs to identify in your release |
SSI / framework SDK | Framework changes, system applications and shared system configuration | Framework target-files archive; system-side images such as system.img und system_ext.img |
Vendor SDK | Board target, U-Boot, kernel integration, drivers, HALs and hardware configuration | Vendor target-files archive; board-specific boot and vendor images |
Merge and packaging | Combine both inputs and validate their agreement | Merged target-files package, image packages and, where configured, an OTA package |
GRF stands for Google Requirements Freeze. When evaluating an upgrade, pay attention to the vendor API level: it defines the interface that the system and vendor implementation must support. Vendor freeze lets the system accommodate an implementation at a defined level, subject to compatibility requirements. Android's SDK API level and vendor API level use separate numbering in Android 14 QPR3 and later. AOSP: Vendor API level
Which Android 16/17 SDK combination should you use?
There are two questions to answer before downloading or compiling: is the delivery a complete SDK or a split SSI/Vendor delivery, and which releases are explicitly paired?
SDK delivery | What it means for the build | What must be confirmed |
Complete SDK | Follow the product's complete-SDK build instructions | Exact chip variant, board target and release notes |
Android 16 SSI with a separate Vendor SDK | Build or obtain the SSI artifacts, then combine them with the matching hardware-side build | Vendor baseline and minimum revision for that platform |
Android 17 SSI with a separate Vendor SDK | Select the vendor baseline documented for the target platform | The specific SSI/Vendor release pair, supported target and integration instructions |
Use the package's release notes to establish supported chip variants and board targets. For ArmSoM hardware, confirm the available firmware and peripheral support for the exact board and carrier before committing to an Android version.
Keep a build record containing the board and carrier revisions, SSI release, Vendor SDK release, selected targets, kernel configuration and intended update method. If the SDK is managed with Repo, repo manifest -r -o manifest-pinned.xml records the checked-out revisions in a local file. Keep separate records for separate source trees.
For the broader choice between complete SDKs and split deliveries, see our Rockchip Android SDK selection guide.
Build the SSI and vendor artifacts
1. Identify the release's targets and tools
Use the Linux build-host requirements supplied with the SDK. In the SSI tree, inspect the available product definitions before choosing a target:
find device/rockchip -name AndroidProducts.mk -print
rg -n 'COMMON_LUNCH_CHOICES|ssi_16|ssi_17' device/rockchipIn the Vendor SDK, inspect the build entry point and the merge support:
rg -n 'getopts|merge_target_files|PRODUCT_BUILDING_GRF' \
build.sh device/rockchipAdjust these paths to the directory layout of your SDK. rg is ripgrep, a source-search tool. Read the script's usage text and release notes before executing a build; an option used by another Rockchip SDK may have a different meaning.
Where both entry points are available, vendor-side build.sh handles the merged firmware build, including hardware-side changes. SSI-side rkbuild coordinates system-side development with a configured Vendor SDK. Choose the workflow documented for your package, and record any environment settings it adds.
2. Prepare the framework target-files archive
For an SSI source build, initialize the Android build environment, select the release's SSI product and run a distribution build using its documented target:
# Template: replace the target and job count before running.
source build/envsetup.sh
lunch <SSI_TARGET_FROM_YOUR_RELEASE>
make dist -j<BUILD_JOBS>The next stage needs a framework target-files archive and the matching merge_target_files tool. Check out/dist/ for the archive and out/host/linux-x86/bin/ for the tool, or the locations specified by your release. A prebuilt SSI package may provide both without requiring a framework build.
Keep the tool and framework archive from the same release together. Record their filenames and checksums. Do not substitute a standalone system.img for a target-files archive: the merge workflow needs the package's metadata as well as its image content.
3. Run the vendor-side merge workflow
For a Vendor SDK that supports the -M und -T merge interface, the command takes the following form. Confirm every option and the supported SSI release in your build script before using it:
# Template for SDKs documenting this exact build.sh interface.
source build/envsetup.sh
lunch <VENDOR_TARGET_FROM_YOUR_RELEASE>
./build.sh -AKUu \
-M /absolute/path/to/matching/merge_target_files \
-T /absolute/path/to/matching/framework-target_files.zipBuild option | Purpose in this command template |
-A | Build Android components |
-K | Build the kernel |
-U | Build U-Boot |
-u | Paket update.img |
-M | Path to the matching merge tool |
-T | Path to the SSI framework target-files archive |
In SDK branches that implement this interface, -M selects the merge tool and -T selects the framework archive. Check how the script uses them to set PRODUCT_BUILDING_GRF=true and enter the merge path. This variable is a build setting, not an extra command-line switch; older scripts may not implement the same behavior.
The merge workflow imports configuration from the SSI archive, prepares vendor outputs, generates vendor target files and combines both packages. Inspect the wrapper's cleanup steps before running it: a clean build can replace earlier outputs. Preserve artifacts you need for comparison or recovery.
AOSP's merge_target_files combines framework and vendor packages and checks their compatibility. The resulting package can be used to generate image or OTA packages. Rockchip's wrapper adds its own workflow and output conventions. AOSP merge tool
GKI, A/B and AVB control different things
A setting can look correct in a product makefile and still be overridden when another configuration or wrapper script loads. When a build reports a mismatch, check the effective settings on both sides and identify which mechanism the failing check concerns.
Mechanism | What it controls | What to inspect |
GKI: Generic Kernel Image | The common Android kernel and its interface to vendor modules | Kernel release, module compatibility, boot-image layout and the product's kernel configuration |
A/B or Virtual A/B | The system's update architecture | Slot and snapshot configuration, OTA package expectations and settings on both sides of the build |
AVB: Android Verified Boot | Verification of boot-related image metadata and rollback protection | Signing configuration, keys, descriptors, rollback indexes and bootloader expectations |
AOSP's GKI documentation, Virtual A/B overview und AVB documentation describe these mechanisms separately. A vendor script can couple their defaults, but changing one setting does not establish a valid configuration for the other two.
Trace configuration overrides before changing values
Beginnen Sie mit BOARD_BUILD_GKI, AB_OTA_UPDATER, BOARD_AVB_ENABLE and any corresponding *_OVERRIDE variables present in your SDK. Product makefiles, common configuration and environment exports can all affect their final values.
rg -n 'BOARD_BUILD_GKI|BOARD_USES_AB_IMAGE|AB_OTA_UPDATER|BOARD_AVB_ENABLE' \
device/rockchip build/make
rg -n 'OVERRIDE|export' device/rockchip/rockchip_generic/vendorsetup.shRun these searches in the relevant source tree. Review the definitions, include order and wrapper exports, then use the SDK's build-variable reporting facilities to check the effective values. Editing one occurrence is insufficient if a later assignment changes it again.
If your product requires a non-GKI or non-A/B configuration, follow the board's supported integration path and align the relevant settings across both SDKs. Diagnose an unexplained failure before changing the device's security or update design. For a shipping product, the final configuration must still meet its kernel, recovery and update requirements.
Check boot images and dynamic partitions explicitly
“Built from the Vendor SDK” describes the source-tree workflow; it does not mean every byte in boot.img is vendor-specific. Boot-image contents and the use of vendor_boot depend on the Android and kernel arrangement. Inspect the layout required by the target release. AOSP: Vendor boot partitions
For dynamic partitions, confirm the total super capacity, group limits and image contents. super holds metadata and space for logical partitions; it does not simply replace every physical boot partition. The merged layout must agree with the device's storage layout and update strategy. AOSP: Implement dynamic partitions
Troubleshoot the failing build stage
Symptom | Erste Kontrollen | Evidence to retain |
SSI target is unavailable | Confirm source release, product definitions and target spelling | Manifest and target list |
-M oder -T is not recognized | Confirm the script's interface and release revision | Script usage, revision and command line |
Pre-build A/B check fails | Compare effective A/B settings in both trees and wrapper exports | Resolved settings and the first failing check |
Merge reports a compatibility error | Check the intended release pair, manifests and compatibility matrices | Full merge log and both input package identifiers |
A logical partition does not fit | Compare image sizes, dynamic-partition groups and super capacity | Partition metadata and storage layout |
Packaged firmware fails to boot or a peripheral is missing | Check the board target, boot chain, driver/HAL configuration and runtime errors | Serial log, Android logs and exact image checksums |
VINTF manifests and compatibility matrices describe what the device and framework provide and require. A merge or boot error involving these interfaces should be investigated against the matching releases, rather than suppressed. AOSP: Vendor interface object
Apply the workflow to an ArmSoM project
For an RK3576 compute-module project, ArmSoM CM5 provides a hardware starting point, while the CM5 Dokumentation identifies the module and carrier resources. The published ArmSoM Android SDK guide currently walks through an Android 14 RK3576 SDK and CM5-IO target selection. Establish a working baseline from those board-specific instructions before evaluating a newer split SDK.

ArmSoM CM5 RK3576 compute module. Select the Android image and SDK for the module revision and carrier used in your project.
For an Android terminal or custom carrier, confirm the following before accepting a new image:
Display and touch behavior, camera capture, audio and network connections required by the application.
Kernel modules, HALs and any required NPU runtime on the actual board configuration.
Repeated cold starts, storage behavior, suspend/resume and the intended application workload.
Signing, update, recovery and rollback behavior for the product's chosen deployment design.
Record the system and vendor fingerprints independently:
adb shell getprop ro.build.fingerprint
adb shell getprop ro.vendor.build.fingerprint
adb shell getprop ro.build.version.release
adb shell getprop ro.vendor.api_level
adb shell uname -aAn empty property is missing evidence; it should not be filled in from an unrelated version number. Keep the logs with the board revision, build inputs and firmware checksum. After functional validation, our Rockchip Android boot-time guide explains how to investigate startup delays.
If your project requires Android 16 or 17, Kontakt ArmSoM with the module or board model, carrier revision, intended peripherals and available SDK release names. This makes the discussion about a specific integration instead of an Android version label.
Häufig gestellte Fragen
Can Android 16 SSI be combined with an Android 14 Vendor SDK?
It can be a valid combination when the platform's release notes explicitly support that pairing. Check the required Vendor SDK revision, board target and peripheral support before building.
Can I compile the Vendor SDK without building SSI first?
Yes, if a compatible prebuilt framework target-files archive and matching merge tool are available. They can supply the SSI inputs for the merge. A single downloaded system.img does not provide the complete input package.
Should I turn off GKI, A/B or AVB when a merge fails?
First identify the failing check and the effective configuration. These settings affect different parts of the device. Changes must follow the board's supported kernel, partition, security and update design.
How do I check Android version support for an ArmSoM board?
Check the board's documentation, available images and SDK release notes against your hardware revision and carrier. For a version or peripheral not listed there, ask ArmSoM to confirm the intended combination before planning the upgrade.
