Bhargav Naidu Gedela

Work

Merge Clouds: how I built it

An Android app that copies files between Google Drive, MEGA, Amazon S3 and Backblaze B2, plus the servers that do the copying. I started it in August 2024 and released it on Google Play in November 2026. Version 1.1.2 went out on 28 November 2026.

The problem

Moving a folder from MEGA to Google Drive with only a phone means downloading every file and uploading it again: the data goes over the phone’s connection twice, and the phone has to stay awake until the end. Merge Clouds moves the files between the clouds on its own servers. The phone picks what to copy, shows what it will cost, and then only watches.

How a copy runs: the phone starts the job and shows progress, the servers move the files.

Constraints

  • One person. Design, the Android app, the backend, the cluster, the store listing and support are all me.
  • Google’s rules for Drive. Full Drive access is a restricted scope, and apps that ask for it must pass a third-party security assessment (CASA).
  • Google Play’s payments policy. Digital credit sold inside an Android app has to go through Google Play Billing.
  • Phones go offline. A large copy can outlast a train ride, so the server has to own the job from start to finish.

Decisions, and what I passed on

Copy on the server, not on the phone

The other way, letting the phone download and upload, costs me nothing to run. It also burns the user’s data and dies when Android kills the app. Server-side copies cost me server time and bandwidth, so a copy uses credit: 5 GiB free for every new account, then packs bought on Google Play.

rclone for the transfers

I could have written a client for each provider’s API. rclone already speaks Drive, MEGA, S3 and B2, so rclone runs as its own deployment on Kubernetes (Rancher) and the Spring Boot API drives it through rclone’s remote-control API. The API, with MongoDB, keeps accounts, jobs and credit; rclone only moves bytes and reports progress.

Only the drive.file scope

With full Drive access the app could list everything, but that is the restricted scope with the security assessment. With drive.file the app sees only the files a user picks in Google’s own Picker. The cost is a clumsier pick: folders need a long-press in the Picker, so the app now says that on screen. Google verified the app’s branding, and no data-access review was needed.

Play Billing, checked on the server

The app never decides on its own that a purchase went through. It sends the purchase to the backend, which verifies it with Google Play before adding credit. Real-time developer notifications keep the server in step with Play.

Deploys through git

GitLab CI builds the images, Helm charts describe them, and Argo CD syncs the cluster from git. I passed on running kubectl or Helm from CI: with Argo CD what runs is what the repo says, and going back is a git revert.

What went wrong

  • Connecting Drive gave up too early. After the browser sign-in the app looked for the new cloud for about 4.5 seconds, and slower sign-ins finished after it had stopped. Now it checks when you come back to the app and keeps trying for about 30 seconds.
  • Storage numbers that didn’t match. A 400 GB Drive plan showed as 429 GB, because I divided by 1000³ while Google and MEGA divide by 1024³ and still write “GB”. 1.1.2 uses their units.
  • A crash on Home when offline, fixed in 1.0.5.

Where it is now

1.1.2 is live on Google Play, with a Material 3 Expressive redesign (1.1.0), Google sign-in, a purchase history, and a forced-update switch on the server for releases that must not wait.

Stack

App
Kotlin, Jetpack Compose, Material 3 Expressive, Google sign-in, Play Billing Library, Firebase Cloud Messaging, Crashlytics
Backend
Spring Boot, MongoDB, rclone (remote-control API)
Infrastructure
Kubernetes on Rancher, Helm, Argo CD, GitLab CI

Back to my other projects · Home page