Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <TaskerData sr="" dvi="1" tv="5.0u7m">
- <Profile sr="prof17" ve="2">
- <cdate>1503669757902</cdate>
- <edate>1506108597980</edate>
- <flags>17</flags>
- <id>17</id>
- <mid0>3</mid0>
- <mid1>4</mid1>
- <App sr="con0" ve="2">
- <cls0>com.unity3d.player.UnityPlayerActivity</cls0>
- <flags>2</flags>
- <label0>Pokémon GO</label0>
- <pkg0>com.nianticlabs.pokemongo</pkg0>
- </App>
- </Profile>
- <Project sr="proj0" ve="2">
- <cdate>1503665474986</cdate>
- <name>GO+ Helper</name>
- <pids>17</pids>
- <tids>5,2,3,9,4</tids>
- <Kid sr="Kid">
- <feat0>android.hardware.bluetooth:y</feat0>
- <launchID>3</launchID>
- <pkg>me.jordanpeck.goplushelper</pkg>
- <vnme>1.0</vnme>
- <vnum>8</vnum>
- </Kid>
- <Img sr="icon" ve="2">
- <uri>content://com.android.providers.media.documents/document/image%3A21433</uri>
- </Img>
- </Project>
- <Task sr="task2">
- <cdate>1503691902989</cdate>
- <edate>1506291264763</edate>
- <id>2</id>
- <nme>Find & Set BT Priority</nme>
- <pri>100</pri>
- <rty>2</rty>
- <Action sr="act0" ve="7">
- <code>37</code>
- <label>Check if Bluetooth is enabled</label>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%BLUE</lhs>
- <op>1</op>
- <rhs>on</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act1" ve="7">
- <code>523</code>
- <Str sr="arg0" ve="3">BT Not Enabled</Str>
- <Str sr="arg1" ve="3"/>
- <Img sr="arg2" ve="2">
- <nme>mw_action_settings_bluetooth</nme>
- </Img>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <Int sr="arg5" val="3"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%par1</lhs>
- <op>13</op>
- <rhs>true</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act10" ve="7">
- <code>126</code>
- <Str sr="arg0" ve="3">false</Str>
- <Int sr="arg1" val="1"/>
- </Action>
- <Action sr="act11" ve="7">
- <code>38</code>
- </Action>
- <Action sr="act12" ve="7">
- <code>664</code>
- <Str sr="arg0" ve="3">btDevice</Str>
- <Str sr="arg1" ve="3">connectedList</Str>
- <Str sr="arg2" ve="3">get
- {BluetoothDevice} (int)</Str>
- <Str sr="arg3" ve="3">%index</Str>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act13" ve="7">
- <code>664</code>
- <Str sr="arg0" ve="3">%name</Str>
- <Str sr="arg1" ve="3">btDevice</Str>
- <Str sr="arg2" ve="3">getName
- {String} ()</Str>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act14" ve="7">
- <code>37</code>
- <label>Only use BT device with correct name</label>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%BTName</lhs>
- <op>0</op>
- <rhs>%name</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act15" ve="7">
- <code>126</code>
- <label>Enable to only set priority on new connections</label>
- <on>false</on>
- <Str sr="arg0" ve="3">true</Str>
- <Int sr="arg1" val="1"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%par1</lhs>
- <op>0</op>
- <rhs>true</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act16" ve="7">
- <code>664</code>
- <Str sr="arg0" ve="3">btGatt</Str>
- <Str sr="arg1" ve="3">btDevice</Str>
- <Str sr="arg2" ve="3">connectGatt
- {BluetoothGatt} (Context, boolean, BluetoothGattCallback)</Str>
- <Str sr="arg3" ve="3">CONTEXT</Str>
- <Str sr="arg4" ve="3">true</Str>
- <Str sr="arg5" ve="3">new BluetoothGattCallback() {
- @Override
- public void onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {
- NotificationCompat.Builder mBuilder =
- new NotificationCompat.Builder(this)
- .setSmallIcon(R.drawable.notification_icon)
- .setContentTitle(characteristic.getIntValue(17,0))
- .setContentText("Hello World!");
- NotificationManager mNotificationManager =
- (NotificationManager) getSystemService("notification");
- mNotificationManager.notify(586094358, mBuilder.build());
- }
- }</Str>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act17" ve="7">
- <code>664</code>
- <label>Set priority high</label>
- <Str sr="arg0" ve="3">%return</Str>
- <Str sr="arg1" ve="3">btGatt</Str>
- <Str sr="arg2" ve="3">requestConnectionPriority
- {boolean} (int)</Str>
- <Str sr="arg3" ve="3">1</Str>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act18" ve="7">
- <code>664</code>
- <label>Attempt at getting battery life stat</label>
- <on>false</on>
- <Str sr="arg0" ve="3">serviceUUID</Str>
- <Str sr="arg1" ve="3">UUID</Str>
- <Str sr="arg2" ve="3">fromString
- {UUID} (String)</Str>
- <Str sr="arg3" ve="3">0000180f-0000-1000-8000-00805f9b34fb</Str>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act19" ve="7">
- <code>664</code>
- <on>false</on>
- <Str sr="arg0" ve="3">charUUID</Str>
- <Str sr="arg1" ve="3">UUID</Str>
- <Str sr="arg2" ve="3">fromString
- {UUID} (String)</Str>
- <Str sr="arg3" ve="3">00002a19-0000-1000-8000-00805f9b34fb</Str>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act2" ve="7">
- <code>126</code>
- <Str sr="arg0" ve="3">false</Str>
- <Int sr="arg1" val="1"/>
- </Action>
- <Action sr="act20" ve="7">
- <code>664</code>
- <on>false</on>
- <Str sr="arg0" ve="3">gattService</Str>
- <Str sr="arg1" ve="3">btGatt</Str>
- <Str sr="arg2" ve="3">getService
- {BluetoothGattService} (UUID)</Str>
- <Str sr="arg3" ve="3">serviceUUID</Str>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act21" ve="7">
- <code>664</code>
- <on>false</on>
- <Str sr="arg0" ve="3">gattChar</Str>
- <Str sr="arg1" ve="3">gattService</Str>
- <Str sr="arg2" ve="3">getCharacteristic
- {BluetoothGattCharacteristic} (UUID)</Str>
- <Str sr="arg3" ve="3">charUUID</Str>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act22" ve="7">
- <code>664</code>
- <on>false</on>
- <Str sr="arg0" ve="3">%test</Str>
- <Str sr="arg1" ve="3">btGatt</Str>
- <Str sr="arg2" ve="3">readCharacteristic
- {boolean} (BluetoothGattCharacteristic)</Str>
- <Str sr="arg3" ve="3">gattChar</Str>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act23" ve="7">
- <code>664</code>
- <label>Close connection with device</label>
- <Str sr="arg0" ve="3"/>
- <Str sr="arg1" ve="3">btGatt</Str>
- <Str sr="arg2" ve="3">close
- {} ()</Str>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act24" ve="7">
- <code>523</code>
- <label>Only notify if not called from auto looper</label>
- <Str sr="arg0" ve="3">BT Priority Set High: %return</Str>
- <Str sr="arg1" ve="3">%name</Str>
- <Img sr="arg2" ve="2">
- <nme>mw_action_settings_bluetooth</nme>
- </Img>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <Int sr="arg5" val="3"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%par1</lhs>
- <op>13</op>
- <rhs>true</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act25" ve="7">
- <code>126</code>
- <Str sr="arg0" ve="3">%return</Str>
- <Int sr="arg1" val="1"/>
- </Action>
- <Action sr="act26" ve="7">
- <code>38</code>
- </Action>
- <Action sr="act27" ve="7">
- <code>888</code>
- <Str sr="arg0" ve="3">%index</Str>
- <Int sr="arg1" val="1"/>
- <Int sr="arg2" val="0"/>
- </Action>
- <Action sr="act28" ve="7">
- <code>135</code>
- <Int sr="arg0" val="1"/>
- <Int sr="arg1" val="5"/>
- <Str sr="arg2" ve="3">Loop start</Str>
- </Action>
- <Action sr="act3" ve="7">
- <code>38</code>
- </Action>
- <Action sr="act4" ve="7">
- <code>664</code>
- <label>Get list of connected BT devices</label>
- <Str sr="arg0" ve="3">btManager</Str>
- <Str sr="arg1" ve="3">CONTEXT</Str>
- <Str sr="arg2" ve="3">getSystemService
- {BluetoothManager} (String)</Str>
- <Str sr="arg3" ve="3">bluetooth</Str>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act5" ve="7">
- <code>664</code>
- <Str sr="arg0" ve="3">connectedList</Str>
- <Str sr="arg1" ve="3">btManager</Str>
- <Str sr="arg2" ve="3">getConnectedDevices
- {List} (int)</Str>
- <Str sr="arg3" ve="3">7</Str>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act6" ve="7">
- <code>664</code>
- <Str sr="arg0" ve="3">%BTConnectedCount</Str>
- <Str sr="arg1" ve="3">connectedList</Str>
- <Str sr="arg2" ve="3">size
- {int} ()</Str>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act7" ve="7">
- <code>547</code>
- <label>Loop through list of BT devices</label>
- <Str sr="arg0" ve="3">%index</Str>
- <Str sr="arg1" ve="3">0</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- <Action sr="act8" ve="7">
- <code>37</code>
- <label>Loop start</label>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%index</lhs>
- <op>0</op>
- <rhs>%size</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act9" ve="7">
- <code>523</code>
- <label>Only notify if not called from auto looper</label>
- <Str sr="arg0" ve="3">BT Device Not Found</Str>
- <Str sr="arg1" ve="3">Connected BT devices: %BTConnectedCount</Str>
- <Img sr="arg2" ve="2">
- <nme>mw_action_settings_bluetooth</nme>
- </Img>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <Int sr="arg5" val="3"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%par1</lhs>
- <op>13</op>
- <rhs>true</rhs>
- </Condition>
- </ConditionList>
- </Action>
- </Task>
- <Task sr="task3">
- <cdate>1503695287158</cdate>
- <edate>1506328287719</edate>
- <id>3</id>
- <nme>Auto Looper</nme>
- <pri>100</pri>
- <rty>1</rty>
- <Action sr="act0" ve="7">
- <code>547</code>
- <label>Variable setup</label>
- <Str sr="arg0" ve="3">%NotificationTitle</Str>
- <Str sr="arg1" ve="3">Tasker GO+ Helper</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%NotificationTitle</lhs>
- <op>13</op>
- <rhs></rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act1" ve="7">
- <code>547</code>
- <Str sr="arg0" ve="3">%BTName</Str>
- <Str sr="arg1" ve="3">Pokemon GO Plus</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%BTName</lhs>
- <op>13</op>
- <rhs></rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act10" ve="7">
- <code>779</code>
- <Str sr="arg0" ve="3">%NotificationTitle</Str>
- <Int sr="arg1" val="0"/>
- </Action>
- <Action sr="act11" ve="7">
- <code>137</code>
- <Int sr="arg0" val="0"/>
- <Str sr="arg1" ve="3"/>
- </Action>
- <Action sr="act12" ve="7">
- <code>38</code>
- </Action>
- <Action sr="act13" ve="7">
- <code>37</code>
- <label>Switch notification if changed state</label>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%return</lhs>
- <op>1</op>
- <rhs>%IsPrioritySet</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act14" ve="7">
- <code>523</code>
- <Str sr="arg0" ve="3">%NotificationTitle</Str>
- <Str sr="arg1" ve="3">Connected & high priority set!</Str>
- <Img sr="arg2" ve="2">
- <nme>mw_action_label</nme>
- </Img>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="1"/>
- <Int sr="arg5" val="2"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%return</lhs>
- <op>0</op>
- <rhs>true</rhs>
- </Condition>
- </ConditionList>
- <ListElementItem sr="item0">
- <label>Exit</label>
- <Action sr="action" ve="7">
- <code>130</code>
- <Str sr="arg0" ve="3">Stop Looper</Str>
- <Int sr="arg1">
- <var>%priority+1</var>
- </Int>
- <Str sr="arg2" ve="3"/>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Int sr="arg5" val="0"/>
- </Action>
- <Img sr="icon" ve="2">
- <nme>mw_navigation_close</nme>
- </Img>
- </ListElementItem>
- <ListElementItem sr="item1">
- <label>Force Check</label>
- <Action sr="action" ve="7">
- <code>130</code>
- <Str sr="arg0" ve="3">Find & Set BT Priority</Str>
- <Int sr="arg1">
- <var>%priority+1</var>
- </Int>
- <Str sr="arg2" ve="3"/>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3">%IsPrioritySet</Str>
- <Int sr="arg5" val="0"/>
- </Action>
- <Img sr="icon" ve="2">
- <nme>mw_action_find_replace</nme>
- </Img>
- </ListElementItem>
- <ListElementItem sr="item2">
- <label>Restart BT</label>
- <Action sr="action" ve="7">
- <code>130</code>
- <Str sr="arg0" ve="3">Restart BT</Str>
- <Int sr="arg1">
- <var>%priority+1</var>
- </Int>
- <Str sr="arg2" ve="3"/>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Int sr="arg5" val="0"/>
- </Action>
- <Img sr="icon" ve="2">
- <nme>mw_action_settings_bluetooth</nme>
- </Img>
- </ListElementItem>
- </Action>
- <Action sr="act15" ve="7">
- <code>523</code>
- <Str sr="arg0" ve="3">%NotificationTitle</Str>
- <Str sr="arg1" ve="3">Waiting for connection...</Str>
- <Img sr="arg2" ve="2">
- <nme>mw_action_label_outline</nme>
- </Img>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="1"/>
- <Int sr="arg5" val="2"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%return</lhs>
- <op>1</op>
- <rhs>true</rhs>
- </Condition>
- </ConditionList>
- <ListElementItem sr="item0">
- <label>Exit</label>
- <Action sr="action" ve="7">
- <code>130</code>
- <Str sr="arg0" ve="3">Stop Looper</Str>
- <Int sr="arg1">
- <var>%priority+1</var>
- </Int>
- <Str sr="arg2" ve="3"/>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Int sr="arg5" val="0"/>
- </Action>
- <Img sr="icon" ve="2">
- <nme>mw_navigation_close</nme>
- </Img>
- </ListElementItem>
- <ListElementItem sr="item1">
- <label>Force Check</label>
- <Action sr="action" ve="7">
- <code>130</code>
- <Str sr="arg0" ve="3">Find & Set BT Priority</Str>
- <Int sr="arg1">
- <var>%priority+1</var>
- </Int>
- <Str sr="arg2" ve="3"/>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3">%IsPrioritySet</Str>
- <Int sr="arg5" val="0"/>
- </Action>
- <Img sr="icon" ve="2">
- <nme>mw_action_find_replace</nme>
- </Img>
- </ListElementItem>
- <ListElementItem sr="item2">
- <label>Restart BT</label>
- <Action sr="action" ve="7">
- <code>130</code>
- <Str sr="arg0" ve="3">Restart BT</Str>
- <Int sr="arg1">
- <var>%priority+1</var>
- </Int>
- <Str sr="arg2" ve="3"/>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Int sr="arg5" val="0"/>
- </Action>
- <Img sr="icon" ve="2">
- <nme>mw_action_settings_bluetooth</nme>
- </Img>
- </ListElementItem>
- </Action>
- <Action sr="act16" ve="7">
- <code>547</code>
- <Str sr="arg0" ve="3">%IsPrioritySet</Str>
- <Str sr="arg1" ve="3">%return</Str>
- <Int sr="arg2" val="1"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- <Action sr="act17" ve="7">
- <code>38</code>
- </Action>
- <Action sr="act18" ve="7">
- <code>30</code>
- <label>Wait so the loop doesn't run super fast</label>
- <Int sr="arg0" val="0"/>
- <Int sr="arg1">
- <var>%LoopSecondsSet</var>
- </Int>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%return</lhs>
- <op>0</op>
- <rhs>true</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act19" ve="7">
- <code>30</code>
- <Int sr="arg0" val="0"/>
- <Int sr="arg1">
- <var>%LoopSeconds</var>
- </Int>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%return</lhs>
- <op>1</op>
- <rhs>true</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act2" ve="7">
- <code>547</code>
- <Str sr="arg0" ve="3">%LoopSeconds</Str>
- <Str sr="arg1" ve="3">3</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%LoopSeconds</lhs>
- <op>13</op>
- <rhs></rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act20" ve="7">
- <code>135</code>
- <Int sr="arg0" val="1"/>
- <Int sr="arg1" val="1"/>
- <Str sr="arg2" ve="3">Loop start</Str>
- </Action>
- <Action sr="act3" ve="7">
- <code>547</code>
- <Str sr="arg0" ve="3">%LoopSecondsSet</Str>
- <Str sr="arg1" ve="3">15</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%LoopSecondsSet</lhs>
- <op>13</op>
- <rhs></rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act4" ve="7">
- <code>547</code>
- <Str sr="arg0" ve="3">%AppForeground</Str>
- <Str sr="arg1" ve="3">true</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- <Action sr="act5" ve="7">
- <code>547</code>
- <Str sr="arg0" ve="3">%IsPrioritySet</Str>
- <Str sr="arg1" ve="3">null</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- <Action sr="act6" ve="7">
- <code>130</code>
- <label>Loop start</label>
- <Str sr="arg0" ve="3">Find & Set BT Priority</Str>
- <Int sr="arg1">
- <var>%priority+1</var>
- </Int>
- <Str sr="arg2" ve="3">%IsPrioritySet</Str>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3">%return</Str>
- <Int sr="arg5" val="0"/>
- </Action>
- <Action sr="act7" ve="7">
- <code>779</code>
- <label>Enable these for disconnect notification</label>
- <on>false</on>
- <Str sr="arg0" ve="3">%DisconnectNotification</Str>
- <Int sr="arg1" val="0"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%return</lhs>
- <op>0</op>
- <rhs>true</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act8" ve="7">
- <code>536</code>
- <label>Will incorrectly notify sometimes</label>
- <on>false</on>
- <Str sr="arg0" ve="3">%DisconnectNotification</Str>
- <Str sr="arg1" ve="3">BT devices connected: %BTConnectedCount</Str>
- <Img sr="arg2" ve="2">
- <nme>mw_alert_error_outline</nme>
- </Img>
- <Int sr="arg3" val="0"/>
- <Str sr="arg4" ve="3">100, 200, 100, 200, 100, 200</Str>
- <Int sr="arg5" val="3"/>
- <Int sr="arg6" val="0"/>
- <ConditionList sr="if">
- <bool0>And</bool0>
- <Condition sr="c0" ve="3">
- <lhs>%IsPrioritySet</lhs>
- <op>0</op>
- <rhs>true</rhs>
- </Condition>
- <Condition sr="c1" ve="3">
- <lhs>%return</lhs>
- <op>0</op>
- <rhs>false</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act9" ve="7">
- <code>37</code>
- <label>Stop task if GO+ not connected and app is not in foreground</label>
- <ConditionList sr="if">
- <bool0>And</bool0>
- <Condition sr="c0" ve="3">
- <lhs>%AppForeground</lhs>
- <op>1</op>
- <rhs>true</rhs>
- </Condition>
- <Condition sr="c1" ve="3">
- <lhs>%return</lhs>
- <op>1</op>
- <rhs>true</rhs>
- </Condition>
- </ConditionList>
- </Action>
- </Task>
- <Task sr="task4">
- <cdate>1503696236460</cdate>
- <edate>1506245593558</edate>
- <id>4</id>
- <nme>App Closed</nme>
- <pri>100</pri>
- <rty>1</rty>
- <Action sr="act0" ve="7">
- <code>547</code>
- <Str sr="arg0" ve="3">%AppForeground</Str>
- <Str sr="arg1" ve="3">false</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- </Task>
- <Task sr="task5">
- <cdate>1506246952047</cdate>
- <edate>1506861223461</edate>
- <id>5</id>
- <nme>Restart BT</nme>
- <pri>100</pri>
- <Action sr="act0" ve="7">
- <code>547</code>
- <Str sr="arg0" ve="3">%BTRestartNotification</Str>
- <Str sr="arg1" ve="3">BT Restart</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%BTRestartNotification</lhs>
- <op>13</op>
- <rhs></rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act1" ve="7">
- <code>664</code>
- <Str sr="arg0" ve="3">btManager</Str>
- <Str sr="arg1" ve="3">CONTEXT</Str>
- <Str sr="arg2" ve="3">getSystemService
- {BluetoothManager} (String)</Str>
- <Str sr="arg3" ve="3">bluetooth</Str>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act10" ve="7">
- <code>888</code>
- <Str sr="arg0" ve="3">%loopcount</Str>
- <Int sr="arg1" val="1"/>
- <Int sr="arg2" val="0"/>
- </Action>
- <Action sr="act11" ve="7">
- <code>135</code>
- <Int sr="arg0" val="1"/>
- <Int sr="arg1" val="1"/>
- <Str sr="arg2" ve="3">Check BT Disable</Str>
- </Action>
- <Action sr="act12" ve="7">
- <code>38</code>
- </Action>
- <Action sr="act13" ve="7">
- <code>547</code>
- <Str sr="arg0" ve="3">%loopcount</Str>
- <Str sr="arg1" ve="3">0</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- <Action sr="act14" ve="7">
- <code>294</code>
- <label>Check BT Enable</label>
- <Int sr="arg0" val="1"/>
- </Action>
- <Action sr="act15" ve="7">
- <code>664</code>
- <Str sr="arg0" ve="3">%state</Str>
- <Str sr="arg1" ve="3">btAdapter</Str>
- <Str sr="arg2" ve="3">getState
- {int} ()</Str>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act16" ve="7">
- <code>37</code>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%state</lhs>
- <op>1</op>
- <rhs>12</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act17" ve="7">
- <code>30</code>
- <Int sr="arg0" val="0"/>
- <Int sr="arg1" val="1"/>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- <Action sr="act18" ve="7">
- <code>523</code>
- <Str sr="arg0" ve="3">%BTRestartNotification</Str>
- <Str sr="arg1" ve="3">Waiting for BT startup - %loopcount</Str>
- <Img sr="arg2" ve="2">
- <nme>mw_action_settings_bluetooth</nme>
- </Img>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <Int sr="arg5" val="3"/>
- </Action>
- <Action sr="act19" ve="7">
- <code>137</code>
- <Int sr="arg0" val="0"/>
- <Str sr="arg1" ve="3"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%loopcount</lhs>
- <op>7</op>
- <rhs>15</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act2" ve="7">
- <code>664</code>
- <Str sr="arg0" ve="3">btAdapter</Str>
- <Str sr="arg1" ve="3">btManager</Str>
- <Str sr="arg2" ve="3">getAdapter
- {BluetoothAdapter} ()</Str>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act20" ve="7">
- <code>888</code>
- <Str sr="arg0" ve="3">%loopcount</Str>
- <Int sr="arg1" val="1"/>
- <Int sr="arg2" val="0"/>
- </Action>
- <Action sr="act21" ve="7">
- <code>135</code>
- <Int sr="arg0" val="1"/>
- <Int sr="arg1" val="1"/>
- <Str sr="arg2" ve="3">Check BT Enable</Str>
- </Action>
- <Action sr="act22" ve="7">
- <code>38</code>
- </Action>
- <Action sr="act23" ve="7">
- <code>523</code>
- <Str sr="arg0" ve="3">%BTRestartNotification</Str>
- <Str sr="arg1" ve="3">BT successfully restarted!</Str>
- <Img sr="arg2" ve="2">
- <nme>mw_action_settings_bluetooth</nme>
- </Img>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <Int sr="arg5" val="3"/>
- </Action>
- <Action sr="act24" ve="7">
- <code>30</code>
- <Int sr="arg0" val="0"/>
- <Int sr="arg1" val="2"/>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- <Action sr="act25" ve="7">
- <code>779</code>
- <Str sr="arg0" ve="3">%BTRestartNotification</Str>
- <Int sr="arg1" val="0"/>
- </Action>
- <Action sr="act3" ve="7">
- <code>547</code>
- <Str sr="arg0" ve="3">%loopcount</Str>
- <Str sr="arg1" ve="3">0</Str>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- <Action sr="act4" ve="7">
- <code>294</code>
- <label>Check BT Disable</label>
- <Int sr="arg0" val="0"/>
- </Action>
- <Action sr="act5" ve="7">
- <code>664</code>
- <Str sr="arg0" ve="3">%state</Str>
- <Str sr="arg1" ve="3">btAdapter</Str>
- <Str sr="arg2" ve="3">getState
- {int} ()</Str>
- <Str sr="arg3" ve="3"/>
- <Str sr="arg4" ve="3"/>
- <Str sr="arg5" ve="3"/>
- <Str sr="arg6" ve="3"/>
- <Str sr="arg7" ve="3"/>
- <Str sr="arg8" ve="3"/>
- <Str sr="arg9" ve="3"/>
- </Action>
- <Action sr="act6" ve="7">
- <code>37</code>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%state</lhs>
- <op>1</op>
- <rhs>10</rhs>
- </Condition>
- </ConditionList>
- </Action>
- <Action sr="act7" ve="7">
- <code>30</code>
- <Int sr="arg0" val="0"/>
- <Int sr="arg1" val="1"/>
- <Int sr="arg2" val="0"/>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- </Action>
- <Action sr="act8" ve="7">
- <code>523</code>
- <Str sr="arg0" ve="3">%BTRestartNotification</Str>
- <Str sr="arg1" ve="3">Waiting for BT shutdown - %loopcount</Str>
- <Img sr="arg2" ve="2">
- <nme>mw_action_settings_bluetooth</nme>
- </Img>
- <Int sr="arg3" val="0"/>
- <Int sr="arg4" val="0"/>
- <Int sr="arg5" val="3"/>
- </Action>
- <Action sr="act9" ve="7">
- <code>137</code>
- <Int sr="arg0" val="0"/>
- <Str sr="arg1" ve="3"/>
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
- <lhs>%loopcount</lhs>
- <op>7</op>
- <rhs>15</rhs>
- </Condition>
- </ConditionList>
- </Action>
- </Task>
- <Task sr="task9">
- <cdate>1503837624731</cdate>
- <edate>1506246381849</edate>
- <id>9</id>
- <nme>Stop Looper</nme>
- <pri>100</pri>
- <Action sr="act0" ve="7">
- <code>779</code>
- <Str sr="arg0" ve="3">%NotificationTitle</Str>
- <Int sr="arg1" val="0"/>
- </Action>
- <Action sr="act1" ve="7">
- <code>137</code>
- <Int sr="arg0" val="0"/>
- <Str sr="arg1" ve="3">Auto Looper</Str>
- </Action>
- </Task>
- </TaskerData>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement