Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

You can use a Mac to flash a custom Android ROM with Google’s adb and fastboot tools, but there is no safe command sequence that applies to every phone. Install the tools, back up your data, and follow the current instructions for your exact device model or codename and chosen ROM before unlocking or flashing. The LineageOS instructions for the device named cas provide an example—not a recipe for other phones.

What ADB and fastboot do

adb communicates with Android or a compatible recovery. It can also request a reboot into bootloader mode. fastboot communicates with the bootloader and can unlock or flash a device when that device supports the operation. Google describes fastboot as the tool needed to unlock a bootloader and flash a new system image: Android SDK Platform-Tools release notes.

ADB sideload is a way to transfer and install a package from the computer through a compatible recovery. It does not make an incompatible ROM suitable for your phone, satisfy firmware or partition requirements, or remove the need to unlock the bootloader when required.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Android Platform-Tools on macOS

Google provides a Mac archive named platform-tools-latest-darwin.zip, which includes adb and fastboot. Its release notes list Platform-Tools 37.0.1, released in July 2026; the page was last updated October 1, 2026. Google generally recommends using the latest version. See the official Platform-Tools page for the current download and release details.

#1 Best Overall
Samsung Galaxy A16 4G LTE (128GB + 4GB) International Model SM-A165F/DS Factory Unlocked, 6.7", Dual SIM, 50MP Triple Camera (Case Bundle), Black
  • Please note, this device does not support E-SIM; This 4G model is compatible with all GSM networks worldwide outside of the U.S. In the US, ONLY compatible with T-Mobile and their MVNO's (Metro and Standup). It will NOT work with other CDMA carriers, and it is also not compatible with their MVNO (Visible, Xfinity Mobile, US Mobile, Cricket Wireless, etc).
  • Compatibility with certain third-party devices and accessibility accessories, including some hearing aids, may vary depending on manufacturer support, Bluetooth protocols, software compatibility, and regional firmware limitations. For additional hearing aid compatibility information, please refer to Samsung’s official support documentation.
  • Camera: 50 MP, f/1.8, (wide), 1/2.76", 0.64µm, AF | 50 MP, f/1.8, (wide), 1/2.76", 0.64µm, AF | 2 MP, f/2.4, (macro). Battery: 5000 mAh, non-removable | A power adapter is NOT included.

There are two documented ways to set up the tools on a Mac. Choose one; installing both is not required.

Route What you do Best fit
Google archive Download and extract platform-tools-latest-darwin.zip from Google’s Platform-Tools page. You prefer a direct download and want to manage the extracted tools yourself.
Homebrew Install Homebrew, add /opt/homebrew/bin to PATH as indicated by Homebrew’s installation output, then run brew install --cask android-platform-tools. You already use Homebrew to install and update Mac software.

LineageOS documents the Homebrew route and its initial connection checks in Using ADB and fastboot. After installation, check that the commands are available:

Rank #2
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.
adb --version
fastboot --version

Use the mode-specific checks in your device’s installation guide as well. A command being installed on the Mac does not mean the phone supports every fastboot operation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prepare the phone and find its exact installation guide

  1. Identify the exact device and ROM. Find the current installation instructions for the phone’s model or codename and the specific ROM release. Confirm the guide applies to your device variant, and check its firmware, partition, recovery, and package requirements.
  2. Back up files and app data you need. Bootloader unlocking erases user data, including private app data and shared files accessible over USB. Android’s instructions describe an on-device confirmation during unlocking; see AOSP’s bootloader unlocking documentation.
  3. Enable the required Android settings, if the device guide calls for them. LineageOS’s Mac guide instructs users to enable Developer options and USB debugging before connecting the phone.
  4. Connect the phone and approve ADB access. With Android running, use adb devices. Accept the USB debugging authorization prompt on the phone if it appears. The device should be listed before you continue with steps that require ADB.
  5. Check unlock eligibility before attempting an unlock. Many phones ship with locked bootloaders. AOSP describes enabling OEM unlocking in Developer options when that setting is available, entering bootloader mode, and using the supported unlock process with on-device confirmation. If OEM unlocking is unavailable, the phone may not permit unlocking; manufacturer or carrier restrictions can apply. Do not substitute a generic command or try to bypass a restriction.

Unlock only with the device’s supported process

There is no universal unlock command. AOSP’s general flashing instructions show different examples for different device generations, while a manufacturer or ROM guide may specify a different supported process. Follow the instructions for your exact device, and confirm the unlock on the phone only if that is the documented procedure.

Rank #3
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.

An unlocked bootloader allows modified software to boot, but the integrity of a custom operating system cannot be guaranteed. Data kept on a device with an unlocked bootloader may be at risk. Do not relock the bootloader as a routine final step: do so only if the instructions for that exact phone and ROM expressly support it. See AOSP’s unlocking guidance and AOSP’s boot-flow documentation.

Follow the ROM guide for recovery, flashing, and sideloading

The recovery image, fastboot commands, reset procedure, partition handling, and package order are device-specific. Use the ROM’s current installation guide as the authority for each command. Do not copy a command from another phone’s page merely because it uses the same ROM.

Rank #4
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

Example: LineageOS for cas

The LineageOS guide for cas illustrates one possible sequence: download the recommended Lineage Recovery, enter fastboot mode, check detection with fastboot devices, flash the recovery image, and boot into recovery. From there, that guide instructs users to perform a factory reset and format data, then choose Apply update > Apply from ADB and run adb -d sideload /path/to/zip. It warns not to reboot into Android before completing the remaining instructions. The optional Google Apps add-on must be installed before the first boot. These details apply to the cas guide only; consult the current LineageOS installation guide for cas rather than applying them to another model.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The cas guide also says a signature-verification failure for a package can indicate a corrupted or unofficial image. Treat that as a reason to check the file and its source against the guide, not as a prompt to ignore verification or continue with an untrusted package.

Best Value
Samsung Galaxy A16 5G 128GB Cell Phone, Unlocked Android Smartphone, Large AMOLED Display, Durable Design, Super Fast Charging, Expandable Storage, US Version, 2025, Blue Black (Renewed)
  • Charger NOT Included, 6.7" Super AMOLED FHD+, 90Hz Refresh Rate, 385 ppi, 800 nits (HBM), 1080x2340px, 5000mAh Battery
  • 128GB, 4GB RAM, microSDXC, Exynos 1330 (5nm), Octa-Core, Mali-G68 MP2 or Mali-G57 MC2 GPU
  • Rear Camera: 50MP, f/1.8 (wide) + 5MP, f/2.2 (ultrawide) + 2MP, f/2.4 (macro), LED flash, panorama, HDR; Front Camera: 13MP, f/2.0, Android 14, up to 6 major Android upgrades, One UI 6.1
  • 3G: HSDPA 850/900/1700(AWS)/1900/2100; 4G LTE: 1/2/3/4/5/7/12/13/14/20/25/26/28/29/30/38/39/40/41/48/66/71, 5G: 2/5/25/41/66/71/77/78 SA/NSA/Sub6/mmWave - Nano-SIM + eSIM
  • US Model – Global Connectivity – Compatible with Most GSM Carriers like T-Mobile, AT&T, MetroPCS, etc. Will Also work with CDMA Carriers Such as Verizon, Straight Talk.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot Mac-to-phone detection

adb devices does not list the phone

  • Check that Android or a compatible recovery is running; bootloader mode alone is not the usual ADB state.
  • Enable USB debugging if the device guide requires it, then accept the authorization prompt on the phone.
  • Confirm the cable supports data, not just charging, and try another cable or Mac port if needed.

fastboot devices returns no device

  • Check that the phone is actually in its bootloader or fastboot mode; ADB and fastboot operate in different states.
  • Try a different data-capable cable and port before repeating any flash operation. Some device-specific bootloader USB issues may respond differently to a USB Type-A 2.0 connection or a hub, while LineageOS’s transfer-error guidance suggests avoiding hubs or adapters. These are troubleshooting possibilities, not universal requirements.
  • If a fastboot command appears to stall, a buggy bootloader USB connection may be the cause. Check the phone’s state and the device guide before trying again; do not repeatedly issue destructive commands.

For transfer errors, LineageOS recommends checking the cable and connection in its Flash Tools documentation. The cable must support data and have connectors compatible with both the phone and Mac; replacing it is not a guaranteed fix.

When a browser-based tool may help

LineageOS offers browser-based Flash Tools that can sideload supported packages or perform fastboot actions. They are an alternate interface, not a fix for device incompatibility or a substitute for the exact installation guide. Use them only when the device and procedure are supported and you have a WebUSB-compatible browser; see LineageOS Flash Tools.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.