Skip to content

Instantly share code, notes, and snippets.

@AndroPlus-org
Last active June 14, 2019 03:55
Show Gist options
  • Save AndroPlus-org/ec689961afc11b778504c6ca8e429fb5 to your computer and use it in GitHub Desktop.
Save AndroPlus-org/ec689961afc11b778504c6ca8e429fb5 to your computer and use it in GitHub Desktop.
Popup OnePlus 7 Pro camera when unlocked (Tasker)
<TaskerData sr="" dvi="1" tv="5.8.0.beta.5">
<Profile sr="prof79" ve="2">
<cdate>1560391986044</cdate>
<edate>1560484093923</edate>
<id>79</id>
<mid0>80</mid0>
<nme>Popup</nme>
<Event sr="con0" ve="2">
<code>208</code>
<pri>0</pri>
</Event>
</Profile>
<Task sr="task80">
<cdate>1560391988142</cdate>
<edate>1560484093923</edate>
<id>80</id>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>30</code>
<Int sr="arg0" val="230"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>123</code>
<se>false</se>
<Str sr="arg0" ve="3">dumpsys media.camera|grep -e "Device 1 is open." &gt;/dev/null
echo $?</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3">%IncameraUsing</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act2" ve="7">
<code>37</code>
<ConditionList sr="if">
<bool0>And</bool0>
<Condition sr="c0" ve="3">
<lhs>%IncameraUsing</lhs>
<op>0</op>
<rhs>0</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%LIGHT</lhs>
<op>7</op>
<rhs>50</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act3" ve="7">
<code>123</code>
<se>false</se>
<Str sr="arg0" ve="3">oneplus-motor up</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act4" ve="7">
<code>43</code>
</Action>
<Action sr="act5" ve="7">
<code>123</code>
<se>false</se>
<Str sr="arg0" ve="3">oneplus-motor down</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act6" ve="7">
<code>38</code>
</Action>
<Action sr="act7" ve="7">
<code>135</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Str sr="arg2" ve="3"/>
<ConditionList sr="if">
<bool0>And</bool0>
<Condition sr="c0" ve="3">
<lhs>%IncameraUsing</lhs>
<op>0</op>
<rhs>0</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%LIGHT</lhs>
<op>7</op>
<rhs>50</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act8" ve="7">
<code>123</code>
<se>false</se>
<Str sr="arg0" ve="3">oneplus-motor down</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act9" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%IncameraUsing</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment