From 47cc0aa9e0f445901d41de8c8648d62c8bc0ab7e Mon Sep 17 00:00:00 2001 From: Peter Hasse Date: Tue, 30 Apr 2024 11:57:35 +0200 Subject: [PATCH 1/9] added android IMS special code --- .../SpecialCodesFragment.java | 6 ++++++ .../main/res/layout/fragment_special_codes.xml | 18 ++++++++++++++++++ app/src/main/res/values/strings.xml | 6 ++++-- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/de/fraunhofer/fokus/OpenMobileNetworkToolkit/SpecialCodesFragment.java b/app/src/main/java/de/fraunhofer/fokus/OpenMobileNetworkToolkit/SpecialCodesFragment.java index 923a7989..0ca80a83 100644 --- a/app/src/main/java/de/fraunhofer/fokus/OpenMobileNetworkToolkit/SpecialCodesFragment.java +++ b/app/src/main/java/de/fraunhofer/fokus/OpenMobileNetworkToolkit/SpecialCodesFragment.java @@ -40,6 +40,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle saved View v = inflater.inflate(R.layout.fragment_special_codes, parent, false); Button android_testing = v.findViewById(R.id.bt_android_testing); android_testing.setOnClickListener(this::buttonHandler); + Button android_ims = v.findViewById(R.id.bt_android_ims); + android_ims.setOnClickListener(this::buttonHandler); Button mediatek_ims = v.findViewById(R.id.bt_mediatek_ims); mediatek_ims.setOnClickListener(this::buttonHandler); Button sony_service = v.findViewById(R.id.bt_sony_service); @@ -57,6 +59,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle saved special_code = v.findViewById(R.id.tv_special_code); if (!cp) { android_testing.setEnabled(false); + android_ims.setEnabled(false); mediatek_ims.setEnabled(false); sony_service.setEnabled(false); nokia_enable_sa.setEnabled(false); @@ -95,6 +98,9 @@ private void buttonHandler(View view) { case R.id.bt_android_testing: tm.sendDialerSpecialCode("4636"); break; + case R.id.bt_android_ims: + tm.sendDialerSpecialCode("0702"); + break; case R.id.bt_mediatek_ims: tm.sendDialerSpecialCode("3646633"); break; diff --git a/app/src/main/res/layout/fragment_special_codes.xml b/app/src/main/res/layout/fragment_special_codes.xml index 4812133b..fdcddd76 100644 --- a/app/src/main/res/layout/fragment_special_codes.xml +++ b/app/src/main/res/layout/fragment_special_codes.xml @@ -43,6 +43,24 @@ android:text="*#*#4636#*#*" /> + + +