Skip to content

Instantly share code, notes, and snippets.

View hjc4869's full-sized avatar
🙃
awsl

David Huang hjc4869

🙃
awsl
View GitHub Profile
@hjc4869
hjc4869 / apkinst.ps1
Created October 20, 2021 17:11
APK installer for Windows Subsystem for Android
param([string]$ApkFile)
# Acquire adb.exe/AdbWinApi.dll from Android SDK and copy them to the same directory
# Run with admin cmd to associate the script with APK files:
# assoc .apk=apkfile
# ftype apkfile=powershell.exe -File <path\to>\apkinst.ps1 "%1"
$ErrorActionPreference="Stop"
$AdbPath="$PSScriptRoot\adb.exe"