[PATCH] Added support for 'su' rooted devices to ASAN setup script

Dmitry ripp at yandex-team.ru
Wed Feb 11 01:23:39 PST 2015


Hi eugenis,

Android devices may not support 'adb root', but be rooted with 'su' binary. This patch make possible to install ASAN to such devices.
When --use-su flag is specified, most 'adb ...' commangs are changed to 'adb su -c "..."'.

Some other notes:
- 'readlink' changed to 'ls -l', since not all devices have readlink in their firmware.
- removing ASAN library step moved to very end, because 'su' may not run properly without this library until shell will be restarted

http://reviews.llvm.org/D7551

Files:
  lib/asan/scripts/asan_device_setup

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7551.19732.patch
Type: text/x-patch
Size: 8795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150211/aa4ccf77/attachment.bin>


More information about the llvm-commits mailing list