Skip to content

Instantly share code, notes, and snippets.

@giansalex
giansalex / android-emulator-standalone.md
Last active June 18, 2024 10:37
Run Android Emulator without Android Studio

Android Emulator without Android Studio

  • Download Command line tools only.
  • Configure your ANDROID_SDK_ROOT directory, create inside cmdline-tools and decompress zip downloaded above.
  • Set Environment Variable ANDROID_SDK_ROOT and added to PATH bin tools $ANDROID_SDK_ROOT/cmdline-tools/tools/bin.
  • Install packages for Android API 23 (MARSHMELLOW (6.0), etc) sdkmanager "system-images;android-23;google_apis;x86" "platforms;android-23"
  • Install emulator and tools: sdkmanager "emulator" "platform-tools"
  • Add tools to PATH: $ANDROID_SDK_ROOT/emulator, $ANDROID_SDK_ROOT/platform-tools
  • Create emulator device: avdmanager --verbose create avd --force --name "pixel_6.0" --device "pixel" --package "system-images;android-23;google_apis;x86" --tag "google_apis" --abi "x86"
  • Start emulator: emulator @pixel_6.0
@mrk-han
mrk-han / emulator-install-using-avdmanager.md
Last active June 18, 2024 07:51
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

@mildsunrise
mildsunrise / README.md
Last active September 13, 2023 09:47
OpenSCAD module for simple gears with round teeth

Simple module that makes gears with circular-shaped teeth. The gears maintain their shape even for extremely low teeth numbers up to 2. Parameters:

  • teeth: number of teeth.
  • step: width of one teeth (diameter of the circle).

Two gears produced with the same step will transfer movement, so one typically fixes a step for all the gears and varies teeth for each gear, which decides the radius and transfer ratio. Example: