2025 小米8 Pokémon GO 飛人安全方案

經典組合版 - 針對 Android 10 優化

📱 前置需求

🛠 Mac 安裝 ADB

brew install android-platform-tools

步驟 1: 系統準備與 Root

1.1 下載 Magisk

自動下載方式(推薦)

Mac/Linux
curl -s https://api.github.com/repos/topjohnwu/Magisk/releases/latest | grep browser_download_url | grep "\.apk" | cut -d '"' -f 4 | xargs curl -L -o Magisk.apk

手動下載

Magisk APK: https://github.com/topjohnwu/Magisk/releases/latest

1.2 準備 Boot Image

  1. 從小米官方 ROM 提取 boot.img
  2. 安裝 Magisk Manager APK
  3. 使用 Magisk 修補 boot.img(選擇 安裝修補 Boot 映像檔
  4. 將修補後的檔案傳送到電腦

1.3 刷入 Root(電腦操作)

# 重啟到 bootloader 模式
adb reboot bootloader

# 刷入修補後的 boot.img
fastboot flash boot magisk_patched.img

# 重啟設備
fastboot reboot

1.4 檢查安裝完成

重開機後打開 Magisk 查看顯示已安裝

步驟 2: 核心模組安裝

⚠️ 安裝順序很重要! 請按照以下順序安裝,每個模組安裝後都要重啟。

2.1 批量下載所有模組

Mac/Linux 一鍵下載腳本

#!/bin/bash
# 提示使用者輸入下載路徑
read -p "請輸入下載路徑 (例如 /Users/你的名稱/Desktop/magisk_modules): " DOWNLOAD_DIR

# 檢查使用者是否有輸入
if [ -z "$DOWNLOAD_DIR" ]; then
    echo "未輸入下載路徑,腳本已退出。"
    exit 1
fi

# 創建下載目錄
mkdir -p "$DOWNLOAD_DIR"
cd "$DOWNLOAD_DIR" || exit 1

# 統一下載函數
download_latest() {
    local repo="$1"
    local pattern="$2"
    local output="$3"
    echo "下載 $output..."
    url=$(curl -s "https://api.github.com/repos/$repo/releases/latest" \
      | grep browser_download_url \
      | grep -i "$pattern" \
      | cut -d '"' -f 4)
    if [ -n "$url" ]; then
        curl -L -o "$output" "$url"
    else
        echo "⚠️ 無法找到 $output 的下載連結"
    fi
}

# 下載各模組
download_latest "Dr-TSNG/ZygiskNext" "\.zip" "ZygiskNext.zip"
download_latest "osm0sis/PlayIntegrityFork" "\.zip" "PlayIntegrityFork.zip"
download_latest "5ec1cff/TrickyStore" "\.zip" "TrickyStore.zip"
download_latest "KOWX712/Tricky-Addon-Update-Target-List" "\.zip" "TrickyAddon.zip"
download_latest "LSPosed/LSPosed.github.io" "shamiko.*\.zip" "Shamiko.zip"
download_latest "LSPosed/LSPosed" "zygisk-release\.zip" "LSPosed.zip"
download_latest "Dr-TSNG/Hide-My-Applist" "\.apk" "HideMyApplist.apk"
download_latest "auag0/HideMockLocation" "\.apk" "HideMockLocation_auag0_v1.2.1.apk"

echo "所有模組下載完成!"
ls -la

推送模組到手機(一次性操作)

# 創建手機下載目錄
adb shell mkdir -p /sdcard/Download/magisk_modules

# 推送所有 zip 模組
adb push ZygiskNext.zip /sdcard/Download/magisk_modules/
adb push PlayIntegrityFork.zip /sdcard/Download/magisk_modules/
adb push TrickyStore.zip /sdcard/Download/magisk_modules/
adb push TrickyAddon.zip /sdcard/Download/magisk_modules/
adb push Shamiko.zip /sdcard/Download/magisk_modules/
adb push LSPosed.zip /sdcard/Download/magisk_modules/

# 推送 APK 檔案
adb push HideMyApplist.apk /sdcard/Download/
adb push HideMockLocation_auag0_v1.2.1.apk /sdcard/Download/

2.2 安裝順序(手機操作)

  1. ZygiskNext: Magisk → 模組 → 從儲存空間安裝 → 重啟
  2. PlayIntegrityFork: Magisk → 模組 → 從儲存空間安裝 → 重啟
  3. TrickyStore: Magisk → 模組 → 從儲存空間安裝 → 重啟
  4. TrickyAddon: Magisk → 模組 → 從儲存空間安裝 → 重啟

步驟 3: Play Integrity 配置

3.1 PlayIntegrityFork 設定

  1. Magisk → 模組 → PlayIntegrityFork → 動作按鈕
  2. 自動產生適合 Android 10 的 fingerprint

3.2 TrickyStore 設定

  1. 開啟 TrickyStore 應用程式
  2. 功能表全選
  3. 功能表取消選擇不必要項目儲存
  4. 功能表設定有效 Keybox
    • 會自動設定: TrickyStore 內建 AOSP keybox
    • 看到「找到有效 keybox」表示成功
  5. 功能表設定安全補丁取得安全補丁日期儲存

3.3 清除 Google 服務

# 電腦協助清除(推薦)
adb shell pm clear com.google.android.gms
adb shell pm clear com.android.vending
adb shell pm clear com.google.android.gsf

步驟 4: 隱藏與偽裝

4.1 預先安裝GPS應用(但不配置)

安裝GPS模擬應用:

# 安裝推薦的 GPS 應用
adb install /sdcard/Download/FakeGPS_Location_GPS_JoyStick.apk

重要注意事項:

  • ✅ 僅安裝,不要開啟
  • ✅ 不要設置為模擬位置應用
  • ✅ 不要進行任何配置
  • ❌ 避免在開發者選項中選擇它

4.2 Shamiko (Root 隱藏)

安裝與配置:

# 安裝Shamiko模組
Magisk → 模組 → 從儲存空間安裝 Shamiko.zip → 重啟

配置設定:

  1. Magisk → 設定 → 強制執行拒絕清單: ❌ 保持關閉
  2. 配置拒絕清單 → 勾選以下項目:
    • ✅ Pokémon GO (所有子項目)
    • ✅ Google Play Services
    • ✅ Google Play Store
    • ✅ 你的GPS模擬應用程式 (重要!)

4.3 LSPosed + 應用程式隱藏

4.3.1 LSPosed 安裝:

# 安裝LSPosed模組
Magisk → 模組 → 從儲存空間安裝 LSPosed.zip → 重啟

4.3.2 HideMyApplist (HMA) - 應用程式清單隱藏:

# 安裝HMA
adb install /sdcard/Download/HideMyApplist.apk

設定:

  1. LSPosed Manager → 模組 → Hide My Applist → ✅ 啟用
  2. ✅ 勾選 Pokémon GO
  3. 在HMA中隱藏以下應用:
    • Magisk Manager
    • GPS模擬應用程式
    • PGTools
    • Pokemod
    • 其他Root工具

4.3.3 Hide Mock Location (HML) - 模擬位置隱藏:

# 安裝HML auag0 版本
adb install /sdcard/Download/HideMockLocation_auag0_v1.2.1.apk

設定:

  1. LSPosed Manager → 模組 → Hide Mock Location → ✅ 啟用
  2. ✅ 勾選 Pokémon GO
  3. ✅ 勾選 你的GPS模擬應用程式

4.4 GPS 模擬應用程式配置

隱藏 Magisk:

# Magisk自我隱藏
Magisk → 設定 → 隱藏Magisk應用程式

推薦應用程式:

系統設置:

  1. 開發者選項模擬位置應用程式 → 選擇你的GPS應用
  2. 位置設定模式 → 僅限GPS
  3. ❌ 關閉「位置記錄」和「Google位置精確度」

GPS應用初始配置:

  1. 開啟GPS模擬應用
  2. 授予必要權限
  3. 進行基本設置(但暫時不要開始模擬)

步驟 5: 最終測試

5.1 Play Integrity 檢查(優先使用)

期望結果:

5.2 其他檢測工具

5.3 Pokémon GO 測試

  1. 啟動 GPS 模擬應用程式
  2. 設定安全的測試位置(避免跨洲跳躍)
  3. 開啟 Pokémon GO 檢查是否出現錯誤

故障排除

重新生成 Play Integrity 配置

# 重新生成 fingerprint
adb shell su -c "cd /data/adb/modules/playintegrityfix && rm -f custom.pif.json"
adb shell su -c "cd /data/adb/modules/playintegrityfix && ./autopif2.sh --device"

檢查模組狀態

# 檢查已安裝模組
adb shell su -c "ls -la /data/adb/modules/"

# 檢查 DenyList 狀態
adb shell su -c "magisk --denylist ls"

# 檢查 Play Integrity 日誌
adb shell su -c "logcat | grep -E '(PIF|TrickyStore)'"

⚠️ 重要安全提醒

本方案針對 Android 10 優化,理論成功率 85%+ 達到 Device Integrity