mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-19 06:24:19 +01:00
Drag and drop to install apk files from computer
<https://github.com/Genymobile/scrcpy/pull/133>
This commit is contained in:
committed by
Romain Vimont
parent
41419a2e77
commit
e2a2973990
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user