Fix or rewrite: how we decide on an inherited app

You have taken over an app from a developer or agency that is gone. Every small change takes a week and breaks something else, the new team is already saying the word “rewrite”, and you have to decide whether to pay for months of rebuilding or keep patching what you have.

Most teams treat this as one decision for the whole product, and that is where the money goes wrong. A mobile product is at least an iOS app, an Android app, a backend and the infrastructure under it, and each of these can be in a very different state. On Abuk, an ebook and audiobook service we took over from a previous contractor in 2018 in poor condition, the answer was different for every part: the iOS app needed a rewrite almost in full, the Android app only in part, and the infrastructure needed a move from two clouds into AWS.

This article describes how to make that call part by part, which signs point which way, and what to check before anyone starts a rewrite.

Why “rewrite everything” and “never rewrite” are both expensive

A full rewrite costs the most up front. While it runs, the live app still needs fixes, store updates and support, so for a while you pay for two products. A rewrite also throws away years of small fixes for edge cases nobody wrote down.

Patching has its own cost, spread over time. If every feature takes three times longer than it should and every release needs a week of manual testing, you pay that tax on every change. Some code cannot be patched into shape at all: an app built on a framework version nobody supports, or a backend that only one departed person knew how to deploy.

So the useful question is narrower: for this part of the product, which path costs less over the next two or three years, and which one carries less risk for users who are paying today?

Split the product before you judge it

Before anyone gives an opinion, list the parts and judge each on its own. A typical inherited mobile product breaks down like this:

PartWhat to look at
iOS applanguage and frameworks, minimum iOS version, how screens and state are organised, StoreKit code
Android appKotlin or Java, target SDK, Google Play Billing version, background work, crash and ANR rate
Backend and APIframework version, test coverage, how the API is versioned, how long a typical change takes
Infrastructurewhere it runs, how it is deployed, whether backups restore, who holds the accounts
Paymentswhere entitlements live, whether server-side validation exists, store notifications

One part can be fine while another is beyond saving. A backend can be old but well structured and covered by tests, while the iOS app on top of it was written in a hurry and nobody can follow its state handling. Rewriting the backend in that case would be the expensive mistake, and keeping the iOS app would be the slow one.

The four questions we ask about each part

When we assess an inherited app, we look at each part on its own and ask the same four things.

Does it build? Someone other than the previous developer has to build the app from a clean machine using only the repository and written notes. If that takes days of guessing, the problem is the build process, and you can usually fix it without touching the product code. If it cannot build at all because dependencies have disappeared, that weighs heavily toward replacing those parts.

Are its libraries still supported? Check the language version, the UI framework, networking, payments, analytics and push libraries. A few outdated libraries can be upgraded one at a time. A codebase built on a framework that its authors abandoned, where every upgrade cascades into dozens of others, is a different situation. Store requirements make this concrete: Google raises the target API level and deprecates old billing library versions every year, and Apple requires builds with recent Xcode and SDK versions.

How much of it do tests cover? Tests are what make refactoring safe. With decent coverage you can restructure code step by step and know quickly when something breaks. With none, every change is a gamble, and the first job is often to write tests around the most important flows before changing anything.

How long does a typical change take? Pick a small, real task such as adding a field to a profile screen or changing a price label. If it takes an hour, the code is workable whatever it looks like. If it takes a week and touches fifteen files, the structure is costing you money on every task.

Signs that point to fixing

Fixing in place is usually the cheaper path when:

  • the app builds, and the problems are concentrated in a few modules;
  • core libraries are supported, or can be upgraded one by one;
  • the data model is sound, even if the code around it is messy;
  • the problems are slow screens, crashes in specific flows or missing tests, which are all things you can address step by step;
  • users depend on behaviour that is hard to reproduce exactly, such as offline sync or complex purchase history.

In these cases a plan of targeted refactoring, test coverage around critical flows and library upgrades gets you most of the benefit of a rewrite at a fraction of the risk.

Signs that point to rewriting

A rewrite of a part starts to make sense when:

  • the part is built on a framework or language version with no upgrade path;
  • nobody can explain how state flows through the app, and fixes keep breaking unrelated screens;
  • the features you need next require a structure the current code cannot support;
  • security problems are built into the design, for example secrets in the app binary or content delivered without proper protection;
  • a typical change costs more than rebuilding that module would.

Even then, limit the rewrite to that part. On Abuk we rewrote almost all of the iOS app, including a paginated reader, reading and listening progress synced between devices, iPad support, deep links and protection of book text from screen recording. On Android we rewrote only part of the app: downloads moved to a new library, Google Play subscriptions were rebuilt, and we worked through ANRs and crashes. The infrastructure, which ran partly on Google Cloud and partly on AWS with problems delivering content under the security rules, moved entirely to AWS, and we reworked security and rewrote the code that needed it.

Keep the live app working during a rewrite

Users who pay today do not care about your architecture. Whatever you rewrite, plan it so they notice as little as possible:

  • Keep the API stable. If the backend stays and only an app is rewritten, the new app talks to the same API. If the backend changes, keep the old contract working for app versions already on users’ phones.
  • Ship in pieces where you can. A rewritten module behind a feature flag, or a new screen released to a share of users, carries less risk than a single big release.
  • Protect purchases and accounts. Subscriptions, purchase history and logins must survive the switch. Test them on real accounts in sandbox before release.
  • Keep fixing the old version. Until the new one is out, the old one still needs crash fixes and store updates.
  • Measure before and after. Crash rate, store rating, key screen timings and support tickets tell you whether the work paid off.

Since we took Abuk over, its users have grown from about 50,000 to almost 600,000, and backend spec files went from 32 at the end of 2025 to 258 in November 2026. That growth has many causes, and we do not credit it to the rewrite alone.

A decision table you can use

SituationUsual answer
Builds, libraries supported, slow to changefix: tests first, then refactor the worst modules
Builds, a few abandoned librariesfix: replace libraries one by one
Does not build, dependencies gonerebuild the build chain first, then reassess
Framework with no upgrade pathrewrite that part, keep the API
Sound backend, chaotic appkeep the backend, rewrite the app
Infrastructure spread across providers nobody understandsmove and document the infrastructure before touching app code
Choice is closeestimate both paths and compare over two to three years

Checklist

  • The product is split into parts: iOS, Android, backend, infrastructure, payments.
  • Someone other than the previous developer has built every app from a clean machine.
  • Each part has a list of outdated libraries and SDKs, with the store deadlines that affect them.
  • Test coverage is known for each part, including the critical flows: sign-in, purchase, main content.
  • A real small change has been timed in each part.
  • Security risks are listed: secrets in code, key storage, how content and APIs are protected.
  • Each part has a written recommendation: fix or rewrite, with reasons.
  • When the choice is close, both paths are estimated.
  • The rewrite plan keeps the API, purchases and accounts working for current users.
  • Before and after metrics are agreed: crashes, rating, response times, support tickets.

FAQ

How long does it take to decide whether to fix or rewrite an app?

It depends on the size of the product, but the assessment should come before any commitment. Our code audit for an inherited app takes one to two weeks with a fixed scope. It ends with a written report on the risks, a plan of fixes with estimates and a recommendation to fix or rewrite each part.

Can we rewrite the iOS app and keep the Android app?

Yes. The apps are separate codebases and usually share only the backend API. On Abuk the iOS app was rewritten almost entirely while the Android app was rewritten only in part. What matters is that both apps keep working with the same backend and the same accounts.

Will users lose their subscriptions or data after a rewrite?

They should not, if the rewrite is planned for it. Subscriptions belong to the store account and your backend, so a new app version can restore access as long as it reads entitlements from the same place. Test purchase restoration, sign-in and data migration in sandbox before the release.

If you have inherited an app and are not sure what state it is in, our app takeover service starts with exactly this assessment. For ongoing care after the takeover, see mobile app support, and the full Abuk story is in the Abuk case study.

What would you like to do next?

Discuss a project

Tell us about the task. Within one working day we reply with questions or a first view on scope and cost.

Start a project →

Ask a question

A short question about your app, website or idea. An engineer replies by email.

Get new articles

New articles and case studies by email, no more than once a month. Unsubscribe at any time.

Tell us about your project

Describe the task in a few lines. Within one working day we reply with questions or a first view on scope and cost.

Prefer email or a call?

welcome@revolsource.com
+38 097 662 23 20

Revol Software OÜ, Tallinn, Estonia. Our team is distributed around the world.

Join our team

Send your CV to career@revolsource.com