Reputation: 993
When I unzip my .aab file I get the below list of apks. How do I determine which apk is actually being used for a given device. I understand difference between arm and x86. How about narrowing down other values?
Upvotes: 0
Views: 686
Reputation: 17397
I think you mean when you unzipped the .apks
and not the .aab
.
You can use bundletool to extract and/or install the APKs for a specific device. The public documentation is quite detailed so would recommend going through it.
For completion of this answer, here are the commands you can use:
bundletool extract-apks
--apks=/MyApp/my_existing_APK_set.apks
--output-dir=/MyApp/my_pixel2_APK_set.apks
--device-spec=/MyApp/bundletool/pixel2.json
(You can generate the .json
file using the get-device-spec
command)
or
bundletool install-apks --apks=/MyApp/my_app.apks
to directly install the APKs on the connected device.
Hope that helps.
Upvotes: 1
Reputation: 1115
I am sure you know about arm and x86. the rest of the name (xdpi,hdpi,xhdpi) denotes the SCREEN PIXEL DENSITIES of the device you are using.
What should you do now?
Take your device model number and you can find out the device category Here
or simply you can go Here to find out your apk
To develop layouts that fits for all categories refer the (official documentation) https://developer.android.com/training/multiscreen/screendensities
Hope it helps!
Upvotes: 0