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/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 15818ec..e6457a3 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -6419,7 +6419,8 @@
public void onShellCommand(FileDescriptor in, FileDescriptor out, FileDescriptor err,
String[] args, ShellCallback callback, ResultReceiver resultReceiver)
throws RemoteException {
- (new TelephonyShellCommand(this)).exec(this, in, out, err, args, callback, resultReceiver);
+ (new TelephonyShellCommand(this, getDefaultPhone().getContext()))
+ .exec(this, in, out, err, args, callback, resultReceiver);
}
/**