PaperoraDownload free
Engineering

What an Offline Android Scanner Actually Weighs

Paperora, an offline Android document scanner, is a 28.6 MB install. The size comes from the native PDF library (25.5 MB), the Flutter engine and the app code, not from on-device OCR: the ML Kit text-recognition model is delivered through Google Play Services rather than bundled in the app.

Key takeaways

  • The live build installs at 28.6 MB on a real device, after Play trims the App Bundle per device.
  • The biggest single component is the native PDF library at 25.5 MB, not the OCR or the Flutter engine.
  • On-device OCR adds almost nothing to the download, because the ML Kit model ships through Google Play Services, not the APK.
  • On a budget phone, a cold start is about 0.9 seconds, and the app sits around 240 MB in memory while open.

Paperora is an offline-first Android document scanner. The scan, the PDF and the text recognition all run on the device. A fair assumption is that doing everything locally, especially on-device OCR, makes for a heavy app. We measured it, and the real story runs the other way.

Paperora running on Android with Flutter's performance overlay on, showing the raster and UI thread frame graphs above the document library.
The Flutter performance overlay on a real build: raster and UI thread frame times, read live on the device.

What the app actually downloads

For the live release, Play Console reports the delivery size for a new install:

MetricValue
Size for new installs28.6 MB
Time to download15s
Update size4.03 MB
Localizations in the bundle85
Supported devices19,202
Play Console, live release.

28.6 MB is what a real device pulls down, because the app ships as an Android App Bundle and Play delivers only the slices that device needs. The build before that trimming is bigger: a single-ABI release APK we built for comparison came to 54.4 MB on arm64. The gap between 54.4 MB and 28.6 MB is Play stripping the 85 bundled languages and the extra screen densities down to the one device in front of it. If you ship a utility app with many localizations, the App Bundle is doing a lot of quiet work for your install size.

Where the size comes from

Unpacking the arm64 release APK, the largest components are:

ComponentSizeWhat it is
libpdf_oxide.so25.5 MBthe native PDF rendering and manipulation library
libapp.so14.0 MBour compiled Dart code
libflutter.so11.8 MBthe Flutter engine
classes.dex8.4 MBAndroid bytecode, including the ML Kit and camera wrappers

The native PDF library is the single biggest piece, larger than the Flutter engine and larger than our own code. A document app lives and dies on rendering and editing PDFs well, so this is the cost of the core feature, not padding we can trim away.

The surprise: OCR is not in the APK

The thing people point at first, on-device OCR, is barely in the download at all. We use ML Kit text recognition and the ML Kit document scanner. Inside the APK, the only trace of them is a few property stubs of a hundred-odd bytes each. There is no bundled model file.

That is because ML Kit delivers these models through Google Play Services rather than baking them into the APK. The model is fetched once, on first use, and then runs on the device. So the honest framing of "on-device OCR" is this: the recognition runs locally and your document is never uploaded, but the model itself arrives through Play Services rather than shipping inside the app. Scanning, PDF creation and the library work with no network at all; OCR needs that one model fetch before it runs offline afterwards. If full-offline OCR from a fresh install matters for your app, that is a decision to make deliberately, by adding the bundled model dependency and accepting the extra size.

Startup and memory, on a real phone

We measured the production build on a Samsung Galaxy M14 (Android 15, arm64, 3.7 GB RAM), a budget phone rather than a flagship, because that is the device worth optimising for. Cold start, measured with `am start -S -W` so every run is a clean cold start:

LaunchTime
First after idle~1.85 s
Typical cold start~0.9 s

Across six runs the app settled at about 850 to 930 ms, with only the first launch after the phone had been idle reaching ~1.85 s as the native libraries paged in from storage. So on a real budget device a cold start is around nine-tenths of a second, which is a solid place to be for an app that loads a 25 MB native PDF library.

Frame rendering, read from the on-device performance overlay while using the app: the UI thread averaged 2.5 ms per frame and the raster thread 10.5 ms, both under the 16 ms budget for 60fps, with the raster thread spiking to 27.5 ms on heavy frames like the onboarding animation. So the common case is smooth, with the occasional dropped frame under load.

Memory, production build idle just after launch on the same phone: about 240 MB PSS, of which roughly 45 to 50 MB is graphics, 30 MB native heap and 9 MB Dalvik heap. On a 4 GB device that is a noticeable resident, and it is the plain cost of keeping a camera, a PDF engine and the Flutter runtime live on the device rather than leaning on a server.

What we would tell another team

  • Ship an App Bundle. Per-device delivery is what turned a 54 MB build into a 28.6 MB install.
  • Do not assume on-device machine learning means a huge binary. Play Services can deliver the model out of band, so measure before you blame OCR.
  • Measure your own app on a real, cheap phone. Our biggest line item was the one feature we could never cut, the PDF engine, and the emulator lied about startup.

For the product side of these features, see the document scanner guide, how on-device OCR works, and the PDF converter.

Frequently asked questions

How big is an offline Android scanner app?
Paperora installs at 28.6 MB on a real device, the figure Play reports for a new install from its App Bundle. A single-architecture release APK is larger, around 54 MB, before Play trims it per device.
Does on-device OCR make an app much bigger?
Not necessarily. In Paperora the ML Kit text-recognition model is not bundled in the APK; it is delivered through Google Play Services and fetched on first use. The recognition still runs on the device, so the document is not uploaded, but the model does not inflate the download.
What makes a Flutter document scanner large?
In our case the native PDF library at 25.5 MB is the biggest single component, ahead of the Flutter engine (11.8 MB) and the compiled Dart code (14 MB). The core PDF feature, not OCR, drives the size.
How fast does it cold start?
On a budget Galaxy M14, a clean cold start is about 0.9 seconds, with the first launch after the phone has been idle reaching about 1.85 seconds as the native libraries page in from storage.