Page 1 of 1

Crash with Custom icons and help with variables

Posted: 27 Sep 2016 19:07
by yeyedroid
Hello, first time posting in these forums and let me say that Automagic is a great piece of software, with an awesome supporting author and i love it.

1) I encounter a crash in SystemUI when i use a Custom icon for a notification. As soon as the notification is created, "SystemUI stopped responding" loops endlessly until i reboot the phone. I tried with a png transparent icon extracted from an app as well as with camera pics, with the same result.
i've attached the logcat (easily obtained thanks to Automagic, during the loop).
I'm on MM 6.0.1 Xperia Z5compact stock rom with root. Tried also by disabling Xposed framework.

2) I've a problem regarding the use of the package name as a variable in a flow similar to the one suggested by you here:
viewtopic.php?f=5&t=6035#p15344

- I copy from clipboard the name of the package
- I use the action Init Variable Package Info: {clip_data} -> package_info
->>> if i try to debug the variables obtained ( clip_data and package_info), all is ok

Now i want to check if the package is freezed or unfreezed:
- if i use condition Expression: package_info[{clip_data}]["application_info"]["enabled"] or package_info["{clip_data}"]["application_info"]["enabled"]
i get an error:
Value null is not a list or map (Expression: package_info[{clip_data}]["application_info"][line0])

I read the instructions about using variables in expressions but can't find my error.
Or simply i can't use a variable in this case?

Re: Crash with Custom icons and help with variables

Posted: 27 Sep 2016 19:41
by Martin
Hi,

1) Unfortunately it's a bug in your ROM. Don't use the custom icon for now and wait for a system update. The feature to set custom bitmap icons in the status bar is rarely used by apps so a few ROMs messed this feature up.

2) It sounds like expression package_info["{clip_data}"] evaluates to null so accessing "application_info" fails.
Could you please send your flow and the log to me so I can test with the exact same flow (menu->Manage->Log, Menu->Send Log), maybe it's just a typo somewhere or clip_data contains whitespaces or something similar?

Thanks & Regards,
Martin

Re: Crash with Custom icons and help with variables

Posted: 03 Oct 2016 17:45
by yeyedroid
Thanks for the prompt reply!

1) Ok, another thing messed up by oem frameworks :roll:
My "workaround" for now is using a resource replacer Xposed module (like Flipster) to "replace" on-the-go Automagic built-in icons that i don't use with custom ones. Hope someday it'll get fixed.

2) seems like the problem was with my trigger (containing empty spaces). now it's working