Files
ctdogetudid/readme.md
2025-06-04 22:57:05 +07:00

93 lines
2.5 KiB
Markdown

# Get iOS Device UDID
A simple web application to get iOS device UDID using configuration profiles. Features a modern UI with device-specific experiences.
## Features
- QR code for desktop users
- Direct download for iOS devices
- Automatic device detection
- Clean, modern UI
- One-click UDID copying
- Email sharing capability
## Project Structure
```
├── index.html # Main page with device detection
├── instruction.php # Installation instructions
├── show_detail.php # UDID display page
├── device.mobileconfig # iOS configuration profile
├── get_mobileconfig.php # Profile delivery
└── processes_data.php # Profile data processing
```
## How It Works
1. Desktop users see a QR code to scan with their iOS device
2. iOS users get direct profile download
3. After installation, device information is displayed
4. Users can copy UDID or share via email
## Running the Project
Start the PHP development server:
```bash
php -S localhost:3030
```
Then open http://localhost:3030 in your browser.
For iOS devices to access from other devices, use your local IP address:
```bash
php -S 0.0.0.0:3030
```
Then access using http://your-local-ip:3030
## Technical Details
### device.mobileconfig
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<dict>
<key>URL</key>
<string>http://your-domain/processes_data.php</string>
<key>DeviceAttributes</key>
<array>
<string>UDID</string>
<string>DEVICE_NAME</string>
<string>VERSION</string>
<string>PRODUCT</string>
</array>
</dict>
<key>PayloadOrganization</key>
<string>UDID Finder</string>
<key>PayloadDisplayName</key>
<string>Get Device UDID</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadUUID</key>
<string>44D4B36F-01F5-4C6E-B474-F6B8BF6F8FF8</string>
<key>PayloadIdentifier</key>
<string>com.getudid.profile</string>
<key>PayloadDescription</key>
<string>Install this profile to get your device UDID.</string>
<key>PayloadType</key>
<string>Profile Service</string>
</dict>
</plist>
```
## Notes
- Make sure to update the URL in device.mobileconfig to match your domain
- For production use, HTTPS is recommended
- The built-in PHP server is for development only