Skip to content

Instantly share code, notes, and snippets.

@PakCyberPyrates
Forked from jpswade/install_adb.sh
Created December 5, 2018 18:28
Show Gist options
  • Save PakCyberPyrates/c02d5e4da5ef6e57f3b56b96581f411b to your computer and use it in GitHub Desktop.
Save PakCyberPyrates/c02d5e4da5ef6e57f3b56b96581f411b to your computer and use it in GitHub Desktop.
Install android on centos
#!/bin/sh
# yum install android-tools -y
yum install java-1.8.0-openjdk-devel
mkdir -p android-sdk-linux
cd android-sdk-linux
# @see https://developer.android.com/studio/index.html
wget --output-document=android-sdk.zip --quiet https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
unzip android-sdk.zip
rm -f android-sdk.zip
yes | tools/bin/sdkmanager --licenses
tools/bin/sdkmanager "tools" "platform-tools" "extras;google;m2repository"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment