Bug 1762278 - Fix Geckoview wrap.sh for debugging with API 29+ r=geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D142497
This commit is contained in:
Jesse Schwartzentruber 2022-03-30 22:24:18 +00:00
Родитель 3b81c6e6c5
Коммит f9c193f69c
4 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -40,12 +40,13 @@ shift
# enable debugging
# https://developer.android.com/ndk/guides/wrap-script#debugging_when_using_wrapsh
# note that wrap.sh is not supported before android 8.1 (API 27)
if [ "$os_version" -eq "27" ]; then
args=("-Xrunjdwp:transport=dt_android_adb,suspend=n,server=y" -Xcompiler-option --debuggable)
elif [ "$os_version" -eq "28" ]; then
args=(-XjdwpProvider:adbconnection "-XjdwpOptions:suspend=n,server=y" -Xcompiler-option --debuggable)
else
args=(-XjdwpProvider:adbconnection)
args=(-XjdwpProvider:adbconnection "-XjdwpOptions:suspend=n,server=y")
fi
exec "$cmd" "${args[@]}" "$@"

Просмотреть файл

@ -40,12 +40,13 @@ shift
# enable debugging
# https://developer.android.com/ndk/guides/wrap-script#debugging_when_using_wrapsh
# note that wrap.sh is not supported before android 8.1 (API 27)
if [ "$os_version" -eq "27" ]; then
args=("-Xrunjdwp:transport=dt_android_adb,suspend=n,server=y" -Xcompiler-option --debuggable)
elif [ "$os_version" -eq "28" ]; then
args=(-XjdwpProvider:adbconnection "-XjdwpOptions:suspend=n,server=y" -Xcompiler-option --debuggable)
else
args=(-XjdwpProvider:adbconnection)
args=(-XjdwpProvider:adbconnection "-XjdwpOptions:suspend=n,server=y")
fi
exec "$cmd" "${args[@]}" "$@"

Просмотреть файл

@ -40,12 +40,13 @@ shift
# enable debugging
# https://developer.android.com/ndk/guides/wrap-script#debugging_when_using_wrapsh
# note that wrap.sh is not supported before android 8.1 (API 27)
if [ "$os_version" -eq "27" ]; then
args=("-Xrunjdwp:transport=dt_android_adb,suspend=n,server=y" -Xcompiler-option --debuggable)
elif [ "$os_version" -eq "28" ]; then
args=(-XjdwpProvider:adbconnection "-XjdwpOptions:suspend=n,server=y" -Xcompiler-option --debuggable)
else
args=(-XjdwpProvider:adbconnection)
args=(-XjdwpProvider:adbconnection "-XjdwpOptions:suspend=n,server=y")
fi
exec "$cmd" "${args[@]}" "$@"

Просмотреть файл

@ -40,12 +40,13 @@ shift
# enable debugging
# https://developer.android.com/ndk/guides/wrap-script#debugging_when_using_wrapsh
# note that wrap.sh is not supported before android 8.1 (API 27)
if [ "$os_version" -eq "27" ]; then
args=("-Xrunjdwp:transport=dt_android_adb,suspend=n,server=y" -Xcompiler-option --debuggable)
elif [ "$os_version" -eq "28" ]; then
args=(-XjdwpProvider:adbconnection "-XjdwpOptions:suspend=n,server=y" -Xcompiler-option --debuggable)
else
args=(-XjdwpProvider:adbconnection)
args=(-XjdwpProvider:adbconnection "-XjdwpOptions:suspend=n,server=y")
fi
exec "$cmd" "${args[@]}" "$@"