mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-13 21:36:04 +02:00
Use correct snapshots folder.
Fix bug in APK installer.
This commit is contained in:
parent
7419f9899e
commit
d4b77d15cc
1 changed files with 7 additions and 13 deletions
|
@ -43,7 +43,7 @@ TestRunnerMobile::TestRunnerMobile(
|
|||
_installAPKPushbutton = installAPKPushbutton;
|
||||
_runInterfacePushbutton = runInterfacePushbutton;
|
||||
|
||||
folderLineEdit->setText("/sdcard/DCIM/TEST");
|
||||
folderLineEdit->setText("/sdcard/snapshots");
|
||||
|
||||
modelNames["SM_G955U1"] = "Samsung S8+ unlocked";
|
||||
modelNames["SM_N960U1"] = "Samsung Note 9 unlocked";
|
||||
|
@ -163,22 +163,16 @@ void TestRunnerMobile::installAPK() {
|
|||
_adbInterface = new AdbInterface();
|
||||
}
|
||||
|
||||
if (_installerFilename.isNull()) {
|
||||
QString installerPathname = QFileDialog::getOpenFileName(nullptr, "Please select the APK", _workingFolder,
|
||||
"Available APKs (*.apk)"
|
||||
);
|
||||
QString installerPathname = QFileDialog::getOpenFileName(nullptr, "Please select the APK", _workingFolder,
|
||||
"Available APKs (*.apk)"
|
||||
);
|
||||
|
||||
if (installerPathname.isNull()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove the path
|
||||
QStringList parts = installerPathname.split('/');
|
||||
_installerFilename = parts[parts.length() - 1];
|
||||
if (installerPathname.isNull()) {
|
||||
return;
|
||||
}
|
||||
|
||||
_statusLabel->setText("Installing");
|
||||
QString command = _adbInterface->getAdbCommand() + " install -r -d " + _workingFolder + "/" + _installerFilename + " >" + _workingFolder + "/installOutput.txt";
|
||||
QString command = _adbInterface->getAdbCommand() + " install -r -d " + installerPathname + " >" + _workingFolder + "/installOutput.txt";
|
||||
appendLog(command);
|
||||
system(command.toStdString().c_str());
|
||||
_statusLabel->setText("Installation complete");
|
||||
|
|
Loading…
Reference in a new issue