I want to publish multiple apks: one for mobile and other androidtv within same application. As per Publishing Multiple APKs with Different Filters there are only four distinguishing filters within same application:
Currently, Google Play allows you to publish multiple APKs for the same application only when each APK provides different filters based on the following configurations:
OpenGL texture compression formats
Screen size (and, optionally, screen density)
API level
CPU Architecture (ABI)
All other filters still work the same as usual, but these four are the only filters that can distinguish one APK from another within the same application listing on Google Play. For example, you cannot publish multiple APKs for the same application if the APKs differ only based on whether the device has a camera.
I thought to distinguish by API levels and screen size but there seems to be an overlap:
API level (MinSDK) for androidtv app is kept at 21 and for mobile app at 16. So there is a overlap of API levels (21 and above).
Screen size for android tv may overlap with that of tablet's: For eg. The common high-definition TV display resolutions are 720p, 1080i, and 1080p. Also Samsung nexus resolution is 720x1280.
I fear if I publish androidtv apk with a higher version, it might replace mobile app on a tablet with API level >= 21 and screen size 720x1280 that also qualifies for tv app layout size.
So how can I clearly differentiate between these two apks using different filters in app's manifest?
UPDATE
I already added leanback feature in androidtv app's manifest
<manifest>
<uses-feature android:name="android.software.leanback"
android:required="true" />
...
</manifest>
I see 42 supported devices for androidtv apk (can't see which devices) and 10791 for mobile apk device and total of 10832 total devices supported for entire application.
10791 + 42 = 10833
So there is still a possibility of 1 (10833 - 10832 = 1) overlapping device because of which warning is displayed.
overlap warning
androidtv apk
mobile apk
total devices
I don't think overlapping message is because of androidtv apk being a super-set of mobile apk as mentioned in one of comments looking at number of supported devices for androidtv which is much less.
Since there is just one possible overlapping device I will publish it but I wish I had known which devices overlap to receive both apks.