How to get MMI code execution work?

MartijnV

New member
Recently updated to Android 14. In my existing macros there is one taking care of putting my phone in forward mode after battery is below a certain percentage. The code shows up in the screen but the "dial" button is not activated. In effect, nothing essentially happens. If I push the call button it will go through. But I am not near my phone when it starts call forwarding due to low power, obviously.

In another macro, a number is called and the call button IS activated.

So what to do?
Any suggestions appreciated 👏
 

MartijnV

New member
UI interaction doesn’t seem to do much. I am configuring the call button to be pressed either by hardcoding it in pixels ( assuming 0,0 is top left corner) or by identifying the button (id:com.samsung.android.dialer:id/dialButton) and the latter will work whilst configuring but nothing happens when testing actions.
 

hsurB

Well-known member
UI interaction doesn’t seem to do much. I am configuring the call button to be pressed either by hardcoding it in pixels ( assuming 0,0 is top left corner) or by identifying the button (id:com.samsung.android.dialer:id/dialButton) and the latter will work whilst configuring but nothing happens when testing actions.

I assume your samsung device has modes and routines app since its android 14
Download good lock/routines+ module.
There you can create touch macros that work in dial app.
To integrate modes and routines app with macrodroid use notifications. Macrodroid displays notification and clears it shortly after and modes and routines app catches notification from macrodroid with chosen phrase and fires routine that will click it for you.
I don't know any other way of achieving it for now, but there might be one
 
Last edited:

Dimlos

Well-known member
I want you to update MacroDroid to v5.38.15 and then try this macro.
I believe the code will run and display the IMEI.
 

Attachments

  • Macro.jpg
    Macro.jpg
    252 KB · Views: 18
  • MMI_code.macro
    4.7 KB · Views: 5

MartijnV

New member
Thanx, but alas to no avail. Macro does run and mmi is shown in dialer, just as my own macro does. But then it just sits there, the call button is not pressed, it is waiting for confirmation... any idea why? Jamie could you look into this?1000006147.jpg
 

Dimlos

Well-known member
It appears that the correct code has not been entered.
IMEI is *#06#.
Have you tried importing my macro?
Try running the macro several times.
 

Dimlos

Well-known member
It seems to be unstable, and once it stops displaying, you have to restart it to get it to show up.
If it does not work, please reboot and run the macro several times.
 
Last edited:

MartijnV

New member
Yes, I imported your macro, and I noticed after I posted my last comment it was missing a * so I added that. Imei pull-up was actually working then and stopped working after that. So I agree it must be unstable! I'll try to reboot and make it work my mmi task immediately after.
 

MartijnV

New member
I have tried longer waits, rebooting the phone. For my piece of code nothing works. For my sevice provider, transferring a call is done by **21*[phone number]*11# . If I build this entire string with UI interaction, or split it in blocks or anything, the "add new contact" dialog is sometimes pulled up after an asterisk, or other screens come up that are apparently started by the automated asterisk commands.... I am still at a loss how to get this to work.

If I put the entire string *#06# into the dial intent it will pull up IMEI screen every single time. But my string just gets filled in the dialer without actually starting the call by the call button. If I use the intent .CALL the trailing # is apparently not sen and my phone actually tries to call the nu,ber starting with **.

Still puzzled!
Very appreciative of all help.
 

fido

New member
I managed to solve the problem, I put the phone number and code in "xx" e.g "**21*+48phone number#"
 
Top