# 📱 PHONE → SERVER ASSET TRANSFER GUIDE

**Setup:** Real Racing 3 on physical phone, downloading assets NOW  
**Server:** OVH server accessible via RDP  
**Status:** 🔴 **ACTIVE DOWNLOAD - CAPTURE IN PROGRESS**

---

## 🎯 IMMEDIATE: Capture Endpoint Data

You mentioned seeing endpoints - **CRITICAL: Document these NOW!**

### What Tool Are You Using?

**If HTTP Canary:**
```
1. Keep it running while RR3 downloads
2. After download: Tap "Stop" button
3. Tap "Sessions" to see all captured requests
4. Look for ea.com domains
5. Export options:
   - Share → HAR file
   - Share → Text summary
   - Screenshot the URLs
6. Send to yourself via email/cloud
```

**If Packet Capture:**
```
1. Keep capturing
2. When done: Stop capture
3. View captured sessions
4. Export as PCAP or text
5. Transfer to PC for analysis
```

**If Using Proxy:**
```
- What proxy software?
- Can you access logs from OVH server?
- Save/export the session logs
```

---

## 📝 KEY INFORMATION TO CAPTURE

### 1. CDN Domain Names
```
Look for patterns like:
❓ cloudcell.ea.com
❓ cdn.ea.com  
❓ *.cloudfront.net
❓ s3.amazonaws.com
❓ Other AWS/CDN domains
```

### 2. URL Patterns
```
Example patterns to note:
/rr3/assets/...
/realracing3/...
/mobile/...
/*.pak
/*.pka
/*.z
/manifest.*
```

### 3. Sample URLs (Copy 5-10 examples)
```
https://[domain]/[path]/car_001.pak
https://[domain]/[path]/track_spa.pak
https://[domain]/[path]/manifest.json
etc.
```

---

## 📊 Check Download Size

### On Phone:
```
1. Settings → Apps → Real Racing 3
2. Storage
3. Note total size (e.g., "2.5 GB")
4. This tells us how much was downloaded
```

### Expected Sizes:
```
Base APK: ~100-200 MB
Extra Assets: 1-3 GB typical
Full Game: 2-5 GB total
```

---

## 📥 TRANSFER OPTIONS (Once Download Complete)

### Option A: USB + ADB (BEST)

**Requirements:**
- USB cable
- USB debugging enabled on phone
- ADB installed on OVH server

**Steps:**
```powershell
# On OVH server, install ADB if needed:
# Download: https://developer.android.com/studio/releases/platform-tools

# Connect phone via USB
adb devices
# Should show: [device ID]    device

# Pull all RR3 files
adb pull /sdcard/Android/data/com.ea.games.r3_row/files/ E:\rr3\phone-assets\

# Also check OBB folder
adb pull /sdcard/Android/obb/com.ea.games.r3_row/ E:\rr3\phone-obb\

# Check internal storage too
adb pull /sdcard/EA/ E:\rr3\phone-ea\
```

---

### Option B: Cloud Upload (EASIEST)

**Google Drive:**
```
1. Install "Solid Explorer" or similar file manager on phone
2. Navigate to: Android/data/com.ea.games.r3_row/files/
3. Select all files
4. Share → Upload to Google Drive
5. On OVH server: Download from drive.google.com
```

**Alternatives:**
- Dropbox
- OneDrive
- MEGA (good for large files)
- WeTransfer (no account needed, up to 2GB free)

---

### Option C: Direct FTP Upload

**Setup FTP Server on OVH:**
```powershell
# Install FileZilla Server
# Or use IIS FTP (already on Windows Server)

# Enable Windows FTP Server:
Install-WindowsFeature Web-FTP-Server -IncludeManagementTools

# Create FTP site in IIS
# Note FTP URL: ftp://[server-ip]:21
```

**From Phone:**
```
1. Install FTP client (e.g., "AndFTP")
2. Connect to server FTP
3. Upload RR3 files
```

---

### Option D: SMB Network Share

**On OVH Server:**
```powershell
# Create shared folder
New-Item -Path "E:\rr3-upload" -ItemType Directory
New-SmbShare -Name "RR3Upload" -Path "E:\rr3-upload" -FullAccess "Everyone"

# Note server IP
Get-NetIPAddress | Where-Object {$_.AddressFamily -eq "IPv4"}
```

**From Phone:**
```
1. Install "CX File Explorer" or similar
2. Network → Add SMB share
3. Connect to \\[server-ip]\RR3Upload
4. Copy files from phone to share
```

---

### Option E: Bluetooth/WiFi Direct (SLOW but works)

**For smaller files:**
```
- Nearby Share (Android)
- Send Anywhere app
- Snapdrop (web-based)
```

---

## 🔍 File Locations on Phone

### Primary Location:
```
/sdcard/Android/data/com.ea.games.r3_row/files/
```

### Alternative Locations:
```
/sdcard/Android/obb/com.ea.games.r3_row/
/sdcard/EA/
/sdcard/Download/ (if manually saved)
/data/data/com.ea.games.r3_row/ (requires root)
```

### Using Phone File Manager:
```
1. Open file manager (Files/My Files)
2. Internal Storage
3. Android → data → com.ea.games.r3_row → files
4. Look for:
   - .pak files
   - .pka files  
   - .z files
   - .json or .manifest files
   - Folders named "assets", "cars", "tracks", etc.
```

---

## 📸 Document Everything (DO THIS NOW!)

### Screenshots to Take:
```
1. RR3 download progress screen
2. HTTP Canary captured URLs (all pages)
3. File manager showing downloaded files
4. Settings → Apps → RR3 → Storage (size)
5. Any manifest or config files (if visible)
```

### Text Files to Create:
```
urls.txt - All captured CDN URLs
manifest.txt - Manifest file content (if found)
file-list.txt - List of all downloaded files
notes.txt - Any observations
```

---

## 🚀 Automated Transfer Script

**Once we know the method, I'll create:**

```powershell
# Example: Automated ADB pull script
$timestamp = Get-Date -Format "yyyyMMdd_HHmmss"
$outputDir = "E:\rr3\phone-capture-$timestamp"

Write-Host "Creating output directory..." -ForegroundColor Cyan
New-Item -ItemType Directory -Path $outputDir -Force

Write-Host "Pulling RR3 files via ADB..." -ForegroundColor Yellow
adb pull /sdcard/Android/data/com.ea.games.r3_row/files/ "$outputDir\files\"
adb pull /sdcard/Android/obb/com.ea.games.r3_row/ "$outputDir\obb\"

Write-Host "Generating file list..." -ForegroundColor Cyan
Get-ChildItem -Path $outputDir -Recurse -File | 
    Select-Object FullName, Length, 
    @{Name="MD5";Expression={(Get-FileHash $_.FullName -Algorithm MD5).Hash}} |
    Export-Csv "$outputDir\manifest.csv" -NoTypeInformation

Write-Host "Complete! Files saved to: $outputDir" -ForegroundColor Green
```

---

## ⏱️ TIMELINE

```
NOW:        Document URLs being captured
+5 min:     Screenshot everything on phone
+10 min:    Choose transfer method
+15 min:    Start file transfer
+30 min:    Files on OVH server (depends on size/method)
+1 hour:    Analyze, mirror CDN, preserve
```

---

## 🎯 IMMEDIATE ACTION CHECKLIST

```
☐ Keep RR3 downloading (don't interrupt!)
☐ Keep endpoint capture running
☐ Note what capture tool you're using
☐ Copy/screenshot all CDN URLs you see
☐ Check phone storage: Settings → Apps → RR3 → Storage
☐ Plan transfer method (USB/Cloud/Network)
☐ Document everything with screenshots
```

---

## 💬 WHAT TO TELL ME

**Right now, reply with:**

1. **Capture tool:** "I'm using [HTTP Canary / Packet Capture / Proxy / Other]"
2. **URLs seen:** "I see domains like [cloudcell.ea.com / other]"
3. **Download size:** "Phone shows RR3 is using [X] GB"
4. **Transfer preference:** "I can do [USB / Cloud / FTP / Other]"

Once I know these, I can give you **exact commands** to run!

---

**Status:** 🟢 **Waiting for your capture info**  
**Next:** Transfer files, mirror CDN, preserve forever! 🏁
