pokemon go unable to authenticate please try again 0.37.0
Just use Magisk ti root and then with tasker you can set a Profile when open PoGO and 2 tasks, Command $(getprop magisk.supath)/su -c "setprop magisk.root 0" as entry task and $(getprop magisk.supath)/su -c "setprop magisk.root 0" as exit task.
Hope it will help
Can you describe it in more detail please?
Just follow a guide (dunno if there is here in xda also, i think so, btw i followed one on androidpolice) in order to install Magisk.
The Tasker part:
- create a Profile while opening PoGO (Profile -> App, select PoGO)
- Entry task:
Code:
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Task sr="task39">
<cdate>1473844653192</cdate>
<edate>1474136138128</edate>
<id>39</id>
<nme>No Root</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">$(getprop magisk.supath)/su -c "setprop magisk.root 0"</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
</Task>
</TaskerData>
- Exit task the same but with 1 instead of 0
SAME HERE.
I HAVE THE SAME ISUE, CANT SING IN WITH THE NEW APP 037.0 BUT I CAN SING IN WITH THE OLD ONE WITH NO PROBLEM. 0.35.0 HELP PLZ :crying:
Oh ok, it seems Google had modified SafetyNet in order to find also systemless Xposed installations.. so you have to disabile Xposed and reboot First in order to play Pokémon go
aroblu94 said:
Oh ok, it seems Google had modified SafetyNet in order to find also systemless Xposed installations.. so you have to disabile Xposed and reboot First in order to play Pokémon go
Click to expand...
Click to collapse
Tried this xposed, without success: http://repo.xposed.info/module/com.pyler.nodevicecheck
aroblu94 said:
The Tasker part:
- create a Profile while opening PoGO (Profile -> App, select PoGO)
- Entry task:
Code:
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Task sr="task39">
<cdate>1473844653192</cdate>
<edate>1474136138128</edate>
<id>39</id>
<nme>No Root</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">$(getprop magisk.supath)/su -c "setprop magisk.root 0"</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
</Task>
</TaskerData>
- Exit task the same but with 1 instead of 0
Click to expand...
Click to collapse
I see nowhere to insert code. When I tap the "+" to add an action, it has a bunch of icons, none of which say "code", "entry", or anything remotely close to that. Is there somewhere else to go, to insert the text code of the actions?
Mwyann said:
Tried this xposed, without success: http://repo.xposed.info/module/com.pyler.nodevicecheck
Click to expand...
Click to collapse
Didn't work for me
Related
Does anyone know how to hack this game like to get more money and stuff?
Also looking for an answer.
i have found this file
/data/data/com.droidhen.defender/shared_prefs
save0.xml
tried to edit the values with root unsuccessful its back to original values or a blank file
for gold and magic stone have this checkValue hash
Code:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<int name="fireLevel2" value="1" />
<int name="singleRetry" value="1" />
<int name="magicStone" value="3" />
<int name="equipMagic3" value="0" />
<int name="equipMagic2" value="0" />
<int name="fireLevel1" value="3" />
<int name="equipMagic1" value="1" />
<int name="agilityLevel" value="10" />
<int name="equipBow" value="2" />
<string name="magicStonecheckValue">575766027f156ec80b56c2b4aff29fa1</string>
<int name="bowLock4" value="1" />
<int name="stage" value="50" />
<int name="bowLock2" value="1" />
<int name="powerShotLevel" value="3" />
<int name="bowLock1" value="1" />
<int name="multiArrowLevel" value="1" />
<int name="iceLevel1" value="1" />
<int name="strengthLevel" value="5" />
<string name="goldcheckValue">989805d0d941ac7e095829e801e0eb2a</string>
<int name="guardLevel" value="4" />
<int name="lightLevel1" value="1" />
<int name="fatalBlowLevel" value="3" />
<int name="totalRetry" value="24" />
<int name="gold" value="745" />
<int name="hardMode" value="0" />
</map>
goruks said:
i have found this file
/data/data/com.droidhen.defender/shared_prefs
save0.xml
tried to edit the values with root unsuccessful its back to original values or a blank file
for gold and magic stone have this checkValue hash
Click to expand...
Click to collapse
for me on galaxy s is under
/dbdata/databases/com.droidhen.defender/shared_prefs
i've tried to modify but when i start the game i've all save reset
we need to calculate the check value
i've dot it
if u want help write send private message
actually you can try this app gamecih2
it acts like the cheat engine, if you know how to use cheat engine in pc then you surely can use this
Figured anything out yet? Would love to know
Gamecih2 works
Sent from my Incredible using xda premium
It simple
Edit: Kill the game in task manager before edit the file.
the checkvalue is very simple, it's only the md5 hash of the value + the string "checkChar", look:
If you want 100000 magicStone, you do:
magicStone = 100000
magicStonecheckValue = md5(100000+"checkChar") = 758ea9ef9ae80ea41e11083fedf29205
the same for gold.
Enjoy
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
here the piece of game code:
Code:
public static int loadData(String paramString, int paramInt)
{
int i = GameProfile.getDefaultValue(paramString);
int j = _saves[paramInt].getInt(paramString, i);
String str;
if ((paramString == "gold") || (paramString == "magicStone"))
{
str = _saves[paramInt].getString(paramString + "checkValue", "");
if (str.equals(""))
{
if (paramString == "magicStone")
str = "4e29b81cc5d7d3b5396952312579e241";
}
else
{
if (checkSum(j, str))
break label119;
clearData(paramInt);
}
}
label119: for (int k = 0; ; k = j)
{
return k;
if (paramString != "gold")
break;
str = "76de858b1664d23221ab412ed4abbb51";
break;
}
}
Masterfish said:
the checkvalue is very simple, it's only the md5 hash of the value + the string "checkChar", look:
If you want 100000 magicStone, you do:
magicStone = 100000
magicStonecheckValue = md5(100000+"checkChar") = 758ea9ef9ae80ea41e11083fedf29205
the same for gold.
Enjoy
here the piece of game code:
Code:
public static int loadData(String paramString, int paramInt)
{
int i = GameProfile.getDefaultValue(paramString);
int j = _saves[paramInt].getInt(paramString, i);
String str;
if ((paramString == "gold") || (paramString == "magicStone"))
{
str = _saves[paramInt].getString(paramString + "checkValue", "");
if (str.equals(""))
{
if (paramString == "magicStone")
str = "4e29b81cc5d7d3b5396952312579e241";
}
else
{
if (checkSum(j, str))
break label119;
clearData(paramInt);
}
}
label119: for (int k = 0; ; k = j)
{
return k;
if (paramString != "gold")
break;
str = "76de858b1664d23221ab412ed4abbb51";
break;
}
}
Click to expand...
Click to collapse
That was a real help, but it seems the changes I make on it gets washed away when I start the game. Do you know what is going on?
I used root explorer to locate the save file and using text editor changed gold value and goldcheckvalue with the md5 hash I got using "100000checkChar" then save/exit to start the game again. What am I doing wrong?
the root explorer creates a backup file, make sure you delete it
I muddle " md5(100000+"checkChar") "
I want 1000000 what the code for this number ???
hakee100 said:
I muddle " md5(100000+"checkChar") "
I want 1000000 what the code for this number ???
Click to expand...
Click to collapse
magicStone = 1000000
magicStonecheckValue = dcfe797e9af072535072c8f3a3595675
edit all leves at xml, save and delete the .bak before run game
Can't find the file
I looked in both path written earlier but i can't find the save file to modify...
I have a SGS with 2.3.3
Thank you
Can't edit the file
Hi,
Sorry for my bad English but i'm French.
I have a problem : I can't edit the xml file with root explorer.
How can I change the values ? Do I need a xml editor ? Wich one ?
I hope you will be able to help me ^^
Thanks
I'm completely confused. I've never done this sort of editing. I tried using Gamecih2 but that didn't get me anywhere. Now I'm trying to follow everything you guys are saying, however, I can't even locate the damn file. I check droidhen and all I see is a file called pmdatas. When I open it with XML editor or even Notepad, all it says is "1. Defender"
Any help? Anyone wanna make a video guide?
Fine. now i got enough magic stone, but i wonder whats the code for 1000000 gold? :/
Masterfish said:
post
Click to expand...
Click to collapse
need help.. i dont know where to find the file to edit.. i am using a galaxy s.. and im using root explorer to find the shared_pref but i cant find it.. please help
can anyone please tell me what file to edit in samsung galaxy S.. cant find save0 or shared_pref just like plangevin i cant find the file to edit
Hello everyone. So i just downloaded Tasker and i want to initiate this task i found on tasker tips and tricks. Being new to it idk how to initiate this one can anyone please help me in noob friendly ways. Its the following
Code:
<TaskerData sr="" dvi="1" tv="4.8u4m">
<Task sr="task7">
<cdate>1464179426283</cdate>
<edate>1464254445018</edate>
<id>7</id>
<nme>Show Current</nme>
<pri>100</pri>
<rty>1</rty>
<Action sr="act0" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sys/class/power_supply/battery/charge_rate</Str>
<Str sr="arg1" ve="3">%charge_rate</Str>
</Action>
<Action sr="act1" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sys/class/power_supply/battery/current_now</Str>
<Str sr="arg1" ve="3">%current_now</Str>
</Action>
<Action sr="act2" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%current_now</Str>
<Str sr="arg1" ve="3">%current_now/1000</Str>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>523</code>
<Str sr="arg0" ve="3">Charging..</Str>
<Str sr="arg1" ve="3">%charge_rate , %current_now mAh</Str>
<Img sr="arg2" ve="2">
<nme>hd_aaa_nixx_plug</nme>
</Img>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="5"/>
<ListElementItem sr="item0">
<label>Refresh</label>
<Action sr="action" ve="7">
<code>130</code>
<Str sr="arg0" ve="3">Show Current</Str>
<Int sr="arg1">
<var>%priority</var>
</Int>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
Btw the one who gave this is not replying to others who asked for the steps too. I would be delighted if someone can help.
I have a Samsung Galaxy j7 Max, I am trying to make an app that is suppose to start on reboot and power on. I have declared the following permission in my AndroidManifest.xml-:
Code:
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Also I have declared the following broadcast receiver-:
Code:
<receiver
android:name="homeutil.sreyan.homeutil.BootCompleted"
android:enabled="true"
android:exported="true"
>
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.REBOOT"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
</receiver>
But no matter how many times I power off or restart my phone I the broadcast receiver for the Boot completed event is never fired.
Can someone please help me ? Is there something I am doing wrong ? my phone uses fingerprint and password as a security lock, can those be causing a problem ?
Since I like Flash Kernel, I made this Tasker updater.
Attached below I have not only posted the apk, but the code. The code can be adapted to virtually any kernel with a dedicated host that has a file tree.
Link to the APK: https://www.dropbox.com/s/ejuxgxv0gpea13s/FlashK.26.apk?dl=0
Link to the Tasker scene file: https://www.dropbox.com/s/1qhvl12j7gviter/FlashK.scn.xml?dl=0
Code:
<TaskerData sr="" dvi="1" tv="5.1m">
<dmetric>1080.0,2052.0</dmetric>
<Scene sr="sceneFlashK">
<cdate>1518793267319</cdate>
<edate>1518832087994</edate>
<heightLand>1042</heightLand>
<heightPort>2052</heightPort>
<nme>FlashK</nme>
<widthLand>1080</widthLand>
<widthPort>1080</widthPort>
<ImageElement sr="elements0" ve="2">
<flags>12</flags>
<geom>0,0,1077,2052,0,0,1080,1042</geom>
<Str sr="arg0" ve="3">Wallpaper</Str>
<Img sr="arg1" ve="2"/>
<Int sr="arg2" val="255"/>
<RectElement sr="background">
<flags>4</flags>
<geom>-1,-1,-1,-1,-1,-1,-1,-1</geom>
<Str sr="arg0" ve="3"/>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3">#FFFFFFFF</Str>
<Str sr="arg3" ve="3"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">#FF000000</Str>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</RectElement>
</ImageElement>
<WebElement sr="elements1" ve="2">
<flags>4</flags>
<geom>52,376,975,625,0,0,1077,851</geom>
<pageloadedTask>14</pageloadedTask>
<Str sr="arg0" ve="3">WebView1</Str>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3">http://nchancellor.net/downloads/kernels/op5/8.x/%KernelName-changelog.txt</Str>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="0"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
<RectElement sr="background">
<flags>4</flags>
<geom>-1,-1,-1,-1,-1,-1,-1,-1</geom>
<Str sr="arg0" ve="3"/>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3">#00FFFFFF</Str>
<Str sr="arg3" ve="3"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">#FF000000</Str>
<Int sr="arg6" val="5"/>
<Int sr="arg7" val="0"/>
</RectElement>
</WebElement>
<TextElement sr="elements2" ve="3">
<clickTask>13</clickTask>
<flags>4</flags>
<geom>227,1176,624,200,327,817,449,225</geom>
<Str sr="arg0" ve="3">Versions</Str>
<Str sr="arg1" ve="3">Installed Version: %InstalledV
Current Version: %currentV21</Str>
<Int sr="arg2" val="16"/>
<Int sr="arg3" val="100"/>
<Str sr="arg4" ve="3">#FF060000</Str>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
<Int sr="arg8" val="0"/>
<RectElement sr="background">
<flags>4</flags>
<geom>-1,-1,-1,-1,-1,-1,-1,-1</geom>
<Str sr="arg0" ve="3"/>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3">#42FFFFFF</Str>
<Str sr="arg3" ve="3"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">#FF000000</Str>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</RectElement>
</TextElement>
<ButtonElement sr="elements3" ve="3">
<clickTask>17</clickTask>
<flags>4</flags>
<geom>302,1401,200,200,327,767,475,275</geom>
<Str sr="arg0" ve="3">DownloadK</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="6"/>
<Int sr="arg3" val="100"/>
<Str sr="arg4" ve="3">#FF0C0100</Str>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="0"/>
<Img sr="arg7" ve="2">
<nme>mw_file_cloud_download</nme>
</Img>
</ButtonElement>
<ButtonElement sr="elements4" ve="3">
<clickTask>18</clickTask>
<flags>4</flags>
<geom>577,1401,200,200,352,342,375,700</geom>
<Str sr="arg0" ve="3">InstallK</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="102"/>
<Int sr="arg3" val="100"/>
<Str sr="arg4" ve="3">#FF120100</Str>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="0"/>
<Img sr="arg7" ve="2">
<nme>mw_image_flash_on</nme>
</Img>
</ButtonElement>
<SwitchElement sr="elements5">
<checkchangeTask>11</checkchangeTask>
<flags>4</flags>
<geom>427,1051,175,100,402,842,275,200</geom>
<Str sr="arg0" ve="3">Switch1</Str>
<Int sr="arg1" val="0"/>
<RectElement sr="background">
<flags>4</flags>
<geom>-1,-1,-1,-1,-1,-1,-1,-1</geom>
<Str sr="arg0" ve="3"/>
<Int sr="arg1" val="1"/>
<Str sr="arg2" ve="3">#00FDFDFD</Str>
<Str sr="arg3" ve="3">#002010D6</Str>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">#FF000000</Str>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</RectElement>
</SwitchElement>
<TextElement sr="elements6" ve="3">
<flags>4</flags>
<geom>252,1051,224,100,277,776,224,100</geom>
<Str sr="arg0" ve="3">stabletxt</Str>
<Str sr="arg1" ve="3">Stable</Str>
<Int sr="arg2" val="16"/>
<Int sr="arg3" val="100"/>
<Str sr="arg4" ve="3">#FF060000</Str>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
<Int sr="arg8" val="0"/>
</TextElement>
<TextElement sr="elements7" ve="3">
<flags>4</flags>
<geom>602,1051,224,100,602,776,224,100</geom>
<Str sr="arg0" ve="3">Betatxt</Str>
<Str sr="arg1" ve="3">Beta</Str>
<Int sr="arg2" val="16"/>
<Int sr="arg3" val="100"/>
<Str sr="arg4" ve="3">#FF000000</Str>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
<Int sr="arg8" val="0"/>
</TextElement>
<ImageElement sr="elements8" ve="2">
<flags>4</flags>
<geom>52,26,977,351,0,0,1077,301</geom>
<Str sr="arg0" ve="3">Image2</Str>
<Img sr="arg1" ve="2">
<uri>content://com.android.providers.downloads.documents/document/473</uri>
</Img>
<Int sr="arg2" val="255"/>
</ImageElement>
<PropertiesElement sr="props">
<Int sr="arg0" val="2"/>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3">#33FFFFFF</Str>
<Int sr="arg3" val="0"/>
<Str sr="arg4" ve="3">FlashK</Str>
<Str sr="arg5" ve="3"/>
<Img sr="arg6" ve="2"/>
<Str sr="arg7" ve="3"/>
</PropertiesElement>
</Scene>
<Task sr="task11">
<cdate>1518801026665</cdate>
<edate>1518801026665</edate>
<id>11</id>
<pri>102</pri>
<Action sr="act0" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/kerneltype.txt</Str>
<Str sr="arg1" ve="3">%kerneltype</Str>
</Action>
<Action sr="act1" ve="7">
<code>50</code>
<Str sr="arg0" ve="3">FlashK</Str>
<Str sr="arg1" ve="3">Switch1</Str>
<Int sr="arg2">
<var>1</var>
</Int>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%kerneltype</lhs>
<op>0</op>
<rhs>on</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act10" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%currentV2</Str>
<Str sr="arg1" ve="3">-changelog</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act11" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg1" ve="3">%InstalledV</Str>
</Action>
<Action sr="act12" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%KernelName</Str>
<Str sr="arg1" ve="3">rc/FlashKernel-OP5-v%currentV21</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act13" ve="7">
<code>43</code>
</Action>
<Action sr="act14" ve="7">
<code>50</code>
<Str sr="arg0" ve="3">FlashK</Str>
<Str sr="arg1" ve="3">Switch1</Str>
<Int sr="arg2">
<var>0</var>
</Int>
</Action>
<Action sr="act15" ve="7">
<code>410</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/kerneltype.txt</Str>
<Str sr="arg1" ve="3">off</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act16" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Checking current STABLE version</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act17" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://nchancellor.net</Str>
<Str sr="arg1" ve="3">downloads/kernels/op5/8.x/stable</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3">/sdcard/FlashK/site.txt</Str>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act18" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/site.txt</Str>
<Str sr="arg1" ve="3">%currentV</Str>
</Action>
<Action sr="act19" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%currentV</Str>
<Str sr="arg1" ve="3">FlashKernel-OP5-v</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%element_name</Str>
<Str sr="arg1" ve="3">%new_val</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act20" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%currentV2</Str>
<Str sr="arg1" ve="3">-changelog</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act21" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg1" ve="3">%InstalledV</Str>
</Action>
<Action sr="act22" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%KernelName</Str>
<Str sr="arg1" ve="3">stable/FlashKernel-OP5-v%currentV21</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act23" ve="7">
<code>38</code>
</Action>
<Action sr="act3" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%new_val</lhs>
<op>2</op>
<rhs>on</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act4" ve="7">
<code>50</code>
<Str sr="arg0" ve="3">FlashK</Str>
<Str sr="arg1" ve="3">Switch1</Str>
<Int sr="arg2">
<var>1</var>
</Int>
</Action>
<Action sr="act5" ve="7">
<code>410</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/kerneltype.txt</Str>
<Str sr="arg1" ve="3">on</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Checking current BETA version</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act7" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://nchancellor.net</Str>
<Str sr="arg1" ve="3">downloads/kernels/op5/8.x/rc</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3">/sdcard/FlashK/site.txt</Str>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act8" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/site.txt</Str>
<Str sr="arg1" ve="3">%currentV</Str>
</Action>
<Action sr="act9" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%currentV</Str>
<Str sr="arg1" ve="3">FlashKernel-OP5-v</Str>
<Int sr="arg2" val="0"/>
</Action>
</Task>
<Task sr="task13">
<cdate>1518793751773</cdate>
<edate>1518793751773</edate>
<id>13</id>
<Action sr="act0" ve="7">
<code>342</code>
<Int sr="arg0" val="5"/>
<Str sr="arg1" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg2" ve="3">%old_status</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%old_status</lhs>
<op>2</op>
<rhs>false</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act10" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/site.txt</Str>
<Str sr="arg1" ve="3">%currentV</Str>
</Action>
<Action sr="act11" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%currentV</Str>
<Str sr="arg1" ve="3">FlashKernel-OP5-v</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act12" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%currentV2</Str>
<Str sr="arg1" ve="3">-changelog</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act13" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg1" ve="3">%InstalledV</Str>
</Action>
<Action sr="act14" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://nchancellor.net</Str>
<Str sr="arg1" ve="3">downloads/kernels/op5/8.x/stable/FlashKernel-OP5-v%currentV21-changelog.txt</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Creating Directories</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>409</code>
<Str sr="arg0" ve="3">/sdcard/FlashK</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>410</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>410</code>
<Str sr="arg0" ve="3">/sdcard/Flashk/kernel.sh</Str>
<Str sr="arg1" ve="3">install /mnt/sdcard/FlashK/kernel.zip
cmd reboot</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>135</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="1"/>
<Str sr="arg2" ve="3"/>
</Action>
<Action sr="act7" ve="7">
<code>43</code>
</Action>
<Action sr="act8" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Checking current version</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act9" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://nchancellor.net</Str>
<Str sr="arg1" ve="3">downloads/kernels/op5/8.x/stable</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3">/sdcard/FlashK/site.txt</Str>
<Int sr="arg8" val="0"/>
</Action>
</Task>
<Task sr="task14">
<cdate>1518794196788</cdate>
<edate>1518794196788</edate>
<id>14</id>
<pri>102</pri>
<Action sr="act0" ve="7">
<code>342</code>
<Int sr="arg0" val="5"/>
<Str sr="arg1" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg2" ve="3">%old_status</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%old_status</lhs>
<op>2</op>
<rhs>false</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act10" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Checking Update Settings</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act11" ve="7">
<code>50</code>
<Str sr="arg0" ve="3">FlashK</Str>
<Str sr="arg1" ve="3">Switch1</Str>
<Int sr="arg2">
<var>1</var>
</Int>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%kerneltype</lhs>
<op>0</op>
<rhs>on</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act12" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%element_name</Str>
<Str sr="arg1" ve="3">%new_val</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act13" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%kerneltype</lhs>
<op>2</op>
<rhs>on</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act14" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Checking current BETA version</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act15" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://nchancellor.net</Str>
<Str sr="arg1" ve="3">downloads/kernels/op5/8.x/rc</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3">/sdcard/FlashK/site.txt</Str>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act16" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/site.txt</Str>
<Str sr="arg1" ve="3">%currentV</Str>
</Action>
<Action sr="act17" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%currentV</Str>
<Str sr="arg1" ve="3">FlashKernel-OP5-v</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act18" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%currentV2</Str>
<Str sr="arg1" ve="3">-changelog</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act19" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg1" ve="3">%InstalledV</Str>
</Action>
<Action sr="act2" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Creating Directories</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act20" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%KernelName</Str>
<Str sr="arg1" ve="3">rc/FlashKernel-OP5-v%currentV21</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act21" ve="7">
<code>43</code>
</Action>
<Action sr="act22" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Checking current STABLE version</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act23" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://nchancellor.net</Str>
<Str sr="arg1" ve="3">downloads/kernels/op5/8.x/stable</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3">/sdcard/FlashK/site.txt</Str>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act24" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/site.txt</Str>
<Str sr="arg1" ve="3">%currentV</Str>
</Action>
<Action sr="act25" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%currentV</Str>
<Str sr="arg1" ve="3">FlashKernel-OP5-v</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act26" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%currentV2</Str>
<Str sr="arg1" ve="3">-changelog</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act27" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg1" ve="3">%InstalledV</Str>
</Action>
<Action sr="act28" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%KernelName</Str>
<Str sr="arg1" ve="3">stable/FlashKernel-OP5-v%currentV21</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act29" ve="7">
<code>38</code>
</Action>
<Action sr="act3" ve="7">
<code>409</code>
<Str sr="arg0" ve="3">/sdcard/FlashK</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act30" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://nchancellor.net</Str>
<Str sr="arg1" ve="3">downloads/kernels/op5/8.x/%KernelName-changelog.txt</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>410</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>410</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/kerneltype.txt</Str>
<Str sr="arg1" ve="3">off</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>410</code>
<Str sr="arg0" ve="3">/sdcard/Flashk/kernel.sh</Str>
<Str sr="arg1" ve="3">install /mnt/sdcard/FlashK/kernel.zip
cmd reboot</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act7" ve="7">
<code>135</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="1"/>
<Str sr="arg2" ve="3"/>
</Action>
<Action sr="act8" ve="7">
<code>43</code>
</Action>
<Action sr="act9" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/kerneltype.txt</Str>
<Str sr="arg1" ve="3">%kerneltype</Str>
</Action>
</Task>
<Task sr="task17">
<cdate>1518796210752</cdate>
<edate>1518796210752</edate>
<id>17</id>
<pri>102</pri>
<Action sr="act0" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%currentV21</lhs>
<op>1</op>
<rhs>%InstalledV</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Downloading new Kernel</Str>
<Int sr="arg1" val="1"/>
</Action>
<Action sr="act2" ve="7">
<code>410</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg1" ve="3">%currentV21</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://nchancellor.net</Str>
<Str sr="arg1" ve="3">downloads/kernels/op5/8.x/%KernelName.zip</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3">application/zip, application/octet-stream</Str>
<Str sr="arg7" ve="3">/sdcard/FlashK/kernel.zip</Str>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Download Completed</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>43</code>
</Action>
<Action sr="act6" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">File already downloaded, would you like to flash?</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act7" ve="7">
<code>404</code>
<Str sr="arg0" ve="3">/sdcard/Flashk/kernel.sh</Str>
<Str sr="arg1" ve="3">/cache/recovery/openrecoveryscript</Str>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act8" ve="7">
<code>551</code>
<Str sr="arg0" ve="3">The newest Kernel was already downloaded...</Str>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3">IconGridMenu</Str>
<Int sr="arg3" val="30"/>
<Int sr="arg4" val="1"/>
<ListElementItem sr="item0">
<label>Flash Kernel</label>
<Action sr="action" ve="7">
<code>59</code>
<Int sr="arg0" val="1"/>
</Action>
<Img sr="icon" ve="2">
<nme>mw_notification_system_update</nme>
</Img>
</ListElementItem>
<ListElementItem sr="item1">
<label>Cancel</label>
<Action sr="action" ve="7">
<code>513</code>
</Action>
<Img sr="icon" ve="2">
<nme>mw_navigation_cancel</nme>
</Img>
</ListElementItem>
</Action>
<Action sr="act9" ve="7">
<code>406</code>
<Str sr="arg0" ve="3">/cache/recovery/openrecoveryscript</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
</Action>
</Task>
<Task sr="task18">
<cdate>1518796407807</cdate>
<edate>1518796407807</edate>
<id>18</id>
<Action sr="act0" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%currentV21</lhs>
<op>1</op>
<rhs>%InstalledV</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Downloading new Kernel</Str>
<Int sr="arg1" val="1"/>
</Action>
<Action sr="act10" ve="7">
<code>404</code>
<Str sr="arg0" ve="3">/sdcard/Flashk/kernel.sh</Str>
<Str sr="arg1" ve="3">/cache/recovery/openrecoveryscript</Str>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act11" ve="7">
<code>551</code>
<Str sr="arg0" ve="3">The newest Kernel was already downloaded...</Str>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3">IconGridMenu</Str>
<Int sr="arg3" val="30"/>
<Int sr="arg4" val="1"/>
<ListElementItem sr="item0">
<label>Flash Kernel</label>
<Action sr="action" ve="7">
<code>59</code>
<Int sr="arg0" val="1"/>
</Action>
<Img sr="icon" ve="2">
<nme>mw_notification_system_update</nme>
</Img>
</ListElementItem>
<ListElementItem sr="item1">
<label>Cancel</label>
<Action sr="action" ve="7">
<code>513</code>
</Action>
<Img sr="icon" ve="2">
<nme>mw_navigation_cancel</nme>
</Img>
</ListElementItem>
</Action>
<Action sr="act12" ve="7">
<code>406</code>
<Str sr="arg0" ve="3">/cache/recovery/openrecoveryscript</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act2" ve="7">
<code>410</code>
<Str sr="arg0" ve="3">/sdcard/FlashK/Version_Installed.txt</Str>
<Str sr="arg1" ve="3">%currentV21</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">http://nchancellor.net</Str>
<Str sr="arg1" ve="3">downloads/kernels/op5/8.x/%KernelName.zip</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3">application/zip, application/octet-stream</Str>
<Str sr="arg7" ve="3">/sdcard/FlashK/kernel.zip</Str>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Ready to Flash?</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>404</code>
<Str sr="arg0" ve="3">/sdcard/Flashk/kernel.sh</Str>
<Str sr="arg1" ve="3">/cache/recovery/openrecoveryscript</Str>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act6" ve="7">
<code>551</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3">IconGridMenu</Str>
<Int sr="arg3" val="30"/>
<Int sr="arg4" val="1"/>
<ListElementItem sr="item0">
<label>Flash Kernel</label>
<Action sr="action" ve="7">
<code>59</code>
<Int sr="arg0" val="1"/>
</Action>
<Img sr="icon" ve="2">
<nme>mw_notification_system_update</nme>
</Img>
</ListElementItem>
<ListElementItem sr="item1">
<label>Cancel</label>
<Action sr="action" ve="7">
<code>513</code>
</Action>
<Img sr="icon" ve="2">
<nme>mw_navigation_cancel</nme>
</Img>
</ListElementItem>
</Action>
<Action sr="act7" ve="7">
<code>406</code>
<Str sr="arg0" ve="3">/cache/recovery/openrecoveryscript</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act8" ve="7">
<code>43</code>
</Action>
<Action sr="act9" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">The newest Kernel was already downloaded</Str>
<Int sr="arg1" val="0"/>
</Action>
</Task>
</TaskerData>
Link to the Tasker task (calls the scene): https://www.dropbox.com/s/52j9nrx3swkzh9q/FlashK.tsk.xml?dl=0
Code:
<TaskerData sr="" dvi="1" tv="5.1m">
<Task sr="task10">
<cdate>1518789164002</cdate>
<edate>1518821840846</edate>
<id>10</id>
<nme>FlashK</nme>
<pri>100</pri>
<Kid sr="Kid">
<launchID>10</launchID>
<pkg>com.android.flashk</pkg>
<vnme>1.0</vnme>
<vnum>24</vnum>
</Kid>
<Action sr="act0" ve="7">
<code>47</code>
<Str sr="arg0" ve="3">FlashK</Str>
<Int sr="arg1" val="4"/>
<Int sr="arg2" val="100"/>
<Int sr="arg3" val="100"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="1"/>
<Int sr="arg7" val="1"/>
</Action>
<Img sr="icn" ve="2">
<nme>hl_aaa_nixx_bolt</nme>
</Img>
</Task>
</TaskerData>
bronderb said:
You could've just put the code in git
Click to expand...
Click to collapse
You could've just kept that to yourself. I did contemplated git but, decided against it.
Anyhow, I posted this to help people. Don't need XDA snark on the side.
Hi,
need your help with TrainingPlan app.
After reinstalling Amazfit Watch app, I had to pair the phone with watch again. Don't know why but after sync, TrainingPlan app got wiped.
It's not that big of a deal, because all the activities are still recorded on the watch/mobile/strava but I was in the middle of half-marathon training plan and would like to continue it.
In order to restore/recreate this data, I need to know how exactly this app is storing it.
I have already reviewed the source code available on gitlab.com - /Neuer_User/PACEfied_AmazFit
I have also downloaded the TrainingPlan.apk directly from the watch (with adb) and decompiled it (apktools) and reviewed the app in IDE.
Here is the content of AndroidManifest.xml from TrainingPlan:
Code:
...
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permisison android:name="com.huami.watch.permission.RECEIVE_WAKEUP"/>
<uses-permission android:name="com.huami.watch.permission.READ_USER_SETTINGS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.huami.watch.permission.READ_USER_SETTINGS"/>
<uses-permission android:name="com.huami.watch.companion.permission.READ_SETTINGS"/>
<uses-permission android:name="com.huami.watch.companion.permission.WRITE_SETTINGS"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<uses-permission android:name="com.huami.watch.permission.READ_USER_SETTINGS"/>
<uses-permission android:name="com.huami.watch.permission.WRITE_USER_SETTINGS"/>
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:name=".TrainApplication" android:supportsRtl="true" android:theme="@style/train_center_theme">
<meta-data android:name="com.huami.watch.launcher.springboard.PASSAGER_TARGET" android:resource="@array/spring_depend"/>
<activity android:name=".ui.test.TestProvider"/>
<activity android:name=".ui.activity.TrainPlanSimpleSelectActivity" android:theme="@style/train_center_theme">
<intent-filter>
<action android:name="com.huami.watch.train.ui.activity.TrainPlanSimpleSelectActivity"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity android:name=".ui.activity.TrainPlanDetailSelectActivity" android:theme="@style/train_center_theme">
<intent-filter>
<action android:name="com.huami.watch.train.ui.activity.TrainPlanDetailSelectActivity"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity android:name=".ui.activity.TrainRecordDetailActivity">
<intent-filter>
<action android:name="com.huami.watch.train.ui.activity.TrainRecordDetailActivity"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity android:name=".ui.activity.TrainWeeklyRecordDetailActivity"/>
<activity android:name=".ui.activity.TrainWidgetRemindActivity"/>
<service android:name=".ui.notification.NotificationService"/>
<receiver android:name=".ui.notification.NotificationReceiver">
<intent-filter>
<action android:name="com.huami.watch.train.broadcast.daytrainrecord"/>
</intent-filter>
<intent-filter>
<action android:name="com.huami.watch.train.broadcast.finishtrainrecord"/>
</intent-filter>
<intent-filter>
<action android:name="com.huami.watch.train.broadcast.start_service"/>
</intent-filter>
<intent-filter>
<action android:name="com.huami.watch.train.broadcast.end_service"/>
</intent-filter>
<intent-filter>
<action android:name="com.huami.watch.train.broadcast.appstart"/>
</intent-filter>
</receiver>
<receiver android:enabled="true" android:exported="true" android:name=".ui.notification.CloudDataReceiver">
<intent-filter>
<action android:name="com.huami.watch.companion.action.DataSyncRequestApps"/>
</intent-filter>
</receiver>
<provider android:authorities="com.huami.watch.train.ui.provider.dayTrainRecordProvider" android:exported="true" android:name="com.huami.watch.train.ui.provider.DayTrainRecordProvider"/>
<activity android:name=".ui.activity.FinishTrainReasonActivity"/>
</application>
</manifest>
Still no luck.
Can anybody help?
If the data is stored in the watch only (and I think it's the case for Training app), it was wiped out when you unpaired, so there is no way to recover it.
lfom said:
If the data is stored in the watch only (and I think it's the case for Training app), it was wiped out when you unpaired, so there is no way to recover it.
Click to expand...
Click to collapse
Sure. That's understandable. Still, if I know exactly how is it stored - I could recreate it.
I saw a sqlite3 file in xbin folder. Problem is that it is encrypted and I cannot open it.
Does anyone have any idea how do those guys store data on such apps?
pkondrat said:
Sure. That's understandable. Still, if I know exactly how is it stored - I could recreate it.
I saw a sqlite3 file in xbin folder. Problem is that it is encrypted and I cannot open it.
Does anyone have any idea how do those guys store data on such apps?
Click to expand...
Click to collapse
Ah, I see what you want to do now. See my AmazeBackup tool, it backups and restores data to the Sports app, you can use adb to backup data from TrainingPlan app, extract its db, modify the file, add the modded file to backup manually, then try to restore the file to watch (restart watch after you restore to make sure it loads the new data).
lfom - thanks a lot for the tip.
I solved it.
Biggest challenge was to identify and get the access to /data/data/com.huami.watch.train/databases/train_center.db which hold all the data.
After that happended, it was just a try and check for different values in TrainRecord and DayTrainRecord DB tables + adb pull and adb push as a root.
Still, I wonder when they would add those training plans to Amazfit Watch app and synchronize this data properly.