added experimental mode switch
This commit is contained in:
@@ -12,20 +12,32 @@
|
|||||||
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
|
<div class="waves-effect waves-light btn 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}"
|
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
|
||||||
(click)="appService.openFolder(folder.MAIN)">
|
(click)="appService.openFolder(folder.MAIN)">
|
||||||
Open Main App Folder
|
Open Main App Folder<i class="material-icons">open_in_new</i>
|
||||||
</div>
|
</div>
|
||||||
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
|
<div class="waves-effect waves-light btn 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}"
|
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
|
||||||
(click)="appService.openFolder(folder.APK_BACKUPS)">
|
(click)="appService.openFolder(folder.APK_BACKUPS)">
|
||||||
Open APK Backup Folder
|
Open APK Backup Folder<i class="material-icons">open_in_new</i>
|
||||||
</div>
|
</div>
|
||||||
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
|
<div class="waves-effect waves-light btn 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}"
|
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
|
||||||
(click)="appService.openFolder(folder.ADB)">
|
(click)="appService.openFolder(folder.ADB)">
|
||||||
Open ADB Folder
|
Open ADB Folder<i class="material-icons">open_in_new</i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="section-title"
|
||||||
|
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
|
||||||
|
Experimental Mode</div>
|
||||||
|
This enables experimental features in your Oculus Quest such as Passthrough API support.
|
||||||
|
<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)="setExperimental(EXP.On)">On</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)="setExperimental(EXP.Off)">Off</div>
|
||||||
|
</div>
|
||||||
<div class="section-title"
|
<div class="section-title"
|
||||||
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
|
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
|
||||||
Refresh Rate</div>
|
Refresh Rate</div>
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ enum GPU {
|
|||||||
_2,
|
_2,
|
||||||
_4,
|
_4,
|
||||||
}
|
}
|
||||||
|
enum EXP {
|
||||||
|
Off,
|
||||||
|
On,
|
||||||
|
}
|
||||||
enum GU {
|
enum GU {
|
||||||
ON,
|
ON,
|
||||||
OFF,
|
OFF,
|
||||||
@@ -121,6 +125,15 @@ export class ToolsComponent implements OnInit {
|
|||||||
runAdbCommand(command: string) {
|
runAdbCommand(command: string) {
|
||||||
return this.adbService.runAdbCommand(command);
|
return this.adbService.runAdbCommand(command);
|
||||||
}
|
}
|
||||||
|
setExperimental(exp: EXP) {
|
||||||
|
this.runAdbCommand('adb shell debug.oculus.experimentalEnabled ' + exp)
|
||||||
|
.then(() => {
|
||||||
|
this.statusService.showStatus('Experimental Mode set OK!!');
|
||||||
|
})
|
||||||
|
.catch(e => {
|
||||||
|
this.statusService.showStatus(e, true);
|
||||||
|
});
|
||||||
|
}
|
||||||
setGPU(gpu: GPU) {
|
setGPU(gpu: GPU) {
|
||||||
let value = gpu === GPU._2 ? 2 : 4;
|
let value = gpu === GPU._2 ? 2 : 4;
|
||||||
this.runAdbCommand('adb shell setprop debug.oculus.cpuLevel ' + value)
|
this.runAdbCommand('adb shell setprop debug.oculus.cpuLevel ' + value)
|
||||||
|
|||||||
Reference in New Issue
Block a user