[compiler-rt] r200199 - [asan] Android setup: do "adb root" before "adb remount".

Evgeniy Stepanov eugeni.stepanov at gmail.com
Mon Jan 27 00:20:29 PST 2014


Author: eugenis
Date: Mon Jan 27 02:20:28 2014
New Revision: 200199

URL: http://llvm.org/viewvc/llvm-project?rev=200199&view=rev
Log:
[asan] Android setup: do "adb root" before "adb remount".

Modified:
    compiler-rt/trunk/lib/asan/scripts/asan_device_setup.sh

Modified: compiler-rt/trunk/lib/asan/scripts/asan_device_setup.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/scripts/asan_device_setup.sh?rev=200199&r1=200198&r2=200199&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/scripts/asan_device_setup.sh (original)
+++ compiler-rt/trunk/lib/asan/scripts/asan_device_setup.sh Mon Jan 27 02:20:28 2014
@@ -74,6 +74,7 @@ ASAN_RT="libclang_rt.asan-arm-android.so
 
 if [[ x$revert == xyes ]]; then
     echo '>> Uninstalling ASan'
+    $ADB root
     $ADB remount
     $ADB shell mv /system/bin/app_process.real /system/bin/app_process
     $ADB shell rm /system/bin/asanwrapper
@@ -113,6 +114,7 @@ TMPDIR="$TMPDIRBASE/new"
 mkdir "$TMPDIROLD"
 
 echo '>> Remounting /system rw'
+$ADB root
 $ADB remount
 
 echo '>> Copying files from the device'





More information about the llvm-commits mailing list