Add shell commands for carrier config debugging
Add shell commands that allow the user to read current carrier config
values and temporarily (until next reboot) overwrite carrier config
values.
Available commands are:
adb shell cmd phone cc get-value [-s SLOT_ID] [KEY]
adb shell cmd phone cc set-value [-s SLOT_ID] KEY [NEW_VALUE]
adb shell cmd phone cc clear-values [-s SLOT_ID]
These new commands are only allowed in rooted device in a non
user build.
Bug: 123561024
Test: atest TeleServiceTests
Change-Id: Id5974f48dc99d7dd2ab692f79661c0a845ed4f69
diff --git a/src/com/android/phone/CarrierConfigLoader.java b/src/com/android/phone/CarrierConfigLoader.java
index 1d0138b..9edd0aa 100644
--- a/src/com/android/phone/CarrierConfigLoader.java
+++ b/src/com/android/phone/CarrierConfigLoader.java
@@ -572,6 +572,7 @@
// mOverrideConfigs is for testing. And it will override current configs.
PersistableBundle config = mOverrideConfigs[phoneId];
if (config != null) {
+ configToSend = new PersistableBundle(configToSend);
configToSend.putAll(config);
}