diff --git a/android/adb_install_content_shell b/android/adb_install_content_shell index b4d805213..d1a8ee965 100755 --- a/android/adb_install_content_shell +++ b/android/adb_install_content_shell @@ -4,4 +4,6 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +# install -r doesn't always work? Try uninstalling first. +adb uninstall org.chromium.content_shell adb install -r ${CHROME_SRC}/out/Release/content_shell/ContentShell-debug.apk diff --git a/android/envsetup.sh b/android/envsetup.sh index ead8fdf46..dcf51ee13 100755 --- a/android/envsetup.sh +++ b/android/envsetup.sh @@ -62,6 +62,14 @@ case "${TARGET_PRODUCT-full}" in return 1 esac +# If we are building NDK/SDK, and in the upstream (open source) tree, +# define a special variable for bringup purposes. +case "${ANDROID_BUILD_TOP-undefined}" in + "undefined") + DEFINES+=" android_upstream_bringup=1" + ;; +esac + toolchain_path="${ANDROID_NDK_ROOT}/toolchains/${toolchain_arch}/prebuilt/" export ANDROID_TOOLCHAIN="${toolchain_path}/${toolchain_dir}/bin/" diff --git a/android/gdb_content_shell b/android/gdb_content_shell index 54a705d42..94c096287 100755 --- a/android/gdb_content_shell +++ b/android/gdb_content_shell @@ -72,8 +72,9 @@ fi # gdb commands cmdfile=$(mktemp /tmp/gdb_android_XXXXXXXX) cat >$cmdfile<