Browse Source

Fix Android 14 authentication breakage.

Workaround to fix issue #148: authentication failure to redirect back
to FFA.

Google issue tracker: https://issuetracker.google.com/issues/210886001

Workaround suggested by AppAuth:
https://github.com/openid/AppAuth-Android/issues/977#issuecomment-1785604118
develop
Hugh Daschbach 11 months ago committed by Georg Krause
parent
commit
c9056a2dbe
  1. 8
      app/src/main/AndroidManifest.xml
  2. 7
      app/src/main/res/values-v33/integers.xml
  3. 5
      app/src/main/res/values/integers.xml
  4. 1
      changes/changelog.d/148.workaround

8
app/src/main/AndroidManifest.xml

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
@ -56,6 +57,11 @@ @@ -56,6 +57,11 @@
android:name=".activities.LicencesActivity"
android:screenOrientation="portrait" />
<activity
android:name="net.openid.appauth.AuthorizationManagementActivity"
android:launchMode="@integer/launch_mode_for_app_auth"
tools:replace="android:launchMode" />
<service
android:name=".playback.PlayerService"
android:foregroundServiceType="mediaPlayback"

7
app/src/main/res/values-v33/integers.xml

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- LAUNCH_SINGLE_INSTANCE -> overrides library mode because of
bug in Android 14 (34) which causes infinite loop
should be fixed soon with version 14.1 -->
<integer name="launch_mode_for_app_auth">3</integer>
</resources>

5
app/src/main/res/values/integers.xml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- LAUNCH_SINGLE_TASK -> default value from library -->
<integer name="launch_mode_for_app_auth">2</integer>
</resources>

1
changes/changelog.d/148.workaround

@ -0,0 +1 @@ @@ -0,0 +1 @@
+ Workaround Android 14 authentication breakage. Issue #148 (contributed by hdasch)
Loading…
Cancel
Save