Skip to main content

Sdk Platform — Tools Work Work

| Component | Scope | Requires Android running? | |-----------|-------|----------------------------| | | Low‑level system & hardware | ADB: yes; Fastboot: no | | Build Tools (aapt, zipalign) | APK creation/signing | No | | SDK Tools (emulator, lint) | Development environment | N/A | | NDK | Native code compilation | No |

Add the PATH variable to your .bash_profile * Open the file via open .bash_profile. * Add export PATH=$PATH: [your SDK location] / Stack Overflow sdk platform tools work

| Command | What it does | | :--- | :--- | | adb shell | Opens a command shell directly on the device (lets you run Linux commands). | | adb install filename.apk | Installs an app APK file from your computer to your phone. | | adb push [local] [remote] | Copies a file from computer to phone. Ex: adb push myfile.txt /sdcard/Download/ | | adb pull [remote] [local] | Copies a file from phone to computer. Ex: adb pull /sdcard/DCIM/photo.jpg C:\Photos | | adb reboot | Reboots the phone. | | adb reboot bootloader | Reboots the phone into Fastboot/Bootloader mode. | | adb logcat | Shows real-time system logs (useful for debugging app crashes). | | Component | Scope | Requires Android running

ADB works by creating a TCP-over-USB (or TCP-over-WiFi) connection, secured by RSA public-key cryptography. | | adb install filename