Skip to content

Drop 32-bit x86 support #1772

Open
Open

Description

@DanAlbert

Description

32-bit x86 has dropped to a very small number of active devices, and Studio is no longer shipping new emulator images for that ABI, so that ABI can't be tested very well any more. We should drop the ABI.

Activity

  1. self-assigned this
    on Oct 5, 2022
  2. moved this to Triaged in NDK r26on Oct 5, 2022
  3. Tolriq commented on Oct 19, 2022

    @Tolriq

    There's still quite a few devices API 21+ on Intel active in prod. For me it's still 2K users on ZenPhone/Tab / Medion & Lenovo tablets.
    Any idea of the performance impact of using the v7a on those devices?

  4. DanAlbert commented on Oct 19, 2022

    @DanAlbert
    ContributorAuthor

    For me it's still 2K users on ZenPhone/Tab / Medion & Lenovo tablets.

    Really? x86 and not x86_64? I don't think I can share the number I have (I really wish I could, fwiw), but let's just say say that one app having as many as 2k x86 users would surprise me. Assuming your users aren't hugely skewed toward x86 devices, I would expect this segment of your user base to be trivially small. I don't suppose you'd be willing to share what that is as a percentage of your total users?

  5. enh-google commented on Oct 19, 2022

    @enh-google
    Collaborator

    ZenPhone is old enough that i suspect they're about to fall off the end of NDK support when Lollipop is the oldest supported OS release (#1751)?

  6. DanAlbert commented on Oct 19, 2022

    @DanAlbert
    ContributorAuthor

    It looks like some of those were upgradable to API 21, and the second one shipped with that, so at least some are still in the supported API window.

  7. Tolriq commented on Oct 20, 2022

    @Tolriq

    I took the Play Console filtered on API 21 and x86, checked those I mention do not have the x64 support.

    That app is particular as it's first feature is being a remote( but advanced with media list, streaming,....)
    So I have many users with old dedicated devices for that. (The app is on Play Store since 10 years, this start to be long :p)
    And seems there was a few x86 tablets.

    Anyway the ndk is used for small encryption and ffmpeg for audio only. So if the v7a works and perf is not abysmal this is less an issue as that app is not an app bundle I do not anticipate an issue if I remove the x86 so it should auto switch.

  8. DanAlbert commented on Oct 20, 2022

    @DanAlbert
    ContributorAuthor

    I expect the performance impact of using arm binaries for that sort of thing is unnoticeable. It's likely noticeable for high performance workloads like games, but it's doubtful that high end games are running successfully on 32 bit devices anyway. Also, aiui, most games (and apps in general) don't bother shipping x86 libraries in the first place.

  9. Tolriq commented on Oct 20, 2022

    @Tolriq

    Ok thanks, then that works for me one less arch to add to the apk is good.

  10. DanAlbert commented on Oct 20, 2022

    @DanAlbert
    ContributorAuthor

    Glad to hear it, thanks for the feedback 👍

  11. Tolriq commented on Oct 20, 2022

    @Tolriq

    Well actually thanks for posting this and the perf confirmation, removing x86 covers nearly 85% of the size gained after NDK 22. (And probably more if I take in account ffmpeg) so that unblock me if Exoplayer ffmpeg requires a new NDK soon.

  12. Grimler91 commented on Nov 9, 2022

    @Grimler91

    Really? x86 and not x86_64? I don't think I can share the number I have (I really wish I could, fwiw), but let's just say say that one app having as many as 2k x86 users would surprise me.

    For termux around 1.8 % of users are on x86 devices based on downloads over the last 14 days. It's harder to tell exact number of users (I don't have stats for all mirrors) but at least a few thousand. There are less users on x86_64, around 1.2 % of all downloads.

  13. DanAlbert commented on Nov 9, 2022

    @DanAlbert
    ContributorAuthor

    I don't suppose you can differentiate between emulators and real devices? That is, how many of those x86 users could become x86_64 users by flipping a switch?

  14. Grimler91 commented on Nov 9, 2022

    @Grimler91

    I don't suppose you can differentiate between emulators and real devices?

    Cannot unfortunately, but I don't see why users would want to use this app in an emulator (other than termux development), I expect most to be on real devices. If I look at the few x86 bug reports we have where device details have been included then we have just 1 emulator user (reported using "Genymotion Google Pixel 2 API 8") out of 12, with the rest of the users using:

    • 4 x Samsung Chromebook Pro running android 7 or 9
    • 2 x ASUS Chromebook Flip C302 running android 9
    • 1 x ASUS_Z00AD running android 5
    • 1 x ASUS_T00G running android 5
    • 1 x Alco RCT6873W42 running android 6
    • 1 x Intel Apollo Lake Chromebook running android 9
    • 1 x HP Chromebook 13 G1 running android 9

    So average x86 user for us has some Chromebook with android 9 (based on this very small sample size). I can imagine that termux is more popular on this type of device than the average android app, so maybe statistics look a bit different for us.

  15. 19 remaining items

  16. MoNTE48 commented on Aug 29, 2023

    @MoNTE48

    My statistics for 1 week, based on more than 100,000 users. (The application is a game.)

    [Arch] [Percentage]
    arm64-v8a 68.66
    armeabi-v7a 30.38
    x86_64 0.71
    x86 0.26

  17. DanAlbert commented on Aug 29, 2023

    @DanAlbert
    ContributorAuthor

    Thanks! I don't get to see "real" data very often. The whole-ecosystem stats aren't always a reliable indicator of what people are actually doing. That's a considerably higher proportion of x86 than I would have guessed, but still quite low overall.

  18. MoNTE48 commented on Aug 29, 2023

    @MoNTE48

    @DanAlbert, if someone really cares about x86, they can delay NDK update for at least 1 year. The latest release is LTS, so there is no reason to worry, am I wrong?

  19. ajsinclair commented on Aug 29, 2023

    @ajsinclair

    x86 is used extensively within Google. This is because many tests run on x86 Emulators. That will be the case for years to come. The monorepo also means Google has its hands tide with regards to NDK updates.

  20. DanAlbert commented on Aug 29, 2023

    @DanAlbert
    ContributorAuthor

    I've already said above that we're not moving forward with this until the costs of maintaining it go up.

  21. HaiPhan2002 commented on Mar 30, 2024

    @HaiPhan2002

    My statistics for 1 week, based on more than 100,000 users. (The application is a game.)

    [Arch] [Percentage] arm64-v8a 68.66 armeabi-v7a 30.38 x86_64 0.71 x86 0.26

    How many DAU on 32bit? 100,000 users but does it mean you have 100,000 DAU right?
    Our game removed 32bit(both armv7a & x86) last December. It does not impact too much to game DAU & Revenue.

    • DAU & Revenue drop 1%.
    • Reduce the compiling time as remove half of architectures.
    • Reduce testing time.
    • Reduce Crash and ANR 👯‍♂️
  22. tellypresence commented on Jul 15, 2024

    @tellypresence

    i'd assume the NDK will go last, as always, because it has to wait for devices to "age out" of the market. (and there are new devices still coming out in these low-end niches that are 32-bit only. so the NDK's clock doesn't really start until they stop. or at least stop selling. it doesn't really matter if someone makes a device and no-one buys it :-) )

    A data point: Moto G Play 2023 (released Dec 2022) is 32-bit only

  23. unpinned this issue on Aug 1, 2024
  24. DanAlbert commented on Aug 19, 2024

    @DanAlbert
    ContributorAuthor

    No, is there some reason you want this?

  25. DanAlbert commented on Aug 19, 2024

    @DanAlbert
    ContributorAuthor

    Well don't let me stop you :)

  26. zenczykowski commented on Jul 21, 2025

    @zenczykowski

    FYI: Android 16+ won't boot with a 32-bit only kernel.

    Maintaining support for 32-bit only Linux kernel's API/ABI surface and missing features (eBPF, ipsec/xfrm, iptables, ...) [primarily] for networking was a huge pain (and suffered from an utter lack of testing since approximately around Android 14/U).

    This means going forward the hardware & kernel will be 64-bit capable.
    However, userspace code, both system & application can (still) continue to be 32-bit.
    (and in theory you could even have 32-bit only system userspace with a x86-64 kernel)

    That (x86-32 on x86-64) appears to be how some of the (TV? Wear?) emulators are now configured (no idea why though).

  27. DanAlbert commented on Jul 21, 2025

    @DanAlbert
    ContributorAuthor

    Things that happen in this year's version of Android (is that what Android 16 is? I don't know the marketing names. To me 16 means Jelly Bean 😄) unfortunately don't mean much for the NDK, since we still support devices and OS versions for about 10 years. Time isn't actually the part that matters, that's just about how long it takes for things to reach 99%+ of devices.

    32-bit x86, despite being quite rare in the wild, is unfortunately the easiest way to test 32-bit code in CI. That's becoming less true over time though, since I don't think there's been a 32-bit x86 emulator image published for quite a few years, so sooner or later that'll stop being useful. At some point developers are also going to stop caring about testing 32-bit at all. I don't have data to tell me how prevalent that use case currently is, but so long as 32-bit x86 support remains cheap for us to provide, I don't have much reason to cut it.

    As I said above, we're not looking to change anything here until the maintenance costs go up. Right now they're pretty negligible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions