Integrate Polytopia in AndroidEnv
Integrate Polytopia in AndroidEnv

A few changes are required in AndroidEnv to make Polytopia work.

- add a message prefix for log cat
   This is required because Polytopia log statements have a double tag (e.g. Unity:    AndroidRLTask: ), and logcat doesn't support this in the filter-spec, as far as I could figure out.

- Add start_intent in adb_controller. The way to start and reset Polytopia is not compatible with start_activity. Also start_activity force stop the app, which we want to avoid.

- Add the option to wait for the 'ready' message.

A few changes that are not related to Polytopia, but are general improvements:

 - log adb command outputs, this will be useful for easier debugging of ADB related issues

 - increase the number of retry for adb connection. It doesn't hurt to spend more time trying in case the machine is slow.

 - speedup setup_step_interpreter_test by mocking sleep when possible.

PiperOrigin-RevId: 350253642

deepmind/android_env