Skip to content

Instantly share code, notes, and snippets.

@amanjeetsingh150
amanjeetsingh150 / LogcatReporter.kt
Last active April 4, 2022 07:36
Dumping logcat via dadb
import dadb.AdbShellResponse
import dadb.Dadb
import okio.Sink
import okio.buffer
import okio.sink
import java.io.File
import java.io.IOException
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
@r4dixx
r4dixx / minimal-android-setup.sh
Last active March 29, 2022 16:19
Minimal Android setup. Useful for basic testing or demo setups
#!/bin/sh
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# Install Java, Android command line tools and scrcpy
brew install openjdk@11
sudo ln -sfn /opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk