Huawei Support Thread

MacroDroidDev

Administrator
Staff member
Background App Killing

Huawei devices typically have one or more aggressive battery saving features that can prevent apps such as MacroDroid from correctly functioning. In order to prevent the MacroDroid background process being killed it is necessary to configure your device appropriately to disable this app killing functionality.

Great information can be found here: https://dontkillmyapp.com/huawei

Please read through this site in detail and try to follow the guide as closely as possible to prevent background app killing.

Bluetooth user prompt


Huawei for some reason have decided that apps should not be allowed to enable Bluetooth from the background so some Huawei devices will always prompt you when attempting to use the SetBluetooth action. This is not something that can be disabled in the setting as far as I know, so the only known workaround is to use the UI Interaction action to fake the button press to confirm the action. This can of course never work when the device's screen is off.

Other Huawei issues

Please use this thread to report and discuss other Huawei specific issues that you believe are related only to Huawei devices.
 

MacroDroidDev

Administrator
Staff member
Have you done everything as described on dontkillmyapp.com.

Are you able to provide any more diagnostic information about what exactly happens. For example what macro do you have configured, is it the trigger that ceases to fire or do the UI Interaction actions just no longer work. Is there any information in your system log?
 

SuperDaniel

New member
Today I killed also the PowerGenie with ADB, I will wrote again in a few Days.

Trigger "Screen Unlocked" with constaints
Airplane Mode disabled
WiFi Enabled

Actions
Airplane Mode On
Expand Status Bar
Wait 5 Seconds
UI Interaction Click 145,370
Wait 250 ms
UI interaction Click 340,370
Wait 250 ms
Collapse Status Bar

After some Days the UI interaction does not work anymore, I can't see any error in the Log and the Macro are firing cause the Status Bar expand

I tried also the App AutoInput, but when the Macrodroid UI interaction don't work, AutoInput also not working, maybe it is a Android Bug or some external Service crashed? Don't know is there a accessibility Service or how does the UI interaction working? After Device reboot it worked again for a few Days.

I hope you could understand me, my English is not so good
 
Last edited:

Jacob L

Moderator (Lawsonator)
Sounds like you need to disable UI interaction accessibility and enable it again. Once variables become a thing in system setting action then I'll build a macro to help you
 

SuperDaniel

New member
it looks like that the problem with the UI interaction only happens if you using x.y.-position for the click.

I using now text content for clicking and that works now 2 days without any problems, I hope that keep up
 

FrameXX

Well-known member
Hi. Have P40 Lite without Google services. How I can install pro version which I payed in Google play?

I recommend you to write developer an email about this. He will give you serial code, so you can upgrade without Google Play Services.
 

barbaduk

New member
Honor 20 pro - did everything from dontkillmyapp, but still macros runs only once with screen being off. After unlock\lock phone it will work again (once of course). If screen is locked but turned on macros works just fine any amount of times in a row, but once screen went out it stops working.
 
R

rusalex2k8

Guest
hi, i have a question about geozone . i have huawei p40 and it doesn't have google service , how to create geozone in this case ? i try to add new geozone and macrodroid closed.
 

FrameXX

Well-known member
hi, i have a question about geozone . i have huawei p40 and it doesn't have google service , how to create geozone in this case ? i try to add new geozone and macrodroid closed.

MacroDroid uses google maps when choosing location of geofence so it's possible that because of missing Google Mobile Services MacroDroid crashed when trying to use google maps, but it's possible that I am wrong and there's a diferent reason. As an alternative you can use cell towers that shouldn't have these problems.
 
R

rusalex2k8

Guest
hi again . does anyone can inject huawei hms in macrodroid, cause geozone doesn't work at all without google services . i tried to inject using ndroid studio and huawei tools but i don't have developer acoount to compile apk again . thank you in advance
 
R

rusalex2k8

Guest
hi, thank you for your help in resolving previous question . now i want to ask about popup message. see attached files. i have macros which shows region and mobile operator . popup message works in testing in macros and during outgoing call but it'not possible to watch it during incoming call. i tried standart and customised view of message . it doesn't want gto be on the top of standart call programm ( itried on huawei p30 , p40 android 10, emui 11/12) i have programm mobile operators nad it shows region during incoming call. is it possible to use not popup message or maybe ypu know other option to make it work .thank you in advance. ( attached files i marked what has to be on screen during incoming call nad what popup i mean)
 

Attachments

  • 1_LI.jpg
    1_LI.jpg
    912.2 KB · Views: 20
  • 2_LI.jpg
    2_LI.jpg
    948.1 KB · Views: 19
  • Screenshot_20220524_184500_com.arlosoft.macrodroid_LI.jpg
    Screenshot_20220524_184500_com.arlosoft.macrodroid_LI.jpg
    2.7 MB · Views: 21
Top