Skip to content
All writing ‹ Part 08 of 11 · Mobile Debugging: When There Is No DevTools
Engineering · 3 min read

Changing Code on the Way Proves Only the Phone Side

A proxy rewrite changes what the phone receives, not what a server saved earlier. Why a proxy test result proves only the phone side of the system.

A proxy rewrite feels like a time machine: change the ad, tap again, see the result. But it changes only one side of the system.

Two moments, one proxy

Two moments, one proxy At bid time, the partner server saves the item URL. The proxy never sees this step. At display time, the proxy rewrites the ad on its way to the phone. The partner still keeps the old URL. Bid time (server side) ad server partner server saves the item URL the proxy never sees this step Display time (phone side) partner proxy phone keeps old URL rewrites the ad the proxy changes only this step
The proxy works at display time only. Whatever the partner saved at bid time stays as it was.
  • The proxy sits between the phone and the internet. It changes responses on their way to the phone.
  • A server can save data before the phone asks for anything. In ads, that moment is bid time: the ad server sends the ad to the partner (the company that runs the app), and the partner stores parts of it.
  • The proxy never sees that step. A server can also compare a value with what it saved, and reject the rewrite.

So a proxy test shows what the phone does with an input. It does not show what the real system does.

In the example

A team suspected that the failing ad differed from a normal ad in one way. Proxy tests rewrote the failing ad on its way to the phone, so that it looked like a normal ad. No page opened in any of them.

That looked like proof that the difference did not matter. It was not. The partner server still held the item URL (the link that the partner saved for the ad) from bid time. The rewritten ad was half new, half old. Data from real users told the real answer: most taps on normal ads opened a page.

How to use the tool honestly

  • Write down which side of the system a test changes.
  • To test the real system, change the input at its source and test again.
  • Treat a proxy result as a fact about its own input. The conclusion is a guess until other data agrees. Try to Disprove Your Own Guess First makes the same point.

A proxy changes what the phone sees, not what the server remembers.


Related: see how to patch code on the way to the phone in the first place, how to remove one layer per test, and why you try to disprove your own guess first. Or go Back to the series overview.

↑↓ navigate ↵ open esc close