Enabling R8 optimization at scale with AI-assisted debugging
Mar 12, 2026Nguyen Van Minh

Summary
This post introduces the application of AI-assisted debugging for R8 optimization challenges in the Grab Android app. It details the development of custom MCP (Model Context Protocol) tools for automatic APK decompilation and stack trace deobfuscation, and their integration with GitLab CI for parallel testing of multiple proposed solutions. This approach significantly accelerates the debugging and resolution of R8-related issues by automating reverse engineering tasks and enabling rapid iteration through parallel CI builds.
More from the AI-Assisted Development Tooling trail
- From firefighting to building: How AI agents restored our team’s core productivity
- Cursor at Grab: Adoption and impact
- From deployment slop to production reality: How BriX bridges the gap with enterprise-grade AI infrastructure
- From failure to success: The birth of GrabGPT, Grab’s internal ChatGPT
- Grab AI Gateway: Connecting Grabbers to multiple GenAI providers