title: I am trying to dial secret code like *#*#0808#*#* on keypad dialer from adb shell
body: <p>I want to dial a number through the android dialer which opens the keypad/dialer and dials the number using adb commands.</p>
  
  <p>I tried to dial the number using this adb shell commands:</p>
  
  <p><code>adb shell am start -a android.intent.action.CALL -d tel:*#*#0808#*#*</code></p>
  
  <p>But that dials the number OTA as an MMI code, and that is not what we want.</p>
  
  <p>I am told that the code <em>#</em>#0808#<em>#</em> is a secret code that launches a hidden menu, and that it must be dialled through the dialler.</p>
  
  <p>I found out that the command:</p>
  
  <p><code>adb shell monkey -p com.android.dialer -c android.intent.category.LAUNCHER 1</code></p>
  
  <p>launches the phone app (but not the num keypad).</p>
  
  <p>So, then I tried to dial it using the commands:</p>
  
  <p><code>adb shell monkey -p com.android.dialer/com.android.incallui.InCallActivity -c android.intent.category.LAUNCHER 1 *#*#0808#*#*</code> </p>
  
  <p>but that didn't work.</p>
  
  <p>Could someone help why it isn't working? and How could I launch the dialer and dial that number?</p>
  
  <p>Thanks!</p>