# 📱 ADB TRANSFER INSTRUCTIONS
**Transfer RR3 Assets from Phone to Your Windows PC, then to OVH Server**

---

## 🔧 STEP 1: Enable USB Debugging on Phone

1. **Settings → About Phone**
2. Tap "Build Number" 7 times (enables Developer Mode)
3. **Settings → Developer Options**
4. Enable **USB Debugging**
5. Connect phone to your Windows PC via USB

---

## 💻 STEP 2: Install ADB on Your Windows PC

### Option A: Download Minimal ADB
```
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
```
- Extract to `C:\adb\`
- Add `C:\adb\platform-tools` to PATH (optional)

### Option B: Use Existing Android SDK
- If you have Android Studio, ADB is in:
- `C:\Users\YourName\AppData\Local\Android\Sdk\platform-tools\`

---

## 📥 STEP 3: Pull Assets from Phone (Run on YOUR Windows PC)

### Open Command Prompt or PowerShell on YOUR PC:

```powershell
# Navigate to ADB folder (adjust path if different)
cd C:\adb\platform-tools

# Check if phone is connected
adb devices

# Should show: List of devices attached
#              XXXXXXXX        device
```

**If you see "unauthorized":**
- Check your phone screen
- Tap "Allow USB Debugging"
- Check "Always allow from this computer"

---

### Pull the RR3 Assets:

```powershell
# Pull entire RR3 data folder (1.44 GB)
adb pull /sdcard/Android/data/com.ea.games.r3_row/files/ "C:\RR3-Assets\"

# This will take 5-10 minutes depending on USB speed
# Watch the progress: [100%] /sdcard/Android/data/...
```

**Alternative paths if first doesn't work:**
```powershell
# Try OBB folder
adb pull /sdcard/Android/obb/com.ea.games.r3_row/ "C:\RR3-Assets-OBB\"

# Try alternative data location
adb pull /data/data/com.ea.games.r3_row/files/ "C:\RR3-Assets-Data\"
```

---

## 📤 STEP 4: Transfer to OVH Server

### Option A: Direct RDP File Transfer
1. In your RDP session (connected to OVH server)
2. Open File Explorer on local PC
3. Copy `C:\RR3-Assets\` folder
4. Paste into RDP window at: `E:\rr3\phone-assets-full\`

### Option B: Upload to Google Drive (You Already Use This)
```powershell
# Compress first to speed up upload
Compress-Archive -Path "C:\RR3-Assets\*" -DestinationPath "C:\RR3-Assets-Full.zip"

# Upload to Google Drive manually
# Then on OVH server, download from: G:\My Drive\RR3-Assets-Full.zip
```

### Option C: Network Share (if on same network)
- Share `C:\RR3-Assets\` on your PC
- Map network drive on OVH server
- Copy directly

---

## 🎯 QUICK REFERENCE COMMANDS (Run on YOUR PC):

```powershell
# 1. Check connection
adb devices

# 2. List what's on phone (verify path exists)
adb shell ls /sdcard/Android/data/com.ea.games.r3_row/files/

# 3. Check total size before pulling
adb shell du -sh /sdcard/Android/data/com.ea.games.r3_row/files/

# 4. Pull everything
adb pull /sdcard/Android/data/com.ea.games.r3_row/files/ "C:\RR3-Assets\"

# 5. Verify what you got
dir C:\RR3-Assets /s
```

---

## ⚠️ TROUBLESHOOTING:

**"adb: command not found"**
- Use full path: `C:\adb\platform-tools\adb.exe devices`

**"device unauthorized"**
- Check phone screen for popup
- Revoke USB debugging authorizations and try again
- Settings → Developer Options → Revoke USB debugging authorizations

**"adb: error: failed to stat remote object"**
- Path doesn't exist on phone
- Try alternative paths listed above
- Or use: `adb shell ls /sdcard/Android/data/` to see what's there

**"adb: device offline"**
- Unplug and replug USB cable
- Run: `adb kill-server` then `adb start-server`

**Transfer is slow:**
- Use USB 3.0 port if available
- Close other apps on phone
- Disable phone screen lock during transfer

---

## 📊 EXPECTED RESULT:

```
After successful pull:

C:\RR3-Assets\
├── pak files (car/track models)
├── pka files (asset archives)
├── z files (textures)
├── audio files
├── manifest files
└── config files

Total: ~1.4 GB
Files: Thousands
```

---

## 🏁 NEXT STEPS AFTER TRANSFER:

1. Verify file count and size
2. Transfer to OVH server: `E:\rr3\phone-assets-full\`
3. Analyze asset structure
4. Extract and catalog all assets
5. Map to CDN URLs
6. Archive for preservation

---

**START HERE:** 
1. Enable USB debugging on phone
2. Download ADB: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
3. Extract to C:\adb\
4. Connect phone via USB
5. Run: `C:\adb\platform-tools\adb.exe devices`

**Then tell me what you see!** 📱💾
