Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string vdc_cryptfs_cmd(string log_name) {
- string cmd;
- cmd = "LD_LIBRARY_PATH=/system/lib64:/system/lib /system/bin/vdc cryptfs";
- #ifndef TW_CRYPTO_SYSTEM_VOLD_DEBUG
- (void)log_name; // do nothing, but get rid of compiler warning in non debug builds
- #else
- if (has_timeout && has_strace)
- cmd = "/sbin/strace -q -tt -ff -v -y -s 1000 -o /tmp/strace_vdc_" + log_name + " /sbin/timeout -t 30 -s KILL env " + cmd;
- else if (has_strace)
- cmd = "/sbin/strace -q -tt -ff -v -y -s 1000 -o /tmp/strace_vdc_" + log_name + " -E " + cmd;
- else
- #endif
- if (has_timeout)
- cmd = "/sbin/timeout -t 30 -s KILL env " + cmd;
- return cmd;
- }
Advertisement
Add Comment
Please, Sign In to add comment