yashsingh1/xdaforums huggingface dataset:
[Huawei P30 Guides, News, & Discussion] RoteDose:
Hi beggar23,

first big thx for your instruction to automate the AOE for the P30. It is the perfect solution for the missing notification LED for me.

However, your flowchart seems a little buggy for me, because after entering the notification state it can never return to the AC-Charge state. Also the power state is on immediately and checks all the time if there is a power supply. That is the reason why the flow is logging data all the time.

I tried to fix that issues with my own flow. First tests are looking good. Had not enough time to make a long term test.

There is still a little issue, that the last deleted notification symbol is visible during power supply. It seems that "aod_switch" is just activating/deactivating the AOD, but it won't refresh the symbols.

Do you know if there is a command like "aod_refresh" to fix this problem? I am also looking for a possibility, that only choosen apps will activate the AOD. Will report, if I find a solution.

So I can't add any links and files before I had written 10 posts. Has anyone a solution for that issue. Maybe sending the file over pm? Don't want to spam the forum with 9 irrelevant posts.
[Huawei P30 Guides, News, & Discussion] beggar23:
Hi there,

your enhancements are extremely helpful, many thanks for this!!!:) I am not the author of the original script (was done for LG G6), I only adapted the AOD switch part and am trying to keep track with how it works for others.

If you agree, you can send me your version via pm and I will add it to the OP, explicitly marking you and your authorship and the changes you made. What do you think?

Cheers.
[Huawei P30 Guides, News, & Discussion] RoteDose:
You have a pm :)
[Huawei P30 Guides, News, & Discussion] aionica:
If the flow stops working for you go into Settings - Accessibility - Downloaded Services and check if Automate is still ON.

Mine was not working after a while and it turned out to be this issue - maybe was disabled on an Automate update? I don't know.

Just check it if you run into issues. Also, i have started using the 02 version of RoteDose.

I will keep you updated.

Thanks!
[Huawei P30 Guides, News, & Discussion] RoteDose:
There is a new version of my flow. You can now choose which app notification will appear on the AOD and which one will be blocked.

I am using a .txt file named packages.txt for that. It contains all apps which should appear in the AOD and is saved in the Download folder. You can change the folder in the "File Read Text" block(2) .

My file contains Telegram, Gmail, Contacts(Calling), Whatsapp and the android messenger.

Of course you can modify it for your own needs. Alternatively you can delete the "File Read Text" block(2) and change the value in the "Variable Set" block from split(loaded_txt, "\n") to [app1, app2, app3, ...].

With this solution you don't need a seperate .txt-file.

To get the package name of an app you can tap on a "Notification pjosted block" and then on "Package" in the "Input arguments" section. There will be a full list of all installed apps with their package names.

I still have no permission to upload files, so [MENTION=2734517]beggar23[/MENTION] can you pls attach the new flow to the beginning post? Alternatively you can download the flow from the german forum android-hilfe:

android-hilfe.de/forum/huawei-p30-p30-pro-p30-lite.3510/alternative-zur-benachrichtigungs-led-gesucht.922235-page-9.html#post-12005618
[Huawei P30 Guides, News, & Discussion] zorzgeo:
For me, all working perfect, but let's clear some things.

[MENTION=2734517]beggar23[/MENTION] When "info" arrived, Automator immediately starts AOD (despite it's turned off), but how to take screen off while phone is in pocket and don't take a look on him (pull it from pocket)?

TNX

[MENTION=10580355]RoteDose[/MENTION]

Upload it over Google Drive and share us a link!
[Huawei P30 Guides, News, & Discussion] RoteDose:
Here is the wanted google drive link: drive.google.com/open?id=1dNW78RZGg3dYMWXtGYPlj1cR8pQb6CKW
[Huawei P30 Guides, News, & Discussion] zorzgeo:
I must change the script but i am not that adept for Script changing :(

Will see what to do.
[Huawei P30 Guides, News, & Discussion] RoteDose:
In my eyes everything necessary is explained in my post before.

But what do you need to change, maybe I can help?
[Huawei P30 Guides, News, & Discussion] zorzgeo:
Ok, Ok.

I tried.

Your .flo script does not work on my phone.

When i turn it to 1st post script, everything is fine... I am wrong somewhere.

I will try to create my own script via the diagram.
[Huawei P30 Guides, News, & Discussion] RoteDose:
Have you checked the Filepath in the "File Read text" (Block 2). Is it pointing correctly to the "packages.txt" file?

---------- Post added at 01:52 PM ---------- Previous post was at 01:49 PM ----------

Alternatively delete the "File Read Block" and change the Input arguments in the "Variable set" (Block 5) from "split()" to "[org.telegram.messenger, com.google.android.gm, com.android.contacts, com.whatsapp, com.google.android.apps.messaging]".
[Huawei P30 Guides, News, & Discussion] zorzgeo:
You was right!

Wrong path name :)

Script is working like a charm and give You a BIG TNX but he problem with AOD when on charger remains.

When on charger and message arrived, must manually turn off AOD from settings!
[Huawei P30 Guides, News, & Discussion] RoteDose:
Thats not a bug. It's on purpose. I want that the AOD is on if the phone is on charge. The idea is, that you can see if the phone is fully charged without turning the screen on.

You have to delete all paths which are checking the Power source, if you don't want to use this feature.
[Huawei P30 Guides, News, & Discussion] zorzgeo:
TNX a lot

P.S. No need to Quote my post if postig right after me. Just post it ;)
[Huawei P30 Guides, News, & Discussion] zorzgeo:
Hmmm.

Something weird happening and got a issue.

No one of AOD .flo files [MENTION=2734517]beggar23[/MENTION] and [MENTION=10580355]RoteDose[/MENTION] do not working now (from yesterday). Just workinng AOD when carging and no one missed notifications. All settings from the beginning are untouched. [MENTION=10580355]RoteDose[/MENTION] Home_Call working like a charm!!! BIG TNX!

What it could be?
[Huawei P30 Guides, News, & Discussion] RoteDose:
If the other flows are working i would check the superuser settings, because you need them for the aod. I would remove and reinstall the superuser permissions for Automate.

Also I would revoke the permission via adb:

adb shell pm revoke com.llamalab.automate.ext.superuser android.permission.WRITE_SECURE_SETTINGS

and regrant it:

adb shell pm grant com.llamalab.automate.ext.superuser android.permission.WRITE_SECURE_SETTINGS
[Huawei P30 Guides, News, & Discussion] yugotprblms:
So I've changed this for use on my OP 7Pro with Havoc OS. Simply needed to change the variable at the end from

to

In general, it works. But I want the AoD to stay on as long as a dismissable notification exists. As it stands, I can have two notifications, one for Hangouts and one for Gmail. If I cancel one, the AoD is turned off. Do

Does anyone know of a way to keep the AoD on as long as a notification exists?

Thanks
[Huawei P30 Guides, News, & Discussion] RoteDose:
I added a v1.1 into the google drive folder. This should solve the issue.

Haven't tested it enough, so feel free to report if you find some bugs.
[Huawei P30 Guides, News, & Discussion] yugotprblms:
I don't know if you were replying to me, but your solution did help!

Do you know if there's a way to make it so any dismissable notification can trigger it? For example, leaving the packages.txt file blank and just have any notification that can be swiped away fit the profile?

Thanks
[Huawei P30 Guides, News, & Discussion] RoteDose:
If I am understanding you right, you want the old flow (every notification triggers the AOD), but with the fix, that the aod will only dissapear if all notifications are deleted? I am just asking, before I start to work on. But this should be no problem.
[Huawei P30 Guides, News, & Discussion] yugotprblms:
Correct.

Any notification that can be dismissed will turn on the AoD, and it will stay on until all of the notifications are dismissed. Even leaving one on would keep the AoD on, ideally.
[Huawei P30 Guides, News, & Discussion] RoteDose:
Added the file AOD_all.flo to the drive. Can't check it atm, so I hope it work.

It's almost the same flow, like the version 2 flow linked on the beginning of this thread. The "NO"-path of block 15 is now connected with block 14, and no more with block 10. With this modificaiton it checks if there are still notifications visible (the old flow only checked, if a notification was added or deleted).
[Huawei P30 Guides, News, & Discussion] yugotprblms:
Thanks Rote, I appreciate it! I will check it out and let you know.
[Huawei P30 Guides, News, & Discussion] yugotprblms:
So on first test, it appears to work as intended. Had a Gmail, Hangouts, and Join notification active. Swiped Join away, AoD stayed on. Swiped Gmail away, stayed on. Finally, after I cleared Hangouts and all swipable notifications were gone, AoD turned off. Exactly as I had intended.

This appears to be a solid alternative to the LED, finally. I wish companies would keep it in, as it's so extremely useful. But this can probably suffice.
[Huawei P30 Guides, News, & Discussion] zorzgeo:
Hi.

Sorry i am late with answers... Home jobs :)

1. Revoke su permissinon over ADB

2. Uninstall Automate superuser...

3. Install Automate Superuser...

4. Grant su over ADB

5. Now i have loose charging AOD screen :( totally nothing to show

6. Tried all .flo-s (from 1st post and Yours 2 .flo-s) and nothing :(

7. BRIGHT SPOT: Home_Call.flo WORKING LIKE A CHARM :)

Maybe to uninstall all about relations and Automate apk then go from the beginning?

Don't know another sollution :(

Any suggestions?
[Huawei P30 Guides, News, & Discussion] RoteDose:
I would try to reinstall it and check all needed permissions.

Thats all what I can say without having your phone. If this is not working, the next step would be to debug the flows and check if they are jumping into the right paths. You can use the "Log append" block for this.
[Huawei P30 Guides, News, & Discussion] zorzgeo:
From yesterday haven't AOD when charging :(

Think some other apk blocking AOD, but only i have installed was CPU Spy and App Inspector... Thinking that's not affecting AOD and .flo-s...

Will report after reinstalling and phone rebooting!

TNX

P.S. Everything revoked, uninstalled and reinstalled but AOD do not working any more...

Here is my log:

View attachment 5003517
[Huawei P30 Guides, News, & Discussion] macelaru:
I want to thanks a lot for this guys.

Just bought my P30 and missing my notification LED.

Saw this thread and everything works like it should now. :good:
[Huawei P30 Guides, News, & Discussion] zorzgeo:
I found a working way but it's weird and strange and can't find any relation.

Automate and related .flo file only working if i set: Settings-Notifications-More notifications settings- check Wake screen !!!

After that, screen wakes for every notification but when it turns off, AOD stays as should be as a part of a .flo file...

Can someone help me to find an error or must hard reset phone ?
[Huawei P30 Guides, News, & Discussion] Akabane87:
I had the same behavior that popped up randomly before and is now 100% after the last emui update. The flow enters pause while the screen is off and then only resumes randomly or if automate is put in foreground. This is cause by the system that put automate under some automatic mode for battery saving. You can disable that by doing this : https://llamalab.com/automate/doc/faq.html#automate_not_running

On a totally different subject if someone is interested, I've split the original script into 2 scripts, one monitor script and one AOD switch script in order to reduce the number of blocks running (for those who have some other scripts running and no premium Automate licence). This way, the script here runs continuously with only 5 blocks. I can share the scripts here if someone is interested.
[Huawei P30 Guides, News, & Discussion] zorzgeo:
Tried to disable automate battery handling and put it to manually enabled, but still nothing and all is the same.

Only working if I check screen waking for every message
[Huawei P30 Guides, News, & Discussion] Akabane87:
This is definitly weird. Do you have any tasker app that could kill automate when the screen is off?

Can you check the logs of the script and check the timestamp of the "When notification posted" when it is triggered. For example in my case, before I put the battery management on manual, if I received an email notification while the screen was off, there was a high probability that the box was only executed after I unlocked my phone and started the automate app. The timestamp in the log indicated that the notification posted was only executed at the time I started the app and not at the time the notification was received.
[Huawei P30 Guides, News, & Discussion] robi10101298:
Hello, is this working also for the pro version?
[Huawei P30 Guides, News, & Discussion] RoteDose:
I would just test it.

I think it should work, if it works on the One Plus too. Can't believe that Huawei is using another AOD Variable in the Pro version.
[Huawei P30 Guides, News, & Discussion] zorzgeo:
No Tasker and nothing like that :(

Here is my Log file and it's always that:

???
[Huawei P30 Guides, News, & Discussion] Akabane87:
From what I understand from your logs, at 10:36:34 you started the script with no notification nor power source so the AOD was deactivated by the 2 branches of the fork node. Then at 10:38:06 you received a notification that activated the AOD, and you probably discard the notification at 10:38:28 what deactivated again the AOD.

I guess this is not what happened... If not try to figure the exact box that did not execute properly and try to figure out why. My first guess would be that the set AOD box was not working even if it was executed correctly at the right moment. But as you said it's working correctly when the notification wakes the screen, it's probably something else.

What you can try is to create a new script with a simple flow : start -> delay 5s -> switch AOD on. Then start the flow and switch the screen off. if the AOD box is working correctly this way, it will mean that the culprit is with the when notification box, meaning that it does not behave correctly if the screen is off (bringing us back to my question : is the timing from your logs matching the execution time of when you actually received your notification.
[Huawei P30 Guides, News, & Discussion] RoteDose:
Have you restarted your phone before the problems started?

I got a smiliar issue after i restarted my phone. Had to regrant the superuser and notifications (this is not not your problem, because there is no error in your log).

Also I had to reactivate the download services. Is automate on "on" on your phone?
[Huawei P30 Guides, News, & Discussion] razer91:
Only had to turn it "ON" for the first time after installation Automate.

After restarting the phone the download services stay on "ON".
[Huawei P30 Guides, News, & Discussion] RoteDose:
Actually the post was a suggestion for [MENTION=692760]zorzgeo[/MENTION].

I quoted your post, because you was the first one who wrote about it.

Like I said, it was deactivated after a restart on my phone, so maybe he has the same issue. It is worth a try.
[Huawei P30 Guides, News, & Discussion] zorzgeo:
All set properly and Automate is On in Accessibility, all permissions properly granted...

Hate to hard reset phone :(

[MENTION=10580355]RoteDose[/MENTION]

P.S. I have found a solution and now AOD working for me :)

Whem i setup FingerPrint phone unlock, ewerything (AOD notifications) working like a charm!

When FP is off, AOD flo don't working :)

Huraaaaa!

P.P.S. Home_Call always working perfectly :)
[Huawei P30 Guides, News, & Discussion] zorzgeo:
[MENTION=10580355]RoteDose[/MENTION]

What's the difference between AOD_all.flo and AOD_Packages_v1.1.flo uploaded and shared to your GDrive?

TNX
[Huawei P30 Guides, News, & Discussion] macelaru:
AOD_all will notify you for all apps notifications.

AOD_Packages will notify you only for specific apps you want notifications (you must specify them in that packages.txt file).
[Huawei P30 Guides, News, & Discussion] zorzgeo:
Tnx :)

I am using v1. 1
[Huawei P30 Guides, News, & Discussion] Akabane87:
Holy fck, that's a super weird workaround but glad to read it fixed your problem. I could not reproduce your issue by disabling the FP unlock mode on my side.
[Huawei P30 Guides, News, & Discussion] zorzgeo:
Weird but true.

Working only with FP enabled!

Mystery solved :)

Thank you [MENTION=6069142]Akabane87[/MENTION] and [MENTION=10580355]RoteDose[/MENTION] so much!
[Huawei P30 Guides, News, & Discussion] zorzgeo:
Would this AOD flo file work on Xiaomi Mi 8?
[Huawei P30 Guides, News, & Discussion] yugotprblms:
So I’ve created my own AoD flow for this scenario. I did this partly for more customization for myself, and partly to learn Automate. I know Tasker well enough, but this is my first time with Automate, and it seemed like a good way to learn it. My goal is to glance at the phone if I see the AoD because there’s a notification to pay attention to. I’m trying to make a suitable replacement for the uber-customizable LED from my OP3, and this is a step closer.

I effectively did just copy RoteDose’s package flow, but made it more usable and customizable. So credit to Rote for the vast majority of the work.

Instead of just package names in the .txt file, it will now accept general keywords that may appear in the Title or Message of the notification, as well as a contact name.

Example: I did not want Gmail itself triggering the AoD, as I get lots of stuff I don’t care about. But I can put the name of a contact, or email address, or just a keyword, in the .txt file, and it should trigger the AoD. It makes it a bit easier to know that there’s an important notification to pay attention to, instead of just a catch-all for an app.

**For it to trigger on contacts or email addresses, they have to be exact. If I get an email from Bob TestPerson, but I only have Bob in my .txt file, it will not trigger. The .txt needs to have Bob TestPerson on its own line.

Similarly, if I put an email in for Bob TestPerson (bobtestperson@gmail.com), but I have Bob as an actual contact, it will not trigger, as the notification will most likely show the contact name and not email.**

I’ve uploaded 2 versions of the flow. One that triggers AoD when plugged into a power source, and one that does not. I use the one without the power, as I catch myself looking at an AoD without a notification, expecting to see one. This is in direct contrast to my goal. I just left the thread on the right hand side and removed the power block from the main part, as that was easiest.

This has been created for my OP7 Pro. Replace the “doze_always_on” variable with “aod_switch” if you are using a Huawei phone, or any other that uses that setting name.

I’ll probably tinker with this some more, as I can’t get some features to work. For instance, I can’t get it to trigger if the body of an email in a notification contains a key word. I am not sure if I can make it work at this point, but I will keep looking into it, simply because it’s a problem I want to solve.

Google Drive Folder
[Huawei P30 Guides, News, & Discussion] francki:
Hey guys, first of all, I would like to thank all people who worked on this, and make it to work on our lovely p30.

But I have a problem, it seems I can't have su permissions. I put the right permission via adb shell, but the app still say she don't have it.

I installed all the apps necessary and do everythings in phone settings too.

Anyone could help me please

Here are screens

Envoyé de mon ELE-L29 en utilisant Tapatalk
[Huawei P30 Guides, News, & Discussion] RoteDose:
Your adb shell grant command in the screenshot is wrong. It's "com.llamalab.automate.ext.superuser android.permission.WRITE_SECURE_SETTINGS" not "llamalab.ext.superuser android.permission.WRITE_SECURE_SETTINGS"
[Huawei P30 Guides, News, & Discussion] zorzgeo:
[MENTION=3462958]francki[/MENTION]

- Just copy/paste adb shell command an [MENTION=10580355]RoteDose[/MENTION] told You (or from 1st post) and there wouldn't bee an error.
[Huawei P30 Guides, News, & Discussion] francki:
Thx à lot, it works like a charm now. I did that in the middle of the night, so hard to see well. Lol

Envoyé de mon ELE-L29 en utilisant Tapatalk
[Huawei P30 Guides, News, & Discussion] Jojokoo:
Does this work on the huawei mate 20 X with android 10?
[Huawei P30 Guides, News, & Discussion] zorzgeo:
It should be working. Try it. Nothing to loose ;)
[Huawei P30 Guides, News, & Discussion] RoteDose:
Is automated activated in the notification access settings? If yes, then try to restart your phone. Android has sometimes problems with it. Have the same issue with my phone.
[Huawei P30 Guides, News, & Discussion] praveen6585:
Hi! Automate was activated in the notification access settings. I restarted it and it seemed to do the trick. No errors now but no notifications either :(

Automate is running and it shows in the notification bar. But when a notification comes, AOD does not turn on.

06-09 16:23:00.929 I 19@15: Notification posted?

06-09 16:24:09.037 I 19@10: Power source plugged?

06-09 16:24:09.038 I 19@11: System setting set

06-09 16:24:09.039 I 19@15: Notification posted?

06-09 16:26:25.368 I 19@9: System setting set

06-09 16:26:25.370 I 19@15: Notification posted?

06-09 16:26:53.813 I 19@9: System setting set

06-09 16:26:53.815 I 19@15: Notification posted?

06-09 16:27:24.283 I 19@9: System setting set

06-09 16:27:24.284 I 19@15: Notification posted?

06-09 16:27:24.323 I 19@9: System setting set

06-09 16:27:24.324 I 19@15: Notification posted?

06-09 16:27:24.333 I 19@9: System setting set

06-09 16:27:24.334 I 19@15: Notification posted?

06-09 16:27:59.719 I 19@10: Power source plugged?

06-09 16:27:59.720 I 19@11: System setting set

06-09 16:27:59.720 I 19@15: Notification posted?

06-09 16:28:00.501 I 19@10: Power source plugged?

06-09 16:28:00.504 I 19@11: System setting set

06-09 16:28:00.504 I 19@15: Notification posted?

06-09 16:28:02.227 I 19@10: Power source plugged?

06-09 16:28:02.227 I 19@11: System setting set

06-09 16:28:02.228 I 19@15: Notification posted?

06-09 16:28:02.791 I 19@9: System setting set

06-09 16:28:02.793 I 19@15: Notification posted?

06-09 16:28:02.800 I 19@9: System setting set

06-09 16:28:02.801 I 19@15: Notification posted?

06-09 16:28:10.310 I 19@10: Power source plugged?

06-09 16:28:10.310 I 19@11: System setting set

06-09 16:28:10.311 I 19@15: Notification posted?

06-09 16:28:10.325 I 19@10: Power source plugged?

06-09 16:28:10.326 I 19@11: System setting set

06-09 16:28:10.328 I 19@15: Notification posted?
[Huawei P30 Guides, News, & Discussion] kikev10:
It works very well for me. although after a while it always shows the same icon. Toggles AOD on and off but always displays the same icon when enabled. This is solved by restarting the mobile but after a while it happens again. any ideas? Thank you!
[Huawei P30 Guides, News, & Discussion] RoteDose:
Maybe you have downloaded the wrong flow? It exists a flow for the One Plus phones too.

Which variable name do you have in your "System setting set" blocks? It should be "aod_switch".

It's a known bug. I tried to fix it, but couldn't find a working solution. I am ok with it, but feel free to fix it ;)
[Huawei P30 Guides, News, & Discussion] praveen6585:
Hi! Thanks for helping out! I had downloaded v2 of the flow which is attached in the OP. I also checked the system setting set and it shows "aod_switch". I double checked all the steps but not able to figure it out. I think I will just let it be for now and keep AOD on always :)