Hi,
the LocaleExecute plug-in lets you start Linux commands from Locale. I wrote it to start QuickSSHd automatically when I reach home. It can also show user-defined Toast messages and it can start commands as root (provided your phone is rooted and "su" is in the PATH).
This is my first Android app, so please tell me if I made some mistakes. The plug-in is based on the Locale Toast Setting demo plug-in. The icons were made by Everaldo Coelho and YellowIcon, found here.
Good stuff man. Didn't test it yet but if it were on the market and cost a few bucks I'd throw down for it.
Thank you, d0ugie, for the encouraging words.
Now it's on the market: http://www.cyrket.com/p/android/de.elmicha.app.LocaleExecute/
The help page is available at http://elmicha.de/app/LocaleExecute/plugin-help.html. That page is also shown if you press the help button from the plug-in's menu.
Hey elmicha,
How do I find for this command: /data/data/com.teslacoilsw.quicksshd/dropbear/quicksshd_helper START
for the other applications?
Such as if I want to toggle the 2G settings in my rooted N1 froyo stock?
Or start the activity of a Task killer that kills all apps except the ignored apps?
Is there a way to find these locations/commands automatically?
I have Locale and I'm very interested in your app. It opens up a lot of possibility if the above questions could be answered and solved with your plug-in.
The "quicksshd_helper START" command has been proposed and implemented by the author of QuickSSHd. There is no standard way of executing a Linux command to do something in Android apps.
I don't know how to toggle 2G/3G with a Linux command. Every 2G/3G toggle widget only takes you to the settings screen, so it doesn't seem to be easy (or perhaps not possible at all).
To kill tasks you could try the Locale AutoKill Plug-in or use Tasker, which can kill tasks with a built-in function.
Oh, so unless I can contact the developer to give me the command, I can't do it alone?
I've tried tasker, and it can only kill 1 app at a time. I've used autokill plug-in but I just wanted to see if a real task killer could do the job instead. And the toggling of 2G/3G is only for phones with CM roms.
Hi,
I'm trying to write a volume toggle app so that I can reference it from the lockscreen to mute/unmute my Vision.
I've followed the android developers guides to "Hello World" etc.. and have successfully created an app that switches between mute and unmuted sound levels. But...
... when I use the app, the lockscreen is disabled, so then I have to re-lock. What i'd like to do is to use the app to switch volume and then return to the lockscreen. From what I've read so far you need to use the DeviceProcessManager API and that's where it gets complicated. I've looked at the samples, but I don't need a whole visual based app. I need to enable device admin rights for the force lock policy and store that somehow. I think also that that is done in the "oncreate" class and then my toggle would take place in the "onresume" class, but this is where my knowledge/experience break down. Can anyone point me towards any other examples of:
1. How to use the DPM to enable an admin policy for an app
2. How to identify if current screen state is locked or unlocked
Many thanks
Sent from my HTC Vision using XDA
For those not aware of automagic:
Automagic is a automation application that uses a flow-chart interface to set-up the automations you want. It has a few pre-programmed flows (mostly hidden in the 'catalog'), but it's mainly the imagination that's the limit. So my reasoning for this post is collecting more flow charts or ideas, share them with others and hopefully inspire more.
Link
Automagic for Gleeo
Automagic premium
Automagic for gleeo is in principal for their time managing app Gleeo, but it can be used for a number of different tasks as wel.
Automagic premium is their paid app, I know that's commercial but it only features more actions/triggers/... than the free version, which is already pretty versatile on its own.
Flow charts
flow charts typically consist of
- a trigger (rectangle box with rounded corners)
- a condition (diamond box)
- an action (rectangle box)
My flow charts
- basic airplane mode by clock (see catalog by pressing the menu button)
- a basic wifi connected > disable mobile data // wifi disconnected > enable mobile data
- 2 NFC triggered flows (but they could be altered to location/time)
This app looks interesting. Love the flow chart design.
I downloaded the lite version, but there seem to be very little things I can do with it.
I dont mind paying for the pro, but would like to test the task that I wish to setup firtst; as I've already bought AutomateIt and Tasker (too complicated for my usage). AutomateIt does not have some actions that I wish to setup e.g. WIFI tethering.
Is there a trial app? or do you happen to have a Xperia S, and can confirm if the following action work:
1) trigger on/ off WIFI tethering (without intervention)
2) trigger on/ off GPS (without intervention)
3) trigger on/ off NFC (without intervention)
This application shows a lot of potential. I bought the pro version and will play around with it as soon as I have some time. In the mean time, I downloaded and activated and313's Proximity Screen On/Off flow. It works pretty well except for a weird admin problem message when trying to turn off the screen.
Overall, a good program with a lot of potential. Well done guys :good:
Edit: Enabling admin privileges for Automagic from settings solves the issue.
Been using this as a replacement for Tasker and have been very happy with it. The flowchart style profiles and logging options make creating complex profiles much easier. The other thing I like is that many options like NFC or lockscreen toggling are built in and it doesn't need all the extra addins/plugins that I needed to get things done with Tasker.
Kinda surprised this isn't popular. Any reason why? Seems like it's a very well made app.
utter! + Automagic + permanent voice recognition
Hi, good day all.
I'm trying to use command:2 (invoke permanent voice recognition) intent via automagic instead of Tasker. I much prefer Automagic and will not turn away from it. (I'm a novice re: programming language if even that)
I'll explain what I have tried so far, hopefully someone can lend a helping hand.
In Automagic I have tried "Start Activity" and "Send Broadcast" Action Types.
I'm making some progress with the "Start Activity" Action where my...
-ACTION TYPE = "Start Activity"
-ACTION = "android.intent.action.SEND"
-Explicit Component Checked...
PACKAGE NAME = "com.brandall.nutter"
CLASS NAME = "com.brandall.nutter.EIH"
EXTRAS =
"putString(command, 2);
putString(password, mypassword123)"
The ACTION results in a toast "utter! password failure for external application", it looks like the command is registering, but the password is not.
My utter! POWER USER PASSWORD = "mypassword123" literally, to make things simple... that password worked for me when invoking command:2 in Tasker. I've tried different alphanumeric passwords in utter! as well.
In other words I'm trying to set the data extras in automagic to "command:2" and "password:mypassword123", but, Automagic forces ";" and forces "putString" prestatements, if that makes any sense.
It looks like automagic has all intent Function, Variable, and Snippet options ie: putString, putBoolean, putFloat, putDouble etc.
How can I get Automagic activate the permanent voice recognition function in utter!?
It would be great to just be able to have some kind of activity shortcut to turn on off voice recognition instead of this, or just have it boot with phone boot. But I'm definately not complaining as utter! is free and very good!, thanks!
RESOLVED!
The great people at Automagic have replied to me (very quickly I might add) and have resolved my problem.
So for those of you who wish to control the permanent voice recognition of utter! via Automagic, here's the solution...
"Hi,
Your configuration almost works, only the extras field needs some small adjustments:
-ACTION: doesn't matter
-Explicit Component: Checked
-PACKAGE NAME: com.brandall.nutter
-CLASS NAME: com.brandall.nutter.EIH
-EXTRAS:
putInt("command", 4);
putString("password", "test");
It seems that utter uses an int for the command and not a string so you have to use the putInt function in this case.
The first parameter of the putInt and putString function needs to be a string, therefore the key has to be put into double quotes otherwise it would refer to a variable with this name.
Please also see the help page of action 'Script' for a description of the scripting language:
http://automagic4android.com/en/help/components#action_script
Utter also offers a plugin which can be used in Automagic with the action 'Plugin' but I'm not sure if utter allows to control the same functions using the plugin.
Automagic ROCKS!:good:
unknown cell ID's
In Llama, there's a trigger to invoke an action whereby if you are connected to unknown cell ID's the action is triggered. I wonder if it's possible to do the same on Automagic. Any ideas?
Hi,
please add a new action > remove / disable alarm
edit: calendar event from google calendar works also? edit 3: tested, its working
edit 2: Location based condition need a button "current Location"
cheers
starbase64
starbase64 said:
Hi,
please add a new action > remove / disable alarm
edit: calendar event from google calendar works also? edit 3: tested, its working
edit 2: Location based condition need a button "current Location"
cheers
starbase64
Click to expand...
Click to collapse
Try posting your requests on the automagic site. I don't think the developer has anything to do with this thread.
http://automagic4android.com/en/
simonwil said:
Try posting your requests on the automagic site. I don't think the developer has anything to do with this thread.
http://automagic4android.com/en/
Click to expand...
Click to collapse
Yes, I forgot to mention I'm not the developer,
Just made this post to form a basis to share flows with other xda users.
For official news/posts/questions/... use the links provided in the post.
Firehead said:
Kinda surprised this isn't popular. Any reason why? Seems like it's a very well made app.
Click to expand...
Click to collapse
I've been wondering that as well. This is a truly amazing app, and automating my phone has never been this fun. Automagic is compatible with all the Tasker plugins, and I have yet to find anything I can't do with this app that I could do with Tasker.
Here is part of my battery saving flow, enabling data traffic for a short while four times per hour while the screen is off (except for during nights and when battery is low), at the same time making sure not to turn off data if there is any ongoing traffic.
I could do the same in Tasker, but I find it so much easier to do when you can see the whole automation flow like this. Also, it looks impressive
malexin said:
I've been wondering that as well. This is a truly amazing app, and automating my phone has never been this fun. Automagic is compatible with all the Tasker plugins, and I have yet to find anything I can't do with this app that I could do with Tasker.
Here is part of my battery saving flow, enabling data traffic for a short while four times per hour while the screen is off (except for during nights and when battery is low), at the same time making sure not to turn off data if there is any ongoing traffic.
I could do the same in Tasker, but I find it so much easier to do when you can see the whole automation flow like this. Also, it looks impressive
Click to expand...
Click to collapse
How is this profile working for you? Would you mind sharing it?
steelersmb said:
How is this profile working for you? Would you mind sharing it?
Click to expand...
Click to collapse
It's working very well, and my battery lasts noticeably longer. Previously I was using a separate app for this, but making my own flow was more fun, and works just as well.
Here are the flows for you (one for when turning the screen off and one for when turning it on).
malexin said:
It's working very well, and my battery lasts noticeably longer. Previously I was using a separate app for this, but making my own flow was more fun, and works just as well.
Here are the flows for you (one for when turning the screen off and one for when turning it on).
Click to expand...
Click to collapse
Thanks, brow, but how do I import this .xml file into the app?
Firehead said:
Kinda surprised this isn't popular. Any reason why? Seems like it's a very well made app.
Click to expand...
Click to collapse
I think it's because he doesn't use advertisement for promote hes app
Importing flow as XML file
fuone said:
Thanks, brow, but how do I import this .xml file into the app?
Click to expand...
Click to collapse
Hi,
also tried to import xml files into Automagic Premium (AP)
But whithin the app you just get some bad Apps to select for opening the importing file. (Look at: Menue=>Manage=>Import Flows/Widgets)
So here is how it works for me:
- search file with any file browser
- try to open it and select AP for this action
- done
Next you open AP you'll find the flow at the "Ungrouped" folder, or in the folder defined by the programmer.
Hope this can help.
Hi,
press the 3dot to open the quick menĂ¼ for this flow and then press send, now you can attached the xml file here
regards
starbase64
This is best automation app i have ever used as i used tasker and lima.. But this app is so powerful and so fun.. I love it.. And so easy to use.. Recommended for everyone...
I know this is an old thread, but I just found out about it and was wondering if anyone had any amazing flows they'd like to share?
I like Llama's location services much better than Tasker's. I see that Llama has a send intent action. I'd like to be able to have Llama send an intent to Tasker, so that when Llama senses a new area, it will change my "%Location" variable in Tasker to "Car," "Home," "Work," etc. I have no idea what to do with the create intent screen though. Does it matter what I put in the intent boxes on Llama, or do I just make them up? There are boxes on Llama for "Intent Send Mode," "Package Name," "Class Name," "Action," "Categories," "Data," and "Data Type" on Llama. Under the "Intent Received" condition in Tasker, it has "Action," "Cat" (x2), "Scheme," "Mime Type," and "Priority." The only ones I see that lines up between the two are Action and Categories. Do I just type something matching into Action on both to make it work? I really don't get intents, even though I've tried to read multiple guides on them.
Meriwether_R said:
I like Llama's location services much better than Tasker's. I see that ...
Click to expand...
Click to collapse
I am wanting my Llama to interact with Tasker, as well, Meriwether. Specifically, I am wanting it to launch tasks from Tasker when it detects a location/time change; I've noticed that on my device (VZW G Note 3 4.4.4), Tasker's tasks seem to play nicer than my Llama's tasks with my phone's configuration and settings.
I've come across Llama's guide on using intents within the app, herehttp://kebabapps.blogspot.com/2011/07/android-intents-aka-widget-locker.html?m=1, and Tasker's intent guide here http://tasker.dinglisch.net/userguide/en/intents.html. After reading through them, I am still confused.
I'm going to peruse the Android SDK expansion of intents again (linked in the aforementioned Tasker link near the top), and maybe I'll grasp a concept or two that I didn't catch the first time.
Hello,
I have a member of my family who loves to take my phone and ask me the password, and if I don't want to give him he says I don't trust him and makes me feel bad saying that he trusts me...
So what I did is that I created a different profile for him and when he asks my phone I discreetly change profile by a simple gesture and give him the phone. But that requires me to change the profile and I need to be fast doing it, and this obviously isn't the best solution.
What I'd like is to have some feature or app that would allow me to have a lockscreen and if I type "1234" it goes on the guest profile, and if I type "5678" it goes on my profile, like the hidden volume in Veracrypt actually.
Do you know an app that could do that, or even know where I could propose it as a feature integrated in the system?
Thanks!
Note: I am root so I also accept methods like Magisk module or zips to flash...
Tasker
Thanks for your answer! How would I do that in Tasker? What kind of action would it be? Would it act as a lockscreen?