Trying to flash a custom rom into Nexus 7 2012.
First step : install ABD.
Copied from : http://stackoverflow.com/questions/31374085/installing-adb-on-mac-os-x
Option 2 – Manually
- Delete your old installation (optional)
rm -rf ~/.android-sdk-macosx/ - Download the Mac SDK Tools from the Android developer site under “Get just the command line tools”
- Go to your Downloads folder
cd ~/Downloads/ - Unzip the tools you downloaded
unzip android-sdk*.zip - Move them somewhere you won’t accidentally delete them
mv android-sdk-macosx/ ~/.android-sdk-macosx - Run the SDK Manager
sh ~/.android-sdk-macosx/tools/android - Uncheck everything but
Android SDK Platform-tools(optional) - Click
Install Packages, accept licenses, clickInstall. Close the SDK Manager window. - Add
platform-toolsto your pathecho 'export PATH=$PATH:~/.android-sdk-macosx/platform-tools/' >> ~/.bash_profile - Refresh your bash profile (or restart your terminal app)
source ~/.bash_profile - Start using adb
adb devices

adb push filename.zip /sdcard/
