diff --git a/DeviceSettings/AndroidManifest.xml b/DeviceSettings/AndroidManifest.xml
index 6cbd8629..080500d5 100644
--- a/DeviceSettings/AndroidManifest.xml
+++ b/DeviceSettings/AndroidManifest.xml
@@ -78,16 +78,6 @@
-
-
-
-
-
-
-
-
diff --git a/DeviceSettings/res/drawable/thermal_balance.xml b/DeviceSettings/res/drawable/thermal_balance.xml
deleted file mode 100644
index e0a5b308..00000000
--- a/DeviceSettings/res/drawable/thermal_balance.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
diff --git a/DeviceSettings/res/values-de-rDE/strings.xml b/DeviceSettings/res/values-de-rDE/strings.xml
index 03bd9bda..4c722f7a 100644
--- a/DeviceSettings/res/values-de-rDE/strings.xml
+++ b/DeviceSettings/res/values-de-rDE/strings.xml
@@ -20,17 +20,7 @@
Displaykalibierung
Stärke
-
- Temperatur
- Temperatur Einstellung
- Wähle das Temperatur Profil
- Wähle das Temperatur Profil
-
- Performance
- Energieeffizient
- Gaming
- Balance
- Energiesparen
+
Haptisches Feedback
diff --git a/DeviceSettings/res/values-es-rES/strings.xml b/DeviceSettings/res/values-es-rES/strings.xml
index c62bf8cb..9c9d64fc 100644
--- a/DeviceSettings/res/values-es-rES/strings.xml
+++ b/DeviceSettings/res/values-es-rES/strings.xml
@@ -33,19 +33,6 @@
Pantalla ambiente
Ajustes pantalla ambiente
-
-
- Rendimiento
- Ajustes de Rendimiento
- Elija su configuración de Rendimiento
- Elija su configuración de Rendimiento
-
-
- Rendimiento
- Batería
- Juego
- Balance
- Batería Extrema
Mi Sound Enhancer
diff --git a/DeviceSettings/res/values-es-rMX/strings.xml b/DeviceSettings/res/values-es-rMX/strings.xml
index 818dca2d..54fda481 100644
--- a/DeviceSettings/res/values-es-rMX/strings.xml
+++ b/DeviceSettings/res/values-es-rMX/strings.xml
@@ -25,19 +25,6 @@
Retroalimentación háptica
Fuerza
-
- Rendimiento
- Ajustes de Rendimiento
- Elija su configuración de Rendimiento
- Elija su configuración de Rendimiento
-
-
- Rendimiento
- Batería
- Juego
- Balance
- Batería Extrema
-
Mi Sound Enhancer
Optimizar la calidad del audio
diff --git a/DeviceSettings/res/values-es/strings.xml b/DeviceSettings/res/values-es/strings.xml
index b49b788a..ed5fd6c5 100644
--- a/DeviceSettings/res/values-es/strings.xml
+++ b/DeviceSettings/res/values-es/strings.xml
@@ -33,21 +33,6 @@
Doze de xiaomi
Pantalla ambiente
-
-
- Rendimiento
- Ajustes de Rendimiento
- Elija su configuración de Rendimiento
- Elija su configuración de Rendimiento
-
-
- Rendimiento
- Batería
- Juego
- Balance
- Batería Extrema
-
-
Mi Sound Enhancer
diff --git a/DeviceSettings/res/values-in-rID/strings.xml b/DeviceSettings/res/values-in-rID/strings.xml
index f8160a79..11d8c1b9 100644
--- a/DeviceSettings/res/values-in-rID/strings.xml
+++ b/DeviceSettings/res/values-in-rID/strings.xml
@@ -37,19 +37,6 @@
Umpan balik getaran
Kekuatan
-
- Suhu
- Setelan suhu
- Pilih profil suhu
- Pilih profil suhu yang anda sukai
-
-
- Performa
- Baterai
- Gaming
- Seimbang
- Hemat baterai ekstrim
-
Mi Sound Enhancer
Optimalkan kualitas audio
diff --git a/DeviceSettings/res/values-ja-rJP/strings.xml b/DeviceSettings/res/values-ja-rJP/strings.xml
index 971d3bf3..647ddeaa 100644
--- a/DeviceSettings/res/values-ja-rJP/strings.xml
+++ b/DeviceSettings/res/values-ja-rJP/strings.xml
@@ -29,19 +29,6 @@
振動フィードバック
強さ
-
- パフォーマンス
- パフォーマンスの設定
- パフォーマンス設定を選択して下さい
- パフォーマンス設定を選択して下さい
-
-
- 高性能
- 省電力
- ゲーム
- バランス
- 超省電力
-
サウンドエンハンサ
diff --git a/DeviceSettings/res/values-ko-rKR/strings.xml b/DeviceSettings/res/values-ko-rKR/strings.xml
index 3e75b753..b85bca34 100644
--- a/DeviceSettings/res/values-ko-rKR/strings.xml
+++ b/DeviceSettings/res/values-ko-rKR/strings.xml
@@ -37,19 +37,6 @@
햅틱 피드백
강도
-
- 쓰로틀링 관리
- 쓰로틀링 관리 설정
- 쓰로틀링 관리 프로필 설정
- 쓰로틀링 관리 프로필 선택
-
-
- 성능 향상
- 배터리 효율 향상
- 게이밍 특화
- 균형 설정
- 배터리 효율 매우 향상
-
사운드 강화
diff --git a/DeviceSettings/res/values-pt-rBR/strings.xml b/DeviceSettings/res/values-pt-rBR/strings.xml
index c0a98449..e4660ac9 100644
--- a/DeviceSettings/res/values-pt-rBR/strings.xml
+++ b/DeviceSettings/res/values-pt-rBR/strings.xml
@@ -37,19 +37,6 @@
Retorno de vibração
Intensidade
-
- Temperatura
- Configurações de temperatura
- Permite escolher o perfil de Temperatura adotado pelo aparelho
- Escolha o perfil de Temperatura
-
-
- Desempenho
- Bateria
- Jogos
- Balanceado
- Bateria Extrema
-
Áudio
diff --git a/DeviceSettings/res/values-ru-rRU/strings.xml b/DeviceSettings/res/values-ru-rRU/strings.xml
index 687d5dc1..07170491 100644
--- a/DeviceSettings/res/values-ru-rRU/strings.xml
+++ b/DeviceSettings/res/values-ru-rRU/strings.xml
@@ -37,19 +37,6 @@
Вибрация
Сила
-
- Температурные режимы
- Настройки температуры
- Выберите температурный режим
- Выберите температурный режим
-
-
- Производительность
- Энергосбережение
- Игры
- Баланс
- Экстремальное энергосбережение
-
Аудио
diff --git a/DeviceSettings/res/values-ru/strings.xml b/DeviceSettings/res/values-ru/strings.xml
index db1144f8..af18ca7f 100644
--- a/DeviceSettings/res/values-ru/strings.xml
+++ b/DeviceSettings/res/values-ru/strings.xml
@@ -31,19 +31,6 @@
Вибрация
Сила
-
- Производительность
- Настройки производительности
- Выберите Ваш профиль производительности
- Выберите Ваш профиль производительности
-
-
- Производительность
- Энергосбережение
- Игры
- Баланс
- Экстримальное энергосбережение
-
Аудио
diff --git a/DeviceSettings/res/values-sk-rSK/strings.xml b/DeviceSettings/res/values-sk-rSK/strings.xml
index 058e7755..e1c95025 100644
--- a/DeviceSettings/res/values-sk-rSK/strings.xml
+++ b/DeviceSettings/res/values-sk-rSK/strings.xml
@@ -37,19 +37,6 @@
Hmatová spätná odozva
Sila
-
- Výkon
- Nastavenia Výkonu
- Režim výkonu
- Režim výkonu
-
-
- Výkon
- Šetrič batérie
- Herný
- Vyvážený
- Extrémny šetrič batŕeie
-
Mi vylepšenie zvuku
Optimalizácia kvality zvuku
diff --git a/DeviceSettings/res/values-zh-rCN/strings.xml b/DeviceSettings/res/values-zh-rCN/strings.xml
index 9da99332..56efc269 100644
--- a/DeviceSettings/res/values-zh-rCN/strings.xml
+++ b/DeviceSettings/res/values-zh-rCN/strings.xml
@@ -29,19 +29,6 @@
触觉反馈
强度
-
- 性能
- 性能选项
- 性能选项
- 设置性能选项
-
-
- 高性能
- 延长电池
- 游戏
- 平衡
- 极致延长电池
-
音米
diff --git a/DeviceSettings/res/values-zh/strings.xml b/DeviceSettings/res/values-zh/strings.xml
index 14cc6e1e..d4e06751 100644
--- a/DeviceSettings/res/values-zh/strings.xml
+++ b/DeviceSettings/res/values-zh/strings.xml
@@ -29,23 +29,6 @@
触觉反馈
强度
-
- 性能
- 性能选项
- 性能选项
- 设置性能选项
-
-
- 高性能
- 延长电池
- 游戏
- 平衡
- 极致延长电池
-
-
-
-
-
音频
diff --git a/DeviceSettings/res/values/arrays.xml b/DeviceSettings/res/values/arrays.xml
index 983169bc..e9e45960 100644
--- a/DeviceSettings/res/values/arrays.xml
+++ b/DeviceSettings/res/values/arrays.xml
@@ -14,20 +14,6 @@
limitations under the License.
-->
-
- - @string/thermal_balance
- - @string/thermal_performance
- - @string/thermal_battery
- - @string/thermal_gaming
- - @string/thermal_extreme_battery
-
-
- - 0
- - 1
- - 2
- - 3
- - 4
-
diff --git a/DeviceSettings/res/values/strings.xml b/DeviceSettings/res/values/strings.xml
index 669a85ca..398034a3 100644
--- a/DeviceSettings/res/values/strings.xml
+++ b/DeviceSettings/res/values/strings.xml
@@ -37,19 +37,6 @@
Haptic Feedback
Strength
-
- Thermal
- Thermal Settings
- Choose your Thermal Profile
- Choose your Thermal Profile
-
-
- Performance
- Battery
- Gaming
- Balance
- Extreme Battery
-
Display Color Calibration
Color Settings
diff --git a/DeviceSettings/res/xml/preferences_xiaomi_parts.xml b/DeviceSettings/res/xml/preferences_xiaomi_parts.xml
index 9253c1d0..f5743b71 100644
--- a/DeviceSettings/res/xml/preferences_xiaomi_parts.xml
+++ b/DeviceSettings/res/xml/preferences_xiaomi_parts.xml
@@ -141,20 +141,4 @@
-
-
-
-
-
diff --git a/DeviceSettings/src/org/lineageos/settings/device/BootReceiver.java b/DeviceSettings/src/org/lineageos/settings/device/BootReceiver.java
index 966a0894..86ba2111 100644
--- a/DeviceSettings/src/org/lineageos/settings/device/BootReceiver.java
+++ b/DeviceSettings/src/org/lineageos/settings/device/BootReceiver.java
@@ -75,10 +75,6 @@ public class BootReceiver extends BroadcastReceiver implements Utils {
FileUtils.setValue(DeviceSettings.VIBRATION_STRENGTH_PATH, Settings.Secure.getInt(
context.getContentResolver(), DeviceSettings.PREF_VIBRATION_STRENGTH, 80) / 100.0 * (DeviceSettings.MAX_VIBRATION - DeviceSettings.MIN_VIBRATION) + DeviceSettings.MIN_VIBRATION);
- // Thermal
- FileUtils.setValue(DeviceSettings.THERMAL_PATH, Settings.Secure.getInt(context.getContentResolver(),
- DeviceSettings.PREF_THERMAL, 0));
-
// Dirac
context.startService(new Intent(context, DiracService.class));
diff --git a/DeviceSettings/src/org/lineageos/settings/device/DeviceSettings.java b/DeviceSettings/src/org/lineageos/settings/device/DeviceSettings.java
index d461a652..2b0cbd98 100644
--- a/DeviceSettings/src/org/lineageos/settings/device/DeviceSettings.java
+++ b/DeviceSettings/src/org/lineageos/settings/device/DeviceSettings.java
@@ -67,9 +67,6 @@ public class DeviceSettings extends PreferenceFragment implements
private static final String PREF_DEVICE_DOZE = "device_doze";
private static final String PREF_DEVICE_KCAL = "device_kcal";
- public static final String PREF_THERMAL = "thermal";
- public static final String THERMAL_PATH = "/sys/devices/virtual/thermal/thermal_message/sconfig";
-
private static final String DEVICE_DOZE_PACKAGE_NAME = "com.advanced.settings.doze";
private static final String DEVICE_JASON_PACKAGE_NAME = "org.lineageos.settings.devicex";
@@ -78,7 +75,6 @@ public class DeviceSettings extends PreferenceFragment implements
private SecureSettingSwitchPreference mEnableDirac;
private SecureSettingListPreference mHeadsetType;
private SecureSettingListPreference mPreset;
- private SecureSettingListPreference mTHERMAL;
@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
@@ -135,12 +131,6 @@ public class DeviceSettings extends PreferenceFragment implements
return true;
});
- // Thermal Switch
- mTHERMAL = (SecureSettingListPreference) findPreference(PREF_THERMAL);
- mTHERMAL.setValue(FileUtils.getValue(THERMAL_PATH));
- mTHERMAL.setSummary(mTHERMAL.getEntry());
- mTHERMAL.setOnPreferenceChangeListener(this);
-
// Dirac
boolean enhancerEnabled;
try {
@@ -227,12 +217,6 @@ public class DeviceSettings extends PreferenceFragment implements
}
break;
- case PREF_THERMAL:
- mTHERMAL.setValue((String) value);
- mTHERMAL.setSummary(mTHERMAL.getEntry());
- FileUtils.setValue(THERMAL_PATH, (String) value);
- break;
-
default:
break;
}
diff --git a/DeviceSettings/src/org/lineageos/settings/device/PerformanceTileService.java b/DeviceSettings/src/org/lineageos/settings/device/PerformanceTileService.java
deleted file mode 100644
index 9526241f..00000000
--- a/DeviceSettings/src/org/lineageos/settings/device/PerformanceTileService.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.lineageos.settings.device;
-
-import android.service.quicksettings.Tile;
-import android.service.quicksettings.TileService;
-
-public class PerformanceTileService extends TileService {
-
- @Override
- public void onStartListening() {
-
- int currentState = Integer.parseInt(FileUtils.getValue(DeviceSettings.THERMAL_PATH));
-
- Tile tile = getQsTile();
- tile.setState(Tile.STATE_ACTIVE);
- tile.setLabel(getResources().getStringArray(R.array.thermal_profiles)[currentState]);
-
- tile.updateTile();
- super.onStartListening();
- }
-
- @Override
- public void onClick() {
- int currentState = Integer.parseInt(FileUtils.getValue(DeviceSettings.THERMAL_PATH));
-
- int nextState;
- if (currentState == 4) {
- nextState = 0;
- } else {
- nextState = currentState + 1;
- }
-
- Tile tile = getQsTile();
- FileUtils.setValue(DeviceSettings.THERMAL_PATH, nextState);
- tile.setLabel(getResources().getStringArray(R.array.thermal_profiles)[nextState]);
-
- tile.updateTile();
- super.onClick();
- }
-}