qt5base-lts/util
Dimitrios Apostolou c8e0a742fb Wait for boot to be fully complete with all packages installed
It happens that the android emulator supposedly "finishes" booting and
getprop shows bootanim=stopped and boot_completed=1. But sometimes not
all packages have been installed (`pm list packages` shows only 16
packages installed).

After around half a minute the boot animation starts spinning
(bootanim=running) again despite boot_completed=1 all the time. After
some minutes the boot animation stops again and the list of packages
contains 80 packages, among which is also the "development" package.
Only then is the device ready for `adb install` of custom packages.

This should be the last time we see the message:

Error: Could not access the Package Manager.  Is the system running?

Just for completeness, we also properly disown the emulator process and
its file descriptors, since the parent shell dies but the process stays.

Pick-to: 6.3 6.2
Fixes: QTQAINFRA-4681
Change-Id: I2b9d4bdc3dac0f10d09d4f09c83b4028ebc31f48
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
2022-01-06 17:14:58 +01:00
..
accessibilityinspector Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
aglfn Updated license headers 2016-01-21 18:55:18 +00:00
android Wait for boot to be fully complete with all packages installed 2022-01-06 17:14:58 +01:00
cmake configure: Remove unused facility to define variable assignments 2021-11-01 22:32:01 +01:00
edid Edid vendor table generator (2/N): use idiomatic C++ 2021-04-21 15:28:54 +02:00
glgen Remove the openglextensions module 2020-06-10 09:35:04 +02:00
gradientgen Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
includemocs QtCore: include mocs 2017-05-05 03:03:30 +00:00
integrity Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
lexgen Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
locale_database QLocale: Extend support for language codes 2021-12-09 03:45:08 +01:00
plugintest Updated license headers 2016-01-21 18:55:18 +00:00
publicSuffix Eliminate the need to preprocess the public suffix list 2021-01-25 18:03:00 +01:00
qfloat16-tables Round float->qfloat16 to even 2020-09-06 12:35:12 +02:00
testrunner Enable verbose logging in the last re-run of a failing test 2022-01-03 17:40:35 +01:00
unicode Update UCD to Revision 28 2021-10-18 16:45:10 +00:00
wasm/qtwasmserver Say hello to qtwasmserver 2021-12-06 16:36:09 +01:00
x86simdgen Move qsimd* from corelib/tools to corelib/global 2020-03-26 09:15:32 +01:00
xkbdatagen Add the "Territory" enumerated type for QLocale 2021-04-15 20:17:49 +08:00