Status Update
Comments
js...@google.com <js...@google.com>
sp...@google.com <sp...@google.com> #2
Please describe exact detailed steps reproducing the problem.
n....@dxc.com <n....@dxc.com> #3
2.Create AOSP Car Emulator zip file. ( make emu_img_zip)
3. In Android SDK path "Sdk/system-images/android-34" add new folder custom_api and add created emulator system images after extracting.
4. Launch Android studio and create AVD of newly added custom system image for automotive.
5. Start/RUN newly created avd.
6. See the running device screen is not visible.
7. Start Android studio of version Android Studio Koala Feature Drop | 2024.1.2 Beta 1 and start/run the same avd. Screen mirroring is working fine.
sp...@google.com <sp...@google.com> #4
How do you start the AVD?
Please attach the file produced by Help > Collect Logs and Diagnostic Data.
n....@dxc.com <n....@dxc.com> #5
sp...@google.com <sp...@google.com> #6
Error message from the log:
2025-03-21 12:43:38,239 [8487199] WARN - #com.android.tools.idea.streaming.emulator.EmulatorController - Unable to connect Foxconn (5556)
rk...@google.com <rk...@google.com> #7
2.Create AOSP Car Emulator zip file. ( make emu_img_zip)
What lunch
did you build? Can you start the Emulator (logcat
requires a userdebug
build) from the command line with
-verbose -wipe-data -no-snapshot -show-kernel -logcat *:V -logcat-output /tmp/logcat.txt > /tmp/stdout.txt 2> /tmp/stderr.txt
let it run for a minute or two (or logs grow large enough) and attach /tmp/logcat.txt
, /tmp/stdout.txt
and /tmp/stderr.txt
.
If it boots (the logs say Emulator: Foxconn API 34 - Boot completed in 35949 ms
), try running adb shell
. Maybe adbd
is broken.
n....@dxc.com <n....@dxc.com> #8
rk...@google.com <rk...@google.com> #9
Please run the command I mentioned above and attach /tmp/logcat.txt, /tmp/stdout.txt and /tmp/stderr.txt.
n....@dxc.com <n....@dxc.com> #10
rk...@google.com <rk...@google.com> #11
[ 1.856631] Kernel panic - not syncing: Could not decompress initial ramdisk image.
rk...@google.com <rk...@google.com> #12
Linux version 3.18.94+ (android-build@abfarm437) (gcc version 4.9 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Mon Feb 12 19:55:39 UTC 2018
Did you change anything? This kernel looks ancient.
n....@dxc.com <n....@dxc.com> #13
bo...@google.com <bo...@google.com> #14
[ 1.722928] RAMDISK: lz4 decompressor not configured!
[ 1.723391] Invalid ramdisk decompression routine. Select appropriate config option.
wo...@google.com <wo...@google.com>
js...@google.com <js...@google.com> #15
- Start Android studio of version Android Studio Koala Feature Drop | 2024.1.2 Beta 1 and start/run the same avd. Screen mirroring is working fine.
Can you confirm whether you are able to launch the emulator in stand-alone mode?
- Close your project in android studio
- Open virtual device manager via 3-dots menu on right top (refer to stand-alone-vitual-device-manager.png)
- Select your avd in the device list (refer to run-device.png)
- Confirm the emulator is launched on stand-alone mode (refer to launched-android14-sdk-car-.png)
n....@dxc.com <n....@dxc.com> #16
n....@dxc.com <n....@dxc.com> #17
-Close your project in android studio
-Open virtual device manager via 3-dots menu on right top (refer to stand-alone-vitual-device-manager.png)
-Select your avd in the device list (refer to run-device.png)
-Confirm the emulator is launched on stand-alone mode (refer to launched-android14-sdk-car-.png)
js...@google.com <js...@google.com> #19
Let's clarify one more thing.
- Build emulator
source build/envsetup.sh
lunch sdk_car_x86_64-userdebug
USE_RBE=false m -j64
- Launch emulator
emulator -cores 4 -memory 6144 -no-snapshot
n....@dxc.com <n....@dxc.com> #20
js...@google.com <js...@google.com> #21
Thanks for the confirmation.
Summary
- No issue on local build
- No issue on stand alone emulator in android studio
- Emulator doesn't show up on AS embedded mode even if we can see it through mirroring.
js...@google.com <js...@google.com> #22
Confirmed that the issue has gone with attache patch. Please try.
Description
Build: AI-243.22562.218.2431.13114758, 202502250645
AS: Meerkat | 2024.3.1
AI-243.22562.218.2431.13114758, JRE 21.0.5+-12932927-b750.29x64 JetBrains s.r.o., OS Linux(amd64) v6.8.0-52-generic, screens 1920x1080 (100%)
Android Gradle Plugin: 8.4.0-rc02
Gradle: 8.6
Gradle JDK: JetBrains Runtime 17.0.11
NDK: from local.properties: (not specified), latest from SDK: 27.2.12479018
CMake: from local.properties: (not specified), latest from SDK: 3.22.1-g37088a8, from PATH: 3.22.1
Source: send_feedback_icon```