Skip to content

Instantly share code, notes, and snippets.

@5310
Last active September 7, 2017 13:04
Show Gist options
  • Select an option

  • Save 5310/ece87ff048d0834686d7a2c27dc31d70 to your computer and use it in GitHub Desktop.

Select an option

Save 5310/ece87ff048d0834686d7a2c27dc31d70 to your computer and use it in GitHub Desktop.
Tasker Profiles and Tasks for 'Ingress Mode' #script

These are the tasks and profiles I use to optimize my Ingress Pokémon Go sessions.

Root required. Use at your own risk!

  • Ingress_Mode_Quick_Setting.tsk.xml adds shortcuts to my (CyanogenMod) dropdown to enable and disable the mode and also launch the apps.
  • Enable_Ingress_Mode.tsk.xml applies up the actual settings as well as the profile with further optimizations.
  • Disable_Ingress_Mode.tsk.xml reverts these changes.
  • Running_Ingress_or_Pokémon_Go.prf.xml monitors if the games are running and optimizes based on it.
  • Enter_Ingress_Mode.tsk.xml keeps screen awake and power usage and background data minimized while the games are running.
  • Exit_Ingress_Mode.tsk.xml temporarily reverts these changes when the apps are not in foreground.
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Task sr="task23">
<cdate>1467870910247</cdate>
<edate>1467874921423</edate>
<id>23</id>
<nme>Disable Ingress Mode</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>159</code>
<Str sr="arg0" ve="3">Running Ingress or Pokémon Go</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">svc data disable</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="act2" ve="7">
<code>18</code>
<App sr="arg0">
<appClass>com.unity3d.player.UnityPlayerNativeActivity</appClass>
<appPkg>com.nianticlabs.pokemongo</appPkg>
<label>Pokémon GO</label>
</App>
<Int sr="arg1" val="1"/>
</Action>
<Action sr="act3" ve="7">
<code>18</code>
<App sr="arg0">
<appClass>com.nianticproject.ingress.NemesisActivity</appClass>
<appPkg>com.nianticproject.ingress</appPkg>
<label>Ingress</label>
</App>
<Int sr="arg1" val="1"/>
</Action>
<Action sr="act4" ve="7">
<code>547</code>
<on>false</on>
<Str sr="arg0" ve="3">%INGRESSMODE</Str>
<Str sr="arg1" ve="3">Enable</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Task sr="task30">
<cdate>1467870910247</cdate>
<edate>1467874925966</edate>
<id>30</id>
<nme>Enable Ingress Mode</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>159</code>
<Str sr="arg0" ve="3">Running Ingress or Pokémon Go</Str>
<Int sr="arg1" val="1"/>
</Action>
<Action sr="act1" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">svc data enable</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="act2" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.unity3d.player.UnityPlayerNativeActivity</appClass>
<appPkg>com.nianticlabs.pokemongo</appPkg>
<label>Pokémon GO</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>20</code>
<on>false</on>
<App sr="arg0">
<appClass>com.nianticproject.ingress.NemesisActivity</appClass>
<appPkg>com.nianticproject.ingress</appPkg>
<label>Ingress</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>547</code>
<on>false</on>
<Str sr="arg0" ve="3">%INGRESSMODE</Str>
<Str sr="arg1" ve="3">Disable</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Task sr="task26">
<cdate>1467828018442</cdate>
<edate>1467874597609</edate>
<id>26</id>
<nme>Enter Ingress Mode</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">settings put global low_power 1</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="act1" ve="7">
<code>812</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
</Action>
</Task>
</TaskerData>
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Task sr="task27">
<cdate>1467828119057</cdate>
<edate>1467870114888</edate>
<id>27</id>
<nme>Exit Ingress Mode</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">settings put global low_power 0</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="act1" ve="7">
<code>812</code>
<Int sr="arg0" val="30"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Task sr="task25">
<cdate>1467874274508</cdate>
<edate>1467875021897</edate>
<id>25</id>
<nme>Ingress Mode Quick Setting</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>157</code>
<Str sr="arg0" ve="3">Ingress Mode</Str>
<Img sr="arg1" ve="2">
<nme>hd_location_web_site</nme>
</Img>
<Int sr="arg2" val="1"/>
<ListElementItem sr="item0">
<label>Enable</label>
<Action sr="action" ve="7">
<code>130</code>
<Str sr="arg0" ve="3">Enable Ingress Mode</Str>
<Int sr="arg1">
<var>%priority</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>hd_av_play</nme>
</Img>
</ListElementItem>
<ListElementItem sr="item1">
<label>Disable</label>
<Action sr="action" ve="7">
<code>130</code>
<Str sr="arg0" ve="3">Disable Ingress Mode</Str>
<Int sr="arg1">
<var>%priority</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>hd_av_stop</nme>
</Img>
</ListElementItem>
<ListElementItem sr="item2">
<label>Ingress</label>
<Action sr="action" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.nianticproject.ingress.NemesisActivity</appClass>
<appPkg>com.nianticproject.ingress</appPkg>
<label>Ingress</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Img sr="icon" ve="2">
<cls>com.nianticproject.ingress.NemesisActivity</cls>
<pkg>com.nianticproject.ingress</pkg>
</Img>
</ListElementItem>
<ListElementItem sr="item3">
<label>Pokémon GO</label>
<Action sr="action" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.unity3d.player.UnityPlayerNativeActivity</appClass>
<appPkg>com.nianticlabs.pokemongo</appPkg>
<label>Pokémon GO</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Img sr="icon" ve="2">
<cls>com.unity3d.player.UnityPlayerNativeActivity</cls>
<pkg>com.nianticlabs.pokemongo</pkg>
</Img>
</ListElementItem>
<ListElementItem sr="item4">
<label>GO Chat</label>
<Action sr="action" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.parse.gochat.DispatchActivity</appClass>
<appPkg>com.parse.gochat</appPkg>
<label>GO Chat</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Img sr="icon" ve="2">
<cls>com.parse.gochat.DispatchActivity</cls>
<pkg>com.parse.gochat</pkg>
</Img>
</ListElementItem>
</Action>
</Task>
</TaskerData>
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Profile sr="prof29" ve="2">
<cdate>1467870657179</cdate>
<edate>1467874606398</edate>
<flags>1</flags>
<id>29</id>
<limit>true</limit>
<mid0>26</mid0>
<mid1>27</mid1>
<nme>Running Ingress or Pokémon Go</nme>
<State sr="con0" ve="2">
<code>165</code>
<ConditionList sr="if">
<bool0>Or</bool0>
<Condition sr="c0" ve="3">
<lhs>%WIN</lhs>
<op>2</op>
<rhs>Pokémon GO</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%WIN</lhs>
<op>2</op>
<rhs>Ingress</rhs>
</Condition>
</ConditionList>
</State>
</Profile>
<Task sr="task26">
<cdate>1467828018442</cdate>
<edate>1467874597609</edate>
<id>26</id>
<nme>Enter Ingress Mode</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">settings put global low_power 1</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="act1" ve="7">
<code>812</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
</Action>
</Task>
<Task sr="task27">
<cdate>1467828119057</cdate>
<edate>1467870114888</edate>
<id>27</id>
<nme>Exit Ingress Mode</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">settings put global low_power 0</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="act1" ve="7">
<code>812</code>
<Int sr="arg0" val="30"/>
<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