diff --git a/AdvancedDisplay/Android.mk b/AdvancedDisplay/Android.mk
index e0d82fa07..ca646487f 100644
--- a/AdvancedDisplay/Android.mk
+++ b/AdvancedDisplay/Android.mk
@@ -8,31 +8,24 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := AdvancedDisplay
LOCAL_CERTIFICATE := platform
-LOCAL_STATIC_JAVA_LIBRARIES := \
+LOCAL_USE_AAPT2 := true
+
+LOCAL_STATIC_ANDROID_LIBRARIES := \
android-support-v4 \
android-support-v7-appcompat \
android-support-v7-preference \
android-support-v7-recyclerview \
android-support-v13 \
- android-support-v14-preference \
- org.lineageos.platform.internal
+ android-support-v14-preference
-LOCAL_PROGUARD_FLAG_FILES := proguard.flags
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ org.lineageos.platform.internal
LOCAL_RESOURCE_DIR := \
$(LOCAL_PATH)/res \
- $(TOP)/packages/resources/devicesettings/res \
- frameworks/support/v14/preference/res \
- frameworks/support/v7/appcompat/res \
- frameworks/support/v7/preference/res \
- frameworks/support/v7/recyclerview/res
-
-LOCAL_AAPT_FLAGS := \
- --auto-add-overlay \
- --extra-packages android.support.v14.preference \
- --extra-packages android.support.v7.appcompat \
- --extra-packages android.support.v7.preference \
- --extra-packages android.support.v7.recyclerview
+ $(TOP)/packages/resources/devicesettings/res
+
+LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
diff --git a/AdvancedDisplay/res/values-af/arrays.xml b/AdvancedDisplay/res/values-af/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-af/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-af/strings.xml b/AdvancedDisplay/res/values-af/strings.xml
index 422ece12c..1bcd937fb 100644
--- a/AdvancedDisplay/res/values-af/strings.xml
+++ b/AdvancedDisplay/res/values-af/strings.xml
@@ -1,5 +1,4 @@
-
- Gevorderde skerm
-
- Skerm
- Kleure
-
- Scenario
- Stel die mDNIe scenario
-
-
-
+ Gevorderde skerm
+ Skerm
+ Kleure
+ Scenario
+ Stel die mDNIe scenario
diff --git a/AdvancedDisplay/res/values-am/arrays.xml b/AdvancedDisplay/res/values-am/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-am/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ar/arrays.xml b/AdvancedDisplay/res/values-ar/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ar/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ar/strings.xml b/AdvancedDisplay/res/values-ar/strings.xml
index 70bdc8908..bf88b35da 100644
--- a/AdvancedDisplay/res/values-ar/strings.xml
+++ b/AdvancedDisplay/res/values-ar/strings.xml
@@ -1,5 +1,4 @@
-
- عرض متقدم
-
- الشاشة
- الألوان
-
- السيناريو
- تعيين السيناريو mDNIe
-
-
-
+ عرض متقدم
+ الشاشة
+ الألوان
+ السيناريو
+ تعيين السيناريو mDNIe
+ وضع إمكانية الوصول
+ قم بتعيين وضع إمكانية الوصول mDNIe
+ LineageOS (الافتراضي)
+ فيديو
+ فيديو دافئ
+ فيديو بارد
+ الكاميرا
+ التنقل
+ المعرض
+ مكالمة فيديو
+ المتصفح
+ كتاب الكتروني
+ البريد الإلكتروني
+ التلفزيون الرقمي
+ عادي
+ معكوس
+ عمى الألوان
+ حجب الشاشة
+ رمادي
+ رمادي معكوس
diff --git a/AdvancedDisplay/res/values-as-rIN/arrays.xml b/AdvancedDisplay/res/values-as-rIN/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-as-rIN/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-as-rIN/strings.xml b/AdvancedDisplay/res/values-as-rIN/strings.xml
index fb903c06e..973505a46 100644
--- a/AdvancedDisplay/res/values-as-rIN/strings.xml
+++ b/AdvancedDisplay/res/values-as-rIN/strings.xml
@@ -17,14 +17,9 @@
limitations under the License.
-->
- উন্নত প্রদর্শন
-
- স্ক্ৰীণ
- ৰংসমূহ
-
- দৃশ্যপট
- mDNIe দৃশ্যপট ছেট কৰক
-
-
-
+ উন্নত প্রদর্শন
+ স্ক্ৰীণ
+ ৰংসমূহ
+ দৃশ্যপট
+ mDNIe দৃশ্যপট ছেট কৰক
diff --git a/AdvancedDisplay/res/values-bn/strings.xml b/AdvancedDisplay/res/values-as/strings.xml
similarity index 66%
rename from AdvancedDisplay/res/values-bn/strings.xml
rename to AdvancedDisplay/res/values-as/strings.xml
index c155d8901..03b155e3e 100644
--- a/AdvancedDisplay/res/values-bn/strings.xml
+++ b/AdvancedDisplay/res/values-as/strings.xml
@@ -1,5 +1,4 @@
-
-
-
-
-
-
+ উন্নত প্রদর্শন
+ স্ক্ৰীণ
+ ৰংসমূহ
+ দৃশ্যপট
+ mDNIe দৃশ্যপট ছেট কৰক
diff --git a/AdvancedDisplay/res/values-ast-rES/arrays.xml b/AdvancedDisplay/res/values-ast-rES/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ast-rES/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ast-rES/strings.xml b/AdvancedDisplay/res/values-ast-rES/strings.xml
index b8d99aa27..08f76aba7 100644
--- a/AdvancedDisplay/res/values-ast-rES/strings.xml
+++ b/AdvancedDisplay/res/values-ast-rES/strings.xml
@@ -1,5 +1,4 @@
-
- Visualización avanzada
-
- Pantalla
- Colores
-
- Escenariu
- Afita l\'escenariu mDNIe
-
-
-
+ LineageOS (por defeutu)
+ Cámara
+ Navegación
+ Galería
+ Videollamada
+ Restolador
+ Llibru electrónicu
+ Corréu electrónicu
+ Televisión dixital
+ Normal
diff --git a/AdvancedDisplay/res/values-az/arrays.xml b/AdvancedDisplay/res/values-az/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-az/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-az/strings.xml b/AdvancedDisplay/res/values-az/strings.xml
index 022ffb5d6..b69876539 100644
--- a/AdvancedDisplay/res/values-az/strings.xml
+++ b/AdvancedDisplay/res/values-az/strings.xml
@@ -1,5 +1,4 @@
-
- Qabaqcıl ekran
-
- Ekran
- Rənglər
-
- Ekran rejimi
- mDNle ssenarisini tənzimlə
-
-
-
+ Qabaqcıl ekran
+ Ekran
+ Rənglər
+ Ekran rejimi
+ mDNle ssenarisini tənzimlə
+ Əlçatımlılıq rejimi
+ mDNIe əlçatımlılıq rejimini tənzimlə
+ LineageOS (ilkin)
+ Video
+ Video - isti
+ Video - soyuq
+ Kamera
+ Hərəkət
+ Qalereya
+ Görüntülü zəng
+ Səyyah
+ Elektron kitab
+ Elektron poçt
+ Rəqəmsal televizor
+ Normal
+ Tərsinə çevrilmiş
+ Daltonizm
+ Ekran pərdəsi
+ Boz
+ Tərs boz
diff --git a/AdvancedDisplay/res/values-b+sr+Latn/arrays.xml b/AdvancedDisplay/res/values-b+sr+Latn/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-b+sr+Latn/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-be/arrays.xml b/AdvancedDisplay/res/values-be/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-be/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-be/strings.xml b/AdvancedDisplay/res/values-be/strings.xml
index f3aeff062..c2e93f20c 100644
--- a/AdvancedDisplay/res/values-be/strings.xml
+++ b/AdvancedDisplay/res/values-be/strings.xml
@@ -1,5 +1,4 @@
-
- Налады экрана
-
- Экран
- Колеры
-
- Сцэнар
- Усталёўка сцэнара mDNIe
-
-
-
+ Налады экрана
+ Экран
+ Колеры
+ Сцэнар
+ Усталёўка сцэнара mDNIe
diff --git a/AdvancedDisplay/res/values-bg/arrays.xml b/AdvancedDisplay/res/values-bg/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-bg/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-bg/strings.xml b/AdvancedDisplay/res/values-bg/strings.xml
index c78543e3b..aec59fafc 100644
--- a/AdvancedDisplay/res/values-bg/strings.xml
+++ b/AdvancedDisplay/res/values-bg/strings.xml
@@ -1,5 +1,4 @@
-
- Настройки на дисплея
-
- Екран
- Цветове
-
- Сценарий
- Избор на сценария mDNIe
-
-
-
+ Настройки на дисплея
+ Екран
+ Цветове
+ Сценарий
+ Избор на сценария mDNIe
+ Режим на достъп
+ Задайте режим на достъп за mDNIe
+ LineageOS (по подразбиране)
+ Видео
+ Видео топло
+ Видео студено
+ Камера
+ Навигация
+ Галерия
+ Видео разговор
+ Браузър
+ Е-книга
+ Имейл
+ Цифрова телевизия
+ Нормален
+ Обърнат
+ За далтонисти
+ Екранна завеса
+ Сив
+ Обърнат сив
diff --git a/AdvancedDisplay/res/values-bn/arrays.xml b/AdvancedDisplay/res/values-bn/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-bn/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-br-rFR/arrays.xml b/AdvancedDisplay/res/values-br-rFR/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-br-rFR/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-br-rFR/strings.xml b/AdvancedDisplay/res/values-br-rFR/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-br-rFR/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-bs/arrays.xml b/AdvancedDisplay/res/values-bs/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-bs/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-bs/strings.xml b/AdvancedDisplay/res/values-bs/strings.xml
index c155d8901..d0c68b6fa 100644
--- a/AdvancedDisplay/res/values-bs/strings.xml
+++ b/AdvancedDisplay/res/values-bs/strings.xml
@@ -1,5 +1,4 @@
-
-
-
-
-
-
+ Ekran
+ Boje
diff --git a/AdvancedDisplay/res/values-ca/arrays.xml b/AdvancedDisplay/res/values-ca/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ca/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ca/strings.xml b/AdvancedDisplay/res/values-ca/strings.xml
index 8f93ce4d5..4a6e355d6 100644
--- a/AdvancedDisplay/res/values-ca/strings.xml
+++ b/AdvancedDisplay/res/values-ca/strings.xml
@@ -1,5 +1,4 @@
-
- Pantalla avançada
-
- Pantalla
- Colors
-
- Escenari
- Estableix l\'escenari de mDNIe
-
-
-
+ Pantalla avançada
+ Pantalla
+ Colors
+ Escenari
+ Estableix l\'escenari de mDNIe
+ Mode d\'accessibilitat
+ Estableix el mode d\'accessibilitat mDNIe
+ LineageOS (per defecte)
+ Vídeo
+ Vídeo càlid
+ Vídeo fred
+ Càmera
+ Navegació
+ Galeria
+ Vídeotrucada
+ Navegador
+ eBook
+ Correu
+ Televisió digital
+ Normal
+ Invertit
+ Daltònic
+ Cortina de pantalla
+ Gris
+ Gris invertit
diff --git a/AdvancedDisplay/res/values-cs/arrays.xml b/AdvancedDisplay/res/values-cs/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-cs/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-cs/strings.xml b/AdvancedDisplay/res/values-cs/strings.xml
index a06ae4377..93e6b62a4 100644
--- a/AdvancedDisplay/res/values-cs/strings.xml
+++ b/AdvancedDisplay/res/values-cs/strings.xml
@@ -1,5 +1,4 @@
-
- Rozšířené zobrazení
-
- Obrazovka
- Barvy
-
- Scénář
- Nastavit scénář pro mDNIe
-
-
-
+ Rozšířené zobrazení
+ Obrazovka
+ Barvy
+ Scénář
+ Nastavit scénář pro mDNIe
+ Režim usnadnění
+ Nastavení režimu usnadnění mDNIe
+ LineageOS (výchozí)
+ Kamera
+ Režim teplých barev
+ Režim studených barev
+ Fotoaparát
+ Navigace
+ Galerie
+ Video hovor
+ Prohlížeč
+ eBook
+ E-mail
+ Digitální televize
+ Normální
+ Inverzní
+ Barvoslepost
+ Záclony v obraze
+ Šedá
+ Invertovaná šedá
diff --git a/AdvancedDisplay/res/values-csb/arrays.xml b/AdvancedDisplay/res/values-csb/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-csb/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-csb/strings.xml b/AdvancedDisplay/res/values-csb/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-csb/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-cy/arrays.xml b/AdvancedDisplay/res/values-cy/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-cy/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-cy/strings.xml b/AdvancedDisplay/res/values-cy/strings.xml
index c155d8901..3e181b218 100644
--- a/AdvancedDisplay/res/values-cy/strings.xml
+++ b/AdvancedDisplay/res/values-cy/strings.xml
@@ -1,5 +1,4 @@
-
-
-
-
-
-
+ Dangosydd uwch
+ Sgrin
+ Lliwiau
+ Senario
+ Gosod y senario mDNIe
+ Modd hygyrchedd
+ Gosod modd hygyrchedd mDNIe
+ LineageOS (rhagosodiad)
+ Fideo
+ Fideo cynnes
+ Fideo oer
+ Camera
+ Llywio
+ Oriel
+ Galwad fideo
+ Porwr
+ eLyfr
+ Ebost
+ Teledu digidol
+ Arferol
+ Wedi\'i wrthdroi
+ Lliwddall
+ Screen curtain (Rhybudd: Peryg. Paid â\'i ddewis.)
+ Llwyd
+ Llwyd wedi\'i wrthdroi
diff --git a/AdvancedDisplay/res/values-da/arrays.xml b/AdvancedDisplay/res/values-da/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-da/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-da/strings.xml b/AdvancedDisplay/res/values-da/strings.xml
index c719e8681..0a47a6de6 100644
--- a/AdvancedDisplay/res/values-da/strings.xml
+++ b/AdvancedDisplay/res/values-da/strings.xml
@@ -1,5 +1,4 @@
-
- Avancerede skærmindstillinger
-
- Skærm
- Farver
-
- Scenarie
- Angiv mDNIe-scenariet
-
-
-
+ Avanceret display
+ Skærm
+ Farver
+ Scenarie
+ Angiv mDNIe-scenariet
+ LineageOS (standard)
+ Videoopkald
diff --git a/AdvancedDisplay/res/values-de/arrays.xml b/AdvancedDisplay/res/values-de/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-de/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-de/strings.xml b/AdvancedDisplay/res/values-de/strings.xml
index 198f4aff3..5cd39a779 100644
--- a/AdvancedDisplay/res/values-de/strings.xml
+++ b/AdvancedDisplay/res/values-de/strings.xml
@@ -1,5 +1,4 @@
-
- Erweiterte Anzeige-Einstellungen
-
- Bildschirm
- Farben
-
- Szenario
- Wählen Sie das mDNIe-Szenario
-
-
-
+ Erweiterte Anzeige-Einstellungen
+ Bildschirm
+ Farben
+ Szenario
+ Wähle das mDNIe-Szenario
+ Barrierefreier Modus
+ mDNIe-Modus festlegen
+ LineageOS (Standard)
+ Video
+ Videomodus (warm)
+ Videomodus (kalt)
+ Kamera
+ Navigation
+ Galerie
+ Videoanruf
+ Browser
+ E-Book
+ E-Mail
+ Digitales Fernsehen
+ Normal
+ Invertiert
+ Farbenblind
+ Bildschirmvorhang
+ Grau
+ Grau invertiert
diff --git a/AdvancedDisplay/res/values-el/arrays.xml b/AdvancedDisplay/res/values-el/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-el/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-el/strings.xml b/AdvancedDisplay/res/values-el/strings.xml
index 7531c40cc..2f77c48d7 100644
--- a/AdvancedDisplay/res/values-el/strings.xml
+++ b/AdvancedDisplay/res/values-el/strings.xml
@@ -1,5 +1,4 @@
-
- Ρυθμίσεις οθόνης για προχωρημένους
-
- Οθόνη
- Χρώματα
-
- Σενάριο
- Ορίστε το σενάριο mDNIe
- Λειτουργία προσβασιμότητας
- Ορίστε τη λειτουργία προσβασιμότητας mDNIe
-
- LineageOS (προεπιλογή)
- Βίντεο
- Θερμό βίντεο
- Ψυχρό βίντεο
- Φωτογραφική μηχανή
- Πλοήγηση
- Συλλογή
- Βιντεοκλήση
- Περιηγητής
- eBook
- E-mail
- Ψηφιακή τηλεόραση
-
- Κανονική
- Ανεστραμμένη
- Αχρωματοψία
- Κουρτίνα οθόνης
- Γκρί
- Γκρι ανεστραμμένη
-
+ Ρυθμίσεις οθόνης για προχωρημένους
+ Οθόνη
+ Χρώματα
+ Σενάριο
+ Ορίστε το σενάριο mDNIe
+ Λειτουργία προσβασιμότητας
+ Ορίστε τη λειτουργία προσβασιμότητας mDNIe
+ LineageOS (προεπιλογή)
+ Βίντεο
+ Θερμό βίντεο
+ Ψυχρό βίντεο
+ Φωτογραφική μηχανή
+ Πλοήγηση
+ Συλλογή
+ Βιντεοκλήση
+ Περιηγητής
+ eBook
+ E-mail
+ Ψηφιακή τηλεόραση
+ Κανονική
+ Ανεστραμμένη
+ Αχρωματοψία
+ Κουρτίνα οθόνης
+ Γκρί
+ Γκρι ανεστραμμένη
diff --git a/AdvancedDisplay/res/values-en-rAU/arrays.xml b/AdvancedDisplay/res/values-en-rAU/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-en-rAU/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-en-rAU/strings.xml b/AdvancedDisplay/res/values-en-rAU/strings.xml
index 793dcf669..2c0f179ad 100644
--- a/AdvancedDisplay/res/values-en-rAU/strings.xml
+++ b/AdvancedDisplay/res/values-en-rAU/strings.xml
@@ -1,5 +1,4 @@
-
- Advanced display
-
- Screen
- Colours
-
- Scenario
- Set the mDNIe scenario
-
-
-
+ Advanced display
+ Screen
+ Colours
+ Scenario
+ Set the mDNIe scenario
+ Accessibility mode
+ Set the mDNIe accessibility mode
+ LineageOS (default)
+ Video
+ Video warm
+ Video cold
+ Camera
+ Navigation
+ Gallery
+ Video call
+ Browser
+ eBook
+ E-mail
+ Digital television
+ Normal
+ Inverted
+ Colour blind
+ Screen curtain
+ Grey
+ Grey inverted
diff --git a/AdvancedDisplay/res/values-en-rCA/arrays.xml b/AdvancedDisplay/res/values-en-rCA/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-en-rCA/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-en-rCA/strings.xml b/AdvancedDisplay/res/values-en-rCA/strings.xml
index c155d8901..512ed4b12 100644
--- a/AdvancedDisplay/res/values-en-rCA/strings.xml
+++ b/AdvancedDisplay/res/values-en-rCA/strings.xml
@@ -1,5 +1,4 @@
-
-
-
-
-
-
+ Advanced display
+ Screen
+ Colours
+ Scenario
+ Set the mDNIe scenario
+ Accessibility mode
+ Set the mDNIe accessibility mode
+ LineageOS (default)
+ Video
+ Video warm
+ Video cold
+ Camera
+ Navigation
+ Gallery
+ Video call
+ Browser
+ eBook
+ E-mail
+ Digital television
+ Normal
+ Inverted
+ Colour blind
+ Screen curtain
+ Gray
+ Gray inverted
diff --git a/AdvancedDisplay/res/values-en-rGB/arrays.xml b/AdvancedDisplay/res/values-en-rGB/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-en-rGB/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-en-rGB/strings.xml b/AdvancedDisplay/res/values-en-rGB/strings.xml
index 793dcf669..2c0f179ad 100644
--- a/AdvancedDisplay/res/values-en-rGB/strings.xml
+++ b/AdvancedDisplay/res/values-en-rGB/strings.xml
@@ -1,5 +1,4 @@
-
- Advanced display
-
- Screen
- Colours
-
- Scenario
- Set the mDNIe scenario
-
-
-
+ Advanced display
+ Screen
+ Colours
+ Scenario
+ Set the mDNIe scenario
+ Accessibility mode
+ Set the mDNIe accessibility mode
+ LineageOS (default)
+ Video
+ Video warm
+ Video cold
+ Camera
+ Navigation
+ Gallery
+ Video call
+ Browser
+ eBook
+ E-mail
+ Digital television
+ Normal
+ Inverted
+ Colour blind
+ Screen curtain
+ Grey
+ Grey inverted
diff --git a/AdvancedDisplay/res/values-en-rIN/arrays.xml b/AdvancedDisplay/res/values-en-rIN/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-en-rIN/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-en-rIN/strings.xml b/AdvancedDisplay/res/values-en-rIN/strings.xml
index 793dcf669..2c0f179ad 100644
--- a/AdvancedDisplay/res/values-en-rIN/strings.xml
+++ b/AdvancedDisplay/res/values-en-rIN/strings.xml
@@ -1,5 +1,4 @@
-
- Advanced display
-
- Screen
- Colours
-
- Scenario
- Set the mDNIe scenario
-
-
-
+ Advanced display
+ Screen
+ Colours
+ Scenario
+ Set the mDNIe scenario
+ Accessibility mode
+ Set the mDNIe accessibility mode
+ LineageOS (default)
+ Video
+ Video warm
+ Video cold
+ Camera
+ Navigation
+ Gallery
+ Video call
+ Browser
+ eBook
+ E-mail
+ Digital television
+ Normal
+ Inverted
+ Colour blind
+ Screen curtain
+ Grey
+ Grey inverted
diff --git a/AdvancedDisplay/res/values-en-rPT/arrays.xml b/AdvancedDisplay/res/values-en-rPT/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-en-rPT/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-en-rPT/strings.xml b/AdvancedDisplay/res/values-en-rPT/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-en-rPT/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-eo/arrays.xml b/AdvancedDisplay/res/values-eo/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-eo/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-eo/strings.xml b/AdvancedDisplay/res/values-eo/strings.xml
index 22d9418a0..5f4b92823 100644
--- a/AdvancedDisplay/res/values-eo/strings.xml
+++ b/AdvancedDisplay/res/values-eo/strings.xml
@@ -1,5 +1,4 @@
-
-
- Koloroj
-
-
-
-
+ Koloroj
diff --git a/AdvancedDisplay/res/values-es-rCO/arrays.xml b/AdvancedDisplay/res/values-es-rCO/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-es-rCO/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-es-rCO/strings.xml b/AdvancedDisplay/res/values-es-rCO/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-es-rCO/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-es-rMX/arrays.xml b/AdvancedDisplay/res/values-es-rMX/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-es-rMX/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-es-rMX/strings.xml b/AdvancedDisplay/res/values-es-rMX/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-es-rMX/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-es-rUS/arrays.xml b/AdvancedDisplay/res/values-es-rUS/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-es-rUS/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-es-rUS/strings.xml b/AdvancedDisplay/res/values-es-rUS/strings.xml
index 7048fcb51..1caa3172e 100644
--- a/AdvancedDisplay/res/values-es-rUS/strings.xml
+++ b/AdvancedDisplay/res/values-es-rUS/strings.xml
@@ -1,5 +1,4 @@
-
- Ajustes avanzados
-
- Pantalla
- Colores
-
- Escenario
- Establecer escenario mDNIe
-
-
-
+ Ajustes avanzados
+ Pantalla
+ Colores
+ Escenario
+ Establecer escenario mDNIe
+ Modo de accesibilidad
+ Establecer el modo de accesibilidad mDNIe
+ LineageOS (predefinido)
+ Vídeo
+ Vídeo cálido
+ Vídeo frío
+ Cámara
+ Navegación
+ Galería
+ Videollamada
+ Navegador
+ Libro digital
+ Correo electrónico
+ Televisión digital
+ Normal
+ Invertido
+ Daltónico
+ Cortina de pantalla
+ Gris
+ Gris invertido
diff --git a/AdvancedDisplay/res/values-es/arrays.xml b/AdvancedDisplay/res/values-es/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-es/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-es/strings.xml b/AdvancedDisplay/res/values-es/strings.xml
index c7c4ff58b..453f8ad66 100644
--- a/AdvancedDisplay/res/values-es/strings.xml
+++ b/AdvancedDisplay/res/values-es/strings.xml
@@ -1,5 +1,4 @@
-
- Pantalla avanzada
-
- Pantalla
- Colores
-
- Escenario
- Establecer el escenario mDNIe
-
-
-
+ Pantalla avanzada
+ Pantalla
+ Colores
+ Escenario
+ Establecer el escenario mDNIe
+ Modo de accesibilidad
+ Definir el modo de accesibilidad mDNIe
+ LineageOS (predefinido)
+ Vídeo
+ Vídeo cálido
+ Vídeo frío
+ Cámara
+ Navegación
+ Galería
+ Videollamada
+ Navegador
+ Libro electrónico
+ Cortina de pantalla
diff --git a/AdvancedDisplay/res/values-et/arrays.xml b/AdvancedDisplay/res/values-et/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-et/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-et/strings.xml b/AdvancedDisplay/res/values-et/strings.xml
index d862e108e..1b468ed99 100644
--- a/AdvancedDisplay/res/values-et/strings.xml
+++ b/AdvancedDisplay/res/values-et/strings.xml
@@ -1,5 +1,4 @@
-
- Täpsem displei
-
- Ekraan
- Värvid
-
- Stsenaarium
- Seadke mDNIe stsenaarium
-
-
-
+ Täpsem displei
+ Ekraan
+ Värvid
+ Stsenaarium
+ Seadke mDNIe stsenaarium
+ Juurdepääsetavusrežiim
+ Määra mDNIe juurdepääsetavusrežiim
+ LineageOS (vaikimisi)
+ Video
+ Video soe
+ Video külm
+ Kaamera
+ Navigeerimine
+ Galerii
+ Videokõne
+ Veebilehitseja
+ E-raamat
+ E-post
+ Digitaalne televisioon
+ Tavaline
+ Pööratud
+ Värvipimedatele
+ Ekraanikardin
+ Hall
+ Pööratud hall
diff --git a/AdvancedDisplay/res/values-eu/arrays.xml b/AdvancedDisplay/res/values-eu/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-eu/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-eu/strings.xml b/AdvancedDisplay/res/values-eu/strings.xml
index 8715aff26..16da2eba3 100644
--- a/AdvancedDisplay/res/values-eu/strings.xml
+++ b/AdvancedDisplay/res/values-eu/strings.xml
@@ -1,5 +1,4 @@
-
- Pantaila aurreratua
-
- Pantaila
- Koloreak
-
- Eszenatokia
- mDNIe eszenatokia ezarri
-
-
-
+ Pantaila aurreratua
+ Pantaila
+ Koloreak
+ Eszenatokia
+ mDNIe eszenatokia ezarri
+ Irisgarritasun modua
+ Ezarri mDNIe irisgarritasun modua
+ LineageOS (lehenetsia)
+ Bideoa
+ Bideo epela
+ Bideo hotza
+ Kamera
+ Nabigazioa
+ Galeria
+ Bideo-deia
+ Nabigatzailea
+ eBook
+ E-mail
+ Telebista digitala
+ Arrunta
+ Alderantzikatua
+ Kolore-itsua
+ Pantaila gortina
+ Grisa
+ Grisa alderantzikatua
diff --git a/AdvancedDisplay/res/values-fa/arrays.xml b/AdvancedDisplay/res/values-fa/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-fa/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-fa/strings.xml b/AdvancedDisplay/res/values-fa/strings.xml
index 3964b7653..215e556c4 100644
--- a/AdvancedDisplay/res/values-fa/strings.xml
+++ b/AdvancedDisplay/res/values-fa/strings.xml
@@ -1,5 +1,4 @@
-
- نمایش پیشرفته
-
- صفحه نمایش
- رنگها
-
- خط مشی
- تنظیم خط مشی mDNIe
-
-
-
+ نمایش پیشرفته
+ صفحه نمایش
+ رنگها
+ خط مشی
+ تنظیم خط مشی mDNIe
diff --git a/AdvancedDisplay/res/values-fi/arrays.xml b/AdvancedDisplay/res/values-fi/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-fi/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-fi/strings.xml b/AdvancedDisplay/res/values-fi/strings.xml
index d9de8cdfd..ebaf4cf74 100644
--- a/AdvancedDisplay/res/values-fi/strings.xml
+++ b/AdvancedDisplay/res/values-fi/strings.xml
@@ -1,5 +1,4 @@
-
- Näytön lisäasetukset
-
- Näyttö
- Värit
-
- Skenaario
- Aseta mDNIe-skenaario
-
-
-
+ Näytön lisäasetukset
+ Näyttö
+ Värit
+ Skenaario
+ Aseta mDNIe-skenaario
+ Helppokäyttötila
+ Aseta mDNIe-tila
+ LineageOS (oletus)
+ Video
+ Video (lämmin)
+ Video (kylmä)
+ Kamera
+ Navigointi
+ Galleria
+ Videopuhelu
+ Selain
+ E-kirja
+ Sähköposti
+ Digitaalinen televisio
+ Normaali
+ Käänteinen
+ Värisokea
+ Näyttöverho
+ Harmaa
+ Harmaa (käänteinen)
diff --git a/AdvancedDisplay/res/values-fil/arrays.xml b/AdvancedDisplay/res/values-fil/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-fil/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-fil/strings.xml b/AdvancedDisplay/res/values-fil/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-fil/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-fr-rCA/arrays.xml b/AdvancedDisplay/res/values-fr-rCA/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-fr-rCA/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-fr-rCA/strings.xml b/AdvancedDisplay/res/values-fr-rCA/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-fr-rCA/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-fr/arrays.xml b/AdvancedDisplay/res/values-fr/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-fr/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-fr/strings.xml b/AdvancedDisplay/res/values-fr/strings.xml
index e1eb24969..a3d03f1c6 100644
--- a/AdvancedDisplay/res/values-fr/strings.xml
+++ b/AdvancedDisplay/res/values-fr/strings.xml
@@ -1,5 +1,4 @@
-
- Affichage avancé
-
- Écran
- Couleurs
-
- Scénario
- Définir le scénario mDNIe
-
-
-
+ Affichage avancé
+ Écran
+ Couleurs
+ Scénario
+ Définir le scénario mDNIe
+ Mode d\'accessibilité
+ Définir le mode d\'accessibilité mDNIe
+ LineageOS (par défaut)
+ Vidéo
+ Vidéo chaude
+ Vidéo froide
+ Appareil photo
+ Navigation
+ Galerie
+ Appel vidéo
+ Navigateur
+ eBook
+ E-mail
+ Télévision numérique
+ Normal
+ Inversé
+ Daltonien
+ Rideau d\'écran
+ Gris
+ Gris inversé
diff --git a/AdvancedDisplay/res/values-frp/arrays.xml b/AdvancedDisplay/res/values-frp/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-frp/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-frp/strings.xml b/AdvancedDisplay/res/values-frp/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-frp/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-fy-rNL/arrays.xml b/AdvancedDisplay/res/values-fy-rNL/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-fy-rNL/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-fy-rNL/strings.xml b/AdvancedDisplay/res/values-fy-rNL/strings.xml
index c155d8901..bc5e19af7 100644
--- a/AdvancedDisplay/res/values-fy-rNL/strings.xml
+++ b/AdvancedDisplay/res/values-fy-rNL/strings.xml
@@ -1,5 +1,4 @@
-
-
-
-
-
-
+ Avansearre ynstellingen
+ Skerm
+ Kleuren
+ Senario
+ mDNIe-senario ynstelle
+ Tagonklikheidsmodus
+ Stel de mDNIe-tagonklikheidsmodus yn
+ LineageOS (standert)
+ Fideo
+ Fideo (waarm)
+ Fideo (kâld)
+ Kamera
+ Navigaasje
+ Galery
+ Fideobelle
+ Browser
+ eBook
+ E-mail
+ Digitale televyzje
+ Normaal
+ Omkeard
+ Kleureblyn
+ Skermgerdyn
+ Griis
+ Griis (omkeard)
diff --git a/AdvancedDisplay/res/values-ga-rIE/arrays.xml b/AdvancedDisplay/res/values-ga-rIE/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ga-rIE/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ga-rIE/strings.xml b/AdvancedDisplay/res/values-ga-rIE/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-ga-rIE/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-gd/arrays.xml b/AdvancedDisplay/res/values-gd/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-gd/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-gd/strings.xml b/AdvancedDisplay/res/values-gd/strings.xml
index c155d8901..807f0ac2f 100644
--- a/AdvancedDisplay/res/values-gd/strings.xml
+++ b/AdvancedDisplay/res/values-gd/strings.xml
@@ -1,5 +1,4 @@
-
-
-
-
-
-
+ Taisbeanadh adhartach
+ Sgrìn
+ Dathan
+ Cnàmh-sgeul
+ Suidhich cnàmh-sgeul mDNIe
+ Modh na so-ruigsinneachd
+ Suidhich modh so-inntrigeachd mDNIe
+ LineageOS (bun-roghainn)
+ Video
+ Video blàth
+ Video fuar
+ Camara
+ Seòladaireachd
+ Gailearaidh
+ Gairm video
+ Brabhsair
+ Leabhar-d
+ Post-d
+ Telebhisean digiteach
+ Àbhaisteach
+ Ais-thionndaichte
+ Dath-dhoille
+ Cùirtear sgrìn
+ Liath
+ Liath ais-thionndaichte
diff --git a/AdvancedDisplay/res/values-gl/arrays.xml b/AdvancedDisplay/res/values-gl/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-gl/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-gl/strings.xml b/AdvancedDisplay/res/values-gl/strings.xml
index 2a97a208a..6f18d61f1 100644
--- a/AdvancedDisplay/res/values-gl/strings.xml
+++ b/AdvancedDisplay/res/values-gl/strings.xml
@@ -1,5 +1,4 @@
-
- Visualización avanzada
-
- Pantalla
- Cores
-
- Escenario
- Estabelecer o escenario mDNIe
-
-
-
+ Visualización avanzada
+ Pantalla
+ Cores
+ Escenario
+ Estabelecer o escenario mDNIe
+ Modo de accesibilidade
+ Definir o modo de accesibilidade mDNIe
+ LineageOS (predefinido)
+ Vídeo
+ Vídeo cálido
+ Vídeo frío
+ Cámara
+ Navegación
+ Galería
+ Videochamada
+ Navegador
+ eBook
+ Correo electrónico
+ Televisión dixital
+ Normal
+ Invertido
+ Daltónico
+ Cortina de pantalla
+ Gris
+ Gris invertido
diff --git a/AdvancedDisplay/res/values-gu/arrays.xml b/AdvancedDisplay/res/values-gu/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-gu/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-gu/strings.xml b/AdvancedDisplay/res/values-gu/strings.xml
index 8e2161b46..32dd47311 100644
--- a/AdvancedDisplay/res/values-gu/strings.xml
+++ b/AdvancedDisplay/res/values-gu/strings.xml
@@ -1,5 +1,4 @@
-
- ઍડવાન્સ્ડ ડિસ્પ્લે
-
- સ્ક્રીન
- રંગો
-
- દ્રશ્ય
- mDNIe દ્રશ્ય સેટ કરો
-
-
-
+ ઍડવાન્સ્ડ ડિસ્પ્લે
+ સ્ક્રીન
+ રંગો
+ દ્રશ્ય
+ mDNIe દ્રશ્ય સેટ કરો
diff --git a/AdvancedDisplay/res/values-hi/arrays.xml b/AdvancedDisplay/res/values-hi/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-hi/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-hi/strings.xml b/AdvancedDisplay/res/values-hi/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-hi/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-hr/arrays.xml b/AdvancedDisplay/res/values-hr/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-hr/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-hr/strings.xml b/AdvancedDisplay/res/values-hr/strings.xml
index cd5394df8..a69087fd3 100644
--- a/AdvancedDisplay/res/values-hr/strings.xml
+++ b/AdvancedDisplay/res/values-hr/strings.xml
@@ -1,5 +1,4 @@
-
- Napredni zaslon
-
- Zaslon
- Boje
-
- Scenarij
- Podesite mDNIe scenarij
-
-
-
+ Napredni zaslon
+ Zaslon
+ Boje
+ Scenarij
+ Podesite mDNIe scenarij
diff --git a/AdvancedDisplay/res/values-hu/arrays.xml b/AdvancedDisplay/res/values-hu/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-hu/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-hu/strings.xml b/AdvancedDisplay/res/values-hu/strings.xml
index d2693ac69..c4b5e14d2 100644
--- a/AdvancedDisplay/res/values-hu/strings.xml
+++ b/AdvancedDisplay/res/values-hu/strings.xml
@@ -1,5 +1,4 @@
-
- Speciális kijelző
-
- Kijelző
- Színek
-
- Megjelenítés
- mDNIe megjelenítési beállítások
-
-
-
+ Speciális kijelző
+ Kijelző
+ Színek
+ Megjelenítés
+ mDNIe megjelenítési beállítások
+ Kisegítőmód
+ A mDNIe-kisegítőmód beállításai
+ LineageOS (alapértelmezett)
+ Videó
+ Videó (meleg árnyalat)
+ Videó (hideg árnyalat)
+ Kamera
+ Navigáció
+ Galéria
+ Videóhívás
+ Böngésző
+ eBook
+ E-mail
+ Digitális televízió
+ Normál
+ Negatív
+ Színvak
+ Képernyő-függöny
+ Szürke
+ Negatív szürke
diff --git a/AdvancedDisplay/res/values-hy/arrays.xml b/AdvancedDisplay/res/values-hy/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-hy/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-hy/strings.xml b/AdvancedDisplay/res/values-hy/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-hy/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-in/arrays.xml b/AdvancedDisplay/res/values-in/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-in/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-in/strings.xml b/AdvancedDisplay/res/values-in/strings.xml
index c80c8ecb8..855318645 100644
--- a/AdvancedDisplay/res/values-in/strings.xml
+++ b/AdvancedDisplay/res/values-in/strings.xml
@@ -1,5 +1,4 @@
-
- Tampilan lanjutan
-
- Layar
- Warna
-
- Skenario
- Setel skenario mDNIe
-
- LineageOS (standar)
- Video
- Kamera
- Navigasi
- Galeri
- Panggilan video
-
-
+ Tampilan lanjutan
+ Layar
+ Warna
+ Skenario
+ Setel skenario mDNIe
+ Modus aksesibilitas
+ Setel modus aksesibilitas mDNIe
+ LineageOS (standar)
+ Video
+ Video (warna hangat)
+ Video (warna sejuk)
+ Kamera
+ Navigasi
+ Galeri
+ Panggilan video
+ Browser
+ eBook
+ E-mail
+ Televisi digital
+ Normal
+ Terbalik
+ Buta warna
+ Tirai layar
+ Abu-abu
+ Abu-abu terbalik
diff --git a/AdvancedDisplay/res/values-is/arrays.xml b/AdvancedDisplay/res/values-is/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-is/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-is/strings.xml b/AdvancedDisplay/res/values-is/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-is/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-it/arrays.xml b/AdvancedDisplay/res/values-it/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-it/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-it/strings.xml b/AdvancedDisplay/res/values-it/strings.xml
index 5f2a87a9f..c6ffc3c6c 100644
--- a/AdvancedDisplay/res/values-it/strings.xml
+++ b/AdvancedDisplay/res/values-it/strings.xml
@@ -1,5 +1,4 @@
-
- Schermo avanzato
-
- Display
- Colori
-
- Scenario
- Imposta scenario mDNle
-
-
-
+ Schermo avanzato
+ Display
+ Colori
+ Scenario
+ Imposta scenario mDNle
+ Modalità di accesso facilitato
+ Imposta la modalità di accesso facilitato mDNIe
+ LineageOS (predefinito)
+ Video
+ Toni caldi
+ Toni freddi
+ Fotocamera
+ Navigazione
+ Galleria
+ Video chiamata
+ Browser
+ eBook
+ E-mail
+ Televisione digitale
+ Normale
+ Invertito
+ Modalità daltonico
+ Modalità schermo oscurato
+ Grigio
+ Grigio invertito
diff --git a/AdvancedDisplay/res/values-iw/arrays.xml b/AdvancedDisplay/res/values-iw/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-iw/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-iw/strings.xml b/AdvancedDisplay/res/values-iw/strings.xml
index a797dd322..6be7a6dbb 100644
--- a/AdvancedDisplay/res/values-iw/strings.xml
+++ b/AdvancedDisplay/res/values-iw/strings.xml
@@ -1,5 +1,4 @@
-
- תצוגה מתקדמת
-
- מסך
- צבעים
-
- תרחיש
- הגדר תרחיש mDNIe
-
-
-
+ תצוגה מתקדמת
+ מסך
+ צבעים
+ תרחיש
+ הגדר תרחיש mDNIe
+ מצב נגישות
+ LineageOS (ברירת מחדל)
+ וידאו
+ וידאו חם
+ וידאו קר
+ מצלמה
+ ניווט
+ גלריה
+ שיחת וידאו
+ דפדפן
+ ספר אלקטרוני
+ דוא\"ל
+ טלוויזיה דיגיטלית
+ רגיל
+ הפוך
+ עיוור צבעים
diff --git a/AdvancedDisplay/res/values-ja/arrays.xml b/AdvancedDisplay/res/values-ja/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ja/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ja/strings.xml b/AdvancedDisplay/res/values-ja/strings.xml
index ae79b905f..4f23301df 100644
--- a/AdvancedDisplay/res/values-ja/strings.xml
+++ b/AdvancedDisplay/res/values-ja/strings.xml
@@ -1,5 +1,4 @@
-
- ディスプレイの詳細設定
-
- 画面
- 色
-
- シナリオ
- mDNIeシナリオを設定する
- アクセシビリティモード
- mDNIe アクセシビリティモードを設定します
-
- LineageOS(デフォルト)
- ビデオ
- ビデオ(暖色)
- ビデオ(寒色)
- カメラ
- ナビゲーション
- ギャラリー
- ビデオ通話
- ブラウザー
- 電子書籍
- メール
- デジタルテレビ
-
- 標準
- 反転
- 色覚異常
- スクリーンカーテン
- グレー
- グレー反転
-
+ ディスプレイの詳細設定
+ 画面
+ 色
+ シナリオ
+ mDNIeシナリオを設定する
+ アクセシビリティモード
+ mDNIe アクセシビリティモードを設定します
+ LineageOS(デフォルト)
+ ビデオ
+ ビデオ(暖色)
+ ビデオ(寒色)
+ カメラ
+ ナビゲーション
+ ギャラリー
+ ビデオ通話
+ ブラウザー
+ 電子書籍
+ メール
+ デジタルテレビ
+ 標準
+ 反転
+ 色覚異常
+ スクリーンカーテン
+ グレー
+ グレー反転
diff --git a/AdvancedDisplay/res/values-ka/arrays.xml b/AdvancedDisplay/res/values-ka/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ka/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ka/strings.xml b/AdvancedDisplay/res/values-ka/strings.xml
index c155d8901..d7dd8e005 100644
--- a/AdvancedDisplay/res/values-ka/strings.xml
+++ b/AdvancedDisplay/res/values-ka/strings.xml
@@ -1,5 +1,4 @@
-
-
-
-
-
-
+ ეკრანი
+ ფერები
+ ციფრული ტელევიზია
+ ნაცრისფერი
diff --git a/AdvancedDisplay/res/values-kab-rDZ/arrays.xml b/AdvancedDisplay/res/values-kab-rDZ/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-kab-rDZ/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-kab-rDZ/strings.xml b/AdvancedDisplay/res/values-kab-rDZ/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-kab-rDZ/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-kk/arrays.xml b/AdvancedDisplay/res/values-kk/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-kk/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-kk/strings.xml b/AdvancedDisplay/res/values-kk/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-kk/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-km/arrays.xml b/AdvancedDisplay/res/values-km/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-km/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-km/strings.xml b/AdvancedDisplay/res/values-km/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-km/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-kn/arrays.xml b/AdvancedDisplay/res/values-kn/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-kn/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-kn/strings.xml b/AdvancedDisplay/res/values-kn/strings.xml
index d171442d4..74d27235f 100644
--- a/AdvancedDisplay/res/values-kn/strings.xml
+++ b/AdvancedDisplay/res/values-kn/strings.xml
@@ -1,5 +1,4 @@
-
- ಸುಧಾರಿತ ಪ್ರದರ್ಶನ
-
- ಪರದೆ
- ಬಣ್ಣಗಳು
-
- ಸನ್ನಿವೇಶ
- mDNIe ಸನ್ನಿವೇಶವನ್ನು ಹೊಂದಿಸಿ
-
-
-
+ ಸುಧಾರಿತ ಪ್ರದರ್ಶನ
+ ಪರದೆ
+ ಬಣ್ಣಗಳು
+ ಸನ್ನಿವೇಶ
+ mDNIe ಸನ್ನಿವೇಶವನ್ನು ಹೊಂದಿಸಿ
+ ಪ್ರವೇಶಾವಕಾಶ ರೀತಿ
+ mDNIe ಪ್ರವೇಶ ರೀತಿ ಹೊಂದಿಸು
+ LineageOS (ಇದ್ದಾಯ್ಕೆ)
+ ದೃಶ್ಯ
+ ಬೆಚ್ಚನೆ ದೃಶ್ಯ
+ ತಣ್ಣನೆ ದೃಶ್ಯ
+ ತಿಟ್ಟುಕ
+ ಸಂಚಾಲನೆ
+ ಚಿತ್ರಶಾಲೆ
+ ದೃಶ್ಯ ಕರೆ
+ ಬ್ರೌಸರ್
+ e-ಪುಸ್ತಕ
+ e-ಅಂಚೆ
+ ಅಂಕೀಯ ದೂರದರ್ಶನ
+ ಸಾಧಾರಣ
+ ವ್ಯತಿರಿಕ್ತವಾದ
+ ಬಣ್ಣ ಕುರುಡು
+ ಪರದೆಯ ತೆರೆ
+ ಬೂದು
+ ವ್ಯತಿರಿಕ್ತವಾದ ಬೂದು
diff --git a/AdvancedDisplay/res/values-ko/arrays.xml b/AdvancedDisplay/res/values-ko/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ko/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ko/strings.xml b/AdvancedDisplay/res/values-ko/strings.xml
index e2ec7bce4..03ed88ca4 100644
--- a/AdvancedDisplay/res/values-ko/strings.xml
+++ b/AdvancedDisplay/res/values-ko/strings.xml
@@ -1,5 +1,4 @@
-
- 고급 디스플레이
-
- 화면
- 색상
-
- 시나리오
- mDNIe 시나리오 설정
-
-
-
+ 고급 디스플레이
+ 화면
+ 색상
+ 시나리오
+ mDNIe 시나리오 설정
+ 접근성 모드
+ mDNIe 접근성 모드 설정
+ LineageOS (기본값)
+ 비디오
+ 비디오 (따뜻한 색)
+ 비디오 (차가운 색)
+ 카메라
+ 내비게이션
+ 갤러리
+ 영상 통화
+ 브라우저
+ 전자책
+ 이메일
+ 디지털 TV
+ 기본
+ 반전
+ 색맹
+ 화면 커튼
+ 흑백
+ 흑백 반전
diff --git a/AdvancedDisplay/res/values-ku/arrays.xml b/AdvancedDisplay/res/values-ku/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ku/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ku/strings.xml b/AdvancedDisplay/res/values-ku/strings.xml
index a957a68d5..3d0488e8c 100644
--- a/AdvancedDisplay/res/values-ku/strings.xml
+++ b/AdvancedDisplay/res/values-ku/strings.xml
@@ -1,5 +1,4 @@
-
- پیشاندانی پێشکهوتوو
-
- شاشە
- ڕهنگهکان
-
- سیناریۆ
- دانانی دۆخی mDNIe سیناریۆ
-
-
-
+ پیشاندانی پێشکهوتوو
+ شاشە
+ ڕهنگهکان
+ سیناریۆ
+ دانانی دۆخی mDNIe سیناریۆ
diff --git a/AdvancedDisplay/res/values-ky/arrays.xml b/AdvancedDisplay/res/values-ky/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ky/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ky/strings.xml b/AdvancedDisplay/res/values-ky/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-ky/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-lb/arrays.xml b/AdvancedDisplay/res/values-lb/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-lb/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-lb/strings.xml b/AdvancedDisplay/res/values-lb/strings.xml
index b7ada6d41..fa3cf99d4 100644
--- a/AdvancedDisplay/res/values-lb/strings.xml
+++ b/AdvancedDisplay/res/values-lb/strings.xml
@@ -17,14 +17,9 @@
limitations under the License.
-->
- Erweiderte Schierm
-
- Schierm
- Faarwen
-
- Zeenario
- mDNIe-Zeenario auswielen
-
-
-
+ Erweiderte Schierm
+ Schierm
+ Faarwen
+ Zeenario
+ mDNIe-Zeenario auswielen
diff --git a/AdvancedDisplay/res/values-lo/arrays.xml b/AdvancedDisplay/res/values-lo/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-lo/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-lo/strings.xml b/AdvancedDisplay/res/values-lo/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-lo/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-lt/arrays.xml b/AdvancedDisplay/res/values-lt/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-lt/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-lt/strings.xml b/AdvancedDisplay/res/values-lt/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-lt/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-b+sr+Latn/strings.xml b/AdvancedDisplay/res/values-lu/strings.xml
similarity index 71%
rename from AdvancedDisplay/res/values-b+sr+Latn/strings.xml
rename to AdvancedDisplay/res/values-lu/strings.xml
index c155d8901..ba89c0bc1 100644
--- a/AdvancedDisplay/res/values-b+sr+Latn/strings.xml
+++ b/AdvancedDisplay/res/values-lu/strings.xml
@@ -1,5 +1,4 @@
-
-
-
-
-
-
+ Erweiderte Schierm
+ Schierm
+ Faarwen
+ Zeenario
+ mDNIe-Zeenario auswielen
diff --git a/AdvancedDisplay/res/values-lv/arrays.xml b/AdvancedDisplay/res/values-lv/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-lv/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-lv/strings.xml b/AdvancedDisplay/res/values-lv/strings.xml
index 0a1798f3a..684b5a5c6 100644
--- a/AdvancedDisplay/res/values-lv/strings.xml
+++ b/AdvancedDisplay/res/values-lv/strings.xml
@@ -1,5 +1,4 @@
-
- Papildu displejs
-
- Ekrāns
- Krāsas
-
- Scenārijs
- Uzstādīt mDNIe scenāriju
-
-
-
+ Papildu displejs
+ Ekrāns
+ Krāsas
+ Scenārijs
+ Uzstādīt mDNIe scenāriju
diff --git a/AdvancedDisplay/res/values-mk/arrays.xml b/AdvancedDisplay/res/values-mk/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-mk/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-mk/strings.xml b/AdvancedDisplay/res/values-mk/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-mk/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ml/arrays.xml b/AdvancedDisplay/res/values-ml/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ml/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ml/strings.xml b/AdvancedDisplay/res/values-ml/strings.xml
index df265c1bf..6d67ab7ad 100644
--- a/AdvancedDisplay/res/values-ml/strings.xml
+++ b/AdvancedDisplay/res/values-ml/strings.xml
@@ -1,5 +1,4 @@
-
- വികസിത ഡിസ്പ്ലേ
-
- സ്ക്രീൻ
- നിറങ്ങൾ
-
- അവസ്ഥ
- mDNle അവസ്ഥ സജ്ജമാക്കാൻ
-
-
-
+ വികസിത ഡിസ്പ്ലേ
+ സ്ക്രീൻ
+ നിറങ്ങൾ
+ അവസ്ഥ
+ mDNle അവസ്ഥ സജ്ജമാക്കാൻ
diff --git a/AdvancedDisplay/res/values-mn/arrays.xml b/AdvancedDisplay/res/values-mn/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-mn/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-mn/strings.xml b/AdvancedDisplay/res/values-mn/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-mn/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-mr/arrays.xml b/AdvancedDisplay/res/values-mr/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-mr/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-mr/strings.xml b/AdvancedDisplay/res/values-mr/strings.xml
index 2be51b64c..55438961b 100644
--- a/AdvancedDisplay/res/values-mr/strings.xml
+++ b/AdvancedDisplay/res/values-mr/strings.xml
@@ -1,5 +1,4 @@
-
- प्रगत प्रदर्शन
-
- स्क्रीन
- रंग
-
- परिस्थिती
- mDNIe परिस्थिती सेट करा
-
-
-
+ प्रगत प्रदर्शन
+ स्क्रीन
+ रंग
+ परिस्थिती
+ mDNIe परिस्थिती सेट करा
diff --git a/AdvancedDisplay/res/values-ms/arrays.xml b/AdvancedDisplay/res/values-ms/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ms/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ms/strings.xml b/AdvancedDisplay/res/values-ms/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-ms/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-my/arrays.xml b/AdvancedDisplay/res/values-my/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-my/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-my/strings.xml b/AdvancedDisplay/res/values-my/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-my/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-nb/arrays.xml b/AdvancedDisplay/res/values-nb/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-nb/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-nb/strings.xml b/AdvancedDisplay/res/values-nb/strings.xml
index 153b204a3..302176922 100644
--- a/AdvancedDisplay/res/values-nb/strings.xml
+++ b/AdvancedDisplay/res/values-nb/strings.xml
@@ -1,5 +1,4 @@
-
- Avansert visning
-
- Skjerm
- Farger
-
- Scenario
- Angi mDNIe scenariet
-
-
-
+ Avansert visning
+ Skjerm
+ Farger
+ Scenario
+ Angi mDNIe scenariet
diff --git a/AdvancedDisplay/res/values-ne/arrays.xml b/AdvancedDisplay/res/values-ne/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ne/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ne/strings.xml b/AdvancedDisplay/res/values-ne/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-ne/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-nl/arrays.xml b/AdvancedDisplay/res/values-nl/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-nl/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-nl/strings.xml b/AdvancedDisplay/res/values-nl/strings.xml
index 86046964a..2a55f4524 100644
--- a/AdvancedDisplay/res/values-nl/strings.xml
+++ b/AdvancedDisplay/res/values-nl/strings.xml
@@ -1,5 +1,4 @@
-
- Geavanceerde instellingen
-
- Scherm
- Kleuren
-
- Scenario
- mDNIe-scenario instellen
-
-
-
+ Geavanceerde instellingen
+ Scherm
+ Kleuren
+ Scenario
+ mDNIe-scenario instellen
+ Toegankelijkheidsmodus
+ mDNIe-toegankelijkheidsmodus instellen
+ LineageOS (standaard)
+ Video
+ Video (warm)
+ Video (koud)
+ Camera
+ Navigatie
+ Galerij
+ Video-oproep
+ Browser
+ eBook
+ E-mail
+ Digitale televisie
+ Normaal
+ Omgekeerd
+ Kleurenblind
+ Schermgordijn
+ Grijs
+ Grijs (omgekeerd)
diff --git a/AdvancedDisplay/res/values-oc/arrays.xml b/AdvancedDisplay/res/values-oc/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-oc/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-oc/strings.xml b/AdvancedDisplay/res/values-oc/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-oc/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-or-rIN/arrays.xml b/AdvancedDisplay/res/values-or-rIN/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-or-rIN/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-or-rIN/strings.xml b/AdvancedDisplay/res/values-or-rIN/strings.xml
index 49fe31ea0..cb9230ad5 100644
--- a/AdvancedDisplay/res/values-or-rIN/strings.xml
+++ b/AdvancedDisplay/res/values-or-rIN/strings.xml
@@ -17,14 +17,9 @@
limitations under the License.
-->
- ଉନ୍ନତ ଡିସ୍ପ୍ଲେ
-
- ସ୍କ୍ରିନ୍
- ରଙ୍ଗଗୁଡିକ
-
- ଦୃଶ୍ୟପଟ
- mDNIe ଦୃଶ୍ୟପଟ ସେଟ୍ କରନ୍ତୁ
-
-
-
+ ଉନ୍ନତ ଡିସ୍ପ୍ଲେ
+ ସ୍କ୍ରିନ୍
+ ରଙ୍ଗଗୁଡିକ
+ ଦୃଶ୍ୟପଟ
+ mDNIe ଦୃଶ୍ୟପଟ ସେଟ୍ କରନ୍ତୁ
diff --git a/AdvancedDisplay/res/values-am/strings.xml b/AdvancedDisplay/res/values-or/strings.xml
similarity index 65%
rename from AdvancedDisplay/res/values-am/strings.xml
rename to AdvancedDisplay/res/values-or/strings.xml
index c155d8901..9490fde27 100644
--- a/AdvancedDisplay/res/values-am/strings.xml
+++ b/AdvancedDisplay/res/values-or/strings.xml
@@ -1,5 +1,4 @@
-
-
-
-
-
-
+ ଉନ୍ନତ ଡିସ୍ପ୍ଲେ
+ ସ୍କ୍ରିନ୍
+ ରଙ୍ଗଗୁଡିକ
+ ଦୃଶ୍ୟପଟ
+ mDNIe ଦୃଶ୍ୟପଟ ସେଟ୍ କରନ୍ତୁ
diff --git a/AdvancedDisplay/res/values-pa/arrays.xml b/AdvancedDisplay/res/values-pa/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-pa/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-pa/strings.xml b/AdvancedDisplay/res/values-pa/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-pa/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-pl/arrays.xml b/AdvancedDisplay/res/values-pl/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-pl/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-pl/strings.xml b/AdvancedDisplay/res/values-pl/strings.xml
index 92f17211e..3eb7c1ecd 100644
--- a/AdvancedDisplay/res/values-pl/strings.xml
+++ b/AdvancedDisplay/res/values-pl/strings.xml
@@ -1,5 +1,4 @@
-
- Zaawansowane ustawienia ekranu
-
- Ekran
- Kolory
-
- Scenerie
- Ustaw scenariusz mDNIe
-
-
-
+ Zaawansowane ustawienia ekranu
+ Ekran
+ Kolory
+ Scenerie
+ Ustaw scenariusz mDNIe
+ Ułatwienia dostępu
+ Ustaw tryb dostępności mDNIe
+ LineageOS (domyślnie)
+ Wideo
+ Ciepły film
+ Zimny film
+ Aparat
+ Nawigacja
+ Galeria
+ Połączenie wideo
+ Przeglądarka
+ eBook
+ E-mail
+ Telewizja cyfrowa
+ Normalny
+ Odwrócony
+ Daltonizm
+ Kurtyna ekranowa
+ Szary
+ Szary, odwrócony
diff --git a/AdvancedDisplay/res/values-pt-rBR/arrays.xml b/AdvancedDisplay/res/values-pt-rBR/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-pt-rBR/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-pt-rBR/strings.xml b/AdvancedDisplay/res/values-pt-rBR/strings.xml
index b52691bf4..7ea5246ad 100644
--- a/AdvancedDisplay/res/values-pt-rBR/strings.xml
+++ b/AdvancedDisplay/res/values-pt-rBR/strings.xml
@@ -1,5 +1,4 @@
-
- Display avançado
-
- Tela
- Cores
-
- Cenário
- Define o cenário mDNIe
-
-
-
+ Display avançado
+ Tela
+ Cores
+ Cenário
+ Define o cenário mDNIe
+ Modo de acessibilidade
+ Definir o modo de acessibilidade do mDNIe
+ LineageOS (padrão)
+ Vídeo
+ Vídeo quente
+ Vídeo frio
+ Câmera
+ Navegação
+ Galeria
+ Chamada de vídeo
+ Navegador
+ e-book
+ E-mail
+ Televisão digital
+ Normal
+ Invertido
+ Daltônico
+ Filtro de tela
+ Cinza
+ Cinza invertido
diff --git a/AdvancedDisplay/res/values-pt-rPT/arrays.xml b/AdvancedDisplay/res/values-pt-rPT/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-pt-rPT/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-pt-rPT/strings.xml b/AdvancedDisplay/res/values-pt-rPT/strings.xml
index b9c574be8..5d4c5669a 100644
--- a/AdvancedDisplay/res/values-pt-rPT/strings.xml
+++ b/AdvancedDisplay/res/values-pt-rPT/strings.xml
@@ -1,5 +1,4 @@
-
- Visualização avançada
-
- Ecrã
- Cores
-
- Cenário
- Definir o cenário mDNIe
-
-
-
+ Visualização avançada
+ Ecrã
+ Cores
+ Cenário
+ Definir o cenário mDNIe
+ Modo de acessibilidade
+ Definir o modo de acessibilidade do mDNIe
+ LineageOS (padrão)
+ Vídeo
+ Vídeo quente
+ Vídeo frio
+ Câmara
+ Navegação
+ Galeria
+ Chamada de vídeo
+ Navegador
+ eBook
+ E-mail
+ Televisão digital
+ Normal
+ Invertido
+ Daltónico
+ Cortina de ecrã
+ Cinzento
+ Cinzento invertido
diff --git a/AdvancedDisplay/res/values-rm/arrays.xml b/AdvancedDisplay/res/values-rm/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-rm/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-rm/strings.xml b/AdvancedDisplay/res/values-rm/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-rm/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ro/arrays.xml b/AdvancedDisplay/res/values-ro/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ro/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ro/strings.xml b/AdvancedDisplay/res/values-ro/strings.xml
index 243c807e4..fc6c8e928 100644
--- a/AdvancedDisplay/res/values-ro/strings.xml
+++ b/AdvancedDisplay/res/values-ro/strings.xml
@@ -1,5 +1,4 @@
-
- Setări avansate de afișare
-
- Ecran
- Culori
-
- Scenariu
- Setează scenariul mDNIe
- Mod accesibilitate
- Setaţi modul de accesibilitate mDNIe
-
- LineageOS (implicit)
- Video
- Video cald
- Video rece
- Cameră
- Navigare
- Galerie
- Apel video
- Browser
- eBook
- E-mail
- Televiziune digitală
-
- Normal
- Inversat
- Daltonist
- Cortină de ecran
- Gri
- Gri inversat
-
+ Setări avansate de afișare
+ Ecran
+ Culori
+ Scenariu
+ Setează scenariul mDNIe
+ Mod accesibilitate
+ Setaţi modul de accesibilitate mDNIe
+ LineageOS (implicit)
+ Video
+ Video cald
+ Video rece
+ Cameră
+ Navigare
+ Galerie
+ Apel video
+ Browser
+ eBook
+ E-mail
+ Televiziune digitală
+ Normal
+ Inversat
+ Daltonist
+ Cortină de ecran
+ Gri
+ Gri inversat
diff --git a/AdvancedDisplay/res/values-ru/arrays.xml b/AdvancedDisplay/res/values-ru/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ru/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ru/strings.xml b/AdvancedDisplay/res/values-ru/strings.xml
index 48ba613fa..986382f61 100644
--- a/AdvancedDisplay/res/values-ru/strings.xml
+++ b/AdvancedDisplay/res/values-ru/strings.xml
@@ -1,5 +1,4 @@
-
- Настройки экрана
-
- Экран
- Цвета
-
- Сценарий
- Установка сценария mDNIe
- Режим специальных возможностей
- Настроить режим специальных возможностей mDNIe
-
- LineageOS (по умолчанию)
- Фильм
- Фильм (теплые тона)
- Фильм (холодные тона)
- Камера
- Навигация
- Галерея
- Видеовызов
- Браузер
- Электронная книга
- Электронная почта
- Цифровое телевидение
-
- Нормальный
- Инвертированный
- Дальтонизм
- Затемнение экрана
- Серый
- Инверсия серого
-
+ Настройки экрана
+ Экран
+ Цвета
+ Сценарий
+ Установка сценария mDNIe
+ Режим специальных возможностей
+ Настроить режим специальных возможностей mDNIe
+ LineageOS (по умолчанию)
+ Фильм
+ Фильм (теплые тона)
+ Фильм (холодные тона)
+ Камера
+ Навигация
+ Галерея
+ Видеовызов
+ Браузер
+ Электронная книга
+ Электронная почта
+ Цифровое телевидение
+ Нормальный
+ Инвертированный
+ Дальтонизм
+ Затемнение экрана
+ Серый
+ Инверсия серого
diff --git a/AdvancedDisplay/res/values-sc-rIT/arrays.xml b/AdvancedDisplay/res/values-sc-rIT/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-sc-rIT/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-sc-rIT/strings.xml b/AdvancedDisplay/res/values-sc-rIT/strings.xml
index e88fea441..02e96a677 100644
--- a/AdvancedDisplay/res/values-sc-rIT/strings.xml
+++ b/AdvancedDisplay/res/values-sc-rIT/strings.xml
@@ -1,5 +1,4 @@
-
-
- Ischermu
- Colores
-
-
-
-
+ Ischermu
+ Colores
diff --git a/AdvancedDisplay/res/values-si/arrays.xml b/AdvancedDisplay/res/values-si/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-si/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-si/strings.xml b/AdvancedDisplay/res/values-si/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-si/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-sk/arrays.xml b/AdvancedDisplay/res/values-sk/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-sk/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-sk/strings.xml b/AdvancedDisplay/res/values-sk/strings.xml
index edd2ef07e..aab618bfa 100644
--- a/AdvancedDisplay/res/values-sk/strings.xml
+++ b/AdvancedDisplay/res/values-sk/strings.xml
@@ -1,5 +1,4 @@
-
- Pokročilé zobrazenie
-
- Obrazovka
- Farby
-
- Scenár
- Nastaviť scenár mDNIe
-
-
-
+ Pokročilé zobrazenie
+ Obrazovka
+ Farby
+ Scenár
+ Nastaviť scenár mDNIe
+ Režim uľahčenia ovládania
+ Nastavenie režimu uľahčenia ovládania mDNIe
+ LineageOS (predvolené)
+ Video
+ Video (teplé tóny)
+ Video (studené tóny)
+ Fotoaparát
+ Navigácia
+ Galéria
+ Videohovor
+ Prehliadač
+ Elektronická kniha
+ E-mail
+ Digitálna televízia
+ Normalny
+ Obrátený
+ Farbosleposť
+ Záclony v obraze
+ Šedý zákal
+ Obrátený šedý zákal
diff --git a/AdvancedDisplay/res/values-sl/arrays.xml b/AdvancedDisplay/res/values-sl/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-sl/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-sl/strings.xml b/AdvancedDisplay/res/values-sl/strings.xml
index 0551da695..3b54a0b14 100644
--- a/AdvancedDisplay/res/values-sl/strings.xml
+++ b/AdvancedDisplay/res/values-sl/strings.xml
@@ -1,5 +1,4 @@
-
- Napreden zaslon
-
- Zaslon
- Barve
-
- Scenarij
- Nastavite scenarij mDNIe
- Način dostopnosti
- Nastavite način dostopnosti mDNIe
-
- LineageOS (privzeto)
- Video
- Topel videoposnetek
- Hladen videoposnetek
- Fotoaparat
- Navigacija
- Galerija
- Video klic
- Brskalnik
- E-knjiga
- E-pošta
- Digitalna tv
-
- Običajno
- Obrnjeno
- Barvna slepota
- Zaslonska zavesa
- Sivina
- Obrnjena sivina
-
+ Napreden zaslon
+ Zaslon
+ Barve
+ Scenarij
+ Nastavite scenarij mDNIe
+ Način dostopnosti
+ Nastavite način dostopnosti mDNIe
+ LineageOS (privzeto)
+ Video
+ Topel videoposnetek
+ Hladen videoposnetek
+ Fotoaparat
+ Navigacija
+ Galerija
+ Video klic
+ Brskalnik
+ E-knjiga
+ E-pošta
+ Digitalna tv
+ Običajno
+ Obrnjeno
+ Barvna slepota
+ Zaslonska zavesa
+ Sivina
+ Obrnjena sivina
diff --git a/AdvancedDisplay/res/values-sq/arrays.xml b/AdvancedDisplay/res/values-sq/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-sq/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-sq/strings.xml b/AdvancedDisplay/res/values-sq/strings.xml
index 0d14f4f87..2b45be4f6 100644
--- a/AdvancedDisplay/res/values-sq/strings.xml
+++ b/AdvancedDisplay/res/values-sq/strings.xml
@@ -1,5 +1,4 @@
-
- Ekran i përparuar
-
- Ekrani
- Ngjyrat
-
- Skenari
- Vendos skenarin mDNIe
-
-
-
+ Ekran i përparuar
+ Ekrani
+ Ngjyrat
+ Skenari
+ Vendos skenarin mDNIe
+ Metoda e Qasshmerisë
+ Vendos mDNIe në metodë qasshmërie
+ LineageOS (E paracaktuar)
+ Video
+ Video e ngrohtë
+ Video e akullt
+ Kamera
+ Lundrimi
+ Galeria
+ Thirrje me video
+ Shfletuesi
+ eLibër
+ E-mail
+ Televizion dixhital
+ Normale
+ Përmbysur
+ Daltonik
+ Perde të ekranit
+ Gri
+ Gri e përmbysur
diff --git a/AdvancedDisplay/res/values-sr/arrays.xml b/AdvancedDisplay/res/values-sr/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-sr/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-sr/strings.xml b/AdvancedDisplay/res/values-sr/strings.xml
index 48d6c255e..5d26048d7 100644
--- a/AdvancedDisplay/res/values-sr/strings.xml
+++ b/AdvancedDisplay/res/values-sr/strings.xml
@@ -1,5 +1,4 @@
-
- Напредни екран
-
- Екран
- Боје
-
- Сценарио
- Постави mDNIe сценарио
-
-
-
+ Напредни екран
+ Екран
+ Боје
+ Сценарио
+ Постави mDNIe сценарио
+ Режим за приступачност
+ Поставите mDNIe у режим за приступачност
+ LineageOS (подразумевано)
+ Видео
+ Видео топле боје
+ Видео хладне боје
+ Камера
+ Навигација
+ Галерија
+ Видео позив
+ Прегледач
+ еКњига
+ Е-пошта
+ Дигитална телевизија
+ Нормално
+ Изврнуто
+ За далтонисте
+ Завеса екрана
+ Сиво
+ Изврнуто сиво
diff --git a/AdvancedDisplay/res/values-sv/arrays.xml b/AdvancedDisplay/res/values-sv/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-sv/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-sv/strings.xml b/AdvancedDisplay/res/values-sv/strings.xml
index cba3fc78f..53615090a 100644
--- a/AdvancedDisplay/res/values-sv/strings.xml
+++ b/AdvancedDisplay/res/values-sv/strings.xml
@@ -1,5 +1,4 @@
-
- Avancerad visning
-
- Skärm
- Färger
-
- Scenario
- Ställ in mDNIe-scenario
-
-
-
+ Avancerad visning
+ Skärm
+ Färger
+ Scenario
+ Ställ in mDNIe-scenario
diff --git a/AdvancedDisplay/res/values-sw/arrays.xml b/AdvancedDisplay/res/values-sw/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-sw/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-sw/strings.xml b/AdvancedDisplay/res/values-sw/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-sw/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ta/arrays.xml b/AdvancedDisplay/res/values-ta/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ta/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ta/strings.xml b/AdvancedDisplay/res/values-ta/strings.xml
index 94ae81978..120687fc6 100644
--- a/AdvancedDisplay/res/values-ta/strings.xml
+++ b/AdvancedDisplay/res/values-ta/strings.xml
@@ -1,5 +1,4 @@
-
- மேம்பட்ட காட்சி
-
- திரை
- நிறங்கள்
-
- சூழ்நிலை
- mDNIe சூழ்நிலையை அமை
-
-
-
+ மேம்பட்ட காட்சி
+ திரை
+ நிறங்கள்
+ சூழ்நிலை
+ mDNIe சூழ்நிலையை அமை
diff --git a/AdvancedDisplay/res/values-te/arrays.xml b/AdvancedDisplay/res/values-te/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-te/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-te/strings.xml b/AdvancedDisplay/res/values-te/strings.xml
index 72dcff96a..b3e0bb0e4 100644
--- a/AdvancedDisplay/res/values-te/strings.xml
+++ b/AdvancedDisplay/res/values-te/strings.xml
@@ -1,5 +1,4 @@
-
- అధునాతన ప్రదర్శన
-
- స్క్రీన్
- రంగులు
-
- దృశ్యవివరణ
- mDNIe దృశ్యవివరణను సెట్ చేయుము
-
-
-
+ అధునాతన ప్రదర్శన
+ స్క్రీన్
+ రంగులు
+ దృశ్యవివరణ
+ mDNIe దృశ్యవివరణను సెట్ చేయుము
diff --git a/AdvancedDisplay/res/values-th/arrays.xml b/AdvancedDisplay/res/values-th/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-th/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-th/strings.xml b/AdvancedDisplay/res/values-th/strings.xml
index f3e23daaa..a4caefbbf 100644
--- a/AdvancedDisplay/res/values-th/strings.xml
+++ b/AdvancedDisplay/res/values-th/strings.xml
@@ -1,5 +1,4 @@
-
- หน้าจอขั้นสูง
-
- หน้าจอ
- สี
-
- สถานการณ์
- กำหนดสถานการณ์ mDNIe
-
-
-
+ หน้าจอขั้นสูง
+ หน้าจอ
+ สี
+ สถานการณ์
+ กำหนดสถานการณ์ mDNIe
+ โหมดการเข้าถึง
+ ตั้งค่าโหมดการเข้าถึง mDNIe
+ LineageOS (เริ่มต้น)
+ วิดีโอ
+ วิดีโออบอุ่น
+ วิดีโอเย็น
+ กล้องถ่ายรูป
+ การนำทาง
+ แกลเลอรี
+ วิดีโอคอล
+ เบราว์เซอร์
+ หนังสืออีเล็กทรอนิกส์
+ อีเมล
+ โทรทัศน์ดิจิตอล
+ ปกติ
+ กลับสี
+ ตาบอดสี
+ จอม่าน
+ สีเทา
+ กลับสีเทา
diff --git a/AdvancedDisplay/res/values-tl/arrays.xml b/AdvancedDisplay/res/values-tl/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-tl/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-tl/strings.xml b/AdvancedDisplay/res/values-tl/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-tl/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-tr/arrays.xml b/AdvancedDisplay/res/values-tr/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-tr/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-tr/strings.xml b/AdvancedDisplay/res/values-tr/strings.xml
index 5753d2f31..16e9969be 100644
--- a/AdvancedDisplay/res/values-tr/strings.xml
+++ b/AdvancedDisplay/res/values-tr/strings.xml
@@ -1,5 +1,4 @@
-
- Gelişmiş ekran
-
- Ekran
- Renkler
-
- Ekran Modu
- mDNIe senaryosunu ayarla
- Erişilebilirlik modu
- mDNIe ile erişilebilirlik modunu ayarlayın
-
- LineageOS (varsayılan)
- Video
- Video sıcak
- Video soğuk
- Kamera
- Gezinme
- Galeri
- Görüntülü arama
- Tarayıcı
- E-kitap
- E-posta
- Dijital televizyon
-
- Normal
- Ters çevrilmiş
- Renk körü
- Ekran perdesi
- Gri
- Ters gri
-
+ Gelişmiş ekran
+ Ekran
+ Renkler
+ Ekran Modu
+ mDNIe ekran modunu ayarla
+ Erişilebilirlik modu
+ mDNIe ile erişilebilirlik modunu ayarlayın
+ LineageOS (varsayılan)
+ Video
+ Video sıcak
+ Video soğuk
+ Kamera
+ Gezinme
+ Galeri
+ Görüntülü arama
+ Tarayıcı
+ E-kitap
+ E-posta
+ Dijital televizyon
+ Normal
+ Ters çevrilmiş
+ Renk körü
+ Ekran perdesi
+ Gri
+ Ters gri
diff --git a/AdvancedDisplay/res/values-ug/arrays.xml b/AdvancedDisplay/res/values-ug/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ug/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ug/strings.xml b/AdvancedDisplay/res/values-ug/strings.xml
index 937f14059..c247db056 100644
--- a/AdvancedDisplay/res/values-ug/strings.xml
+++ b/AdvancedDisplay/res/values-ug/strings.xml
@@ -1,5 +1,4 @@
-
- ئالىي ئېكران
-
- ئېكران
- رەڭلەر
-
- كۆرۈنۈش
- mDNIe لايىھە تەڭشىكى
-
-
-
+ ئالىي ئېكران
+ ئېكران
+ رەڭلەر
+ كۆرۈنۈش
+ mDNIe لايىھە تەڭشىكى
diff --git a/AdvancedDisplay/res/values-uk/arrays.xml b/AdvancedDisplay/res/values-uk/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-uk/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-uk/strings.xml b/AdvancedDisplay/res/values-uk/strings.xml
index 56d3b7f9e..01976c608 100644
--- a/AdvancedDisplay/res/values-uk/strings.xml
+++ b/AdvancedDisplay/res/values-uk/strings.xml
@@ -1,5 +1,4 @@
-
- Додаткові налаштування екрану
-
- Екран
- Кольори
-
- Сценарій
- Встановити сценарій mDNIe
-
-
-
+ Додаткові налаштування екрану
+ Екран
+ Кольори
+ Сценарій
+ Встановити сценарій mDNIe
diff --git a/AdvancedDisplay/res/values-ur/arrays.xml b/AdvancedDisplay/res/values-ur/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-ur/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-ur/strings.xml b/AdvancedDisplay/res/values-ur/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-ur/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-uz/arrays.xml b/AdvancedDisplay/res/values-uz/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-uz/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-uz/strings.xml b/AdvancedDisplay/res/values-uz/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-uz/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-vec/arrays.xml b/AdvancedDisplay/res/values-vec/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-vec/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-vec/strings.xml b/AdvancedDisplay/res/values-vec/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-vec/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/AdvancedDisplay/res/values-vi/arrays.xml b/AdvancedDisplay/res/values-vi/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-vi/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-vi/strings.xml b/AdvancedDisplay/res/values-vi/strings.xml
index 2a4845e9d..5a20fb760 100644
--- a/AdvancedDisplay/res/values-vi/strings.xml
+++ b/AdvancedDisplay/res/values-vi/strings.xml
@@ -1,5 +1,4 @@
-
- Hiển thị nâng cao
-
- Màn hình
- Màu
-
- Tình huống
- Đặt tình huống cho mDNIe
- Chế độ trợ năng
- Cài đặt chế độ trợ năng mDNIe
-
- LineageOS (mặc định)
- Video
- Video ấm
- Video lạnh
- Máy ảnh
- Điều hướng
- Thư viện
- Cuộc gọi video
- Trình duyệt
- sách điện tử
- E-mail
- Truyền hình kỹ thuật số
-
- Bình thường
- Đảo ngược
- Mù màu
- Bảo vệ màn hình
- Xám
- Đảo ngược màu xám
-
+ Hiển thị nâng cao
+ Màn hình
+ Màu
+ Tình huống
+ Đặt tình huống cho mDNIe
+ Chế độ trợ năng
+ Cài đặt chế độ trợ năng mDNIe
+ LineageOS (mặc định)
+ Video
+ Video ấm
+ Video lạnh
+ Máy ảnh
+ Điều hướng
+ Thư viện
+ Cuộc gọi video
+ Trình duyệt
+ sách điện tử
+ E-mail
+ Truyền hình kỹ thuật số
+ Bình thường
+ Đảo ngược
+ Mù màu
+ Bảo vệ màn hình
+ Xám
+ Đảo ngược màu xám
diff --git a/AdvancedDisplay/res/values-zh-rCN/arrays.xml b/AdvancedDisplay/res/values-zh-rCN/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-zh-rCN/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-zh-rCN/strings.xml b/AdvancedDisplay/res/values-zh-rCN/strings.xml
index 67644564e..5f54d1cd9 100644
--- a/AdvancedDisplay/res/values-zh-rCN/strings.xml
+++ b/AdvancedDisplay/res/values-zh-rCN/strings.xml
@@ -1,5 +1,4 @@
-
- 高级显示
-
- 屏幕
- 颜色
-
- 场景
- 设置 mDNIe 场景
- 无障碍模式
- 设置 mDNIe 无障碍模式
-
- LineageOS (默认)
- 视频
- 视频模式 (温)
- 视频模式 (冷)
- 相机
- 导航
- 图库
- 视频通话
- 浏览器
- 电子书
- 电子邮件
- 数字电视
-
- 普通
- 反色
- 色盲模式
- 屏幕遮蔽
- 灰度
- 反色灰度
-
+ 高级显示
+ 屏幕
+ 颜色
+ 场景
+ 设置 mDNIe 场景
+ 无障碍模式
+ 设置 mDNIe 无障碍模式
+ LineageOS (默认)
+ 视频
+ 视频模式 (温)
+ 视频模式 (冷)
+ 相机
+ 导航
+ 图库
+ 视频通话
+ 浏览器
+ 电子书
+ 电子邮件
+ 数字电视
+ 普通
+ 反色
+ 色盲模式
+ 屏幕遮罩
+ 灰度
+ 反色灰度
diff --git a/AdvancedDisplay/res/values-zh-rHK/arrays.xml b/AdvancedDisplay/res/values-zh-rHK/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-zh-rHK/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-zh-rHK/strings.xml b/AdvancedDisplay/res/values-zh-rHK/strings.xml
index 63ef09bcb..737e30536 100644
--- a/AdvancedDisplay/res/values-zh-rHK/strings.xml
+++ b/AdvancedDisplay/res/values-zh-rHK/strings.xml
@@ -1,5 +1,4 @@
-
-
- 螢幕
-
- 場景
- 設定 mDNIe 場景
-
-
-
+ 螢幕
+ 場景
+ 設定 mDNIe 場景
diff --git a/AdvancedDisplay/res/values-zh-rTW/arrays.xml b/AdvancedDisplay/res/values-zh-rTW/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-zh-rTW/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-zh-rTW/strings.xml b/AdvancedDisplay/res/values-zh-rTW/strings.xml
index 9a83ded30..4cd8b5b5a 100644
--- a/AdvancedDisplay/res/values-zh-rTW/strings.xml
+++ b/AdvancedDisplay/res/values-zh-rTW/strings.xml
@@ -1,5 +1,4 @@
-
- 進階顯示
-
- 螢幕
- 色彩
-
- 場景
- 設定 mDNIe 場景
- 無障礙模式
- 設定 mDNIe 無障礙模式
-
- LineageOS (預設)
- 視訊
- 影片 (暖色)
- 影片 (冷色)
- 相機
- 導覽
- 圖片庫
- 視訊通話
- 瀏覽器
- 電子書
- 電子郵件
- 數位電視
-
- 一般
- 負片
- 色盲模式
- 黑屏模式
- 灰色
- 負片灰階
-
+ 進階顯示
+ 螢幕
+ 色彩
+ 場景
+ 設定 mDNIe 場景
+ 無障礙模式
+ 設定 mDNIe 無障礙模式
+ LineageOS (預設)
+ 視訊
+ 影片 (暖色)
+ 影片 (冷色)
+ 相機
+ 導覽
+ 圖片庫
+ 視訊通話
+ 瀏覽器
+ 電子書
+ 電子郵件
+ 數位電視
+ 一般
+ 負片
+ 色盲模式
+ 黑屏模式
+ 灰色
+ 負片灰階
diff --git a/AdvancedDisplay/res/values-zu/arrays.xml b/AdvancedDisplay/res/values-zu/arrays.xml
deleted file mode 100644
index f01db504b..000000000
--- a/AdvancedDisplay/res/values-zu/arrays.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/AdvancedDisplay/res/values-zu/strings.xml b/AdvancedDisplay/res/values-zu/strings.xml
deleted file mode 100644
index c155d8901..000000000
--- a/AdvancedDisplay/res/values-zu/strings.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/audio/Android.mk b/audio/Android.mk
index f369f7cd9..64ada4852 100644
--- a/audio/Android.mk
+++ b/audio/Android.mk
@@ -51,7 +51,7 @@ LOCAL_C_INCLUDES += \
$(call include-path-for, audio-effects)
LOCAL_CFLAGS := -Werror -Wall
-#LOCAL_CFLAGS += -DPREPROCESSING_ENABLED
+LOCAL_CFLAGS += -DPREPROCESSING_ENABLED
LOCAL_MODULE := audio.primary.$(TARGET_BOOTLOADER_BOARD_NAME)
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index f97758cfe..712d3f801 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -72,7 +72,7 @@ static struct pcm_device_profile pcm_device_playback = {
.id = SOUND_PLAYBACK_DEVICE,
.type = PCM_PLAYBACK,
.devices = AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|
- AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE,
+ AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_ALL_SCO,
};
static struct pcm_device_profile pcm_device_deep_buffer = {
@@ -90,7 +90,7 @@ static struct pcm_device_profile pcm_device_deep_buffer = {
.id = SOUND_DEEP_BUFFER_DEVICE,
.type = PCM_PLAYBACK,
.devices = AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|
- AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE,
+ AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_ALL_SCO,
};
static struct pcm_device_profile pcm_device_capture = {
@@ -108,7 +108,7 @@ static struct pcm_device_profile pcm_device_capture = {
.card = SOUND_CARD,
.id = SOUND_CAPTURE_DEVICE,
.type = PCM_CAPTURE,
- .devices = AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC,
+ .devices = AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET,
};
static struct pcm_device_profile pcm_device_capture_low_latency = {
@@ -126,53 +126,13 @@ static struct pcm_device_profile pcm_device_capture_low_latency = {
.card = SOUND_CARD,
.id = SOUND_CAPTURE_DEVICE,
.type = PCM_CAPTURE_LOW_LATENCY,
- .devices = AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC,
-};
-
-static struct pcm_device_profile pcm_device_playback_sco = {
- .config = {
- .channels = SCO_DEFAULT_CHANNEL_COUNT,
- .rate = SCO_DEFAULT_SAMPLING_RATE,
- .period_size = SCO_PERIOD_SIZE,
- .period_count = SCO_PERIOD_COUNT,
- .format = PCM_FORMAT_S16_LE,
- .start_threshold = SCO_START_THRESHOLD,
- .stop_threshold = SCO_STOP_THRESHOLD,
- .silence_threshold = 0,
- .avail_min = SCO_AVAILABLE_MIN,
- },
- .card = SOUND_CARD,
- .id = SOUND_PLAYBACK_SCO_DEVICE,
- .type = PCM_PLAYBACK,
- .devices =
- AUDIO_DEVICE_OUT_BLUETOOTH_SCO|AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET|
- AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT,
-};
-
-static struct pcm_device_profile pcm_device_capture_sco = {
- .config = {
- .channels = SCO_DEFAULT_CHANNEL_COUNT,
- .rate = SCO_DEFAULT_SAMPLING_RATE,
- .period_size = SCO_PERIOD_SIZE,
- .period_count = SCO_PERIOD_COUNT,
- .format = PCM_FORMAT_S16_LE,
- .start_threshold = CAPTURE_START_THRESHOLD,
- .stop_threshold = 0,
- .silence_threshold = 0,
- .avail_min = 0,
- },
- .card = SOUND_CARD,
- .id = SOUND_CAPTURE_SCO_DEVICE,
- .type = PCM_CAPTURE,
- .devices = AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET,
+ .devices = AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET,
};
static struct pcm_device_profile * const pcm_devices[] = {
&pcm_device_playback,
&pcm_device_capture,
&pcm_device_capture_low_latency,
- &pcm_device_playback_sco,
- &pcm_device_capture_sco,
NULL,
};
@@ -758,16 +718,11 @@ static snd_device_t get_input_snd_device(struct audio_device *adev, audio_device
/* BT SCO */
if (out_device & AUDIO_DEVICE_OUT_ALL_SCO) {
- snd_device = SND_DEVICE_IN_VOICE_MIC;
- if (out_device & AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET) {
- if (voice_session_uses_wideband(adev->voice.session)) {
+ if (voice_session_uses_wideband(adev->voice.session)) {
snd_device = SND_DEVICE_IN_VOICE_BT_SCO_MIC_WB;
- } else {
+ } else {
snd_device = SND_DEVICE_IN_VOICE_BT_SCO_MIC;
- }
- } else if (voice_session_uses_twomic(adev->voice.session)) {
- snd_device = SND_DEVICE_IN_VOICE_EARPIECE_MIC;
}
}
} else if (source == AUDIO_SOURCE_CAMCORDER) {
@@ -985,6 +940,67 @@ int disable_snd_device(struct audio_device *adev,
return 0;
}
+static void check_and_route_usecases(struct audio_device *adev,
+ struct audio_usecase *uc_info,
+ usecase_type_t type,
+ snd_device_t snd_device)
+{
+ struct listnode *node;
+ struct audio_usecase *usecase;
+ bool switch_device[AUDIO_USECASE_MAX], need_switch = false;
+ snd_device_t usecase_snd_device = SND_DEVICE_NONE;
+ int i;
+
+ /*
+ * This function is to make sure that all the usecases that are active on
+ * the hardware codec backend are always routed to any one device that is
+ * handled by the hardware codec.
+ * For example, if low-latency and deep-buffer usecases are currently active
+ * on speaker and out_set_parameters(headset) is received on low-latency
+ * output, then we have to make sure deep-buffer is also switched to headset or
+ * if audio-record and voice-call usecases are currently
+ * active on speaker(rx) and speaker-mic (tx) and out_set_parameters(earpiece)
+ * is received for voice call then we have to make sure that audio-record
+ * usecase is also switched to earpiece i.e.
+ * because of the limitation that both the devices cannot be enabled
+ * at the same time as they share the same backend.
+ */
+ /* Disable all the usecases on the shared backend other than the
+ specified usecase */
+ for (i = 0; i < AUDIO_USECASE_MAX; i++)
+ switch_device[i] = false;
+
+ list_for_each(node, &adev->usecase_list) {
+ usecase = node_to_item(node, struct audio_usecase, adev_list_node);
+ if (usecase->type != type || usecase == uc_info)
+ continue;
+ usecase_snd_device = (type == PCM_PLAYBACK) ? usecase->out_snd_device :
+ usecase->in_snd_device;
+ if (usecase_snd_device != snd_device) {
+ ALOGV("%s: Usecase (%s) is active on (%s) - disabling ..",
+ __func__, use_case_table[usecase->id],
+ get_snd_device_name(usecase_snd_device));
+ switch_device[usecase->id] = true;
+ need_switch = true;
+ }
+ }
+ if (need_switch) {
+ list_for_each(node, &adev->usecase_list) {
+ usecase = node_to_item(node, struct audio_usecase, adev_list_node);
+ usecase_snd_device = (type == PCM_PLAYBACK) ? usecase->out_snd_device :
+ usecase->in_snd_device;
+ if (switch_device[usecase->id]) {
+ disable_snd_device(adev, usecase, usecase_snd_device);
+ enable_snd_device(adev, usecase, snd_device);
+ if (type == PCM_PLAYBACK)
+ usecase->out_snd_device = snd_device;
+ else
+ usecase->in_snd_device = snd_device;
+ }
+ }
+ }
+}
+
static int select_devices(struct audio_device *adev,
audio_usecase_t uc_id)
{
@@ -1021,11 +1037,8 @@ static int select_devices(struct audio_device *adev,
if (vc_usecase == NULL) {
ALOGE("%s: Could not find the voice call usecase", __func__);
} else {
- ALOGV("%s: in call, reusing devices (rx: %s, tx: %s)", __func__,
- get_snd_device_display_name(vc_usecase->out_snd_device),
- get_snd_device_display_name(vc_usecase->in_snd_device));
- usecase->devices = vc_usecase->devices;
- return 0;
+ in_snd_device = vc_usecase->in_snd_device;
+ out_snd_device = vc_usecase->out_snd_device;
}
}
@@ -1084,10 +1097,12 @@ static int select_devices(struct audio_device *adev,
set_voice_session_audio_path(adev->voice.session);
}
+ check_and_route_usecases(adev, usecase, PCM_PLAYBACK, out_snd_device);
enable_snd_device(adev, usecase, out_snd_device);
}
if (in_snd_device != SND_DEVICE_NONE) {
+ check_and_route_usecases(adev, usecase, PCM_CAPTURE, in_snd_device);
enable_snd_device(adev, usecase, in_snd_device);
}
@@ -1106,46 +1121,6 @@ static ssize_t read_frames(struct stream_in *in, void *buffer, ssize_t frames);
static int do_in_standby_l(struct stream_in *in);
#ifdef PREPROCESSING_ENABLED
-static void get_capture_reference_delay(struct stream_in *in,
- size_t frames __unused,
- struct echo_reference_buffer *buffer)
-{
- ALOGVV("%s: enter:)", __func__);
-
- /* read frames available in kernel driver buffer */
- unsigned int kernel_frames;
- struct timespec tstamp;
- long buf_delay;
- long kernel_delay;
- long delay_ns;
- struct pcm_device *ref_device;
- long rsmp_delay = 0;
-
- ref_device = node_to_item(list_tail(&in->pcm_dev_list),
- struct pcm_device, stream_list_node);
-
- if (pcm_get_htimestamp(ref_device->pcm, &kernel_frames, &tstamp) < 0) {
- buffer->time_stamp.tv_sec = 0;
- buffer->time_stamp.tv_nsec = 0;
- buffer->delay_ns = 0;
- ALOGW("read get_capture_reference_delay(): pcm_htimestamp error");
- return;
- }
-
- /* adjust render time stamp with delay added by current driver buffer.
- * Add the duration of current frame as we want the render time of the last
- * sample being written. */
-
- kernel_delay = (long)(((int64_t)kernel_frames * 1000000000) / ref_device->pcm_profile->config.rate);
-
- buffer->time_stamp = tstamp;
- buffer->delay_ns = kernel_delay;
-
- ALOGVV("get_capture_reference_delay_time_stamp Secs: [%10ld], nSecs: [%9ld], kernel_frames: [%5d],"
- " delay_ns: [%d] , frames:[%zd]",
- buffer->time_stamp.tv_sec , buffer->time_stamp.tv_nsec, kernel_frames, buffer->delay_ns, frames);
-}
-
static void get_capture_delay(struct stream_in *in,
size_t frames __unused,
struct echo_reference_buffer *buffer)
@@ -1206,6 +1181,11 @@ static int32_t update_echo_reference(struct stream_in *in, size_t frames)
b.delay_ns = 0;
struct pcm_device *pcm_device;
+ if (list_empty(&in->pcm_dev_list)) {
+ ALOGW("%s: pcm device list empty", __func__);
+ return b.delay_ns;
+ }
+
pcm_device = node_to_item(list_head(&in->pcm_dev_list),
struct pcm_device, stream_list_node);
@@ -1242,12 +1222,13 @@ static int set_preprocessor_param(effect_handle_t handle,
effect_param_t *param)
{
uint32_t size = sizeof(int);
- uint32_t psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) +
- param->vsize;
+ uint32_t bufsize = sizeof(effect_param_t) +
+ ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) +
+ param->vsize;
int status = (*handle)->command(handle,
EFFECT_CMD_SET_PARAM,
- sizeof (effect_param_t) + psize,
+ bufsize,
param,
&size,
¶m->status);
@@ -1260,19 +1241,27 @@ static int set_preprocessor_param(effect_handle_t handle,
static int set_preprocessor_echo_delay(effect_handle_t handle,
int32_t delay_us)
{
- struct {
- effect_param_t param;
- uint32_t data_0;
- int32_t data_1;
- } buf;
- memset(&buf, 0, sizeof(buf));
+ const uint32_t param_size = sizeof(uint32_t);
+ const uint32_t value_size = sizeof(uint32_t);
+
+ const uint32_t param_padded_size =
+ ((param_size - 1) / sizeof(int) + 1) * sizeof(int);
- buf.param.psize = sizeof(uint32_t);
- buf.param.vsize = sizeof(uint32_t);
- buf.data_0 = AEC_PARAM_ECHO_DELAY;
- buf.data_1 = delay_us;
+ const uint32_t bufsize = sizeof(effect_param_t) +
+ param_padded_size + value_size;
- return set_preprocessor_param(handle, &buf.param);
+ uint8_t buf[bufsize];
+ memset(&buf, 0, bufsize);
+
+ effect_param_t *effect_param = (effect_param_t *)&buf;
+
+ effect_param->psize = param_size;
+ effect_param->vsize = value_size;
+
+ *(uint32_t *)&buf[sizeof(effect_param_t)] = AEC_PARAM_ECHO_DELAY;
+ *(int32_t *)&buf[sizeof(effect_param_t) + param_padded_size] = delay_us;
+
+ return set_preprocessor_param(handle, effect_param);
}
static void push_echo_reference(struct stream_in *in, size_t frames)
@@ -1282,7 +1271,6 @@ static void push_echo_reference(struct stream_in *in, size_t frames)
* in->ref_buf_frames is updated with frames available in in->ref_buf */
int32_t delay_us = update_echo_reference(in, frames)/1000;
- int32_t size_in_bytes = 0;
int i;
audio_buffer_t buf;
@@ -1375,7 +1363,6 @@ static int get_playback_delay(struct stream_out *out,
{
unsigned int kernel_frames;
int status;
- int primary_pcm = 0;
struct pcm_device *pcm_device;
pcm_device = node_to_item(list_head(&out->pcm_dev_list),
@@ -2121,11 +2108,6 @@ static int start_input_stream(struct stream_in *in)
#endif
- if (in->dev->voice.in_call) {
- ALOGV("%s: in_call, not handling PCMs", __func__);
- goto skip_pcm_handling;
- }
-
/* Open the PCM device.
* The HW is limited to support only the default pcm_profile settings.
* As such a change in aux_channels will not have an effect.
@@ -2146,7 +2128,6 @@ static int start_input_stream(struct stream_in *in)
goto error_open;
}
-skip_pcm_handling:
/* force read and proc buffer reallocation in case of frame size or
* channel count change */
in->proc_buf_frames = 0;
@@ -2247,14 +2228,6 @@ static int out_close_pcm_devices(struct stream_out *out)
pcm_close(pcm_device->pcm);
pcm_device->pcm = NULL;
}
- if (pcm_device->resampler) {
- release_resampler(pcm_device->resampler);
- pcm_device->resampler = NULL;
- }
- if (pcm_device->res_buffer) {
- free(pcm_device->res_buffer);
- pcm_device->res_buffer = NULL;
- }
}
return 0;
@@ -2276,11 +2249,6 @@ static int out_open_pcm_devices(struct stream_out *out)
if (out->flags & AUDIO_OUTPUT_FLAG_DEEP_BUFFER)
pcm_device_id = pcm_device_deep_buffer.id;
- if (out->dev->voice.in_call) {
- ALOGV("%s: in_call, not opening PCMs", __func__);
- return ret;
- }
-
ALOGV("%s: Opening PCM device card_id(%d) device_id(%d)",
__func__, pcm_device_card, pcm_device_id);
@@ -2293,24 +2261,6 @@ static int out_open_pcm_devices(struct stream_out *out)
ret = -EIO;
goto error_open;
}
- /*
- * If the stream rate differs from the PCM rate, we need to
- * create a resampler.
- */
- if (out->sample_rate != pcm_device->pcm_profile->config.rate) {
- ALOGV("%s: create_resampler(), pcm_device_card(%d), pcm_device_id(%d), \
- out_rate(%d), device_rate(%d)",__func__,
- pcm_device_card, pcm_device_id,
- out->sample_rate, pcm_device->pcm_profile->config.rate);
- ret = create_resampler(out->sample_rate,
- pcm_device->pcm_profile->config.rate,
- audio_channel_count_from_out_mask(out->channel_mask),
- RESAMPLER_QUALITY_DEFAULT,
- NULL,
- &pcm_device->resampler);
- pcm_device->res_byte_count = 0;
- pcm_device->res_buffer = NULL;
- }
}
return ret;
@@ -2707,11 +2657,6 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
}
#endif
if (val != SND_DEVICE_NONE) {
- bool bt_sco_active = false;
-
- if (out->devices & AUDIO_DEVICE_OUT_ALL_SCO) {
- bt_sco_active = true;
- }
out->devices = val;
if (!out->standby) {
@@ -2738,17 +2683,23 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
}
}
+ /* Turn on bluetooth sco if needed */
+ if ((adev->mode == AUDIO_MODE_IN_COMMUNICATION || adev->mode == AUDIO_MODE_IN_CALL) &&
+ (out->devices & AUDIO_DEVICE_OUT_ALL_SCO) && !adev->bt_sco_active) {
+ adev->bt_sco_active = true;
+ start_voice_session_bt_sco(adev);
+ }
+ else if (!(out->devices & AUDIO_DEVICE_OUT_ALL_SCO) && adev->bt_sco_active) {
+ adev->bt_sco_active = false;
+ stop_voice_session_bt_sco(adev);
+ }
+
if ((adev->mode == AUDIO_MODE_IN_CALL) && !adev->voice.in_call &&
(out == adev->primary_output)) {
start_voice_call(adev);
} else if ((adev->mode == AUDIO_MODE_IN_CALL) &&
adev->voice.in_call &&
(out == adev->primary_output)) {
- /* Turn on bluetooth if needed */
- if ((out->devices & AUDIO_DEVICE_OUT_ALL_SCO) && !bt_sco_active) {
- select_devices(adev, USECASE_VOICE_CALL);
- start_voice_session_bt_sco(adev->voice.session);
- } else {
/*
* When we select different devices we need to restart the
* voice call. The modem closes the stream on its end and
@@ -2756,7 +2707,6 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
*/
stop_voice_call(adev);
start_voice_call(adev);
- }
}
}
@@ -2889,9 +2839,8 @@ static ssize_t out_write(struct audio_stream_out *stream, const void *buffer,
ssize_t ret = 0;
struct pcm_device *pcm_device;
struct listnode *node;
- size_t frame_size = audio_stream_out_frame_size(stream);
- size_t frames_wr = 0, frames_rq = 0;
#ifdef PREPROCESSING_ENABLED
+ size_t frame_size = audio_stream_out_frame_size(stream);
size_t in_frames = bytes / frame_size;
size_t out_frames = in_frames;
struct stream_in *in = NULL;
@@ -2987,24 +2936,6 @@ static ssize_t out_write(struct audio_stream_out *stream, const void *buffer,
memset((void *)buffer, 0, bytes);
list_for_each(node, &out->pcm_dev_list) {
pcm_device = node_to_item(node, struct pcm_device, stream_list_node);
- if (pcm_device->resampler) {
- if (bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size
- > pcm_device->res_byte_count) {
- pcm_device->res_byte_count =
- bytes * pcm_device->pcm_profile->config.rate / out->sample_rate + frame_size;
- pcm_device->res_buffer =
- realloc(pcm_device->res_buffer, pcm_device->res_byte_count);
- ALOGV("%s: resampler res_byte_count = %zu", __func__,
- pcm_device->res_byte_count);
- }
- frames_rq = bytes / frame_size;
- frames_wr = pcm_device->res_byte_count / frame_size;
- ALOGVV("%s: resampler request frames = %d frame_size = %d",
- __func__, frames_rq, frame_size);
- pcm_device->resampler->resample_from_input(pcm_device->resampler,
- (int16_t *)buffer, &frames_rq, (int16_t *)pcm_device->res_buffer, &frames_wr);
- ALOGVV("%s: resampler output frames_= %d", __func__, frames_wr);
- }
if (pcm_device->pcm) {
#ifdef PREPROCESSING_ENABLED
if (out->echo_reference != NULL && pcm_device->pcm_profile->devices != SND_DEVICE_OUT_SPEAKER) {
@@ -3017,12 +2948,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void *buffer,
}
#endif
ALOGVV("%s: writing buffer (%d bytes) to pcm device", __func__, bytes);
- if (pcm_device->resampler && pcm_device->res_buffer)
- pcm_device->status =
- pcm_write(pcm_device->pcm, (void *)pcm_device->res_buffer,
- frames_wr * frame_size);
- else
- pcm_device->status = pcm_write(pcm_device->pcm, (void *)buffer, bytes);
+ pcm_device->status = pcm_write(pcm_device->pcm, (void *)buffer, bytes);
if (pcm_device->status != 0)
ret = pcm_device->status;
}
@@ -3126,12 +3052,6 @@ static int out_get_presentation_position(const struct audio_stream_out *stream,
if (out->usecase == USECASE_AUDIO_PLAYBACK_OFFLOAD) {
ret = out_get_presentation_offload_position(out, frames, timestamp);
} else {
- if (out->dev->voice.in_call) {
- ALOGVV("%s: in_call, do not handle PCMs", __func__);
- ret = 0;
- goto done;
- }
-
/* FIXME: which device to read from? */
if (!list_empty(&out->pcm_dev_list)) {
struct pcm_device *pcm_device;
@@ -3570,6 +3490,11 @@ static int in_get_capture_position(const struct audio_stream_in *stream,
struct pcm_device *pcm_device;
int ret = -ENOSYS;
+ if (list_empty(&in->pcm_dev_list)) {
+ ALOGW("%s: pcm device list empty", __func__);
+ return -ENODEV;
+ }
+
pcm_device = node_to_item(list_head(&in->pcm_dev_list),
struct pcm_device, stream_list_node);
@@ -4330,6 +4255,8 @@ static int adev_open(const hw_module_t *module, const char *name,
adev->voice.in_call = false;
adev->voice.bluetooth_wb = false;
+ adev->bt_sco_active = false;
+
/* adev->cur_hdmi_channels = 0; by calloc() */
adev->snd_dev_ref_cnt = calloc(SND_DEVICE_MAX, sizeof(int));
if (adev->snd_dev_ref_cnt == NULL) {
diff --git a/audio/audio_hw.h b/audio/audio_hw.h
index 4677f298f..7143d555b 100644
--- a/audio/audio_hw.h
+++ b/audio/audio_hw.h
@@ -240,10 +240,6 @@ struct pcm_device {
struct pcm_device_profile* pcm_profile;
struct pcm* pcm;
int status;
- /* TODO: remove resampler if possible when AudioFlinger supports downsampling from 48 to 8 */
- struct resampler_itfe* resampler;
- int16_t* res_buffer;
- size_t res_byte_count;
};
struct stream_out {
@@ -372,7 +368,7 @@ struct voice_data {
float volume;
bool bluetooth_nrec;
bool bluetooth_wb;
- void *session;
+ struct voice_session *session;
};
struct audio_device {
@@ -385,6 +381,10 @@ struct audio_device {
bool mic_mute;
bool screen_off;
+ bool bt_sco_active;
+ struct pcm *pcm_sco_rx;
+ struct pcm *pcm_sco_tx;
+
struct voice_data voice;
int* snd_dev_ref_cnt;
diff --git a/audio/compress_offload.c b/audio/compress_offload.c
index 5ce865eb1..fccc7db49 100644
--- a/audio/compress_offload.c
+++ b/audio/compress_offload.c
@@ -291,12 +291,6 @@ ssize_t out_write_offload(struct audio_stream_out *stream, const void *buffer,
out->offload_state = OFFLOAD_STATE_PLAYING;
}
pthread_mutex_unlock(&out->lock);
-#ifdef PREPROCESSING_ENABLED
- if (in) {
- /* This mutex was left locked iff in != NULL */
- pthread_mutex_unlock(&adev->lock_inputs);
- }
-#endif
return ret;
}
diff --git a/audio/voice.c b/audio/voice.c
index a4b654256..6d5e61303 100644
--- a/audio/voice.c
+++ b/audio/voice.c
@@ -38,17 +38,6 @@
#include "audience.h"
#endif
-/**
- * container_of - cast a member of a structure out to the containing structure
- * @ptr: the pointer to the member.
- * @type: the type of the container struct this is embedded in.
- * @member: the name of the member within the struct.
- *
- */
-#define container_of(ptr, type, member) ({ \
- void *__mptr = (void *)(ptr); \
- ((type *)((uintptr_t)__mptr - offsetof(type, member))); })
-
static struct pcm_config pcm_config_voicecall = {
.channels = 2,
.rate = 8000,
@@ -73,10 +62,9 @@ struct pcm_config pcm_config_voice_sco = {
.format = PCM_FORMAT_S16_LE,
};
-/* SCO WB and NB uses 8kHz for now, 16kHz it's on TO DO*/
struct pcm_config pcm_config_voice_sco_wb = {
.channels = 1,
- .rate = SCO_DEFAULT_SAMPLING_RATE,
+ .rate = SCO_WB_SAMPLING_RATE,
.period_size = SCO_PERIOD_SIZE,
.period_count = SCO_PERIOD_COUNT,
.format = PCM_FORMAT_S16_LE,
@@ -151,36 +139,39 @@ void prepare_voice_session(struct voice_session *session,
* This must be called with the hw device mutex locked, OK to hold other
* mutexes.
*/
-static void stop_voice_session_bt_sco(struct voice_session *session) {
+void stop_voice_session_bt_sco(struct audio_device *adev) {
ALOGV("%s: Closing SCO PCMs", __func__);
- if (session->pcm_sco_rx != NULL) {
- pcm_stop(session->pcm_sco_rx);
- pcm_close(session->pcm_sco_rx);
- session->pcm_sco_rx = NULL;
+ if (adev->pcm_sco_rx != NULL) {
+ pcm_stop(adev->pcm_sco_rx);
+ pcm_close(adev->pcm_sco_rx);
+ adev->pcm_sco_rx = NULL;
}
- if (session->pcm_sco_tx != NULL) {
- pcm_stop(session->pcm_sco_tx);
- pcm_close(session->pcm_sco_tx);
- session->pcm_sco_tx = NULL;
+ if (adev->pcm_sco_tx != NULL) {
+ pcm_stop(adev->pcm_sco_tx);
+ pcm_close(adev->pcm_sco_tx);
+ adev->pcm_sco_tx = NULL;
}
+
+ /* audio codecs like wm5201 need open modem pcm while using bt sco */
+ if (adev->mode != AUDIO_MODE_IN_CALL)
+ stop_voice_session(adev->voice.session);
}
/* must be called with the hw device mutex locked, OK to hold other mutexes */
-void start_voice_session_bt_sco(struct voice_session *session)
+void start_voice_session_bt_sco(struct audio_device *adev)
{
struct pcm_config *voice_sco_config;
- struct voice_data *vdata = container_of(session, struct voice_data, session);
- if (session->pcm_sco_rx != NULL || session->pcm_sco_tx != NULL) {
+ if (adev->pcm_sco_rx != NULL || adev->pcm_sco_tx != NULL) {
ALOGW("%s: SCO PCMs already open!\n", __func__);
return;
}
ALOGV("%s: Opening SCO PCMs", __func__);
- if (vdata->bluetooth_wb) {
+ if (adev->voice.bluetooth_wb) {
ALOGV("%s: pcm_config wideband", __func__);
voice_sco_config = &pcm_config_voice_sco_wb;
} else {
@@ -188,37 +179,41 @@ void start_voice_session_bt_sco(struct voice_session *session)
voice_sco_config = &pcm_config_voice_sco;
}
- session->pcm_sco_rx = pcm_open(SOUND_CARD,
+ adev->pcm_sco_rx = pcm_open(SOUND_CARD,
SOUND_PLAYBACK_SCO_DEVICE,
PCM_OUT|PCM_MONOTONIC,
voice_sco_config);
- if (session->pcm_sco_rx != NULL && !pcm_is_ready(session->pcm_sco_rx)) {
+ if (adev->pcm_sco_rx != NULL && !pcm_is_ready(adev->pcm_sco_rx)) {
ALOGE("%s: cannot open PCM SCO RX stream: %s",
- __func__, pcm_get_error(session->pcm_sco_rx));
+ __func__, pcm_get_error(adev->pcm_sco_rx));
goto err_sco_rx;
}
- session->pcm_sco_tx = pcm_open(SOUND_CARD,
+ adev->pcm_sco_tx = pcm_open(SOUND_CARD,
SOUND_CAPTURE_SCO_DEVICE,
PCM_IN|PCM_MONOTONIC,
voice_sco_config);
- if (session->pcm_sco_tx && !pcm_is_ready(session->pcm_sco_tx)) {
+ if (adev->pcm_sco_tx && !pcm_is_ready(adev->pcm_sco_tx)) {
ALOGE("%s: cannot open PCM SCO TX stream: %s",
- __func__, pcm_get_error(session->pcm_sco_tx));
+ __func__, pcm_get_error(adev->pcm_sco_tx));
goto err_sco_tx;
}
- pcm_start(session->pcm_sco_rx);
- pcm_start(session->pcm_sco_tx);
+ pcm_start(adev->pcm_sco_rx);
+ pcm_start(adev->pcm_sco_tx);
+
+ /* audio codecs like wm5201 need open modem pcm while using bt sco */
+ if (adev->mode != AUDIO_MODE_IN_CALL)
+ start_voice_session(adev->voice.session);
return;
err_sco_tx:
- pcm_close(session->pcm_sco_tx);
- session->pcm_sco_tx = NULL;
+ pcm_close(adev->pcm_sco_tx);
+ adev->pcm_sco_tx = NULL;
err_sco_rx:
- pcm_close(session->pcm_sco_rx);
- session->pcm_sco_rx = NULL;
+ pcm_close(adev->pcm_sco_rx);
+ adev->pcm_sco_rx = NULL;
}
/*
* This function must be called with hw device mutex locked, OK to hold other
@@ -278,10 +273,6 @@ int start_voice_session(struct voice_session *session)
pcm_start(session->pcm_voice_rx);
pcm_start(session->pcm_voice_tx);
- if (session->out_device & AUDIO_DEVICE_OUT_ALL_SCO) {
- start_voice_session_bt_sco(session);
- }
-
#ifdef AUDIENCE_EARSMART_IC
ALOGV("%s: Enabling Audience IC", __func__);
es_start_voice_session(session);
@@ -295,8 +286,6 @@ int start_voice_session(struct voice_session *session)
ril_set_two_mic_control(&session->ril, AUDIENCE, TWO_MIC_SOLUTION_OFF);
}
- ril_set_call_clock_sync(&session->ril, SOUND_CLOCK_START);
-
return 0;
}
@@ -308,6 +297,8 @@ void stop_voice_session(struct voice_session *session)
{
int status = 0;
+ ril_set_call_clock_sync(&session->ril, SOUND_CLOCK_STOP);
+
ALOGV("%s: Closing active PCMs", __func__);
if (session->pcm_voice_rx != NULL) {
@@ -324,10 +315,6 @@ void stop_voice_session(struct voice_session *session)
status++;
}
- if (session->out_device & AUDIO_DEVICE_OUT_ALL_SCO) {
- stop_voice_session_bt_sco(session);
- }
-
#ifdef AUDIENCE_EARSMART_IC
ALOGV("%s: Disabling Audience IC", __func__);
es_stop_voice_session();
@@ -384,10 +371,8 @@ bool voice_session_uses_twomic(struct voice_session *session)
bool voice_session_uses_wideband(struct voice_session *session)
{
- struct voice_data *vdata = container_of(session, struct voice_data, session);
-
if (session->out_device & AUDIO_DEVICE_OUT_ALL_SCO) {
- return vdata->bluetooth_wb;
+ return session->vdata->bluetooth_wb;
}
return session->wb_amr_type >= 1;
@@ -474,6 +459,8 @@ struct voice_session *voice_session_init(struct audio_device *adev)
}
}
+ session->vdata = &adev->voice;
+
return session;
}
diff --git a/audio/voice.h b/audio/voice.h
index 630221ff9..c5cc2f546 100644
--- a/audio/voice.h
+++ b/audio/voice.h
@@ -25,15 +25,15 @@ struct voice_session {
struct pcm *pcm_voice_rx;
struct pcm *pcm_voice_tx;
- struct pcm *pcm_sco_rx;
- struct pcm *pcm_sco_tx;
-
int wb_amr_type;
bool two_mic_control;
bool two_mic_disabled;
/* from uc_info */
audio_devices_t out_device;
+
+ /* parent container */
+ struct voice_data *vdata;
};
void prepare_voice_session(struct voice_session *session,
@@ -44,7 +44,8 @@ void set_voice_session_volume(struct voice_session *session, float volume);
void set_voice_session_audio_path(struct voice_session *session);
void set_voice_session_mic_mute(struct voice_session *session, bool state);
-void start_voice_session_bt_sco(struct voice_session *session);
+void start_voice_session_bt_sco(struct audio_device *adev);
+void stop_voice_session_bt_sco(struct audio_device *adev);
bool voice_session_uses_twomic(struct voice_session *session);
bool voice_session_uses_wideband(struct voice_session *session);
diff --git a/dtbhtool/dtbimg.c b/dtbhtool/dtbimg.c
index 744222fe0..cddcd29ed 100644
--- a/dtbhtool/dtbimg.c
+++ b/dtbhtool/dtbimg.c
@@ -126,6 +126,7 @@ void *load_dtbh_block(const char *dtb_path, unsigned pagesize, unsigned *_sz)
uint32_t version = DTBH_VERSION;
unsigned blob_sz = 0;
char fname[PATH_MAX];
+ const unsigned *model;
const unsigned *prop_chip;
const unsigned *prop_platform;
const unsigned *prop_subtype;
@@ -161,6 +162,17 @@ void *load_dtbh_block(const char *dtb_path, unsigned pagesize, unsigned *_sz)
}
offset = fdt_path_offset(dtb, "/");
+
+#ifdef DTBH_MODEL
+ model = fdt_getprop(dtb, offset, "model", &len);
+ if (strstr((char *)&model[0], DTBH_MODEL) == NULL) {
+ warnx("model of %s is invalid, skipping (expected *%s* but got %s)",
+ fname, DTBH_MODEL, (char *)&model[0]);
+ free(dtb);
+ continue;
+ }
+#endif
+
prop_chip = fdt_getprop(dtb, offset, "model_info-chip", &len);
if (len % (sizeof(uint32_t)) != 0) {
warnx("model_info-chip of %s is of invalid size, skipping", fname);
diff --git a/macloader/macaddr_mappings.h b/macloader/macaddr_mappings.h
index b037b73a9..13ef54f87 100644
--- a/macloader/macaddr_mappings.h
+++ b/macloader/macaddr_mappings.h
@@ -48,9 +48,11 @@ static const struct company_range murata_ranges = {
"00:26:e8",
"00:37:6d",
"00:60:57",
+ "00:9d:6b",
"00:ae:fa",
"04:46:65",
"10:5f:06",
+ "10:98:c3",
"10:a5:d0",
"10:d5:42",
"14:7d:c5",
@@ -76,6 +78,7 @@ static const struct company_range murata_ranges = {
"b0:72:bf",
"b8:d7:af",
"c8:14:79",
+ "cc:c0:79",
"d0:e4:4a",
"d8:c4:6a",
"dc:ef:ca",
@@ -91,6 +94,7 @@ static const struct company_range semcosh_ranges = {
"34:23:ba",
"38:aa:3c",
"5c:0a:5b",
+ "6c:c7:ec",
"88:32:9b",
"90:18:7c",
"cc:3a:61"
@@ -101,7 +105,10 @@ static const struct company_range semco3rd_ranges = {
.type = SEMCO3RD,
.macaddrs = {
"04:d6:aa",
+ "08:c5:e1",
+ "24:18:1d",
"2c:0e:3d",
+ "30:07:4d",
"54:88:0e",
"84:38:38",
"8c:f5:a3",
@@ -124,12 +131,17 @@ static const struct company_range semco3rd_ranges = {
static const struct company_range semco_ranges = {
.type = SEMCO,
.macaddrs = {
+ "48:13:7e",
"4c:66:41",
"51:f6:6b",
+ "94:76:b7",
+ "a4:84:31",
"cc:07:ab",
"d8:c4:e9",
+ "e8:3a:12",
"ec:9b:f3",
- "f0:25:b7"
+ "f0:25:b7",
+ "f8:e6:1a"
}
};
diff --git a/ril/libril/ril.cpp b/ril/libril/ril.cpp
index a7384f13c..d794f027a 100644
--- a/ril/libril/ril.cpp
+++ b/ril/libril/ril.cpp
@@ -1016,7 +1016,7 @@ failCauseToString(RIL_Errno e) {
case RIL_E_SIM_FULL: return "E_SIM_FULL";
case RIL_E_NETWORK_REJECT: return "E_NETWORK_REJECT";
case RIL_E_OPERATION_NOT_ALLOWED: return "E_OPERATION_NOT_ALLOWED";
- case RIL_E_EMPTY_RECORD: "E_EMPTY_RECORD";
+ case RIL_E_EMPTY_RECORD: return "E_EMPTY_RECORD";
case RIL_E_INVALID_SMS_FORMAT: return "E_INVALID_SMS_FORMAT";
case RIL_E_ENCODING_ERR: return "E_ENCODING_ERR";
case RIL_E_INVALID_SMSC_ADDRESS: return "E_INVALID_SMSC_ADDRESS";