forked from OSchip/llvm-project
[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. llvm-svn: 307685
This commit is contained in:
parent
3d5ea713f7
commit
b76e4d12f4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue