added 90hz mode and fixed apk backups on quest 2

This commit is contained in:
Shane Harris
2020-10-14 10:03:43 +01:00
parent a20f8894b4
commit 6162dbe601
3 changed files with 40 additions and 1 deletions
@@ -48,6 +48,10 @@ enum SVB {
_15Mbps,
_25Mbps,
}
enum RR {
_72,
_90,
}
@Component({
selector: 'app-tools',
templateUrl: './tools.component.html',
@@ -67,6 +71,7 @@ export class ToolsComponent implements OnInit {
CR = CR;
GPU = GPU;
FR = GU;
RR = RR;
pavlovName;
constructor(
public appService: AppService,
@@ -148,6 +153,24 @@ export class ToolsComponent implements OnInit {
this.statusService.showStatus(e, true);
});
}
setRR(rr: RR) {
let value = 72;
switch (rr) {
case RR._72:
value = 72;
break;
case RR._90:
value = 90;
break;
}
this.runAdbCommand('adb shell setprop debug.oculus.refreshRate ' + value)
.then(() => {
this.statusService.showStatus('Refresh Rate set OK!!');
})
.catch(e => {
this.statusService.showStatus(e, true);
});
}
setSSO(sso: SSO) {
let value = 0;
switch (sso) {