Add util function to get the APK version

Use "dumpsys package com.genymobile.scrcpy" to get the APK version.
This commit is contained in:
Romain Vimont
2022-06-09 15:39:39 +02:00
parent 00766b8ab6
commit a73a04da87
5 changed files with 126 additions and 0 deletions

View File

@@ -123,4 +123,11 @@ char *
sc_adb_get_installed_apk_path(struct sc_intr *intr, const char *serial,
unsigned flags);
/**
* Return the version of the installed APK for com.genymobile.scrcpy (if any)
*/
char *
sc_adb_get_installed_apk_version(struct sc_intr *intr, const char *serial,
unsigned flags);
#endif