I have problem with adb devices on wsl2. If I set ADB_SERVER_SOCKET, adb always throw segmentation fault error. Any idea how to resolve this problem?
adb devices
adb
segmentation fault
Some my problem:
adb -a -P 5037 nodaemon server
wsl --shutdown
My .zshrc / .bash_profile:
.zshrc
.bash_profile
export $(dbus-launch) export LIBGL_ALWAYS_INDIRECT=1 export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2) export DISPLAY=$WSL_HOST:0 # Android Config export ADB_SERVER_SOCKET=tcp:$WSL_HOST:5037 if [ -d "$HOME/Android/sdk" ] ; then ANDROID_HOME="$HOME/Android/sdk" #location same as step 3 PATH="$ANDROID_HOME/emulator:$PATH" PATH="$ANDROID_HOME/tools:$PATH" PATH="$ANDROID_HOME/tools/bin:$PATH" PATH="$ANDROID_HOME/platform-tools:$PATH" fi
Sorry, I've switched from windows to linux so I can't test whether it still works with current windows & wsl version...
In my case export $(dbus-launch) hangs forever :/ any tip?
export $(dbus-launch)
Without it when I run adb devices it shows List of devices... and waits forever :/
List of devices...
dbus part is actually more about GUI aps rather than adb...have you followed these steps gist.github.com/bergmannjg/461958d... ?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I have problem with
adb devices
on wsl2. If I set ADB_SERVER_SOCKET,adb
always throwsegmentation fault
error. Any idea how to resolve this problem?Some my problem:
adb -a -P 5037 nodaemon server
on Windows sidewsl --shutdown
on Windows sideadb devices
on WLS2 sideMy
.zshrc
/.bash_profile
:Sorry, I've switched from windows to linux so I can't test whether it still works with current windows & wsl version...
In my case
export $(dbus-launch)
hangs forever :/ any tip?Without it when I run
adb devices
it showsList of devices...
and waits forever :/dbus part is actually more about GUI aps rather than adb...have you followed these steps gist.github.com/bergmannjg/461958d... ?