Drag and drop to install apk files from computer

<https://github.com/Genymobile/scrcpy/pull/133>
This commit is contained in:
Adonis Najimi
2018-04-29 00:17:34 +02:00
committed by Romain Vimont
parent 41419a2e77
commit e2a2973990
6 changed files with 241 additions and 1 deletions

View File

@@ -72,6 +72,11 @@ process_t adb_push(const char *serial, const char *local, const char *remote) {
return adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd));
}
process_t adb_install(const char *serial, const char *local) {
const char *const adb_cmd[] = {"install", "-r", local};
return adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd));
}
process_t adb_remove_path(const char *serial, const char *path) {
const char *const adb_cmd[] = {"shell", "rm", path};
return adb_execute(serial, adb_cmd, ARRAY_LEN(adb_cmd));