Skip to content

Instantly share code, notes, and snippets.

View cnachen's full-sized avatar
🍻
Cheers!

Cnachen CLI cnachen

🍻
Cheers!
View GitHub Profile
@cnachen
cnachen / android_cmd_tools.txt
Created March 29, 2026 00:22
Android command line tools
https://developer.android.com/tools
https://github.com/CuriousNom/device_xiaomi_pipa
https://github.com/MufasaXz/device_xiaomi_pipa
https://github.com/Xiaomi-Pad6/device_xiaomi_pipa
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!--
<remove-project name="hardware/qcom-caf/sdm845/audio" />
<remove-project name="hardware/qcom-caf/sdm845/display" />
<remove-project name="hardware/qcom-caf/sdm845/media" />
<remove-project name="device/lineage/sepolicy" />
<remove-project name="device/qcom/sepolicy_vndr/legacy-um" />
-->
https://wiki.lineageos.org/libvirt-qemu
https://github.com/cnachen/android-lineage-qemu
@cnachen
cnachen / pixelos_build_polaris.txt
Last active February 8, 2026 08:53
Build PixelOS for Xiaomi MIX 2S
# Repo manipulation
https://blog.pixelos.net/docs/JoinTheTeam/BuildingPixelOS
https://github.com/derveror/local_manifest
https://github.com/PixelOS-AOSP/android_manifest
https://wiki.lineageos.org/devices/polaris/build
https://wiki.pixelexperience.org/devices/polaris/build
https://source.android.com/docs/setup/download/troubleshoot-sync
# Device trees
https://github.com/duckyduckG
@cnachen
cnachen / unbind-vfio-pci.sh
Last active March 11, 2025 04:15
Release passthrough-devices when Windows VM off on Proxmox VE
#!/usr/bin/env bash
set -e -o errexit -o pipefail -o nounset
set -x
VMID=$1
PHASE="$2"
get_pci_driver() {
address="$1"
driver=$(lspci -vvv -s $address | grep "Kernel driver in use" | awk '{print $5}')