fixed a bug in apps not showing with no permissions, and fixed a bug in the adb command screen

This commit is contained in:
Shane Harris
2022-08-05 07:53:21 +02:00
parent 5dbbcbcbbe
commit c38e48769a
8 changed files with 48 additions and 30 deletions
@@ -124,8 +124,8 @@ export class HeaderBannerComponent implements OnInit {
console.warn(e);
this.useBundledAPK();
}
await this.adb.runAdbCommand('push "' + this.appService.apkPath + '" /data/local/tmp/sq.apk');
await this.adb.runAdbCommand('shell pm install -r /data/local/tmp/sq.apk');
await this.adb.runAdbCommand('push "' + this.appService.apkPath + '" /data/local/tmp/sq.apk', true);
await this.adb.runAdbCommand('shell pm install -r /data/local/tmp/sq.apk', true);
// this.toast.show('SideQuest installed to headset!');
// this.showConfetti = true;
this.adb.appVersionCode = await this.adb.getAppVersion(true);
@@ -168,7 +168,7 @@ export class HeaderBannerComponent implements OnInit {
}
async uninstall() {
await this.adb.runAdbCommand('uninstall ' + this.adb.VR_APP_PACKAGE);
await this.adb.runAdbCommand('uninstall ' + this.adb.VR_APP_PACKAGE, true);
}
async userUninstall() {