Photon Q MSL Tool "fix"
I tried to post this as a reply to the actual thread that it had to do with but I am apparently not cool enough yet to post in developer forums. Hence, this thread.
A lot of people have been having problems with the tool returning %1 %3 %5 %7 %9 %12 instead of the MSL. Some people have said something about adb not being recognized and correctly assuming that it has something to do with the path. This tool calls on two commands- adb and findstr. Adb is located wherever you've put it and findstr.exe is in c:\windows\system32
I suggest putting adb.exe in c:\windows\system32 as well
Basically the locations of both these commands need to be included in the path statement if you want them to be able to work from any location, which we do. So, if you're having this %1 %3... etc problem, open up a command prompt wherever you have the photonq-msl.bat at. If you've put adb in the C:\windows\system32 directory/folder then at the command prompt, type
"path = c:\;c:\windows\system32"
then type "photonq-msl" to run the batch file.
Why the c:\windows\system32 directory isn't in the path statement already is beyond me, but it's not and that's the problem. Do this and it should work. If it doesn't, try opening a command prompt, typing the path = c:\;c:\windows\system32 thing then follow the normal directions on the phone (dial #DATA, first menu option, 3 dots in corner, edit, then verify. Once you press the verify button, type
adb logcat -b radio -d | findstr /C:"grde"
and you will get a number back.
If your number is 123456789123 take the 2nd, 4th, 6th, 8th, 10th & 12th numbers and you have your MSL. In this case:
MSL = 246813
I THINK that this error is caused by there needing to be a "^" right before the "|" due to the command already being nested inside quotes inside a FOR statement. So that line in the batch file should read:
FOR /F "tokens=17" %%G IN ("adb logcat - b radio -d ^| findstr /C:"grde"") DO SET EXTRACTED=%%G
but I haven't actually tested that, yet.