EAP version 1.29.0-dev

Forum to discuss everything related to the current development build of Automagic.

Moderator: Martin

Locked
User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

EAP version 1.29.0-dev

Post by Martin » 27 Jun 2015 15:02

This forum is used to give interested users access to the next version of Automagic currently in development.
The early access version is only lightly tested and might still contain serious bugs. The quality of EAP versions can at times be even way below usual beta standards.

:arrow: Use at your own risk!
:arrow: Ensure to create a backup before you install an EAP version.

Important:
  • The EAP version will replace the Google Play version of Automagic on your device. Flows opened, saved and created with the EAP version will usually not be compatible with old versions of Automagic so it is highly recommended to create a backup of your flows, widgets and variables before you start using the EAP version (create a backup of the folder /<sdcard>/Automagic)
  • Unknown sources needs to be enabled in the settings of Android to install the EAP version.
  • Please report bugs and problems found in the EAP version in the EAP forum or by mail to info@automagic4android.com
  • :!: Don't share flows created using the EAP version in the regular flow sharing area since users of the released Automagic version will not be able to use the new triggers, conditions and actions. Feel free to share flows in the EAP forum.
  • The EAP version only works for about 2 weeks. Please install a new EAP version when the old one expires or install the released version available in Google Play.
Changes
1.29.0-dev (2015-10-24)
  • new trigger Send/Share Intent Received
  • new trigger Send/Share Multiple Intent Received
  • new trigger SIM State *
  • new trigger Automagic SMS Delivery Report Received
  • new trigger Device Idle/Doze Mode (Android 6+)
  • new condition Device Idle/Doze Mode Active (Android 6+)
  • new action Init Variable Image Metadata to read Exif metadata of an image and more
  • new action Set Disabled Keyguard Features
  • new action Init Variable Notifications on Statusbar (Android 4.3+)
  • new action Exit Device Idle/Doze Mode (Android 6+) **
  • new action Set App Notification Peekable (Android 6+) **
  • new action Remove WiFi Access Point
  • extended action Send SMS to request delivery reports and optimized detection of errors when sending SMS
  • extended action Launch Shortcut to record shortcuts created in other apps
  • extended action Remove Notification on Statusbar by a text filter
  • extended action Perform Action on Notification on Statusbar to click the notification itself
  • extended action Perform Action on Notification on Statusbar to click actions destined for Android Wear devices and allow to give input to the action (Android 4.4+)
  • extended condition Bluetooth Device Connected to query one particular profile
  • extended condition Notification on Statusbar Displayed to filter by ID
  • added option to trigger Phone Cell GSM/CDMA to trigger on every cell change
  • built-in Google Maps updated. 3D-buildings, tilt and rotate enabled
  • new script functions addAllElements, removeDuplicateElements and addAllMapEntries added
  • new script function join to convert a list to a string
  • new unofficial script functions newBitmap(w, h, argb), copyBitmap(bitmap) to create mutable bitmaps that can be modified with script function setPixel(bitmap, x, y, argb) (this will be slow, just for fun)
  • added some workaround attempts in preferences->Workarounds for devices with network routing problems
  • support new profiles API on newer CM12.1 builds
  • added variable support to action Set Audio Volume and Set Default Ringtone
  • added support for break, continue and return in scripts
  • added variables containing the remote host and port in trigger HTTP Request
  • added workaround to get the app processes on latest builds of Android 5.1.1, condition App Process Running is now marked as not officially supported and can fail on some devices
  • make action Set System Locale work on Android 6 **
  • make action Set Mobile Network Mode (2G/3G) work on Android 6 **
  • new script function getAndroidSDKVersion to get the framework version of Android the device is running
  • trigger and condition Notification on Statusbar Displayed provide a new variable wearable_actions containing the labels of the Android Wear actions
  • added device idle/doze mode option to triggers Calendar, Calendar Event, Time, Periodic Timer, Next Alarm, Global Variable Date
  • added method PATCH to action HTTP Request and internal modifications since the currently used API was removed on Android 6
  • added more inbox types to trigger/condition Gmail Unread Conversation Count
  • added helper to test regular expressions in action Script
  • minor enhancements and bug fixes


* This function is not officially supported by Android and might not work on all devices.
** This function requires root access, is not officially supported by Android and might not work on all devices.

:!: Ensure to create a backup before you install an EAP version.
Download: Automagic.apk (2015-10-24)

Regards,
Martin

User avatar
acerzw
Posts: 39
Joined: 10 May 2015 13:38

Re: EAP version 1.29.0-dev

Post by acerzw » 27 Jun 2015 19:44

Thanks for adding the graphics functions Martin, I have started work on some flows and will post them to this EAP thread soon.

Rob

lchiocca
Posts: 69
Joined: 15 Aug 2013 10:11

Re: EAP version 1.29.0-dev

Post by lchiocca » 29 Jun 2015 09:29

>added option to trigger Phone Cell GSM/CDMA to trigger on every cell change

THANK YOU!!!! You're the best! :)

Fantilator
Posts: 10
Joined: 28 Jun 2015 14:27

Re: EAP version 1.29.0-dev

Post by Fantilator » 29 Jun 2015 16:39

The Sim state works nice, although it reads not the state at startup.
Anychance of offering this in a condition, so you can manually ask to read the simstate.
Don't do brainless thing, automate it...
Xiami Mi Note Pro

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: EAP version 1.29.0-dev

Post by Martin » 30 Jun 2015 19:43

Fantilator,

How do you mean that it does not read the state at startup? Do you miss any SIM state changes (is Automagic already running at this time?) or do you only want to initialize a variable with the current state when Automagic starts?
You can find the current state of the SIM with an action Init Variables Phone Info. I'll add a hint in the help page of the trigger about this action.

Regards,
Martin

User avatar
acerzw
Posts: 39
Joined: 10 May 2015 13:38

Re: EAP version 1.29.0-dev

Post by acerzw » 01 Jul 2015 20:39

Hi Martin,

Please find attached a basic graphics flow which tests a line drawing function using the new setPixel() function. It includes a custom widget overlay (640x480) called 'Draw Test' as a canvas. If you add this widget and then trigger it by tapping, it calls the 'Graphics System' flow which draws a hundred random colored lines to a bitmap (using an optimized integer routine), saves the bitmap to a file called 'Graphics Test.jpg' on 'sdcard0/' and then displays it in the overlay. Emergency stop needs to be set very high.

As you predicted it is quite slow, but it is pretty cool and shows that graphics are viable. It would be nice not to have to write the bitmap to a file in order to display it, is there any existing way to do that? Another limitation, I think, is that as it is not possible to store a bitmap to a global variable all graphics functions that are to draw to a single bitmap have to be in the same flow, or save and load the bitmap in each flow to a local variable, is that correct?

I will add in some more routines for circles etc and post them here also.

Kind Regards

Rob
Attachments
Graphics_Test.xml
(338.83 KiB) Downloaded 930 times

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: EAP version 1.29.0-dev

Post by Martin » 03 Jul 2015 12:49

Hi Rob,

:D

There's quite a big overhead when actions are executed since every action logs some stuff etc. You could increase the performance quite a bit by looping over [1 to 100] within the script 'Draw Line Test' and initialize the random line variables there. Well, it will still be slow...

For now you have to save and load the images from a file. I'm a bit scared to allow to store images in global variables since the variables are all kept in memory and images can consume more memory than one might be aware of.
I think it would be better to pass an image directly to a widget with a function call like setWidgetElementBitmap("Widget", "Image_1", variableContainingImage);. I'll see if I can add this in the next build.

Regards,
Martin

User avatar
acerzw
Posts: 39
Joined: 10 May 2015 13:38

Re: EAP version 1.29.0-dev

Post by acerzw » 03 Jul 2015 18:11

Hi Martin,

I understand regarding images in global variables, probably not a great idea. The additional function would definetly help cut overheads, can do a lot even with slow graphics, retro 3d wireframes are cool and colourful. I initialise the line parameters outside the line drawing action to make it more generic and reusable, which is not really necessary in this demo, was thinking of future uses. An option to turn off logging either in individual flow options or globally in prefs might be an idea? Would also help increase performance for other intensive flows like clocks etc on slower devices, save some battery too.

Thanks for adding the graphics stuff. Working on another demo to upload.

Rob

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: EAP version 1.29.0-dev

Post by Martin » 05 Jul 2015 13:49

A new EAP build is available.

Changes in this update:
  • new action Init Variable Image Metadata to read Exif metadata of an image and more
  • new action Set Disabled Keyguard Features
  • new unofficial script function setWidgetElementBitmap(String widgetName, String elementName, Bitmap image) to show a local image in an image element on a widget
  • minor changes and fixes
Download: Automagic.apk (2015-07-05)

User avatar
acerzw
Posts: 39
Joined: 10 May 2015 13:38

Re: EAP version 1.29.0-dev

Post by acerzw » 05 Jul 2015 18:03

Hi Martin,

Unable to use this I get an evaluation license expired message despite full uninstall and reinstall.

Rob

Locked