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
+1 -1
View File
@@ -413,7 +413,7 @@ export class AdbClientService {
return this.adbCommand('shell', { serial: this.deviceSerial, command: 'pm list packages -f ' + packageName }).then(res => {
let parts = res.split(':');
if (parts.length > 1) {
return parts[1].split('=')[0];
return parts[1].split('base.apk=')[0] + 'base.apk';
} else {
return false;
}
@@ -25,6 +25,22 @@
Open ADB Folder
</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Refresh Rate</div>
This will allow you to change to 90Hz refresh rate for 90fps support in games.<br>
WARNING: This does not work in all games, and does not work with Oculus Link. This setting may also reset to default when you restart your headset. You may need to press the power button twice to turn the screen off and on to enable this setting for apps that dont have it natively enabled.
<div class="button-section">
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setRR(RR._72)">Default</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setRR(RR._72)">72Hz</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
(click)="setRR(RR._90)">90Hz</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
@@ -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) {