- char const* const file = "/system/bin/am";
- // Avoid the system am binary from linking to wrong libraries:
- unsetenv("LD_LIBRARY_PATH");
- // Ensure /system/bin/app_process is in path, which is needed by am in some systems:
- putenv("PATH=/system/bin");
-