Use user-confirmed package sessions for TV updates

Stage the verified download with Android PackageInstaller rather than launching a loose APK file. Label the package source accurately, require user confirmation, and return to Luma after a self-update.
This commit is contained in:
Elijah Kuntz 2026-10-18 09:00:55 -07:00
parent 0d1a11d943
commit c04dcca60d
10 changed files with 147 additions and 28 deletions

View file

@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="tv.luma.launcher" android:versionCode="4" android:versionName="1.1.1">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="tv.luma.launcher" android:versionCode="6" android:versionName="1.1.3">
<uses-sdk android:minSdkVersion="26" android:targetSdkVersion="34" />
<uses-feature android:name="android.software.leanback" android:required="true" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
@ -37,5 +37,6 @@
<intent-filter><action android:name="android.intent.action.MY_PACKAGE_REPLACED" /></intent-filter>
</receiver>
<provider android:name=".UpdateProvider" android:authorities="tv.luma.launcher.updates" android:exported="false" android:grantUriPermissions="true" />
<receiver android:name=".UpdateInstaller" android:exported="false" />
</application>
</manifest>