minSdkVersion, screen-size handling for Portal’s tabletop and TV form factors, microphone and camera permission scaffolding, and example use of the smart camera and far-field mic array. The repo includes an agents.md file that AI coding tools read automatically to understand how to work with the sample.
# Build the debug APK ./gradlew assembleDebug
# Install it directly onto your connected device adb install app/build/outputs/apk/debug/app-debug.apk
minSdkVersion to 28 (Android 9) and targetSdkVersion to 29 (Android 10) to maximize compatibility.<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
| Feature | Mitigation |
|---|---|
Camera, Microphone, Speaker | Regular Android permissions |
Bluetooth | Regular Android permission |
Network interface (for example, to search for home automation devices) | Regular Android permission |
Touch input and keyboard | Regular Android permission |
Storage write | Regular Android permission |
Storage delete | Delete via adb shell rm. Alternative: install a file manager app and delete via the device. |
Access to device contacts | Not possible |
Access to device credentials (for example, Facebook) | Not possible |