Android dtmf_tone_when_dialing

Sending DTMF tones over the uplink in-call

I'm working on a project that requires my app to be able to send DTMF tones on the voice's uplink frequency during an active call.

My 2 conditions are:

  • We don't use a customized Android platform
  • We don't need to root the phone

I've spent several days doing my homework and am aware that in-call DTMF sending is not supported by the current SDK/standard APIs. However, by using the relevant classes in com.android.internal.telephony I am hoping to mimic how the native Phone app does this. I followed this site on how to use internal APIs for standard 3rd party apps .

ads

Android dtmf_tone_when_dialing

I've also set myself up with the Android OS dev environment and am able to run the Phone app in debug mode on an emulator to figure its inner workings.

I tried various ways on a stock standard emulator but the errors I got were:

After trying to install a renamed app based on Phone.apk's source using the sharedUserId of android.uid.phone, I got:

Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

No doubt due to the fact I don't have the system cert to sign it.

After trying to write a custom app based on the relevant DTMF tone sending code from Phone.apk's source, I get the following error at setting up the PhoneFactory;

java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.provider.Telephony.SPN_STRINGS_UPDATED.

No doubt due to the fact my app doesn't have the right permissions, although AndroidManifest.xml is setup with the same permissions as Phone.apk.

I'm at a loss as to what else I could try. Does anyone have any suggestions?

Thanks in advance, Simon.

Related posts

  • The Best Ereader for Android Reading ebooks on Android used to be just okay. Now it's awesome. While there are plenty of sweet apps for reading books on your phone or tablet, Play Books has...

  • Video: Hands-on With New Instagram Video on Android Not that it was much of a surprise after a couple of reports broke the news in the days leading up to today’s Facebook event, but yes, they...

  • 4 Pics 1 Word Answers & Cheats 4 Pics 1 Word answers, cheats, and hints will show you how to beat all levels and letters of the game for iPhone, iPod, iPad, and Android. Guess the word that the...

  • Minecraft: Pocket Edition (for Android) Solid mining and crafting experience. Looks and plays great. Dead simple multiplayer. Continuous development. Not as deep as the PC version. Some touch...

  • [Android] What Is Superuser Gaining root on an Android device is not attained by unlocking the bootloader, or installing a custom recovery, but by flashing a small file called superuser....