0

There is a similar question but regarding APK files. Basically, all the localizations from included libraries are exported into the final archive. I've been using for a long time the accepted answer, which implies to extract all files from the APK, remove unwanted resources, and pack everything else into a new APK, and then signing it.

But Google now requires to use Android Application Bundles (AAB) when releasing new apps on Google Play Store.

Is It possible to do something similar to AAB archive? I did have a look at the internal structure and I did not find any string resources.

Ilia
  • 147
  • 1
  • 4
  • 18
  • Four ways to reduce compressed APK download sizes: https://developer.android.com/guide/app-bundle#size-savings-because-of-dynamic-delivery If you want to shrink your app by removing unused code and resources, you could check the link below. https://developer.android.com/studio/build/shrink-code#groovy – Wendy Zang - MSFT Oct 18 '21 at 07:02
  • @WendyZang-MSFT, I am not trying to reduce the app size. I just need to remove certain localizations, so the Google Play Store would not show that my app supports those languages. I am using Xamarin.Android, so using gradle is not an option here. – Ilia Oct 18 '21 at 08:36
  • You could try to remove it first and then generate the AAB. – Wendy Zang - MSFT Oct 22 '21 at 07:40
  • @WendyZang-MSFT, Could you please suggest how this may be done? As I understand, all localizations are packed in the libraries .dll's. Should I somehow disassemble the .dll, remove localizations, and then assemble it back? – Ilia Oct 22 '21 at 08:33
  • It may be something wrong when you disassemble the dll. Create a new one would be better. – Wendy Zang - MSFT Oct 28 '21 at 08:13
  • @WendyZang-MSFT, Yes, I've made a simple tool to replace resources in a dll, but the resulted dll didn't work. What do you mean by "Create a new one would be better"? Rebuilding each dll doesn't seem achievable, as I don't have the source code. – Ilia Oct 29 '21 at 10:42
  • If you do not have the source code, it would be hard to achieve. – Wendy Zang - MSFT Nov 01 '21 at 07:33

0 Answers0