Last active
May 17, 2022 20:31
-
-
Save lattice0/a9091df4755fcd67946b3949abf383a4 to your computer and use it in GitHub Desktop.
Revisions
-
lattice0 revised this gist
May 17, 2022 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,3 +33,10 @@ image.sysdir.1 = system-images/android-30/google_apis/x86_64/ #Launch: ANDROID_SDK_ROOT=/home/lz/android_sdk_root ANDROID_AVD_HOME=$ANDROID_SDK_ROOT/.android/avd /home/lz/android_sdk_root/emulator/emulator -verbose @emu1 #ADB redirection: # On Host #socat tcp-listen:5037,bind=192.168.122.1,reuseaddr,fork tcp:localhost:5037 # On virtual machine #socat tcp-listen:5037,bind=localhost,reuseaddr,fork tcp:192.168.122.1:5037 -
lattice0 revised this gist
May 13, 2022 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ # Installs Android Emulator standalone, and creates a default emulator. You shouuld be able to # re-run this script if it fails, everything should be redone set -x sudo apt-get update && sudo apt-get install -y openjdk-11-jdk export ANDROID_SDK_ROOT=/home/$USER/android_sdk_root -
lattice0 revised this gist
May 13, 2022 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ # Installs Android Emulator standalone, and creates a default emulator. You shouuld be able to re-run this script if it fails, everything should be redone set -x sudo apt-get update && sudo apt-get install -y openjdk-11-jdk export ANDROID_SDK_ROOT=/home/$USER/android_sdk_root rm -rf $ANDROID_SDK_ROOT @@ -21,7 +22,7 @@ avdmanager --verbose create avd --force \ --tag "google_apis" \ --abi "x86_64" sed -i 's/android_sdk_root\///g' /home/lz/.android/avd/emu1.avd/config.ini # the live above changes image.sysdir.1 = android_sdk_root/system-images/android-30/google_apis/x86_64/ # to -
lattice0 revised this gist
May 13, 2022 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,8 +10,8 @@ echo "$CMD_LINE_TOOLS_SHA256 command_line_tools.zip" | sha256sum -c - unzip command_line_tools.zip -d $ANDROID_SDK_ROOT export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/bin API_VER=30 echo yes | sdkmanager --sdk_root=$ANDROID_SDK_ROOT "system-images;android-$API_VER;google_apis;x86_64" "platforms;android-$API_VER" echo yes | sdkmanager --sdk_root=$ANDROID_SDK_ROOT "emulator" "platform-tools" export PATH=$PATH:$ANDROID_SDK_ROOT/emulator export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools avdmanager --verbose create avd --force \ -
lattice0 revised this gist
May 13, 2022 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,9 +21,8 @@ avdmanager --verbose create avd --force \ --tag "google_apis" \ --abi "x86_64" sed -i '/android_sdk_root\//d' /home/$USER/.android/avd/emu1.avd/config.ini # the live above changes image.sysdir.1 = android_sdk_root/system-images/android-30/google_apis/x86_64/ # to image.sysdir.1 = system-images/android-30/google_apis/x86_64/ -
lattice0 revised this gist
May 13, 2022 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ set -ex sudo apt-get update && sudo apt-get install -y openjdk-11-jdk export ANDROID_SDK_ROOT=/home/$USER/android_sdk_root rm -rf $ANDROID_SDK_ROOT mkdir -p $ANDROID_SDK_ROOT -
lattice0 revised this gist
May 7, 2022 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,23 +9,23 @@ echo "$CMD_LINE_TOOLS_SHA256 command_line_tools.zip" | sha256sum -c - unzip command_line_tools.zip -d $ANDROID_SDK_ROOT export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/bin API_VER=30 sdkmanager --sdk_root=$ANDROID_SDK_ROOT "system-images;android-$API_VER;google_apis;x86_64" "platforms;android-$API_VER" sdkmanager --sdk_root=$ANDROID_SDK_ROOT "emulator" "platform-tools" export PATH=$PATH:$ANDROID_SDK_ROOT/emulator export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools avdmanager --verbose create avd --force \ --name "emu1" \ --device "pixel" \ --package "system-images;android-$API_VER;google_apis;x86_64" \ --tag "google_apis" \ --abi "x86_64" #TODO: fix this correction that is needed: nano /home/$USER/.android/avd/emu1.avd/config.ini # and change image.sysdir.1 = android_sdk_root/system-images/android-30/google_apis/x86_64/ # to image.sysdir.1 = system-images/android-30/google_apis/x86_64/ # Socat redirection: https://gist.github.com/lattice0/0040c1d29606c7a8f34c3b5b78814fdb -
lattice0 revised this gist
Apr 16, 2022 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,4 +27,7 @@ image.sysdir.1 = android_sdk_root/system-images/android-30/google_apis/x86/ # to image.sysdir.1 = system-images/android-30/google_apis/x86/ # Socat redirection: https://gist.github.com/lattice0/0040c1d29606c7a8f34c3b5b78814fdb #Launch: ANDROID_SDK_ROOT=/home/lz/android_sdk_root ANDROID_AVD_HOME=$ANDROID_SDK_ROOT/.android/avd /home/lz/android_sdk_root/emulator/emulator -verbose @emu1 -
lattice0 revised this gist
Apr 16, 2022 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,3 +26,5 @@ nano /home/$USER/.android/avd/emu1.avd image.sysdir.1 = android_sdk_root/system-images/android-30/google_apis/x86/ # to image.sysdir.1 = system-images/android-30/google_apis/x86/ # Socat redirection: https://gist.github.com/lattice0/0040c1d29606c7a8f34c3b5b78814fdb -
lattice0 revised this gist
Apr 16, 2022 . 1 changed file with 6 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,8 +20,9 @@ avdmanager --verbose create avd --force \ --tag "google_apis" \ --abi "x86" #TODO: fix this correction that is needed: nano /home/$USER/.android/avd/emu1.avd # and change image.sysdir.1 = android_sdk_root/system-images/android-30/google_apis/x86/ # to image.sysdir.1 = system-images/android-30/google_apis/x86/ -
lattice0 revised this gist
Apr 16, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ sdkmanager --sdk_root=$ANDROID_SDK_ROOT "system-images;android-$API_VER;google_a sdkmanager --sdk_root=$ANDROID_SDK_ROOT "emulator" "platform-tools" export PATH=$PATH:$ANDROID_SDK_ROOT/emulator export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools avdmanager --verbose create avd --force \ --name "emu1" \ --device "pixel" \ --package "system-images;android-$API_VER;google_apis;x86" \ -
lattice0 revised this gist
Apr 16, 2022 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,10 +10,10 @@ unzip command_line_tools.zip -d $ANDROID_SDK_ROOT export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/bin API_VER=30 sdkmanager --sdk_root=$ANDROID_SDK_ROOT "system-images;android-$API_VER;google_apis;x86" "platforms;android-$API_VER" sdkmanager --sdk_root=$ANDROID_SDK_ROOT "emulator" "platform-tools" export PATH=$PATH:$ANDROID_SDK_ROOT/emulator export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools avdmanager --sdk_root=$ANDROID_SDK_ROOT --verbose create avd --force \ --name "emu1" \ --device "pixel" \ --package "system-images;android-$API_VER;google_apis;x86" \ -
lattice0 revised this gist
Apr 16, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ mkdir -p $ANDROID_SDK_ROOT CMD_LINE_TOOLS_URL=https://dl.google.com/android/repository/commandlinetools-linux-8092744_latest.zip CMD_LINE_TOOLS_SHA256=d71f75333d79c9c6ef5c39d3456c6c58c613de30e6a751ea0dbd433e8f8b9cbf wget -O command_line_tools.zip $CMD_LINE_TOOLS_URL echo "$CMD_LINE_TOOLS_SHA256 command_line_tools.zip" | sha256sum -c - unzip command_line_tools.zip -d $ANDROID_SDK_ROOT export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/bin API_VER=30 -
lattice0 created this gist
Apr 16, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ set -ex export ANDROID_SDK_ROOT=/home/$USER/android_sdk_root rm -rf $ANDROID_SDK_ROOT mkdir -p $ANDROID_SDK_ROOT CMD_LINE_TOOLS_URL=https://dl.google.com/android/repository/commandlinetools-linux-8092744_latest.zip CMD_LINE_TOOLS_SHA256=d71f75333d79c9c6ef5c39d3456c6c58c613de30e6a751ea0dbd433e8f8b9cbf wget -O command_line_tools.zip $CMD_LINE_TOOLS_URL echo "CMD_LINE_TOOLS_SHA256 command_line_tools.zip" | sha256sum -c - unzip command_line_tools.zip -d $ANDROID_SDK_ROOT export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/bin API_VER=30 sdkmanager --sdk_root=$ANDROID_SDK_ROOT "system-images;android-$API_VER;google_apis;x86" "platforms;android-$API_VER" sdkmanager "emulator" "platform-tools" export PATH=$PATH:$ANDROID_SDK_ROOT/emulator export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools avdmanager --verbose create avd --force \ --name "emu1" \ --device "pixel" \ --package "system-images;android-$API_VER;google_apis;x86" \ --tag "google_apis" \ --abi "x86"