@echo off
setlocal
cd /d "%~dp0"
chcp 65001 >nul
where adb >nul 2>nul
if errorlevel 1 if exist "%LOCALAPPDATA%\Android\Sdk\platform-tools\adb.exe" set "PATH=%LOCALAPPDATA%\Android\Sdk\platform-tools;%PATH%"
where adb >nul 2>nul || (echo ERROR: adb not found. Open Android Studio SDK Platform-Tools.& pause& exit /b 1)
adb logcat -c
 echo Open OK ITHAKI, open Neighborhood, press Start, and reproduce the problem.
echo When it closes or shows an error, return here and press a key.
pause >nul
adb logcat -d -v threadtime > ITHAKI_NEIGHBORHOOD_CRASH_V249442.txt
findstr /I /C:"FATAL EXCEPTION" /C:"AndroidRuntime" /C:"EmergencyNeighborhood" /C:"Nearby" /C:"SecurityException" ITHAKI_NEIGHBORHOOD_CRASH_V249442.txt > ITHAKI_NEIGHBORHOOD_CRASH_V249442_FILTERED.txt
 echo READY: ITHAKI_NEIGHBORHOOD_CRASH_V249442.txt
pause
