added audio trip + custom homes + new app icon

This commit is contained in:
Shane Harris
2021-05-07 16:55:34 +01:00
parent 764d83daaf
commit 83a5f192cd
14 changed files with 10 additions and 2 deletions
+7 -1
View File
@@ -534,11 +534,17 @@ export class AdbClientService {
);
}
})
.catch(e => {
.catch(async e => {
if (deleteAfter) {
this.appService.fs.unlink(filePath, err => {});
}
let er = e.message ? e.message : e.code ? e.code : e.reason ? e.reason : JSON.stringify(e);
if (er.indexOf('INSTALL_FAILED_UPDATE_INCOMPATIBLE') > -1 && er.indexOf('com.oculus.environment.prod.')) {
let match = er.match(/([A-Za-z]*[A-Za-z\d_]*\.)+[A-Za-z][A-Za-z\d_]*/gm);
await this.adbCommand('uninstall', { serial: this.deviceSerial, packageName: match[0] });
this.installAPK(filePath, isLocal, shouldUninstall, number, total, deleteAfter, name);
return Promise.reject('Install failed, uninstalling and trying again...');
}
if (er === 'SAFESIDE') {
this.appService.headerComponent.safeModal.openModal();
}