Open the1337moderator opened 6 years ago
If someone still suffering with something similar, the solution is pass -r parameter to the requestBuilder inside AdbClient class.
This will make the app reinstall if needed, it's defined in ADB documentation.
Example:
AdbClient.Instance.install(device, stream, new string[] {"-r"};
When attempting to use
AdbClient.Instance.Install()
with an APK that is already installed on the target device, aSharpAdbClient.Exceptions.AdbException
is received.Possible solution: Check if already installed, have a bool flag as function parameter to determine if it should be skipped or should be uninstalled/installed
Calling code:
Exception data: