AutoDriver is not working on Oculus Quest2
Dear All, I tried to record inputs using AutoDriver as mentioned in the following link : https://developer.oculus.com/documentation/native/android/ts-autodriver/ I used batch files in the following link: https://developer.oculus.com/downloads/package/autodriver-batch-files/ I ran RecordAutoDriverInputs.bat and recorded netflix activity but the *.autodriver file was not created with the following error: adb: error: failed to stat remote object '/sdcard/Android/data/com.netflix.ninja.vr/AutoDriver/default.autodriver': No such file or directory Please help me solve this problem. The entire script I used is : -------- Script Start ----------------- set TEST_NAME=MyFirstRecording set TEST_CLASS=com.netflix.ninja.vr set TEST_ACTIVITY=oculus.Vr2dShell set TEST_SECONDS=30 echo off setlocal enabledelayedexpansion :: Setup system and device variables. if "%ADB%"=="" set ADB=adb.exe %ADB% help > nul if "%ERRORLEVEL%" NEQ "0" goto AdbNotFound set DEVICE= if not "%1"=="" set DEVICE=-s %1 for /f "delims=" %%A in ('%ADB% %DEVICE% shell "echo $EXTERNAL_STORAGE"') do Set STORAGE=%%A :: Check to make sure required environment variables are defined. if "%TEST_NAME%"=="" goto EnvVarNotFound if "%TEST_CLASS%"=="" goto EnvVarNotFound if "%TEST_SECONDS%"=="" set TEST_SECONDS=15 :: Derived variables. set TEST_AUTODRIVE=%TEST_NAME%.autodriver set LOGCAT_FILE=%TEST_NAME%.logcat.txt set LOGCAT_HIGHLIGHTS_FILE=%TEST_NAME%.logcat.highlights.txt echo. echo ===== Launching App Activity: %TEST_CLASS% ===== :: Clear the logcat so that we get a smaller result when we fetch it (after the test run) %ADB% %DEVICE% logcat -c :: Run the test app in autodrive mode. %ADB% %DEVICE% shell setprop debug.oculus.vrapilayers AutoDriver %ADB% %DEVICE% shell setprop debug.oculus.autoDriverApp %TEST_CLASS% %ADB% %DEVICE% shell setprop debug.oculus.autoDriverMode Record %ADB% %DEVICE% shell am start -S %TEST_CLASS%/%TEST_ACTIVITY% echo Put you headset on and do stuff--your user inputs will be recorded :: Sleep while we give the app to launch and the user to make their inputs timeout /t %TEST_SECONDS% :: Shut AutoDriver and the app down. %ADB% %DEVICE% shell am broadcast -a com.oculus.vrapilayers.AutoDriver.SHUTDOWN %ADB% %DEVICE% shell am force-stop %TEST_CLASS% :: Fetch the logs from the test run. %ADB% %DEVICE% logcat -d > %LOGCAT_FILE% :: Fetch the newly created autodriver file. %ADB% %DEVICE% pull %STORAGE%/Android/data/%TEST_CLASS%/AutoDriver/default.autodriver %TEST_AUTODRIVE% echo. echo ===== Outputs: %TEST_NAME% ===== echo Your user inputs were saved here: %TEST_AUTODRIVE% echo Complete logcat saved here: %LOGCAT_FILE% :: :: Test exit points :: :SuccessfulRun goto Finished :AdbNotFound echo. echo Error: %ADB% could not be found. Please make sure it's on your PATH or set $ADB to point to it. goto Finished :EnvVarNotFound echo. echo Error: The following environment variables must be defined: TEST_NAME, TEST_CLASS, echo The following environment variables are optional: TEST_SECONDS goto Finished :Finished pause -------- Script End -----------------958Views0likes1Comment