Advertisement
Guest User

Current SOT in Tasker (by /u/falseprecision), requires root

a guest
Nov 7th, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.70 KB | None | 0 0
  1. <TaskerData sr="" dvi="1" tv="4.7u3m">
  2.     <Task sr="task318">
  3.         <cdate>1446877334612</cdate>
  4.         <edate>1446886740337</edate>
  5.         <id>318</id>
  6.         <nme>Current SOT</nme>
  7.         <pri>100</pri>
  8.         <Action sr="act0" ve="7">
  9.             <code>123</code>
  10.             <Str sr="arg0" ve="3">dumpsys batterystats | grep -m 1 "Screen on:"</Str>
  11.             <Int sr="arg1" val="0"/>
  12.             <Int sr="arg2" val="1"/>
  13.             <Str sr="arg3" ve="3">%out</Str>
  14.             <Str sr="arg4" ve="3"/>
  15.             <Str sr="arg5" ve="3"/>
  16.             <ConditionList sr="if">
  17.                 <Condition sr="c0" ve="3">
  18.                     <lhs>%SDK</lhs>
  19.                     <op>7</op>
  20.                     <rhs>18</rhs>
  21.                 </Condition>
  22.             </ConditionList>
  23.         </Action>
  24.         <Action sr="act1" ve="7">
  25.             <code>123</code>
  26.             <Str sr="arg0" ve="3">dumpsys batteryinfo | grep -m 1 "Screen on:"</Str>
  27.             <Int sr="arg1" val="0"/>
  28.             <Int sr="arg2" val="1"/>
  29.             <Str sr="arg3" ve="3">%out</Str>
  30.             <Str sr="arg4" ve="3"/>
  31.             <Str sr="arg5" ve="3"/>
  32.             <ConditionList sr="if">
  33.                 <Condition sr="c0" ve="3">
  34.                     <lhs>%SDK</lhs>
  35.                     <op>6</op>
  36.                     <rhs>19</rhs>
  37.                 </Condition>
  38.             </ConditionList>
  39.         </Action>
  40.         <Action sr="act2" ve="7">
  41.             <code>598</code>
  42.             <Str sr="arg0" ve="3">%out</Str>
  43.             <Str sr="arg1" ve="3">(?&lt;=Screen on: )([0-9hms ]+)(?= .)</Str>
  44.             <Int sr="arg2" val="0"/>
  45.             <Int sr="arg3" val="0"/>
  46.             <Int sr="arg4" val="0"/>
  47.             <Str sr="arg5" ve="3">%matches</Str>
  48.             <Int sr="arg6" val="0"/>
  49.             <Str sr="arg7" ve="3"/>
  50.         </Action>
  51.         <Action sr="act3" ve="7">
  52.             <code>550</code>
  53.             <Str sr="arg0" ve="3">%matches(#)</Str>
  54.             <Str sr="arg1" ve="3">%matches1</Str>
  55.             <Str sr="arg2" ve="3"/>
  56.             <Str sr="arg3" ve="3">Popup</Str>
  57.             <Int sr="arg4" val="5"/>
  58.             <Int sr="arg5" val="1"/>
  59.         </Action>
  60.     </Task>
  61. </TaskerData>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement