[TUTORIAL] Merge Xposed, Tasker, Autovoice and Google Now to use phone only by voice

Search This thread

78Staff

Senior Member
Sep 26, 2007
1,526
457
Cosmo, Fl
Yep, I using custom rom carbon 4.4.4. Sory, I cant see your signature, im using tapatalk[emoji17]
For give me,Can i post description on this thread?

Profile: Anon (2)
Time: From 12:01 Till 12:03
Enter: Airplane (3)

Task: Airplane (3)
A1: Secure Settings [ Configuration:Airplane Mode Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]

EDITED...

Sorry, after I wrote all that I realized I was using the wrong time lol...

OK, this does work for me...

Profile: AP Example (58)
Time: From 12:01 Till 12:03
Enter: AP Mode On (69)
A1: Secure Settings [ Configuration:Airplane Mode Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds): 0 ]

I'll attach xml to the post, import into tasker and set your times as desired and see if it works for you.


Also, here's the thread...
http://xdaforums.com/showthread.php?t=1110775
 

Attachments

  • AP_Example.prf.zip
    716 bytes · Views: 13
Last edited:
  • Like
Reactions: oldman20

78Staff

Senior Member
Sep 26, 2007
1,526
457
Cosmo, Fl
Yep, I using custom rom carbon 4.4.4. Sory, I cant see your signature, im using tapatalk[emoji17]
For give me,Can i post description on this thread?
Profile: Anon (2) Time: From 12:01 Till 12:03 Enter: Airplane (3) Task: Airplane (3) A1: Secure Settings [ Configuration:Airplane Mode Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]

Updated previous reply
 
  • Like
Reactions: oldman20
Updated previous reply
Excuse, but how to import xml into tasker? I found only "input" row like this, but it cant saw xml, or zip file I downloaded
bf8cc12b67c12cfba155cee4c52a903c.jpg
 
ok, don't worry :) we'll do it together, i'll try to guide you the best i can :)
1) unzip the file inside your computer and put the three .prf.xml file somewhere
2) copy them inside yout phone memory (try to put them inside Tasker/profiles folder in your external sdcard)
3) open tasker
4) go into preferences and be sure that beginner mode is unchecked
5) click on "Profiles" tab header (so on "Profiles" word)
6) a pop-up menu appears (listed options are Import and Set Sort) choose Import
7) if you are not inside tasker/profiles folders, navigate to it (you should now see the profiles' names) and select the three profiles previously copied there (you might be forced to import them one by one)
8) you should see them inside your Profiles tab, in tasker homepage :)

tell me if you need further explanations :)

edit: i've seen your screenshots only now, and probably yes, you are only looking for them inside the wrong folder :) follow my guide or directly navigate to the path shown inside first screenshot when you are trying to import them via tasker browser (use the top-right arrow to go one level up)
Here what every I did, but cant see xml, I dont know why?
8c7ba4b50c58585ad6942f04282b5115.jpg
3b2aed93945afecf1ee93ef50c5dfaeb.jpg
685c3442094e3974078b962ac841b9ef.jpg

8008fb479109ded43223ff92ceaf2d80.jpg
 

78Staff

Senior Member
Sep 26, 2007
1,526
457
Cosmo, Fl
Here what every I did, but cant see xml, I dont know why?

I've seen import issues with Tasker, diff versions, etc..

here;s the xml, just copy and save to a xml file on phone and try...

Code:
<TaskerData sr="" dvi="1" tv="4.5u1m">
	<Profile sr="prof58" ve="2">
		<cdate>1415975695599</cdate>
		<edate>1416026325784</edate>
		<id>58</id>
		<limit>true</limit>
		<mid0>69</mid0>
		<nme>AP Example</nme>
		<Time sr="con0">
			<fh>12</fh>
			<fm>1</fm>
			<th>12</th>
			<tm>3</tm>
		</Time>
	</Profile>
	<Task sr="task69">
		<cdate>1415975713919</cdate>
		<edate>1416026325784</edate>
		<id>69</id>
		<nme>AP Mode On</nme>
		<Action sr="act0" ve="7">
			<code>11820</code>
			<Bundle sr="arg0">
				<Vals sr="val">
					<com.intangibleobject.securesettings.plugin.extra.BLURB>Airplane Mode Enabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
					<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
					<com.intangibleobject.securesettings.plugin.extra.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>
					<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
					<com.intangibleobject.securesettings.plugin.extra.SETTING>airplane_mode</com.intangibleobject.securesettings.plugin.extra.SETTING>
					<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
					<com.twofortyfouram.locale.intent.extra.BLURB>Airplane Mode Enabled</com.twofortyfouram.locale.intent.extra.BLURB>
					<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
					<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
					<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
				</Vals>
			</Bundle>
			<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
			<Str sr="arg2" ve="3">Secure Settings</Str>
			<Int sr="arg3" val="0"/>
		</Action>
	</Task>
</TaskerData>
 
  • Like
Reactions: oldman20
I've seen import issues with Tasker, diff versions, etc..

here;s the xml, just copy and save to a xml file on phone and try...

Code:
<TaskerData sr="" dvi="1" tv="4.5u1m">
<Profile sr="prof58" ve="2">
<cdate>1415975695599</cdate>
<edate>1416026325784</edate>
<id>58</id>
<limit>true</limit>
<mid0>69</mid0>
<nme>AP Example</nme>
<Time sr="con0">
<fh>12</fh>
<fm>1</fm>
<th>12</th>
<tm>3</tm>
</Time>
</Profile>
<Task sr="task69">
<cdate>1415975713919</cdate>
<edate>1416026325784</edate>
<id>69</id>
<nme>AP Mode On</nme>
<Action sr="act0" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Airplane Mode Enabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>airplane_mode</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Airplane Mode Enabled</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>
Many thanks, but i using phone, so hard to copy xml code with format, can you attach txt file, please?
 

78Staff

Senior Member
Sep 26, 2007
1,526
457
Cosmo, Fl
  • Like
Reactions: oldman20

lukes91

Senior Member
Aug 20, 2013
2,052
1,217
32
Somewhere Over The Rainbow
Still didn't work, I opened your xml file with droid edit, copy all content and pasted into new xml file, but it didn't work, too. Any idea? What's version you using?
Which is yours? As soon as i get home in late afternoon i'll try to import those profiles...

Edit: can you import one of the profiles i posted following my guide? Just to know if that works :)

Sent from here
 
Last edited:
  • Like
Reactions: oldman20

lukes91

Senior Member
Aug 20, 2013
2,052
1,217
32
Somewhere Over The Rainbow
I tried xml inside autovoice.zip which your attached, same results, I cant see any xml to import. My tasker is 4.5
dbaf81915694cbd44cea9164baa82378.jpg
e675fdecf66dbdb3080d4ac634c07950.jpg
Do this:
To import a profile open tasker, longpress profile tab name (in top left corner), click import and then browse to files to import

To import a task open tasker, longpress task tab name (in top left corner,just right to profile), click import and then browse to files to import

Let me know :)

Sent from here
 
  • Like
Reactions: oldman20
Do this:
To import a profile open tasker, longpress profile tab name (in top left corner), click import and then browse to files to import

To import a task open tasker, longpress task tab name (in top left corner,just right to profile), click import and then browse to files to import

Let me know :)

Sent from here
Yeah, I can do that way. Thanks you so so much[emoji7]. You're best!

---------- Post added at 08:39 AM ---------- Previous post was at 08:35 AM ----------

But airplane mode still didn't work automatically :(
 

Top Liked Posts

  • There are no posts matching your filters.
  • 48
    Guide

    How to merge Xposed, Tasker, Autovoice and Google Now all together

    Hi Guys!
    This is a guide about how to integrate tasker, xposed, autovoice and google now and get our device to work with voice (even when screen is off)
    Read carefully the disclaimer and follow the guide only if you know what you’re doing :p

    Credits
    Credits go to all the developers who created the apps/plugins/xposed modules I use in this guide and also to @memnoc who wrote this useful guide that gave me this idea...

    I got some ideas also reading guides around the web, but I haven’t found one which merges all this things all together, so here it is :)

    Purpose

    The purpose of this guide is to let our devices act like a Nexus 5 or a Moto X: in the first one you can say “ok google” to launch Google Search in the homescreen, in the second one you can do that even when the phone is in standby :good:

    Disclaimer

    I’m not responsible for bricked devices or wrong setups, this is a part of my personal setup and I’m sharing this “as is”…
    Moreover pay attention when setting up tasker, because if you make any mistake you might put your phone in a “non-unlocking loop” and you will be cut off from it…
    I'm not using free versions of the apps, but the donate ones! (should work also on free versions, not sure anyway)
    Remember also that this setup can drain a lot of battery as it enables our phones to listen to commands even with screen off (you can put a tasker trigger to let it work only with screen on, for example)
    I’ve tried this setup only with my phone and it works, so if you test this on yours and it works, please let me know :)
    You can edit this instructions to fit your needs, those are only a guideline…
    I’ve got a lot of profiles and tasks in my tasker homescreen because I’ve made a lot of automation, so if I miss something please let me know, I’ll add it asap :)
    if you use my guide and follow my instructions, then you accept the disclaimer :)

    Requirements

    Root (obviously)
    Tasker
    Secure settings
    assistant event
    Xposed
    Autovoice
    Google search api (xposed module)
    You need to mod your google search app as described is memnco’s guide (link above)

    Missing parts
    I will not write down how to install xposed, modules and so on (you already know :))
    I will only write how to merge everything

    My setup
    Htc One X
    ViperX 4.0.7

    Let’s start
    When you have met all the requirements, you can start:

    Google api configuration:

    1) Open google api and tick both checkboxes and be sure autovoice is inside plugin list
    attachment.php
    attachment.php



    Autovoice configuration:

    1) Open autovoice and toggle continuous listener switch on
    attachment.php


    2) enable google now api integration
    attachment.php


    3) Edit search type to “both”
    attachment.php


    Tasker configuration:
    **if you want, you can download a minimum working profiles setup from OP#3, but i suggest you to read ths part anyway**

    Here there is the real important part… you will have to setup different tasks and toggles to have everything working, also because when you start google now autovoice continuous mode stops working and you have to re-enable it…
    Keep in mind that if you want to perform tests or change anything during configuration you might need to restart autovoice continuous mode manually, as sometimes it stops working after configurations…
    Nothing to worry about anyway ;)
    Moreover, if you restart autovoice, pay attention to be in tasker home screen after setting up a task or a trigger, because if you have any pending task/profile configuration autovoice continuous mode might not work properly
    p.s. I had those issues on my device with many other tasker triggers and tasks, so you might not encounter them along you way :)
    if Tasker asks you Root permissions, give them to it…

    I set my recognition language to en-EN because I’m Italian, infact when I talk to my phone I prefer to do this in English so I will not trigger anything while speaking to my friends J. I also set up a trigger word (viper in my case) so if I’m talking to someone and I say “home” my device will not reconfigure itself for home (to do that I will have to say “viper home”)
    When prompting a command after a trigger word, wait a couple of seconds and I suggest you to setup a timeout for command recognition after trigger word…

    My device has not an unlock pattern/sim/password, so it’s quite simple to wake it up with a word… if your device has some security lockscreen protection, search in tasker/secure settings instructions how to remove it and re-enable it again (only required if you want your device to listen to you even if its screen is off)

    allow tasker external access in preferences and also uncheck beginner mode (should work even without external access, but not sure)

    1) Setup a state trigger, call it Autovoice Daemon, search for plugin/Assistant Event for tasker, click it and click “pencil icon in top-right corner” after configuration: it will auto configure itself, do not do anything else here
    2) Link a task to it, call it Autovoice Daemon and add plugin/Autovoice Recognize and configure it like mine
    attachment.php

    edit language according to your likings
    3) Create a new state trigger, call it Autovoice Google, search for plugin/Autovoice Recognized and configure it this way: event behaviour “true”, command filter is “google” and trigger word is “viper” (that's for me, you can change it as you prefer)
    4) Link a task to it, call it GN and set it up this way
    attachment.php

    --to setup secure settings, click add/plugin/secure settings and configure them… you will need 3: the first one is to enable keyguard, the second one to disable it and the third one is to wake device (set it to wake both screen and keyboard)

    Now, if you restart the autovoice continuous mode and turn display off, after saying “viper google” Google Now should appear on display and you can say "ok google" to do what you want (in the language you want)… google api integration is required to let google handle autovoice triggers
    Remember that launching google now will break autovoice continuous mode, so you will need to find a way to disable continuous mode and to re-enable it according to your needs… tasker can easily handle that…
    For example I set tasker to turn off continuous mode when google now is opened and to turn it on again when I lock device (this is enough for my likings :))
    I also set the phone to vibrate after recognition of “viper” trigger word, so I know when the trigger word has been accepted and I can tell the command…

    Possibilities are unilimited :D let your fantasy guide you ;)

    Hope you liked the guide, if I missed something or you want more explanations, tell me please :)
    have a nice day!


    XDA:DevDB Information
    Voice Control with Xposed, Tasker, Autovoice, Google Now, a Tool/Utility for the Android General

    Contributors
    lukes91

    Version Information
    Status: Stable

    Created 2014-03-29
    Last Updated 2014-03-29
    7
    Tasker Minimum Working Confguration
    (requirements descripted in OP must be met to getting this working)

    ok guys, here attached you can find the minimum required profiled/tasks for getting everything working...
    i've tried to delete all tasker data from my setup and imported only those and it worked, so you shouldn't encounter issues...
    to be sure it will work, verify in tasker preferences that beginner mode is unticked and external access is allowed...
    pay attention that those come from my personal configuration, so there might be instructions/settings/profiles/etc not suitable for your personal configuration and so i STRONGLY suggest you to check my profiles and tasks before activating them, i won't be responsible for issues/bricked devices/hair loss or apocalypse ;)
    to import them, extract files from zip, put them to sd card, open tasker, click on profiles tab, select import and browse to the files...

    the trigger word is "viper"
    the word used to launch google now after saying "viper" is "google" (how much fantasy here :p)

    the profile "autovoice recognised" is used only to make the phone vibrate when the trigger word is listened and recognized, so it's not "strictly" required to have everything working

    in those profiles you won't fing anything to toggle autovoice continuous mode on/of or to preserve battery life, so if you set everything up the battery might drain very, VERY fast; sorry guys, but you will have to manage this on your own to fit your needs (anyway ask here if you want suggestions :))

    please edit those profile according to your likings, so for example you can set them/add others so as phone will isten to your voice when it's inside car dock, it might be useful when driving... i assume that in this scenario car charger will be plugged in, so battery won't drain too much :)

    if i forget something please let me know :)

    p.s. i won't write the detailed guide if those profiles work, because it woult take a lot of time and moreover you can deduce all the steps looking at profiles uploaded here...

    if you want to change trigger word, jump here ;)

    Security Warning!
    pay attention that enabling those profiles everyone who knows your trigger word can unlock and wake your device, even if an unlock sequence is set... i've not tested them with pin/password protection..
    6
    Tested working configurations

    HTC One X - ViperX 4.0.7 (Sense 5.0 and android 4.2.2)
    Galaxy Note 2 N7100 - Ditto Note 3 (thanks to @Daedulus Minion)
    Droid RAZR HD Maxx - Android 4.1.2 (thanks to @LifeAsADroid)
    4
    Contributors
    I would like to thank the following users for reporting their working configurations

    3
    I wanted to say that I did it before you did but never uploaded it on XDA nice work though now I had this working on my phone from the past 3 months you can have a look at my Google+ profile by my username

    Now my main aim is to port the whole Moto X feature into my own ROM soon just need the code to be perfect and working let's hope

    Sorry man, i couldn't know you already did it :) anyway i hope we can see this feature in every device from now on...

    Sent from here