=== Command: /android/testing_service/app_testing_tools/tools/venv/bin/python3 /android/testing_service/app_testing_tools/run_ape.py -p com.google.android.apps.restore ===
=== Started: 2026-08-16T07:48:28.334353+00:00Z ===

2026-08-16 07:48:28,404 - INFO - Pushing ape.jar to device…
/android/testing_service/app_testing_tools/tools/ape-bin/ape.jar: 1 file pushed, 0 skipped. 74.7 MB/s (198739 bytes in 0.003s)
2026-08-16 07:48:28,417 - INFO - Pushing ape shell script to device…
/android/testing_service/app_testing_tools/tools/ape-bin/ape: 1 file pushed, 0 skipped. 0.1 MB/s (214 bytes in 0.002s)
2026-08-16 07:48:28,458 - INFO - Ape binaries deployed to device.
2026-08-16 07:48:28,466 - INFO - Starting package com.google.android.apps.restore on device (bringing to foreground)...
  bash arg: -p
  bash arg: com.google.android.apps.restore
  bash arg: -c
  bash arg: android.intent.category.LAUNCHER
  bash arg: 1
args: [-p, com.google.android.apps.restore, -c, android.intent.category.LAUNCHER, 1]
 arg: "-p"
 arg: "com.google.android.apps.restore"
 arg: "-c"
 arg: "android.intent.category.LAUNCHER"
 arg: "1"
data="com.google.android.apps.restore"
data="android.intent.category.LAUNCHER"
** No activities found to run, monkey aborted.
2026-08-16 07:48:28,679 - WARNING - Failed to start package com.google.android.apps.restore via monkey: Command '['adb', '-s', 'emulator-5556', 'shell', 'monkey', '-p', 'com.google.android.apps.restore', '-c', 'android.intent.category.LAUNCHER', '1']' returned non-zero exit status 252.
2026-08-16 07:48:28,679 - WARNING - Proceeding to run Ape even though package com.google.android.apps.restore may not be in foreground
2026-08-16 07:48:28,687 - INFO - Running Ape on package: com.google.android.apps.restore (strategy=sata, minutes=1). CMD: ['adb', '-s', 'emulator-5556', 'shell', 'CLASSPATH=/data/local/tmp/ape.jar', '/system/bin/app_process', '/data/local/tmp/', 'com.android.commands.monkey.Monkey', '-p', 'com.google.android.apps.restore', '--running-minutes', '1', '--ape', 'sata', '--ignore-crashes', '--ignore-timeouts', '--ignore-security-exceptions', '-s', '12345']
2026-08-16 07:48:28,804 - INFO - Foreground changed to com.google.android.apps.nexuslauncher; bringing com.google.android.apps.restore back to foreground
2026-08-16 07:48:28,810 - INFO - Starting package com.google.android.apps.restore on device (bringing to foreground)...
  bash arg: -p
  bash arg: com.google.android.apps.restore
  bash arg: -c
  bash arg: android.intent.category.LAUNCHER
  bash arg: 1
2026-08-16 07:48:28,893 - INFO - [APE] [APE] // CRASH: com.google.oslo (pid 23090) (elapsed nanos: 8985661545840)
2026-08-16 07:48:28,893 - INFO - [APE] [APE] // Short Msg: java.lang.NullPointerException
2026-08-16 07:48:28,893 - INFO - [APE] [APE] // Long Msg: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List android.hardware.location.ContextHubManager.getContextHubs()' on a null object reference
2026-08-16 07:48:28,893 - INFO - [APE] [APE] // Build Label: Android/sdk_phone64_arm64/emulator64_arm64:12/SP1A.211105.002.A1/eng.ubuntu.20260815.172618:userdebug/test-keys
2026-08-16 07:48:28,915 - INFO - [APE] [APE] // Build Changelist: eng.ubuntu.20260815.172618
2026-08-16 07:48:28,916 - INFO - [APE] [APE] // Build Time: 1786814702000
2026-08-16 07:48:28,916 - INFO - [APE] [APE] // java.lang.RuntimeException: Unable to create service com.google.oslo.service.OsloService: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List android.hardware.location.ContextHubManager.getContextHubs()' on a null object reference
2026-08-16 07:48:28,916 - INFO - [APE] [APE] // 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4500)
2026-08-16 07:48:28,916 - INFO - [APE] [APE] // 	at android.app.ActivityThread.access$1700(ActivityThread.java:247)
2026-08-16 07:48:28,916 - INFO - [APE] [APE] // 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2072)
2026-08-16 07:48:28,916 - INFO - [APE] [APE] // 	at android.os.Handler.dispatchMessage(Handler.java:106)
2026-08-16 07:48:28,916 - INFO - [APE] [APE] // 	at android.os.Looper.loopOnce(Looper.java:201)
2026-08-16 07:48:28,916 - INFO - [APE] [APE] // 	at android.os.Looper.loop(Looper.java:288)
2026-08-16 07:48:28,916 - INFO - [APE] [APE] // 	at android.app.ActivityThread.main(ActivityThread.java:7838)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	at java.lang.reflect.Method.invoke(Native Method)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List android.hardware.location.ContextHubManager.getContextHubs()' on a null object reference
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	at com.google.oslo.service.sensors.CHRESensor.findNanoApp(CHRESensor.java:274)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	at com.google.oslo.service.sensors.CHRESensor.startListening(CHRESensor.java:302)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	at com.google.oslo.service.sensors.CHRESensor.init(CHRESensor.java:243)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	at com.google.oslo.service.sensors.StatusSensor.init(StatusSensor.java:207)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	at com.google.oslo.service.OsloSensors.<init>(OsloSensors.java:40)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	at com.google.oslo.service.OsloService.onCreate(OsloService.java:129)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4487)
2026-08-16 07:48:28,917 - INFO - [APE] [APE] // 	... 9 more
2026-08-16 07:48:28,917 - INFO - [APE] [APE] //
2026-08-16 07:48:28,917 - INFO - [APE] ** No activities found to run, monkey aborted.
args: [-p, com.google.android.apps.restore, -c, android.intent.category.LAUNCHER, 1]
 arg: "-p"
 arg: "com.google.android.apps.restore"
 arg: "-c"
 arg: "android.intent.category.LAUNCHER"
 arg: "1"
data="com.google.android.apps.restore"
data="android.intent.category.LAUNCHER"
** No activities found to run, monkey aborted.
2026-08-16 07:48:29,022 - WARNING - Failed to start package com.google.android.apps.restore via monkey: Command '['adb', '-s', 'emulator-5556', 'shell', 'monkey', '-p', 'com.google.android.apps.restore', '-c', 'android.intent.category.LAUNCHER', '1']' returned non-zero exit status 252.
2026-08-16 07:48:29,142 - INFO - Starting package com.google.android.apps.restore on device (bringing to foreground)...
  bash arg: -p
  bash arg: com.google.android.apps.restore
  bash arg: -c
  bash arg: android.intent.category.LAUNCHER
  bash arg: 1
args: [-p, com.google.android.apps.restore, -c, android.intent.category.LAUNCHER, 1]
 arg: "-p"
 arg: "com.google.android.apps.restore"
 arg: "-c"
 arg: "android.intent.category.LAUNCHER"
 arg: "1"
data="com.google.android.apps.restore"
data="android.intent.category.LAUNCHER"
** No activities found to run, monkey aborted.
2026-08-16 07:48:29,345 - WARNING - Failed to start package com.google.android.apps.restore via monkey: Command '['adb', '-s', 'emulator-5556', 'shell', 'monkey', '-p', 'com.google.android.apps.restore', '-c', 'android.intent.category.LAUNCHER', '1']' returned non-zero exit status 252.
2026-08-16 07:48:29,465 - INFO - Starting package com.google.android.apps.restore on device (bringing to foreground)...
  bash arg: -p
  bash arg: com.google.android.apps.restore
  bash arg: -c
  bash arg: android.intent.category.LAUNCHER
  bash arg: 1
args: [-p, com.google.android.apps.restore, -c, android.intent.category.LAUNCHER, 1]
 arg: "-p"
 arg: "com.google.android.apps.restore"
 arg: "-c"
 arg: "android.intent.category.LAUNCHER"
 arg: "1"
data="com.google.android.apps.restore"
data="android.intent.category.LAUNCHER"
** No activities found to run, monkey aborted.
2026-08-16 07:48:29,673 - WARNING - Failed to start package com.google.android.apps.restore via monkey: Command '['adb', '-s', 'emulator-5556', 'shell', 'monkey', '-p', 'com.google.android.apps.restore', '-c', 'android.intent.category.LAUNCHER', '1']' returned non-zero exit status 252.
2026-08-16 07:48:29,816 - INFO - Package com.google.android.apps.restore does not appear to be running (pidof returned 1). Attempting to start.
2026-08-16 07:48:29,824 - INFO - Starting package com.google.android.apps.restore on device (bringing to foreground)...
  bash arg: -p
  bash arg: com.google.android.apps.restore
  bash arg: -c
  bash arg: android.intent.category.LAUNCHER
  bash arg: 1
args: [-p, com.google.android.apps.restore, -c, android.intent.category.LAUNCHER, 1]
 arg: "-p"
 arg: "com.google.android.apps.restore"
 arg: "-c"
 arg: "android.intent.category.LAUNCHER"
 arg: "1"
data="com.google.android.apps.restore"
data="android.intent.category.LAUNCHER"
** No activities found to run, monkey aborted.
2026-08-16 07:48:30,037 - WARNING - Failed to start package com.google.android.apps.restore via monkey: Command '['adb', '-s', 'emulator-5556', 'shell', 'monkey', '-p', 'com.google.android.apps.restore', '-c', 'android.intent.category.LAUNCHER', '1']' returned non-zero exit status 252.
2026-08-16 07:48:30,153 - INFO - Starting package com.google.android.apps.restore on device (bringing to foreground)...
  bash arg: -p
  bash arg: com.google.android.apps.restore
  bash arg: -c
  bash arg: android.intent.category.LAUNCHER
  bash arg: 1
args: [-p, com.google.android.apps.restore, -c, android.intent.category.LAUNCHER, 1]
 arg: "-p"
 arg: "com.google.android.apps.restore"
 arg: "-c"
 arg: "android.intent.category.LAUNCHER"
 arg: "1"
data="com.google.android.apps.restore"
data="android.intent.category.LAUNCHER"
** No activities found to run, monkey aborted.
2026-08-16 07:48:30,381 - WARNING - Failed to start package com.google.android.apps.restore via monkey: Command '['adb', '-s', 'emulator-5556', 'shell', 'monkey', '-p', 'com.google.android.apps.restore', '-c', 'android.intent.category.LAUNCHER', '1']' returned non-zero exit status 252.
2026-08-16 07:48:30,493 - INFO - Starting package com.google.android.apps.restore on device (bringing to foreground)...
  bash arg: -p
  bash arg: com.google.android.apps.restore
  bash arg: -c
  bash arg: android.intent.category.LAUNCHER
  bash arg: 1
args: [-p, com.google.android.apps.restore, -c, android.intent.category.LAUNCHER, 1]
 arg: "-p"
 arg: "com.google.android.apps.restore"
 arg: "-c"
 arg: "android.intent.category.LAUNCHER"
 arg: "1"
data="com.google.android.apps.restore"
data="android.intent.category.LAUNCHER"
** No activities found to run, monkey aborted.
2026-08-16 07:48:30,711 - WARNING - Failed to start package com.google.android.apps.restore via monkey: Command '['adb', '-s', 'emulator-5556', 'shell', 'monkey', '-p', 'com.google.android.apps.restore', '-c', 'android.intent.category.LAUNCHER', '1']' returned non-zero exit status 252.
2026-08-16 07:48:30,842 - INFO - Wrote tool summary to /android/testing_service/app_testing_tools/out/ape_summary.json (total runs: 288)
