# \[Android\] Android 4.0.0 to 4.0.3 bug

**URL:** https://qa.fmod.com/t/android-android-4-0-0-to-4-0-3-bug/11467
**Category:** FMOD Studio
**Created:** [May 14, 2014, 9:08pm UTC](https://qa.fmod.com/t/android-android-4-0-0-to-4-0-3-bug/11467 "2014-05-14T21:08:03Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Raffa\_Balzo](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Raffa\_Balzo](https://qa.fmod.com/u/Raffa_Balzo)
#### Post date: [May 14, 2014, 9:08pm UTC](https://qa.fmod.com/t/android-android-4-0-0-to-4-0-3-bug/11467/1 "2014-05-14T21:08:03Z")

</div>

It is a know bug for Android 4.0.0 to 4.0.3 that when defining multiple cpu architectures ( APP\_ABI := armeabi armeabi-v7a ), system will load library for armeabi even if it should use armeabi-v7a ([https://code.google.com/p/android/issue … l?id=25321](https://code.google.com/p/android/issues/detail?id=25321)), resulting in corrupted sounds played by fmod.  
I’ve tried a couple of workarounds found on the net but none working.

Any help?

---

<div class="post-metadata">

### Author: ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)
#### Post date: [June 4, 2014, 11:03pm UTC](https://qa.fmod.com/t/android-android-4-0-0-to-4-0-3-bug/11467/2 "2014-06-04T23:03:57Z")

</div>

Thanks for reporting the sound corruption issue with armeabi, I’ve fixed this for our next release.

---

<div class="post-metadata">

### Author: ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)
#### Post date: [May 15, 2014, 3:55am UTC](https://qa.fmod.com/t/android-android-4-0-0-to-4-0-3-bug/11467/3 "2014-05-15T03:55:15Z")

</div>

Are you saying that the armeabi version of FMOD isn’t working correctly causing the corruption?

If so is it easy to reproduce the corruption? It would be good to investigate this for anyone who requires use of the older armeabi variant.

---

<div class="post-metadata">

### Author: ![Raffa\_Balzo](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Raffa\_Balzo](https://qa.fmod.com/u/Raffa_Balzo)
#### Post date: [May 15, 2014, 9:03am UTC](https://qa.fmod.com/t/android-android-4-0-0-to-4-0-3-bug/11467/4 "2014-05-15T09:03:37Z")

</div>

Unluckily I don’t have an Android with the old armeabi architecture for testing, but on a 4.0.3 I can test on I get this behaviour:

- defining APP\_ABI := armeabi-v7a , sounds work fine
- defining APP\_ABI := armeabi armeabi-v7a sounds are completely corrupted

according to the known bug of 4.0.0 to 4.0.3 Androids with armeabi-v7a architecture, if the apk package contains both armeabi and armeabi-v7a binaries, armeabi libraries will be loaded when calling System.loadLibrary(“fmod”) and System.loadLibrary(“fmodstudio”) instead of armeabi-v7a ones.

---

<div class="post-metadata">

### Author: ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)
#### Post date: [May 15, 2014, 10:56pm UTC](https://qa.fmod.com/t/android-android-4-0-0-to-4-0-3-bug/11467/5 "2014-05-15T22:56:49Z")

</div>

It’s not great that a bug exists causing armeabi to be selected when armeabi-v7a should be but I am concerned that armeabi is producing corrupted sound. It should be fine (albeit a little more expensive CPU wise).

To try and reproduce this corruption I forced armeabi on my Nexus 5 with “APP\_ABI := armeabi” but the FMOD examples worked as expected (no corruption), can you confirm that the examples are corrupted when you do this?

---

<div class="post-metadata">

### Author: ![Raffa\_Balzo](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Raffa\_Balzo](https://qa.fmod.com/u/Raffa_Balzo)
#### Post date: [May 17, 2014, 12:41am UTC](https://qa.fmod.com/t/android-android-4-0-0-to-4-0-3-bug/11467/6 "2014-05-17T00:41:49Z")

</div>

I just launched the “simple\_event” sample project built with APP\_ABI := armeabi only on a 4.1.2 Android and sounds played are corrupted ( buzzing sounds ).

---

<div class="post-metadata">

### Author: ![wefiends](https://avatars.discourse-cdn.com/v4/letter/w/e47c2d/32.png) [@wefiends](https://qa.fmod.com/u/wefiends)
#### Post date: [May 18, 2014, 4:17pm UTC](https://qa.fmod.com/t/android-android-4-0-0-to-4-0-3-bug/11467/7 "2014-05-18T16:17:28Z")

</div>

I ran into this when testing on a Kindle Fire HD (based on 4.2.2) with the armeabi FMOD shared library. Sounds played as noise. Once I switched to the armeabi-v7 library, everything worked as expected.

---

<div class="post-metadata">

### Author: ![Raffa\_Balzo](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Raffa\_Balzo](https://qa.fmod.com/u/Raffa_Balzo)
#### Post date: [May 19, 2014, 1:05pm UTC](https://qa.fmod.com/t/android-android-4-0-0-to-4-0-3-bug/11467/8 "2014-05-19T13:05:38Z")

</div>

@wefiends

Problem is that if you compile for armeabi-v7a only older armeabi devices will not run it
