Frida and Play Billing: how Android subscriptions are hooked

11 steps · about 3 h 30 min · Intermediate

  1. Google Play's billing system | Play Billing | Android Developers (doc, Android Developers, 15 min)

    Start with how the Play Billing Library, Google Play services and your backend fit together, since this is the system the trending repo talks to.

  2. About subscriptions | Play Billing | Android Developers (doc, Android Developers, 15 min)

    Subscriptions, offers and purchase flows are the vocabulary you need before looking at any tooling.

  3. Integrate the Google Play Billing Library into your app (guide, Android Developers, 30 min)

    It shows how an app queries product and offer details and launches the purchase flow, which is the code path that gets instrumented later.

  4. Welcome | Frida docs (doc, frida.re, 10 min)

    This explains what dynamic instrumentation is: JavaScript injected into a live process, with no source code and no rebuild.

  5. Installation | Frida docs (doc, frida.re, 15 min)

    Install the CLI tools so you can follow along on your own machine.

  6. Frida basics - Frida HandBook (tutorial, learnfrida.info, 30 min)

    Hands-on first steps with the REPL, loading scripts and writing a simple agent.

  7. frida-trace | Frida docs (doc, frida.re, 20 min)

    Tracing function calls without writing code is the quickest way to see what an app does at runtime.

  8. JavaScript API | Frida docs (reference, frida.re, 40 min)

    Skim the Interceptor and Java bridge APIs to see how hooks read and change arguments and return values.

  9. MASTG-TOOL-0031: Frida - OWASP Mobile Application Security (doc, OWASP MAS, 10 min)

    This puts Frida in its professional context, which is authorized mobile security testing.

  10. MASTG-TECH-0026: Dynamic Analysis on Non-Rooted Devices (doc, OWASP MAS, 15 min)

    Learn why the Android Emulator is the safe place to practice dynamic analysis on apps you own or are allowed to test.

  11. Google Play Billing Library release notes (doc, Android Developers, 10 min)

    The release notes show how the billing API keeps changing, which explains why tools built on it break.