Developer SDK

Android examples

Install the SDK · View source on GitHub ↗

embed/src/main/AndroidManifest.xml

xml
<?xml version="1.0" encoding="utf-8"?>
<!--
The embed app: one activity, and the application-scoped holder (EmbedApplication) that owns the
embedded device while the user has started it. In-app traffic only: the device carries the app's
own connections, so the app needs only INTERNET, no VpnService and no foreground service. The
installation state is in the no-backup files directory, and backups and device transfers exclude
the app's data. Release builds allow HTTPS only; the debug network security configuration adds the
loopback token server.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:name=".EmbedApplication"
        android:allowBackup="false"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="false"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:networkSecurityConfig="@xml/network_security_config"
        android:theme="@style/Theme.Embed">

        <activity
            android:name=".MainActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>