diff --git a/play-services-core/src/main/kotlin/org/microg/gms/games/GamesService.kt b/play-services-core/src/main/kotlin/org/microg/gms/games/GamesService.kt index be4939fbf..a2415b1b6 100644 --- a/play-services-core/src/main/kotlin/org/microg/gms/games/GamesService.kt +++ b/play-services-core/src/main/kotlin/org/microg/gms/games/GamesService.kt @@ -610,7 +610,7 @@ class GamesServiceImpl(val context: Context, override val lifecycle: Lifecycle, if (change != null && contents?.parcelFileDescriptor != null) { runCatching { val authResponse = withContext(Dispatchers.IO) { - AuthManager(context, account.name, packageName, SERVICE_GAMES_LITE).apply { isPermitted = true }.requestAuth(true) + AuthManager(context, account.name, packageName, "$SERVICE_GAMES_LITE ${Scopes.DRIVE_APPFOLDER}").apply { isPermitted = true }.requestAuth(true) } var oauthToken: String? = null if (authResponse.auth?.let { oauthToken = it } == null) { diff --git a/play-services-core/src/main/kotlin/org/microg/gms/games/ui/GamesUiFragment.kt b/play-services-core/src/main/kotlin/org/microg/gms/games/ui/GamesUiFragment.kt index 70b272b50..a60ab660b 100644 --- a/play-services-core/src/main/kotlin/org/microg/gms/games/ui/GamesUiFragment.kt +++ b/play-services-core/src/main/kotlin/org/microg/gms/games/ui/GamesUiFragment.kt @@ -27,6 +27,7 @@ import androidx.lifecycle.lifecycleScope import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.google.android.gms.R +import com.google.android.gms.common.Scopes import com.google.android.gms.games.snapshot.SnapshotMetadataEntity import com.google.android.material.bottomsheet.BottomSheetBehavior import com.google.android.material.bottomsheet.BottomSheetDialog @@ -113,7 +114,7 @@ class GamesUiFragment( } val authResponse = withContext(Dispatchers.IO) { - AuthManager(context, currentAccount!!.name, clientPackageName, SERVICE_GAMES_LITE).apply { isPermitted = true }.requestAuth(true) + AuthManager(context, currentAccount!!.name, clientPackageName, "$SERVICE_GAMES_LITE ${Scopes.DRIVE_APPFOLDER}").apply { isPermitted = true }.requestAuth(true) } var oauthToken: String? = null if (authResponse.auth?.let { oauthToken = it } == null) {