Who is this for?
This Learning Path is for Android and machine learning developers who want to run an optimized image-segmentation model locally on an Arm-based Android phone.
What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Prepare the Android command-line tools and connect an Arm-based Android phone
- Download and run the MobileSAM ExecuTorch model from the Arm AI Portal
- Understand how the Android adapter validates, prepares, and renders MobileSAM results
- Optionally inspect an unsupported image model before implementing a model-specific adapter
Prerequisites
Before starting, you'll need the following prerequisites:
- A macOS, Linux, or Windows development computer with Git, Python 3, and Java 17 or later
- An Arm-based Android phone running Android 9 or later
- A Hugging Face account
- A data-capable USB cable
- Basic familiarity with terminal commands and Android applications
- Network access for the first Gradle build and model download
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
You’ll build Image Analysis and use its validated ExecuTorch adapter to run MobileSAM locally on an Arm-based Android phone. You’ll prepare the Android SDK, connect the phone, and let Gradle provision the JDK 17 build toolchain. You’ll then download and stage the model, generate and validate masks from two images, and inspect the adapter’s preprocessing and output checks. An optional final section helps you plan and validate another model-specific adapter.