APP BRANDING INTEGRATION
========================

Panel page:
  branding.php

Panel-managed app assets:
  login_bg.png       - App/login background (original: 1920x1080)
  login_logo.png     - Login logo (original: 500x240)
  side_internal.png  - Small in-app logo (original: 512x512)
  sidelogo.png       - Main in-app logo (original: 500x240)

Active files:
  uploads/branding/

Bundled reset copies:
  assets/default_branding/

App endpoint:
  api/branding.php
  api/branding.php?asset=login_bg
  api/branding.php?asset=login_logo
  api/branding.php?asset=side_internal
  api/branding.php?asset=sidelogo

Behaviour:
- The administrator uploads PNG replacements from App Branding.
- The app keeps a private cached copy of each successfully downloaded image.
- Cached branding is applied immediately on launch/resume.
- The app then checks the panel for replacements and applies fresh copies on the UI thread.
- If the panel cannot be reached and there is no cached copy, the original drawable-nodpi resource remains in use.
- Reset copies the original bundled artwork back into the panel's active branding folder.

Server requirements:
- uploads/branding must be writable by PHP.
- PHP file uploads must be enabled.
- upload_max_filesize/post_max_size should allow the desired PNG size (panel additionally caps at 20 MB).
- PDO SQLite remains required by the main panel.

IMPORTANT:
Set com/PanelURL.smali XTV_API to the actual deployed panel /api/ URL before rebuilding/signing the APK.
