I had a few hours spare and one of those questions that won’t leave you alone. I’m going to a small music festival soon, and I wanted a clashfinder for it. If you’ve never seen one, a clashfinder is a dead simple grid: stages down the left, time across the top, every set drawn as a block, so you can see at a glance what clashes with what and plan a route through the day.

The snag is that this festival doesn’t publish a full timetable anywhere on the web. There’s a lineup, there are posters, but the actual set times, who is on which stage and when, only live inside the festival’s official app. No PDF, no schedule page, nothing a normal HTTP request could reach.

So the real question was never “can I build a clashfinder.” Building the grid is trivial. The question was “can I get a couple of hundred set times out of an app that has no intention of handing them over, and then keep them current without babysitting it.” That felt like a good way to spend an afternoon.

One rule, written down before I touched anything

Before starting I set myself a single boundary, because projects like this get murky fast and it’s easier to decide when you’re calm than when you’re three hours deep and the clean option is sitting right there.

The rule: I would only ever read the copy of the schedule that the app downloads onto a device I control. I would not intercept the app’s network traffic, install a proxy or system CA, turn off TLS verification, or take the credentials the app ships with and replay them against the vendor’s backend myself. The schedule is public information once you’re in the app. The vendor’s servers are not mine to poke at.

That line turned out to matter more than once, and it also quietly made the engineering better, which I’ll come back to.

Recon

First job was working out what the app even is. It’s built on one of those white-label festival-app platforms, the kind a festival licenses rather than builds, and it’s a Flutter app underneath.

Two useful things fell out of just looking at the installed package, no cleverness required:

The app bundles its own copy of the schedule inside the install, as a JSON asset. Handy, except it’s stale. The shipped copy was missing a good few dozen of the sets that were actually live. Lesson one, filed early: the copy baked into the app is not the real schedule, so if I’d been lazy and parsed that asset I’d have ended up with a confidently wrong timetable, which is worse than no timetable.

The app talks to a hosted GraphQL API for the real data, plus a couple of public object-storage side feeds and a build-params endpoint. The complete, current schedule sits behind the authenticated GraphQL call. The public side feeds don’t carry it.

That last point killed the nicest idea before I’d even tried it. “Just curl a public URL” was not on the table, because the public URLs don’t have what I wanted, and the one that does needs the app’s auth. Per my rule, that was off limits. Fine. On to the options.

The options, and why I binned most of them

I sketched four ways to get the data and talked myself out of three.

Screenshots and OCR. Open the app, screenshot every stage, run it through OCR, clean up the mess. Reliable in the sense that it would eventually work, miserable in every other sense, and completely useless for keeping it up to date. Hard no.

Call the GraphQL API directly with the key the app ships. This would absolutely work and would be the cleanest possible pipeline. It’s also exactly the thing my one rule forbids: lifting the app’s credentials and impersonating it to someone else’s server. Out.

Decrypt the on-device cache. The app does keep a local cache, but it’s wrapped in the platform’s own encrypted secure-file format. I could have gone at the crypto. But fighting a proprietary container is a time sink with a shaky payoff, and it felt like the wrong kind of effort.

Let the app decrypt its own data for me. This is the one. The app is the legitimate client. It holds whatever it needs to authenticate and sync. So instead of becoming the client, I run the real app in an environment I control, let it do its normal sync as itself, and then read the plaintext result it writes to its own local storage. I’m reading a file on my own machine. Nobody’s server gets touched by me.

That framing is the whole trick, and it’s worth saying plainly: the cleanest way into a locked-down app’s data is often to let the app do the unlocking, then read what it leaves on disk.

Building the harness, with the usual yak-shaving

The plan needed an Android emulator on my Linux box, and actually two of them. One on a Play Store image so I could sign in and install the app by hand, because Google blocks automated Play sign-in. One on a rootable Google-APIs image to read the app’s private files, because the Play image refuses adb root.

Getting there involved the normal parade of small fires.

The first was a nice one. The emulator wouldn’t start because /dev/kvm was missing. My instinct, and the note I’d scribbled earlier, said “turn on virtualization in the BIOS.” But the CPU was already advertising the virtualization flag, and the kernel modules were present. Flag present, modules present, device absent. That combination almost never means firmware. It means something in software is blocking it. Sure enough, there was a modprobe blacklist file disabling the KVM modules, left over from an old VirtualBox and Whonix setup. One modprobe kvm_amd and it was back, no reboot, no BIOS. Good reminder that “present but not working” is a different diagnosis from “absent.”

Then a shell classic: yes | sdkmanager --licenses under set -o pipefail exits with 141. yes gets a SIGPIPE when sdkmanager stops reading, pipefail promotes that to a script-killing failure, and the whole thing falls over at the license step. Ran the installs directly instead.

Then the Play Store emulator segfaulted the instant the Play Store opened. It was on software rendering with not enough RAM. Switching it to render on the actual GPU and giving it more memory sorted it.

Getting the install files themselves off the emulator needed no root at all, which surprises people: the APK files are world-readable, so adb shell pm path to find them and adb pull to copy them is enough. Root is only needed for the app’s private data, which is the next part.

I had an agentic CLI doing a lot of the actual keystrokes through this, the SDK wrangling and the scripting, while I steered. It’s good at the boring parts and I was mostly there to make the calls.

The part that worked

With the rootable emulator up, the actual extraction is almost boring, which is how you want it.

Boot it headless, adb root, install the app, launch it. On launch the app authenticates and syncs, and writes the current schedule straight into its own SQLite database under its private data directory. It did this before it even showed the language picker. No tapping through screens, no interacting with the UI at all. I pulled the SQLite file out and opened it, and there it was in clean tables: events, performers, places for the venues and stages, schedule days, the join tables tying them together.

So to answer the question I kept getting asked while poking at this: the emulator isn’t there to display the timetable. I never read a single pixel. It’s there to run the genuine app so the app does its genuine sync, after which the answer is just a database file sitting on my disk. The encrypted cache and the authenticated API both stopped mattering the moment the app had run once, because the decrypted result was right there in plain SQLite.

Proving I actually had all of it

Here’s a thing worth doing that’s easy to skip: before you trust an extraction, check it against something independent.

One of those public side feeds I’d found earlier lists, for every event, how many app users had saved it. It has no times and no venues, so it’s useless as a schedule. But it has the full set of event IDs. That made it a free checksum. I compared the IDs in my extracted database against the IDs in the public feed and they matched exactly, which told me two things: I had every event, and I was not accidentally looking at that stale bundled copy from inside the app. A public side-channel that carries no useful content can still be a perfectly good integrity check.

From SQLite to a CSV, and the source being wrong

A short Python builder joins events to performers to venue to category, converts the stored UTC timestamps to local time, and sorts by venue then start time, which is the fastest order to type into a clashfinder. Out came a couple of hundred sets across around twenty venues, as a plain CSV: act, venue, day, start, end, and a notes column.

The notes column earned its place, because the source data had bugs, and this is where I made a deliberate call: I did not silently “fix” anything. Where the festival’s own data looked wrong, I left the value exactly as the app had it and flagged the row. A few examples of what turned up:

A handful of late-night sets had end times that were twelve hours out, an end of 12:15 where it plainly should read 00:15, that sort of thing. Looks like whoever entered them fat-fingered AM for PM.

One act was pinned at 10:57 to 10:57, a zero-length slot that is obviously a placeholder nobody had filled in yet.

Two acts were listed in the exact same half-hour on the exact same stage, which one of them clearly isn’t.

And a few entries are literally called “secret set” with deliberately vague times, which is the festival being coy on purpose, not a data error.

The principle I kept to: surface anomalies, keep provenance, don’t launder someone else’s bad data into something that looks authoritative. If a human needs to make a judgement call, make that visible rather than quietly guessing on their behalf.

Making it repeat itself

A one-off extraction is a party trick. I wanted it to stay current, so I wrapped the whole thing in a cron-safe script.

It boots the rooted emulator headless, clears the app’s cache first so the app genuinely re-downloads rather than handing back last run’s copy, extracts, rebuilds the CSV, and then refuses to publish the new file unless it passes a few sanity checks. The checks are the interesting bit: it has to have at least a sensible floor of rows, it must not be identical to that stale bundled copy, and its event IDs get cross-checked against the live public ID feed again. If anything fails, it keeps the last good file, logs why, and exits quietly. It keeps a history folder and writes a per-run diff of what changed, and it uses a lock so two runs can’t trip over each other. There’s also a one-word command for a manual refresh when I just want it now, which takes about ninety seconds end to end.

The sanity checks matter more than the extraction. A pipeline that can silently publish garbage is worse than one that occasionally does nothing, especially when the output is something other people might rely on.

The dead end I left alone, on purpose

The obvious next step was to move the whole thing onto a cheap always-on server so it could watch for changes without my desktop being awake. I looked into it and then stopped, for two reasons.

The practical one: running an Android emulator needs nested virtualization, and most budget servers don’t give you that. You can’t just lift the emulator onto a tenner-a-month box.

The real one: the only way to do this without an emulator at all would be to call that authenticated backend directly using the app’s shipped key, which is precisely the line I drew on the first page. The convenient solution and the off-limits solution were the same solution. So I left it where it is. Extraction stays on the machine at home that has the hardware for it, and if I want always-on monitoring, a small server can watch the resulting file and shout when it changes, rather than doing the extraction itself. Not the purest architecture, but an honest one.

That’s also the part I’d flag to anyone doing something similar. The moment to decide where your line is, is before you’re tired and it’s late and the shortcut is right there. If you wrote it down at the start, it can actually stop you, which is the entire point of writing it down.

What I took away

A few things worth keeping, beyond the clashfinder:

The cleanest route into a locked-down app’s data is often to let the app decrypt it for you on a device you control, then read the result, rather than attacking the API or the cryptography. Work with the client, not against the server.

Validate an extraction against an independent source before you trust it. A feed that carries no useful data can still prove your data is complete.

Don’t quietly correct source data. Surface the anomalies and keep the provenance, so a human can make the call and so you can tell later what came from where.

Debugging is hypothesis first. “Flag present but device missing” points at a software block, not the BIOS. “Crash on a GPU operation” points at the renderer. Guess the shape of the fault before you start changing things.

And draw the line up front, then let it hold. The best outcome of the whole afternoon wasn’t the pipeline. It was that when the shortcut appeared at the end, exactly where these things always appear, I’d already decided I wasn’t taking it.

Anyway, I have my clashfinder, it updates itself, and I know what’s clashing with what. Worth an afternoon.