Skip to content

Instantly share code, notes, and snippets.

View felix021's full-sized avatar

Felix021 felix021

View GitHub Profile
@felix021
felix021 / build-android-on-arm64.md
Created May 9, 2026 16:26
Build Android apps on ARM64 (rooted Android chroot, Raspberry Pi, etc.) using Box64 + binfmt_misc. Makes x86_64 Android SDK tools (aapt2, zipalign) transparent to Gradle and any build system. Includes setup, verification, and troubleshooting.

Building Android Apps on ARM64 with Box64 + binfmt_misc

Android SDK build-tools ship only x86_64 Linux binaries. On arm64 (rooted Android with Debian chroot, Raspberry Pi, other ARM64 SBCs), Box64 translates these via binfmt_misc -- making the entire toolchain transparent to any build system (Gradle, Bazel, Buck, or raw CLI).

After setup, no wrapper scripts, no box64 prefix, no build file changes needed. Just gradle assembleDebug and it works.

How It Works

Gradle (JVM, native arm64)
@felix021
felix021 / SKILL.md
Created May 9, 2026 16:11
Android CLI APK Builder for arm64 - Build APKs from command line without Android Studio/Gradle. Box64 translates native x86_64 tools (aapt2, zipalign) while Java tools (d8, apksigner) run natively.
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 2 column 330
---
name: android-cli-apk-builder
description: Build Android APKs purely from the command line on arm64 (aarch64) without Android Studio or Gradle. Use when the user asks to build an APK manually, compile Android apps from CLI, set up a command-line Android build environment on arm64/aarch64, or mentions javac + aapt2 + d8 + apksigner workflow. Trigger keywords: build APK CLI, arm64 APK build, no Gradle, manual APK packaging, android build tools CLI, aapt2 box64.
---

Android CLI APK Builder (arm64)

Build Android APKs from the command line on aarch64/arm64 Linux (e.g., Debian chroot on rooted Android, Raspberry Pi, other ARM64 SBCs) without Android Studio or Gradle.

How It Works

@felix021
felix021 / gist:899088eea6bee4e1af366af331f7964e
Created May 8, 2026 15:19
How to download and audit Chrome extensions from Chrome Web Store
# How to Download & Audit Chrome Extensions
## Method 1: Direct CRX Download via API
```bash
# Replace <EXTENSION_ID> with the target extension ID
EXT_ID="<EXTENSION_ID>"
curl -L -o extension.crx "https://clients2.google.com/service/update2/crx?response=redirect&prodversion=120.0.0.0&acceptformat=crx2,crx3&x=id%3D${EXT_ID}%26uc"
# Extract (CRX v3 is a zip with a header)
@felix021
felix021 / gist-root-vpn-hiding.md
Created May 7, 2026 14:12
Android Root/VPN 隐藏方案:实现与局限

Android Root/VPN 隐藏方案:实现与局限

环境:OnePlus 15 (Android 16), Magisk 30.7, Shamiko v1.2.5

架构总览

App 检测请求
  ├─ Root 检测 → Magisk DenyList + HMA OSS + Shamiko (白名单模式)
 ├─ VPN 检测 → VPNHide 模块 (hook NetworkCapabilities)
@felix021
felix021 / disable-adaptive-brightness.md
Last active April 24, 2026 10:26
Windows 10 关闭 Intel 自适应亮度/对比度 完整指南

Windows 10 关闭 Intel 自适应亮度/对比度 完整指南

问题现象

切换界面色彩(如深色↔浅色)时,屏幕亮度会自动调整。

根源分析

通常有多个源头,需逐一排查关闭:

1. Windows 自适应亮度(系统层面)

@felix021
felix021 / easytier-connection-unstable-debug.md
Created April 17, 2026 10:17
EasyTier Magisk connection unstable: UDP+CGNAT timeout, fix with TCP protocol

EasyTier Magisk 模块连接不稳定排查记录

问题现象

EasyTier VPN 连接每隔约 10 秒断开一次,表现为网络时通时断。

排查过程

1. 初步怀疑:监控脚本

@felix021
felix021 / layered-test-framework.md
Last active April 16, 2026 22:26
分层测试框架实践:从单元测试到 E2E 的完整链路(Rust/JS/Python CDP)

分层测试框架实践:从单元测试到 E2E 的完整链路(Rust/JS/Python CDP)

分层测试框架实践:从单元测试到 E2E 的完整链路

基于一个 Rust 全栈项目(Server + CLI Client + Tauri Desktop)的真实经验总结。 包含工具链、踩过的坑、给 AI Agent 协作开发的建议。


一、分层测试架构

@felix021
felix021 / happy-vs-paseo.md
Created April 14, 2026 17:05
Happy vs Paseo:两款 AI 编程 Agent 远程控制工具对比分析

Happy vs Paseo:两款 AI 编程 Agent 远程控制工具对比分析

概述

Happy 和 Paseo 都致力于解决同一个核心问题:让开发者能够从手机、平板、网页等任意设备远程控制 AI 编程 Agent(如 Claude Code、Codex 等)。但两者在架构设计上走了完全不同的路线。


项目基本信息

@felix021
felix021 / Claude-Based-Android-Backup-SOP.md
Created April 11, 2026 15:00
Android 手机 ADB 备份/还原 SOP

Android 手机 ADB 备份/还原 SOP

基于 2026-04-11 一加 15 (PLK110) BL 解锁备份/还原实战总结。 下次执行前通读本文档,避免踩坑。


一、执行前 Checklist(必须在操作前逐项确认)

1.1 数据盘点

@felix021
felix021 / gost-v2-config-format.md
Created April 10, 2026 06:49
Gost V2 Config Specification

gost JSON Configuration Format Specification

This document describes the JSON configuration file format for gost v2.12.0.

Basic Structure

The configuration file is a JSON object with the following structure:

{