Taster change android settings

247 views
Skip to first unread message

Darren Baker

unread,
Aug 27, 2018, 5:25:25 PM8/27/18
to Tasker
Hi all I'm sorry to bother you but I'm really stuck and I'm not sure its just me being rubbish or if I'm missing something

I am trying to make a simple toggle app that changes a system settings, it works perfectly in tasker but when I export it to an app it's just does nothing and I can't work out why

I have also tried to make it using a Shell script but got nowhere with this I was unable to get any settings change using shell

All I'm doing is changing the value of

touch_disable_mode to 0

I'm assuming tasker settings does not export to an app and that's why it's not working

When I try shell

I use
setting out system touch_disable_mode 0

And I just get error 255 or some other


This settings is specific to Huawei phones but I have the same problem if try Changing brightness for instances

Is there anyway anyone can point me in the right direction or tel me even if this is possible

Many thanks

Robert Ryan

unread,
Aug 27, 2018, 6:04:43 PM8/27/18
to tas...@googlegroups.com
I assume you are trying to use the Custom Setting action to do this? 

Did you enable the WRITE_SECURE_SETTINGS permission as shown in the help text for that action? 

-- 
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Darren Baker

unread,
Aug 27, 2018, 6:13:40 PM8/27/18
to Tasker
Hi Robert

Thank you for your help with this.

Yes I am using custom setting (sorry should of mentioned this)

No I have not done write secure settings. As I was under the impression system is not a secure setting only global and secure are as they ask you to activate write secure

Also it works as a task with out me doing that it’s just when I export it to an app.

I’m happy to do this if it will help but I need to export it as an app for other phones and this would be to complicated for others to follow so I hope it can be done with out that

Thank you again

Robert Ryan

unread,
Aug 27, 2018, 6:28:43 PM8/27/18
to tas...@googlegroups.com
When it fails, do you get an error? 

Darren Baker

unread,
Aug 27, 2018, 6:35:11 PM8/27/18
to Tasker
It only fails when it’s exported as an app though app factory, and no errors are produced I even add a flash message to show any errors

As a task it works flawlessly. I’m wonder if talker setting can’t be used as an app this is where I tried shell but that looks like it’s beyond my ability as I cant get anything to work

Darren Baker

unread,
Aug 28, 2018, 5:36:21 AM8/28/18
to Tasker
Sorry should of posted this yesterday here is the xml that I’m using

<TaskerData sr="" dvi="1" tv="5.2.bf1">
<Task sr="task10">
<cdate>1535232489915</cdate>
<edate>1535448660825</edate>
<id>10</id>
<nme>TDM</nme>
<pri>100</pri>
<Kid sr="Kid">
<launchID>10</launchID>
<pkg>com.gmail.daz.tdm</pkg>
<vnme>1.0</vnme>
<vnum>2</vnum>
</Kid>
<Action sr="act0" ve="7">
<code>235</code>
<Int sr="arg0" val="2"/>
<Str sr="arg1" ve="3">touch_disable_mode</Str>
<Str sr="arg2" ve="3">=:=toggle=:=</Str>
<Int sr="arg3" val="0"/>
<Str sr="arg4" ve="3">%tdmvalue</Str>
</Action>
<Action sr="act1" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%tdmvalue</lhs>
<op>0</op>
<rhs>0</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act2" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%tdmmessage</Str>
<Str sr="arg1" ve="3">Touch Display Mode is OFF</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>43</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%tdmvalue</lhs>
<op>0</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act4" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%tdmmessage</Str>
<Str sr="arg1" ve="3">Touch Display Mode is ON</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>38</code>
</Action>
<Action sr="act6" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">%tdmmessage</Str>
<Int sr="arg1" val="0"/>
</Action>
<Img sr="icn" ve="2">
<nme>hl_ab_device_access_secure</nme>
</Img>
</Task>
</TaskerData>

C S

unread,
Aug 28, 2018, 8:28:33 AM8/28/18
to Tasker
Try adding app permissions to the task.

Darren Baker

unread,
Aug 28, 2018, 8:52:23 AM8/28/18
to Tasker
My appogise, I’m not sure how to do this

The app does ask for the write setting permission on its own which is authorised.
Reply all
Reply to author
Forward
0 new messages