Enable 16 KB backcompat option

16 KB toggle lets you to run a device with a 16 KB kernel. The 16 KB backcompat option is available when a device is running with a 16 KB kernel. The package manager runs an app in 16 KB backcompat mode if the app has ELF files (with an .so extension) with a LOAD segment alignment of 4 KB, or if the zipped APK has uncompressed ELF files that are 4 KB zip aligned. If the package manager has enabled 16 KB backcompat mode for an app, the app displays a warning when it's first launched saying that it's running in 16 KB backcompat mode. 16 KB backcompat mode allows some apps to work, but for best reliability and stability, apps should still be 16 KB aligned.

To enable the 16 KB backcompat option, follow these instructions:

  1. Follow the steps in Enable 16 KB toggle to enable 16 KB toggle.

  2. Enable 16 KB backcompat mode using any of the following methods:

    • Set the following property to true to enable the 16 KB backcompat option for every app on the device:

      adb shell setprop bionic.linker.16kb.app_compat.enabled true
      
    • Set the android:pageSizeCompat property to enabled or disabled to turn on or off backcompat mode for a specific app in its AndroidManifest.xml. When this property is set, the app won't display backcompat mode warnings when it launches.

    • On the app info page, under Advanced toggle the setting Run app with page size compat mode to enable or disable the 16 KB backcompat mode for specific app. This setting is only visible when the device is running with 16 KB page size.