Native Google Drive Sync (App Data Storage)#2600
Open
ramailo1 wants to merge 3 commits intorecloudstream:masterfrom
Open
Native Google Drive Sync (App Data Storage)#2600ramailo1 wants to merge 3 commits intorecloudstream:masterfrom
ramailo1 wants to merge 3 commits intorecloudstream:masterfrom
Conversation
fire-light42
requested changes
Apr 2, 2026
Collaborator
fire-light42
left a comment
There was a problem hiding this comment.
-
We have an AI policy, please read and update your PR:
https://github.com/recloudstream/cloudstream/blob/master/AI-POLICY.md -
Read the issue with backup and sync at #1641 (comment) The current implementation is insufficient and will create a lot of confusion using it.
-
Check out #2411 and the issues related to it, as they implement the same feature.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature: Native Google Drive Sync (App Data Storage)
📝 Overview
This PR implements a native, privacy-safe synchronization provider using Google Drive's App Data folder. Unlike traditional trackers (AniList/MAL), this feature syncs the entire application state (settings, bookmarks, and local data) across devices.
🛡️ Privacy & Security
appDataFolderscope, which is hidden from the user's main Drive UI and inaccessible to other apps.GoogleAuthUtil).🛠️ Technical Changes
SyncManager: A modern implementation usingAuthorizationRequestandIdentityclients for OAuth2 token management.BackupUtilsIntegration: Seamlessly hooks into the existingBackupFilearchitecture. Special care was taken to preserve the latest upstream fixes (e.g.,DOWNLOAD_HEADER_CACHE).SyncSettingsFragmentproviding "Push Now", "Pull Now", and "Auto-sync" options.libs.versions.toml).⚙️ Setup for Maintainers
Important
To enable this feature in official builds, the following setup is required in the Google Cloud Console:
drive.appdatascope.google.client_id=your_client_id_here.apps.googleusercontent.com✅ Verification & Compatibility
recloudstream/cloudstream(Master) as of Feb 28, 2026.Note: I've verified the navigation graph and fragment bindings, everything is ready for a prompt merge.