Skip to content

About

Multi-cloud differential file sync studio for Android (GitHub, Google Drive & OneDrive) built with Python & Kivy. Designed and programmed by Mr.T.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GitSync Cloud Studio (v1.2.2)

A lightweight, touch-friendly Android & Python Kivy multi-cloud folder synchronization utility supporting GitHub, Google Drive, and Microsoft OneDrive with differential hash verification—uploading only new or modified files while skipping unchanged files.

Designed and programmed by Mr.T


What's New in v1.2.2

  • Fixed Provider Tab-Switching Crash: Replaced dynamic widget re-parenting with persistent per-provider field containers, eliminating the WidgetException crash when switching from Google Drive or OneDrive back to GitHub.
  • Built-In Token Guide Popup: Added an interactive Token Guide button in the top header with step-by-step instructions for generating and configuring GitHub fine-grained tokens, Google Drive OAuth2 tokens/JSON, and Microsoft OneDrive Graph tokens/JSON.
  • Layout & Worker Hardening: Adjusted header and form card heights to prevent text clipping on compact Android screens, added JSON token file parsing for GitHub, and guarded background sync threads against unhandled exceptions.

Features

  • Multi-Cloud Support:
    • GitHub (github_sync_engine.py): Differential Git Blob SHA-1 verification against remote branch trees, supporting custom branches, target subfolders, and runtime personal access tokens or JSON credential files.
    • Google Drive (gdrive_sync_engine.py): Differential MD5 checksum verification (md5Checksum), 2 MiB resumable chunked uploads for low-RAM Android devices, slash-separated folder paths or shared folder IDs (id:<FOLDER_ID>), and automatic OAuth2 token renewal.
    • Microsoft OneDrive (onedrive_sync_engine.py): Differential QuickXorHash, SHA-256, and SHA-1 verification supporting both Personal OneDrive (common / consumers) and School/Work OneDrive (organizations / tenant ID), with 320 KiB-aligned upload sessions for files larger than 4 MiB.
  • Modern Dark UI & Arabic RTL Support (main.py): Elevated card-based Kivy interface with live progress telemetry, four-metric counters (Created, Updated, Skipped, Failed), touch-friendly file/folder browser, built-in Token Guide, and contextual Arabic letter shaping (shape_arabic_for_kivy) powered by assets/myfont.ttf.
  • Android Storage Permission Helper (android_permissions.py): Automatically handles Android 11+ All files access (MANAGE_EXTERNAL_STORAGE) and legacy runtime storage permissions (READ_EXTERNAL_STORAGE / WRITE_EXTERNAL_STORAGE).
  • Security-First Architecture (sync_security.py): Zero hardcoded secrets, runtime token or external credential file loading, automatic exclusion of .env / token / key files during folder scans, path traversal protection, and automatic log redaction.

Download & Install on Android (APK)

  1. Open the Releases page of this repository on your Android phone.
  2. Download the latest v1.2.2 .apk file (supports both 64-bit arm64-v8a and 32-bit armeabi-v7a Android devices).
  3. Tap the downloaded .apk and allow installation from your browser or file manager if prompted.
  4. Launch GitSync Cloud Studio and tap Grant Access on the top banner to enable All files access so the app can read your local folders.

Run from Source (Pydroid 3 / Desktop Python)

  1. Install dependencies:
    pip install -r requirements.txt
    (On Pydroid 3, Kivy is pre-installed; install requests via the Pip menu.)
  2. Run the application:
    python main.py
  3. Choose GitHub, Google Drive, or OneDrive, tap Token Guide if you need help generating credentials, paste your runtime token (or pick an external token/JSON file stored outside the synced folder), choose your local folder, and tap Sync.

Build Android APK with Buildozer

This repository includes a pre-configured buildozer.spec targeting Android API 33 (minapi 21) with bundled assets (assets/icon.png and assets/myfont.ttf):

buildozer android debug

Project Structure

GitSync-Cloud-Studio/
├── main.py                    # Multi-cloud Kivy front end, Token Guide & Arabic RTL shaper (v1.2.2)
├── github_sync_engine.py      # Differential GitHub REST API sync backend
├── gdrive_sync_engine.py      # Differential Google Drive API v3 sync backend
├── onedrive_sync_engine.py    # Differential Microsoft Graph OneDrive backend
├── sync_security.py           # Input sanitization, secret loader & log redactor
├── android_permissions.py     # Android 11+ & legacy storage permission helper
├── requirements.txt           # Python package dependencies
├── buildozer.spec             # Android APK packaging configuration
├── assets/
│   ├── icon.png               # Application launcher & presplash icon
│   └── myfont.ttf             # Custom Arabic & UI font bundled for Kivy
├── .gitignore                 # Excludes secrets, tokens, cache & build artifacts
├── README.md                  # Repository overview & installation guide
└── GITHUB_PUBLISH_GUIDE.md    # Step-by-step GitHub publishing & security guide

Designed and programmed by Mr.T

About

Multi-cloud differential file sync studio for Android (GitHub, Google Drive & OneDrive) built with Python & Kivy. Designed and programmed by Mr.T.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages