diff --git a/README.Android b/README.Android index be1d765d734a..633ec52f2f35 100644 --- a/README.Android +++ b/README.Android @@ -9,9 +9,6 @@ and AVD that doesn't work. Instead start it from the console: emulator-arm -avd -partition-size 500 Where is the literal name of the AVD that you entered. -Then it is necessary to get stdout/err to go to somewhere we can find it: - - adb shell stop; adb shell setprop log.redirect-stdio true; adb shell start Then: @@ -20,12 +17,15 @@ Then it is necessary to get stdout/err to go to somewhere we can find it: make clean all install make run ; adb shell logcat - And if all goes well - you should have some nice unit -test output to enjoy. After a while of this loop you'll probably -find that android has lost a lot of space on your device at -this point: + And if all goes well - you should have some nice unit test output to +enjoy. After a while of this loop you might find that you have lost a lot of +space on your emulator's or device's /data volume. If using the emulator, you +can do: - adb shell stop; adb shell setprop log.redirect-stdio true; adb shell start + adb shell stop; adb shell start + +but on a (non-rooted) device you probably just need to reboot it. On the other +hand, this phenomenon might not happen on actual devices. and continue onwards & upwards. diff --git a/README.cross b/README.cross index 3567a69afe30..63dc9cf48067 100644 --- a/README.cross +++ b/README.cross @@ -395,14 +395,12 @@ mechanism. Then to run the unit test, do "make install" followed by "make run". You most likely want to have an "adb logcat" running in another -window, and you probably also want to have set the stdout and stderr -of app processes to be redirected to logcat ("adb shell stop; adb -shell setprop log.redirect-stdio true; adb shell start"). +window. -To debug, do manually what "make run" would do, adding args "-e -lo-main-delay 20" to the command line, and when the app has started, -run ndk-gdb. Unfortunately the gdb in NDK r7 is broken, use the one in -the NDK build with newer versions of gcc and gdb from +To debug, do manually what "make run" would do, adding args "-e lo-main-delay +20" to the command line, and when the app has started, run +ndk-gdb. Unfortunately the gdb in NDK r7 and r8 is a bit broken, you can use +the one in a NDK build with newer versions of gcc and gdb from http://code.google.com/p/mingw-and-ndk/ instead. Running strace on the unit test in progress is often useful to find diff --git a/android/qa/sc/Makefile b/android/qa/sc/Makefile index 078c9e2cb5f2..660038197678 100644 --- a/android/qa/sc/Makefile +++ b/android/qa/sc/Makefile @@ -191,10 +191,6 @@ run: run_ucalc run_filters_test stop-start-cycle: $(ANDROID_SDK_HOME)/platform-tools/adb shell stop && $(ANDROID_SDK_HOME)/platform-tools/adb shell start && sleep 10 -# Too hard to remember this stuff;) -redirect-stdio: - $(ANDROID_SDK_HOME)/platform-tools/adb shell stop && $(ANDROID_SDK_HOME)/platform-tools/adb shell setprop log.redirect-stdio true && $(ANDROID_SDK_HOME)/platform-tools/adb shell start - clean: properties $(ANT) clean rm -rf assets $(SODEST) $(OBJLOCAL)