ShadeUpload turns a shared content:// URI into meta and an upload job; KeystoreSecretFile keeps the owner seed under a Keystore key. The demo app takes SEND/SEND_MULTIPLE of video, images, audio and documents, uploads in a foreground service with progress, and its done notification plays the file or shares the link; the player gets a Share button. The live cross-check also uploads a content:// share under Robolectric. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
55 lines
2.6 KiB
XML
55 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<!-- Uploading a film runs in the foreground, with its progress shown. -->
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
<!-- Cleartext is allowed so the demo can reach a relay on the LAN
|
|
(`shade media serve` speaks plain HTTP). The media is sealed end to
|
|
end either way; TLS would hide only which file is fetched. -->
|
|
<application
|
|
android:label="Shade Media"
|
|
android:usesCleartextTraffic="true"
|
|
android:theme="@android:style/Theme.Material.NoActionBar">
|
|
<activity
|
|
android:name=".PlayerActivity"
|
|
android:exported="true"
|
|
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
<!-- Share a watch link to the app from any browser or chat. -->
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.SEND" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="text/plain" />
|
|
</intent-filter>
|
|
</activity>
|
|
<!-- Share a video, photo, song or document: sealed here, uploaded to your relay. -->
|
|
<activity
|
|
android:name=".ShareActivity"
|
|
android:exported="true"
|
|
android:label="Share to Shade"
|
|
android:excludeFromRecents="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.SEND" />
|
|
<action android:name="android.intent.action.SEND_MULTIPLE" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="video/*" />
|
|
<data android:mimeType="image/*" />
|
|
<data android:mimeType="audio/*" />
|
|
<data android:mimeType="application/*" />
|
|
</intent-filter>
|
|
</activity>
|
|
<service
|
|
android:name=".UploadService"
|
|
android:exported="false"
|
|
android:foregroundServiceType="dataSync" />
|
|
</application>
|
|
</manifest>
|