Trim package path when pulling APK for patching

This commit is contained in:
baldurk committed 2019-09-20 12:32:14 +01:00
1 parent 21bfddf2af
commit 6c4299017a
1 file changed
+1 -1
+1 -1
View File
@@ -153,7 +153,7 @@ std::string GetPathForPackage(const std::string &deviceID, const std::string &pa
{
std::vector<std::string> lines;
split(pkgPath, lines, '\n');
pkgPath = lines[0];
pkgPath = trim(lines[0]);
}
if(pkgPath.empty() || pkgPath.find("package:") != 0 || pkgPath.find("base.apk") == std::string::npos)