[compiler-rt] r307685 - [asan] Fix asan_device_setup --use-su mode on Android 7.x.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 11:18:51 PDT 2017


Author: eugenis
Date: Tue Jul 11 11:18:50 2017
New Revision: 307685

URL: http://llvm.org/viewvc/llvm-project?rev=307685&view=rev
Log:
[asan] Fix asan_device_setup --use-su mode on Android 7.x.

mount command does not accept -o remount,rw flag on some versions of Android.
mount -o rw,remount works everywhere.

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

Modified: compiler-rt/trunk/lib/asan/scripts/asan_device_setup
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/scripts/asan_device_setup?rev=307685&r1=307684&r2=307685&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/scripts/asan_device_setup (original)
+++ compiler-rt/trunk/lib/asan/scripts/asan_device_setup Tue Jul 11 11:18:50 2017
@@ -52,7 +52,7 @@ function adb_remount {
     local STORAGE=`$ADB shell mount | grep /system | cut -d ' ' -f1`
     if [ "$STORAGE" != "" ]; then
       echo Remounting $STORAGE at /system
-      $ADB shell su -c "mount -o remount,rw $STORAGE /system"
+      $ADB shell su -c "mount -o rw,remount $STORAGE /system"
     else
       echo Failed to get storage device name for "/system" mount point
     fi




More information about the llvm-commits mailing list