Files
Shade/android/shade-media-demo/src/main/AndroidManifest.xml

55 lines
2.6 KiB
XML
Raw Normal View History

<?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>