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
- Fixed Provider Tab-Switching Crash: Replaced dynamic widget re-parenting with persistent per-provider field containers, eliminating the
WidgetExceptioncrash when switching from Google Drive or OneDrive back to GitHub. - Built-In
Token GuidePopup: 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.
- 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.
- GitHub (
- 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 byassets/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.
- Open the Releases page of this repository on your Android phone.
- Download the latest
v1.2.2.apkfile (supports both 64-bitarm64-v8aand 32-bitarmeabi-v7aAndroid devices). - Tap the downloaded
.apkand allow installation from your browser or file manager if prompted. - 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.
- Install dependencies:
(On Pydroid 3, Kivy is pre-installed; install
pip install -r requirements.txt
requestsvia the Pip menu.) - Run the application:
python main.py
- 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.
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 debugGitSync-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