diff --git a/src/org/thoughtcrime/securesms/ApplicationContext.java b/src/org/thoughtcrime/securesms/ApplicationContext.java index 789e110d4a..877431d8d0 100644 --- a/src/org/thoughtcrime/securesms/ApplicationContext.java +++ b/src/org/thoughtcrime/securesms/ApplicationContext.java @@ -179,12 +179,13 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc private void initializeWebRtc() { Set HARDWARE_AEC_WHITELIST = new HashSet() {{ + add("D5803"); + add("FP1"); + add("SM-A500FU"); + add("XT1092"); }}; - Set OPEN_SL_ES_BLACKLIST = new HashSet() {{ - add("MI 4LTE"); // Xiami Mi4 #6241 - add("Nexus 5"); // Nexus 5 #6432 - add("LG-D852"); // LG G3 #6432 + Set OPEN_SL_ES_WHITELIST = new HashSet() {{ }}; if (Build.VERSION.SDK_INT >= 11) { @@ -194,7 +195,9 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc WebRtcAudioUtils.setWebRtcBasedAcousticEchoCanceler(true); } - if (OPEN_SL_ES_BLACKLIST.contains(Build.MODEL)) { + if (OPEN_SL_ES_WHITELIST.contains(Build.MODEL)) { + WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(false); + } else { WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(true); }