[APP] Betterish Touchless Controls - Moto X Themes and Apps

I love the fact that we can launch a voice search from anywhere, anytime.
What I don't love is the "man in the middle" approach that is used. It slows down the process, and in my opinion, looks unsightly.
So, I made the process more streamlined using the power of OkGoogleNowTriggerIntent, Secure Settings (both required), and Tasker.
Download: https://docs.google.com/file/d/0B_RTyTlBDcRWQjVBUzdwZEJIRWs/edit?usp=docslist_api
In the zip is both Taskerless (apk via Tasker app factory) and NotTaskerless (project xml) flavors.
Obviously you loose Touchless Control based commands ("What's up?") by using this. Also, it adds half a second of delay between launch phrase and phone reaction, but a faster overall command. Haven't tested Assist yet, but I assume it will still work.
And again the OkGoogleNowTriggerIntent xposed module and Secure Settings are required for this to work.

Related

[APP][2.2+] My Car: Start car with voice/Vlingo/Viper/schedule based on temp/location

I was inspired for this by Fiqett, who created a Siri plugin that communicates with a PHP script that can start his car via his Viper SmartStart system. Much credit to him for the idea and the script.
This does something similar on Android (using Vlingo), along with some extra features (you can schedule the car to start based on the location of your phone and the current temperature).
What does it do?
You can start Vlingo and say “Start my car” and the car will start (you need a phone-capable Viper SmartStart system)
You can just tap the app and the car will start
You can schedule the car to start automatically at a certain time if the phone is at a defined location and if the temperature is below a defined setting
Please read this post completely before downloading. Some setup is required. Do not hesitate to ask if you are having trouble setting it up.
What does this require?
A phone-compatible Viper SmartStart system or module
An Android SmartPhone running Android 2.2 or later. I have tested this on a Galaxy Nexus and a Motorola Droid 1.
Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control)
A web server running PHP to run the control script (something like Xampp will work fine [http://www.apachefriends.org/en/xampp.html]). If there is enough interest in this, I can provide detailed instructions for configuring Xampp, but the configuration is straightforward.
My Android app (My Car, links below)
Vlingo (https://market.android.com/details?id=com.vlingo.client)
AndroidIdeas's TaskBomb (https://market.android.com/details?id=org.androidideas.taskbomb&hl=en) (any scheduler that can launch an activity will work)
How do I set it up?
Download Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control). Edit lines 9 and 10 to include your Viper username and password. Because the username and password are hardcoded in the script, the credentials are never passed insecurely between the phone and the server. The control script logs into Viper's servers and performs the requested action over HTTPS, so it is secure.
Put viper_control.php on a web server that is running PHP. I have it on a website hosted on GoDaddy.com. It would be more secure to put it on your home network and only access it via WiFi. You could also forward ports on your router so it could be accessible from anywhere. Something like Xampp (http://www.apachefriends.org/en/xampp.html) would probably run the script fine on Windows, Mac OS X, or Linux. Anyone with the knowledge that the script exists can start or unlock the car. Thus, the most secure way is to only access it via WiFi.
Once the script is set up, you should be able to go to your control URL in a browser (followed by ?action=remote) and the car should start (for example, http://192.168.0.100/viper_control.php?action=remote).
Install My Car (link is below).
Start the My Car Configuration app. Enter the URL for your viper_control.php script (do not put ?action=remote on the end). The other settings are optional and are for the Start My Car If app, which will start the car if the car is in the provided city and the temperature is under the provided value. Make sure you click Exit when you are done. Otherwise, Vlingo or TaskBomb might start the configuration instead of the car.
Run the My Car app. The car should start. If you run it again, the car should shut off.
Install Vlingo. I checked the Auto Listen box at the bottom so that it will start listening as soon as I start Vlingo (or you could use a Vlingo widget). You should be able to say “Start my car” to start the car.
Install TaskBomb for scheduling the car to start. Launch it, and go to Tasks. Add a new task, and name it “Start My Car.” Change the Action Type to MAIN. For Activity, select Start My Car If. Leave all other settings as they are. Go to Alarms. Add a new alarm, and select the task you just created. Set the schedule as desired. Mine runs Monday-Friday at 7:20am.
How do I get it?
Download the APK here:
http://www.ascci.net/mycar/MyCar.apk
Note: Google Chrome on ICS appears to rename this to a .zip file. Use a file manager to name it back or use the stock browser.
Plans for future versions:
App icons (I’m not very good at those, but I will take a stab at it if people use the app)
Display something to indicate if the car started or not
A way to start the car and immediately unlock it--for when you are in sight of it and want to start it just to be cool.
Any feedback, questions, or suggestions are welcome!
Lots of views... has anyone with a SmartStart system tried it? Any feedback?
Is there anything I could do to make the setup simpler (a video, providing Xampp setup instructions, etc.)?
is there a way to integrate it with BB10 Voice Control? :fingers-crossed:
hitchin999 said:
is there a way to integrate it with BB10 Voice Control? :fingers-crossed:
Click to expand...
Click to collapse
Might take a little digging, but we could probably figure out a way to get something working.
It appears that BB10's voice control has an "open" or "launch" command that works for some side-loaded Android apps.
http://forums.crackberry.com/blackberry-10-os-f269/voice-control-commands-772534/
Unfortunately, it doesn't look like "start" is a valid thing to say, so saying "Launch My Car" could work, but not as cool (that's why I was using Vlingo, because its key word to start apps is "start.") Although, since this is very new, maybe "start" is a valid thing to say to start an app.
The user on that post above states that this works for some side-loaded Android apps. We'd need to figure out what the criteria by which an Android app can be launched by BB10 via voice control is.
Would you be able to test it with some random Android app that runs on BB10, preferably one with a space in the name, to see if it works?
So for example, say "launch Angry Birds."
If it can do that, hopefully we can come up with something that will work. The scheduling part might be easier to do some other way (Viper's app has scheduling now, it didn't at the time of the OP).
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
udz2002 said:
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
Click to expand...
Click to collapse
Would you be willing to share those apps? I want to do the same exact thing but am having trouble.
Sent from my XT1056 using Tapatalk
gildan27 said:
I was inspired for this by Fiqett, who created a Siri plugin that communicates with a PHP script that can start his car via his Viper SmartStart system. Much credit to him for the idea and the script.
This does something similar on Android (using Vlingo), along with some extra features (you can schedule the car to start based on the location of your phone and the current temperature).
What does it do?
You can start Vlingo and say “Start my car” and the car will start (you need a phone-capable Viper SmartStart system)
You can just tap the app and the car will start
You can schedule the car to start automatically at a certain time if the phone is at a defined location and if the temperature is below a defined setting
Please read this post completely before downloading. Some setup is required. Do not hesitate to ask if you are having trouble setting it up.
What does this require?
A phone-compatible Viper SmartStart system or module
An Android SmartPhone running Android 2.2 or later. I have tested this on a Galaxy Nexus and a Motorola Droid 1.
Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control)
A web server running PHP to run the control script (something like Xampp will work fine [http://www.apachefriends.org/en/xampp.html]). If there is enough interest in this, I can provide detailed instructions for configuring Xampp, but the configuration is straightforward.
My Android app (My Car, links below)
Vlingo (https://market.android.com/details?id=com.vlingo.client)
AndroidIdeas's TaskBomb (https://market.android.com/details?id=org.androidideas.taskbomb&hl=en) (any scheduler that can launch an activity will work)
How do I set it up?
Download Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control). Edit lines 9 and 10 to include your Viper username and password. Because the username and password are hardcoded in the script, the credentials are never passed insecurely between the phone and the server. The control script logs into Viper's servers and performs the requested action over HTTPS, so it is secure.
Put viper_control.php on a web server that is running PHP. I have it on a website hosted on GoDaddy.com. It would be more secure to put it on your home network and only access it via WiFi. You could also forward ports on your router so it could be accessible from anywhere. Something like Xampp (http://www.apachefriends.org/en/xampp.html) would probably run the script fine on Windows, Mac OS X, or Linux. Anyone with the knowledge that the script exists can start or unlock the car. Thus, the most secure way is to only access it via WiFi.
Once the script is set up, you should be able to go to your control URL in a browser (followed by ?action=remote) and the car should start (for example, http://192.168.0.100/viper_control.php?action=remote).
Install My Car (link is below).
Start the My Car Configuration app. Enter the URL for your viper_control.php script (do not put ?action=remote on the end). The other settings are optional and are for the Start My Car If app, which will start the car if the car is in the provided city and the temperature is under the provided value. Make sure you click Exit when you are done. Otherwise, Vlingo or TaskBomb might start the configuration instead of the car.
Run the My Car app. The car should start. If you run it again, the car should shut off.
Install Vlingo. I checked the Auto Listen box at the bottom so that it will start listening as soon as I start Vlingo (or you could use a Vlingo widget). You should be able to say “Start my car” to start the car.
Install TaskBomb for scheduling the car to start. Launch it, and go to Tasks. Add a new task, and name it “Start My Car.” Change the Action Type to MAIN. For Activity, select Start My Car If. Leave all other settings as they are. Go to Alarms. Add a new alarm, and select the task you just created. Set the schedule as desired. Mine runs Monday-Friday at 7:20am.
How do I get it?
Download the APK here:
http://www.ascci.net/mycar/MyCar.apk
Note: Google Chrome on ICS appears to rename this to a .zip file. Use a file manager to name it back or use the stock browser.
Plans for future versions:
App icons (I’m not very good at those, but I will take a stab at it if people use the app)
Display something to indicate if the car started or not
A way to start the car and immediately unlock it--for when you are in sight of it and want to start it just to be cool.
Any feedback, questions, or suggestions are welcome!
Click to expand...
Click to collapse
I am willing to pay you to help me set this up with tasker app factory. Private message me if you're interested.
Sent from my XT1056 using Tapatalk
udz2002 said:
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
Click to expand...
Click to collapse
is it possible that you could show me how to make my assistant app start my car i will donate to you for the assistance
udz2002 said:
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
Click to expand...
Click to collapse
I found copies of your tasks elsewhere and am using in them with Tasker and Autovoice.
Do you know how to check status updates or get gps?
No I do not, sorry. I reactivated my SmartStart recently but it doesn't work right now.
if this post is still alive... I'd like to be able to send a request that unlocks the doors and then starts the car with one command, custom iPhone icon or web script. the reminder built into the app tries to start the car before disarm and alarm goes off every time. and of course, I'll pay.
Alexa, Start my Car
I finally stabilized a project that I have been working on for some time now. The project is to open my garage and start my jeep on demand using the Amazon Alexa voice assistant. Similar to the features on the Tesla. Using the Raspberry PI Zero and my existing home automation system, I can now command my Echos to “Warm up my Jeep” and be more confident that the task will run.
I first created this project by writing a program in the Android app Tasker where I used the Insteon APIs and the Viper SmartStart APIs to control both my garage and jeep. The program was to open the garage, wait for a confirmation that the garage was opened, and then start my jeep only if the garage was opened, all by a voice command. But the program was unreliable. It would work sometimes but most times it didn’t. I believe that the program was too process intensive for my Samsung S8 smartphone.
A few weeks ago, I decided to use another processing mechanism; the Raspberry PI. I found a python script on GetHub that uses the Viper Smartstart APIs to start my jeep. I installed it, tailored it to my needs, and wrapped a CGI script around it so that I can easily call it from my existing home automation system as an external network resource. I created a program that opens my garage, wait for a confirmation that my garage was opened, and then call the network resource that starts my jeep.
With my home automation system already integrated with the Amazon Alexa services, it was easy to have my Echos run my program to start my jeep. I basically set up my program in the Amazon Alexa app as a new device and created an Alexa Routine, for a customized command. I now say “Alexa, warm up my jeep” and the Alexa services open my garage and start up my jeep.
This project is awesomely convenient for me and secure as well. It easily fits within my already existing security model. Taking advantage of my Geo Fencing features, the program is designed to run only if I’m at home. And it is only accessible within my internal network. The alerts whenever my garage is opened and/or closed are still in place. And my security cameras and control panels still show me the garage whenever the garage door is opened and/or closed.
This was an exciting project and I’m still making enhancements to it, but for the most part it works as I intended, and it is much more reliable than using Tasker.
spoteat71 said:
Alexa, Start my Car
I finally stabilized a project that I have been working on for some time now. The project is to open my garage and start my jeep on demand using the Amazon Alexa voice assistant. Similar to the features on the Tesla. Using the Raspberry PI Zero and my existing home automation system, I can now command my Echos to “Warm up my Jeep” and be more confident that the task will run.
I first created this project by writing a program in the Android app Tasker where I used the Insteon APIs and the Viper SmartStart APIs to control both my garage and jeep. The program was to open the garage, wait for a confirmation that the garage was opened, and then start my jeep only if the garage was opened, all by a voice command. But the program was unreliable. It would work sometimes but most times it didn’t. I believe that the program was too process intensive for my Samsung S8 smartphone.
A few weeks ago, I decided to use another processing mechanism; the Raspberry PI. I found a python script on GetHub that uses the Viper Smartstart APIs to start my jeep. I installed it, tailored it to my needs, and wrapped a CGI script around it so that I can easily call it from my existing home automation system as an external network resource. I created a program that opens my garage, wait for a confirmation that my garage was opened, and then call the network resource that starts my jeep.
With my home automation system already integrated with the Amazon Alexa services, it was easy to have my Echos run my program to start my jeep. I basically set up my program in the Amazon Alexa app as a new device and created an Alexa Routine, for a customized command. I now say “Alexa, warm up my jeep” and the Alexa services open my garage and start up my jeep.
This project is awesomely convenient for me and secure as well. It easily fits within my already existing security model. Taking advantage of my Geo Fencing features, the program is designed to run only if I’m at home. And it is only accessible within my internal network. The alerts whenever my garage is opened and/or closed are still in place. And my security cameras and control panels still show me the garage whenever the garage door is opened and/or closed.
This was an exciting project and I’m still making enhancements to it, but for the most part it works as I intended, and it is much more reliable than using Tasker.
Click to expand...
Click to collapse
Is it still working?

[APP] Automagic

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?

[XPosed Module][Dev]Add commands to audiomonitor [CLOSED]

Hi there,
I started a project, to create a xposed module, so we can add differents commands directly into the audio monitor ("OK Google Now").
I decompiled the AudioMonitor.apk, and I needed help to find the methods that recognize the voice, and active the commands (like navigate, call, etc).
If someone can help me, I uploaded in github the decompiled version of the apk.
https://github.com/caioketo/AudioMonitorDec
So if anyone wants to help, I will apreciate it.
And also, I'm creating in github the source of this module, so it stay open source.
So this is it for now.
[EDIT]
So I found this class: GenericRecognizer (https://github.com/caioketo/AudioMo.../motorola/audiomonitor/GenericRecognizer.java)
that have this method "processRecognizedAction", so I think I'll try that out when I got home.
[CLOSED]
Unfortunally, it seems not be possible to get both things working together, "Moto commands" and "autovoice", and for this reason, I'll stop developing this, since losing the moto commands is not an option for me, and autovoice doesnt recognize from a recorded audio, it seems useless putting more effort on this.
Very cool. Thanks for looking into this. Hopefully it turns out well.
great!
This will be great! could potentially add loads of extra value to touchless control. I knew rooting was worth it
If you haven't seen it already, you could try to use the Google Now/Search API: http://forum.xda-developers.com/showthread.php?t=2554173
It's also open source, so you could try to see how it works if you wanted to work on your own module instead of working with the API.
Also, it costs money, but you can use AutoVoice + the Now API + Tasker to do just this.
iSecks said:
If you haven't seen it already, you could try to use the Google Now/Search API: http://forum.xda-developers.com/showthread.php?t=2554173
It's also open source, so you could try to see how it works if you wanted to work on your own module instead of working with the API.
Also, it costs money, but you can use AutoVoice + the Now API + Tasker to do just this.
Click to expand...
Click to collapse
I have AutoVoice + Now API + Tasker already, but the problem is that Now API needs connections, and it takes too long, to touchless control pass the parameter to google now and google now proccess it.
If it is already inside the touchless control, it will reduces the time in like 10s. I thinks it worth the work.
caioketo said:
I have AutoVoice + Now API + Tasker already, but the problem is that Now API needs connections, and it takes too long, to touchless control pass the parameter to google now and google now proccess it.
If it is already inside the touchless control, it will reduces the time in like 10s. I thinks it worth the work.
Click to expand...
Click to collapse
I have the same setup and I agree with you.
Have you made any progress on this si far?
Charlie.igg said:
I have the same setup and I agree with you.
Have you made any progress on this si far?
Click to expand...
Click to collapse
Yeah, i tested it with that method, and every command fires the method, so I'll try to log all paramters to see where is the recognized text,
and try to exit without calling the google now.
If I can get it done, I'll start building something to customize commands, I wanna go with tasker, but I never build any tasker plugin, if someone can help me, it could go faster.
I think that is the wrong method, as all parameters are useless.
I'm trying to find another method to hook up.
The problem is that with a decompiled version it's very hard to find something
Good news everyone I found a class that have a method that is called everytime it recognizes, with the words and commands in JSONObject.
https://github.com/caioketo/AudioMonitorDec/blob/master/src/f/b.java
this is the class, and the JSONObject parameter have the words, and everything else, I will try to study it more, if I confirm that we can work with this method, we will be one step forward.
Not so good news, that class get a JSON for every thing you say IF it is a command, if you say call, it will return correct.
If not a command (google search) it just send "GARBAGE" and ignores it, I found another class that call googlesearch, but it goes on audio.
It dont recgonize what isnt a command, just call:
Code:
uri = Uri.parse((new StringBuilder()).append("content://com.motorola.audiomonitor.raw_audio/command_audio/").append(s1).toString());
intent = new Intent("com.google.android.googlequicksearchbox.VOICE_SEARCH_RECORDED_AUDIO");
intent.setData(uri);
intent.addFlags(0x10000000);
So it pass an audio file to google search proccess, so we will need some audio recognition lib to help us here.
So I got it to hook the correct methods, getting the correct variables, and results, also getting the raw audio file that it sends to google search.
Now I need to process this file, with some recognition lib, since I never worked with it, I don't know where to start.
If someone could help me here it would be a lot easier.
Yes, help this OP out! This could become one of those 'must-have' mods for any Moto X (or Android) user!
I sure wish I knew more about this to help. It looks like they are using Dragon speech reg
I really think the better (and easier) path would be to simply activate the native google now/voice search activity on hotword detection. (As opposed to processing and passing the audio like audio monitor does now)
This way you can take advantage of the now api that others are actively extending. The dragon stuff in audiomon is proprietary and limited to the X8 devices.
deficitism said:
I really think the better (and easier) path would be to simply activate the native google now/voice search activity on hotword detection. (As opposed to processing and passing the audio like audio monitor does now)
This way you can take advantage of the now api that others are actively extending. The dragon stuff in audiomon is proprietary and limited to the X8 devices.
Click to expand...
Click to collapse
The problem is that to launch the google now activity it takes too long.
Im discussing it in the google+ community of autovoice:
https://plus.google.com/104794905921909929735/posts/Gisu3ccFbYy
I think we are finding a solution that would be grab the microphone to autovoice instead of touchless control the moment that you say "OK google now" and then everything will be in tasker
The only possible way right now is grab the mic after the "PING" sound, and send it to autovoice.
But this probably would break motorola commands, or, we will need to find a way around.
What about have autovoice background listening start when touchless control is the foreground app? Then autovoice could intercept commands and kill touchless control when it caught one, but if not, all touchless control commands are still usable
Sent from my XT1060 using Tapatalk
weldawadyathink said:
What about have autovoice background listening start when touchless control is the foreground app? Then autovoice could intercept commands and kill touchless control when it caught one, but if not, all touchless control commands are still usable
Sent from my XT1060 using Tapatalk
Click to expand...
Click to collapse
It's not possible since touchless controll lock the microphone, auto voice would listen nothing.
weldawadyathink said:
What about have autovoice background listening start when touchless control is the foreground app? Then autovoice could intercept commands and kill touchless control when it caught one, but if not, all touchless control commands are still usable
Sent from my XT1060 using Tapatalk
Click to expand...
Click to collapse
If you wanted to go that route, you might as well just use tasker to kill touchless control and launch autovoice when touchless control comes to the foreground
Unfortunally, it seems not be possible to get both things working together, "Moto commands" and "autovoice", and for this reason, I'll stop developing this, since losing the moto commands is not an option for me, and autovoice doesnt recognize from a recorded audio, it seems useless putting more effort on this.

Build your own *ANDROID HOME NETWORK

How to create your own ANDROID HOME NETWORK.
This network provides the following for FREE using your home wifi:
1)An intercom system between each floor of your home
2)A home phone number and way to make emergency calls
3)A limited video security system
4)A music player/radio on each floor of your home
5)An “alexa-like” internet search environment (AKA Amazon Echo) using “OK Google”
-Choose 1 phone for each floor of your home (could be those old androids you have lying around)
The phones we used were:
2x Samsung Galaxy Rush (Boost Mobile) ANDROID 4.1.2
1x LG Optimus Fuel (TracFone) ANDROID 4.4.2
I have not tried it with any other phones, but it should work with others.
*If you can choose phones that can be rooted, and are Android 4.4 or higher, it would be the best.
-Choose a location that’s appropriate to mount on each floor and a mounting system
I found a rubber webbing on ebay that allowed me to hang each one.
You can also decide if you want the screens to go off like normal, or always stay on.
I like always stay on because it gives a faster response for voice internet searches (although this will certainly shorten their screen life).
-Setup each phone with the apps needed
1)Zello is the app we use for our intercom. It is real-time (many others are not), and it allows for setting up group contact lists.
So when you intercom from one phone, all of the others broadcast what you say, and vice versa.
2)Hangouts app and Hangouts dialer allow you to use a free Google voice number (must be setup online first)
Then logging in to the same email address on all 3 phones makes them all ring at the same time whenever your Google voice number is called.
Remember to click the “incoming phone calls“ box in settings on all phones as well.
However, only 1 phone can answer, so this does not provide a party line, like the old landline systems had.
Use the Xposed module called Xhangouts to get a custom ringtone (the default is too quiet and Google doesn’t provide a native way to change it)
3)Perch is an app that allows you to remotely see what’s on the front camera of any phone, along with audio.
Your security “view” will be limited based on the position and viewing angle of each phone.
4)Tune-in radio is the internet option we chose, but any will do. We find ourselves listening a lot more now while saving the battery life on the phones in our pockets.
Of course you can also listen to playlists you’ve created with music stored on the device.
And using Google's play music app will allow you to turn on music hands-free with voice commands.
5)Setup “OK-Google”. To maximize this you really need phones with at least Android 4.4 on them (although google now launcher works on android 4.1). Otherwise this part of your network isn’t voice activated, or doesn't work as well, and thus, is not as cool.
In Google settings under search and ok-Google, choose “any screen” (you may have to retrain it’s voice recognition and it could be limited to just your voice). You can also use the xposed module to get Ok-google on any launchers home screen (Nova launcher has this built in).
6)As a finishing touch you can create a tasker profile to go back to the home screen every 2 minutes. If you won't set this up then the screen remains on the last used app. And if it's zello or something else, then older devices won't hear an ok google request. Plus it allows the live wallpaper to be visible for the majority of time.
*Here are several kid-specific finishing touches (since we have 2 little ones):
1)We use ADW launcher since it allows for password lock for both apps and the phone menu button
2)We use a status bar swipe down blocker to prevent system or setup changes
3)We leave the cellular radios on with a 911 shortcut for emergencies
4)We created a picture contact shortcut to both of our cell-phones, and made hangouts dialer the default dialer
5)We added an aquarium live wallpaper (the kids love making the fish move by tapping the screen)
That's it!
If you decide to setup your own Android Home Network, please post what you did here. I will gladly update this post (and my own setup) if you find ways to enhance this concept.
Hope you found this helpful, and a fun use for your old android phones.

[APP] [TOOL] Replay.it - Record and replay gestures and button presses (root)

HelloWorld, hope you guys are taking on the Corona crisis safely.
What started off as just means to kill time during the lockdown back here in India, eventually showcased some potential that deemed necessary an XDA post! So here it is, a practically end-to-end Android automation tool that can record and "replay" taps, swipes and programmatic button presses without breaking a sweat.
Check out this YouTube video that demos the project walks you through it with a simple yet cool scenario of automating sending messages on WhatsApp!
WHAT DOES IT NEED?
The whole thing comprises of an Android app as well as a Java command-line program that works across platforms - Windows, MacOS and Linux. It's super portable in that the app goes into your phone and the PC-side tool just needs Java SE installed. In addition, your Android phone must have root access, USB debugging enabled and a data cable for connecting it to your PC (oh yeah, with necessary drivers installed).
Note: If you're planning on just playing around to know how the whole concept of recording and replaying works, neither do you need the Android app nor do you need root. Skip to last section to know more.
WHAT CAN IT DO? - e.g. WhatsApp automation
Without sounding trite, lets understand what it does with just a simple scenario. If you were me, I'm sure it gets insipid sending quotidian morning wishes on WhatsApp, first thing waking up every morning. What if I tell you there's a tool that can watch you unlock your phone, open WhatsApp, open your desired chat, type out a message, send it, close the app and lock the phone all before you even wake up? Enter Replay.it. Jargons aside, with your phone connected to your PC via a data cable, this tool can record taps, swipes, button presses and common actions (both, as keycodes that you can check out here), have them sent over to your phone and have them "replayed" at a scheduled time as set in the Android app. Simply put, the PC-side tool is what watches you / records the way you accomplish a certain action (such as sending a message on WhatsApp) and the Android app is what schedules the replay. If you're in doubt, during replay it virtually looks as though someone invisible is at your phone tapping the screen, scrolling about and typing out text.
UNDER THE HOOD - It's open source
Clearly, the app requires root as injects touch, motion and key events on your behalf that isn't permitted with standard shell access. Technically, everything out here is ADB and you're free to view and contribute to the open source codebase that you can check out here.
FILTHY BUGS - You need to know
No piece of software ever, is bug free and just like that here's a little one. While taps are recorded fine, in order to log a swipe, you make the swipe gesture and once finished, you must tap somewhere on the screen. The trailing tap is what completes a swipe which if is not done, the entire swipe record just performed is lost.
WHERE CAN I GET IT? - Download & play
Okay, less of talk and more of work! Check out this GitHub repo for downloading the latest release and working with it. Finally, do check out the YouTube video demo and show some love!
Hope you guys find this tool useful.
Thanks and take care!

Categories

Resources