An SDK request is a build change

When an analyst files "please add SDK X", the developers do not just switch on a data feed. They add a build dependency. It makes the app bigger, adds entries to the Android manifest that ship with every install, and brings new ways for the app to fail. The analyst asked for it, so the analyst should be able to defend it.

Two questions cover most of this. Can the same events go from your server to the vendor's server instead? If not, what did the build look like before and after the SDK went in? Below is one before and after comparison we measured, and the checklist we now use because of it.

+2.07 MBadded to what an arm64 phone downloads, +12.8%, our estimate
2new Android permissions, both from the Meta SDK
3,103new Java/Kotlin classes, none removed
24 of 24launches without the Meta app ID never started JavaScript

The case, crash reporting and the Meta SDK in a React Native app

The app is a consumer finance app on React Native 0.81.5 with Expo 54. We measured the Android build on 2 December 2026. Both versions were built on the same day with the same toolchain, as release builds, for all four CPU architectures (ABIs).

Version A

Already had Firebase Analytics.

Version B

Added crash reporting (@react-native-firebase/crashlytics 26.4) and the Meta SDK (react-native-fbsdk-next 13.4, which pulls in facebook-core 18.3.0).

B was a normal release, not a lab build. It also changed about 170 lines of app code: a few funnel events, the API client, some copy, the config and five screens. The dependency lists differ only by the two SDKs, and the app's assets grew by 35 KB compressed, 1.7% of the growth. So most of the difference below comes from the SDKs, but not all of it.

How much bigger the app got

Play stores the app bundle (AAB) and builds a separate set of APKs for each device type. A phone downloads only its own part, so the useful number is the slice for a typical phone, here arm64, not the whole bundle.

Version B adds 3.49 MB to the bundle uploaded to Play, 2.07 MB (12.8%) to the compressed arm64 slice and 5.37 MB to the uncompressed arm64 slice.

Most of the growth is code, not images or other assets:

Part of the arm64 slice, uncompressedABChange
Java/Kotlin code (dex)25.08 MB28.74 MB+3.66 MB, 3 dex files to 4
Native libraries14.37 MB15.71 MB+1.34 MB, 17 libraries to 21

All four new native libraries belong to crash reporting, about 1.32 MB together. The Meta SDK added no native library in this build.

The compressed slice is our estimate

We added up the compressed bundle entries an arm64 phone would get: code, resources, assets, arm64 libraries, the manifest and root files. It is not a bundletool or Play Console figure. Play bases its size limits on the compressed download size that Play Console calculates after upload, and Google says bundletool gives a close but not identical estimate before upload. For the exact number, upload to an internal track. Sizes are in MB of 1,000,000 bytes.

Where the extra code came from

A has 22,675 classes and B has 25,778. We grouped the new ones by package.

Of the 3,103 new classes, 1,283 belong to the Meta SDK, 892 to crash reporting with its sessions and transport libraries, and 928 to other libraries we did not attribute to either SDK.

The app uses only Meta's app events (279 classes). Login (155), share (167) and gaming services (135) ship anyway. The group not attributed to either SDK is mostly general-purpose libraries: kotlinx.serialization (401), zxing (268), gson (181) and Firebase encoders (39). We do not say which SDK brought which of them.

The code shrinker did not run

Android's R8 optimizer removes unused code and resources, and Google recommends always turning it on for release builds. In these builds it was off. It may matter more for size than either SDK, and it might remove some of the unused Meta modules. We have no figure for either.

What the manifest gained

The Android manifest lists what the app declares to the system. A content provider declared by a library is created when the app process starts, before your first screen. Android suggests the App Startup library, with one shared provider instead of one per component, because that "can significantly improve app startup time".

Content providers

4 → 6

FacebookInitProvider and ReactNativeFirebaseCrashlyticsInitProvider were added. Both run before the first screen.

Permissions

9 → 11

The two added ones are ACCESS_ADSERVICES_CUSTOM_AUDIENCE and ACCESS_ADSERVICES_TOPICS.

Services

4 → 7

Broadcast receivers

2 → 5

The manifest merger report shows that both permissions and FacebookInitProvider come from facebook-core. Nobody on the team wrote these lines, but users install them with the app.

The off switch did not remove anything

The project hides the Meta SDK behind build-time environment variables: the Meta app ID and client token. The idea was that a build without them has Meta turned off. We built version B both ways.

What the build without the Meta app ID changed

The two bundles differ by 500 bytes

  • Removed from the manifest

    Meta app ID

    Client token

    Auto-start flags

  • Still in the build

    Meta SDK code

    Startup provider FacebookInitProvider

    ACCESS_ADSERVICES_CUSTOM_AUDIENCE

    ACCESS_ADSERVICES_TOPICS

Leaving out the app ID is not an off switch.

Without the app ID, the manifest loses the SDK's settings. The code, the startup provider and both permissions ship in both builds.
Use the vendor's documented switch

By default the Meta SDK starts itself when the app opens, fetches the app's settings from Meta and logs install and app launch events automatically. The documented way to hold it back is a manifest flag (AutoInitEnabled set to false) and a manual start later, for example after consent.

The off switch also crashed the app

The build without the app ID crashes at launch, every time, on our emulator. Here is one saved run.

One launch of the build without the app ID

One saved emulator run

  1. Launch command

    10:25:57.3

    • 0 s
  2. SDK fails to start

    Startup provider: Failed to auto initialize the Facebook SDK

    • +1.3 s
  3. First frame drawn

    The app draws its first frame

    • +2.5 s
  4. JavaScript error

    The SDK has not been initialized, from the access-token native module

    • +3.1 s
  5. Process dies

    The native side aborts

    • +4.0 s

The process dies about 1.5 seconds after the first frame was drawn.

In one saved emulator run, the launch went out at 10:25:57.3, the first frame was drawn 2.5 seconds later and the process died at 10:26:01.3.

The cause is a common pattern. The module that wraps the SDK imports the SDK package at the top of the file and checks its "enabled" flag only inside its functions. The import already touches a native module that needs a started SDK, so the check comes too late.

// Runs at import time, even when the SDK is off
import { Logger } from 'vendor-sdk';
export function track(name) {
if (!SDK_ENABLED) return;
Logger.log(name);
}

The safer version loads the package only after the flag says yes:

let logger = null;
export function track(name) {
if (!SDK_ENABLED) return;
logger ??= require('vendor-sdk').Logger;
logger.log(name);
}
Test the build where the SDK is present but not configured

None of this shows up if you only test the configured build.

Start time, what we could not measure

We also tried to measure cold start, meaning launching the app from scratch. We ran three release builds on an Android emulator with no screen attached (Android 17, x86_64, 4 cores, 2 GB RAM): A, B without the Meta app ID, and B with it.

  • Each build was compiled ahead of time once after install (cmd package compile -m speed). The network was off for the whole session, and the process was force-stopped before every launch.
  • We launched with am start -W, which Android documents as a way to read time to initial display (TTID), the time until the first frame.
  • The builds ran in two blocks, the second in reverse order. Each block threw away three warm-up launches and measured 12, so each build has 24 measured launches.
Every measured launch in run order. Block medians were 1,176 ms for A, 990 and 860 for B without and with the app ID, then 697, 798 and 962 for A again: the same build moved nearly as much between its blocks as A and B with the app ID differ.
Over 24 launches per buildAB, Meta configured
Time to initial display, median1,057 ms811 ms
Time to initial display, middle half of launches943 to 1,224 ms574 to 929 ms
Launch to JavaScript app start, median1,196 ms900 ms
Launch to JavaScript app start, middle half1,041 to 1,669 ms704 to 1,073 ms

B looks faster, and we do not believe that is an SDK effect. The session was fastest in the middle and A ran first and last, so reversing the order did not balance position. Other work was also running on the same computer. B without the app ID reached its first frame in a median of 922 ms and never logged a JavaScript start in any of its 24 launches: that is the crash.

An emulator cannot answer the start-time question

We see no slowdown, and we do not claim these SDKs are free at startup. Google's Macrobenchmark guide discourages benchmarking on an emulator because the numbers do not represent real users, and Macrobenchmark returns an error when you try. Use its StartupTimingMetric on a physical device.

Size, the manifest and the crash took one afternoon to measure. Start time did not fit in that afternoon.

A conflict you only find at build time

Size is not the only build cost. On an iOS banking app we work with, a planned major update of the attribution (MMP) SDK was cancelled. The new version conflicts with a linker flag that another vendor SDK in the same app requires. Until that vendor drops the flag, the app stays on the older MMP version. No dashboard would have shown this. It came up only when the developers tried to build.

What to ask before an SDK goes in

Tick them off as you go; the marks stay in this browser. 0 of 7 done

Sources

Measurements are ours, taken on 2 December 2026 on three release builds of one app. Documentation checked on 2 December 2026.

FAQ

Which size number should I ask developers for?

The compressed download for one common device type, such as arm64, before and after the SDK. The full app bundle overstates what a user downloads. bundletool get-size total gives an estimate; an internal Play track gives the Play Console figure.

Does an SDK slow down app start?

It can, for example through a content provider that runs when the process starts. Our emulator test could not show it either way: run-to-run drift was nearly as large as the gap between versions. Measure cold start with Macrobenchmark on a physical device.

Is leaving out the API key or app ID enough to turn an SDK off?

Not in our case. The SDK code, its startup provider and its permissions stayed in the build, and the app crashed at launch. Use the vendor's documented switch, such as Meta's AutoInitEnabled flag, and test that build.

Can server-to-server sending replace the SDK completely?

For backend events, often yes. Meta's Conversions API accepts app events. Google describes the GA4 Measurement Protocol as a supplement to Firebase, not a replacement, and install attribution may still need an SDK or an MMP.

Do I need to update the Play Data safety form when adding an SDK?

Yes, if the SDK collects or shares user data. Google Play requires the form to cover data handled by third-party SDKs in the app. Check the SDK's own Data safety guidance.