Move all xwrap to Rust

This commit is contained in:
topjohnwu
2022-09-15 01:17:05 -07:00
parent 66a7ef5615
commit c6646efe68
18 changed files with 356 additions and 198 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ static void exec_cmd(const char *action, vector<Extra> &data,
ssprintf(exe, sizeof(exe), "/proc/self/fd/%d", app_process_32);
#endif
} else {
strlcpy(exe, "/system/bin/app_process", sizeof(exe));
strscpy(exe, "/system/bin/app_process", sizeof(exe));
}
// First try content provider call method
@@ -158,7 +158,7 @@ static void exec_cmd(const char *action, vector<Extra> &data,
};
// Then try start activity without package name
strlcpy(target, info->mgr_pkg.data(), sizeof(target));
strscpy(target, info->mgr_pkg.data(), sizeof(target));
exec_command_sync(exec);
if (check_no_error(exec.fd))
return;