Swiggy Mehar Kaila Oct 18, 2022

Detecting App Cloning & Location Spoofing on Android

Article Summary

Swiggy discovered 8% of their delivery drivers were running cloned apps and spoofing GPS locations. This was breaking their live order tracking system and creating chaos for customers.

The Swiggy engineering team built a fraud detection system to combat app cloning and location spoofing on their Android delivery app. They needed to protect live tracking without disrupting legitimate drivers mid-delivery.

Key Takeaways

Critical Insight

Swiggy's layered detection approach (combining app integrity checks with smart enforcement timing) dramatically reduced delivery fraud while keeping legitimate orders flowing.

The team reveals why maintaining a greylist of thousands of cloning apps proved completely unscalable, and the confidence scoring system they built instead.

About This Article

Problem

Swiggy's driver app was hit with a sophisticated fraud scheme. Attackers cloned the app and spoofed GPS locations, disabling native modules like Firebase to make their fake locations look real. Standard detection methods couldn't catch it.

Solution

Mehar Kaila's team built clone detection directly into the app binary and turned it on by default. They added fallback authentication header checks to enforce version requirements. For GPS spoofing, they used confidence scoring to block only the riskiest cases, while allowing some mid-delivery spoofing but restricting which orders could be completed.

Impact

Fraudulent activity dropped noticeably after the system rolled out. The blocking banner and order prevention mechanisms discouraged delivery partners from attempting GPS spoofing once the changes went live across the driver app.