sortedByCompatibility

Returns a Provider giving out APK splits sorted according to their compatibility with the device.

This sort is stable for each APK split type.

The most preferred APK splits will appear first. If exact device's screen density, ABI or locale doesn't appear in the splits, nearest matching split is chosen as a preferred one.

Result of preference evaluation for every entry of this Provider is written to their isPreferred flag.

This function will call Context.getApplicationContext internally, so it's safe to pass in any Context.