added in new tools screen

This commit is contained in:
Shane Harris
2022-07-13 19:07:14 +01:00
parent 342c8d13ad
commit 6dc9b11368
15 changed files with 552 additions and 443 deletions
+3 -32
View File
@@ -346,11 +346,6 @@ export class AdbClientService {
this.deviceStatusMessage =
this.deviceName +
' <i mz-tooltip class="material-icons white-text top-menu-bar-icon vertical-align"' +
' position="bottom" tooltip="Wifi">' +
' wifi' +
' </i> ' +
(this.deviceIp || 'Not found...') +
' <i mz-tooltip class="material-icons white-text top-menu-bar-icon vertical-align"' +
' position="bottom" tooltip="Battery">' +
' ' +
(this.isBatteryCharging ? 'battery_charging_full' : 'battery_full') +
@@ -368,37 +363,13 @@ export class AdbClientService {
}
break;
case ConnectionStatus.DISCONNECTED:
this.deviceStatusMessage =
'Not Detected' +
(this.deviceIp
? ' <i mz-tooltip class="material-icons white-text top-menu-bar-icon vertical-align"' +
' position="bottom" tooltip="Battery">' +
' wifi' +
' </i> ' +
this.deviceIp
: '');
this.deviceStatusMessage = 'Not Detected';
break;
case ConnectionStatus.UNAUTHORIZED:
this.deviceStatusMessage =
'Unauthorized: Allow in headset. ' +
(this.deviceIp
? ' <i mz-tooltip class="material-icons white-text top-menu-bar-icon vertical-align"' +
' position="bottom" tooltip="Battery">' +
' wifi' +
' </i> ' +
this.deviceIp
: '');
this.deviceStatusMessage = 'Unauthorized: Allow in headset';
break;
case ConnectionStatus.DEV_MODE:
this.deviceStatusMessage =
'Dev Mode: Enable dev mode in the Oculus phone app. ' +
(this.deviceIp
? ' <i mz-tooltip class="material-icons white-text top-menu-bar-icon vertical-align"' +
' position="bottom" tooltip="Battery">' +
' wifi' +
' </i> ' +
this.deviceIp
: '');
this.deviceStatusMessage = 'Dev Mode: Enable dev mode in the Oculus phone app';
break;
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
<app-header></app-header>
<div class="app-container">
<app-content></app-content>
<router-outlet></router-outlet>
</div>
<app-loading-spinner #spinner></app-loading-spinner>
+1 -1
View File
@@ -31,5 +31,5 @@
left: 0;
position: fixed;
z-index: 8;
background:#0c0c0c;
background:#12152d;
}
@@ -36,7 +36,7 @@
<!-- </label>-->
<!--</div>-->
<button class="pure-material-button-contained button-margin-bottom" (click)="helpOpen = true;" *ngIf="!adb.isReady">Fix It For Me</button>
<div class="pure-material-button-contained button-margin-bottom" (click)="helpOpen = true;" *ngIf="!adb.isReady">Fix It For Me</div>
<!--<button class="pure-material-button-contained button-margin-bottom" (click)="backHome.emit()" *ngIf="adb.isReady && (adb.isOutOfDate || adb.notInstalled)">Install SideQuest</button>-->
<!-- <button class="pure-material-button-contained button-margin-bottom flat" (click)="backHome.emit()" *ngIf="adb.isReady && !(adb.isOutOfDate || adb.notInstalled)">Back Home</button>-->
@@ -1,3 +1,3 @@
<div class="content content-dark-theme">
<router-outlet></router-outlet>
</div>
@@ -1,7 +1,6 @@
.body-content {
height: calc(100% - 200px);
width: 100%;
background: #f0f0f0;
position: relative;
overflow: auto;
}
@@ -11,7 +10,6 @@
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
transition: background-color 350ms ease-out;
background-color:#0c0c0c;
}
/*.content-dark-theme{*/
/*background-color:#211c23;*/
@@ -1,5 +1,13 @@
<div class="container">
<h4 *ngIf="!processService.tasks.length" class="text-dark-theme">No tasks running...</h4>
<div *ngIf="!processService.tasks.length" class="white-text">
<br>No tasks running.
<br><br>
<div class="pure-material-button-contained" routerLink="/">Back Home</div>
</div>
<div class="row" *ngIf="processService.tasks.length">
<app-current-task-item *ngFor="let task of processService.tasks;" [task]="task"></app-current-task-item>
@@ -9,10 +9,10 @@
</nav>
</div>
<div class="container files-section">
<div *ngIf="!isConnected()">
<h4 class="text-dark-theme">
No device connected yet...</h4>
<div *ngIf="!isConnected()" class="white-text">
<br>You are not currently connected.
<br><br>
<div class="pure-material-button-contained" routerLink="/setup">Open Setup Instructions</div>
</div>
<div *ngIf="isConnected()">
<div *ngIf="!files.length">
@@ -56,43 +56,25 @@
</ng-container>
</div>
<div class="user-menu" #userMenu>
<!-- <div class="btn-flat waves-light waves-light full-width center-align white-text"-->
<!-- (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';webService.loadUrl(webUrl || 'https://sidequestvr.com')"-->
<!-- routerLink="/webview"><i class="material-icons left">home</i>Home</div><br>-->
<div class="btn-flat waves-light waves-light full-width center-align white-text"
*ngIf="isConnected()&&osPlatform === 'win32'"
(click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';scrcpyModal.openModal();">
<i class="material-icons left">live_tv</i>Streaming</div>
<div class="btn-flat waves-light waves-light full-width center-align white-text" *ngIf="adbService.deviceIp"
(click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';wifiModal.openModal()"><i
class="material-icons left">wifi</i>Wifi</div>
<!-- <div class="btn-flat waves-light waves-light full-width center-align white-text"-->
<!-- (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';selectAppToInstall()"><i-->
<!-- class="material-icons left">archive</i>Select APK</div>-->
<!-- <div class="btn-flat waves-light waves-light full-width center-align white-text"-->
<!-- (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';" routerLink="/device-files"><i-->
<!-- class="material-icons left">folder</i>File Explorer</div>-->
<!-- <div class="btn-flat waves-light waves-light full-width center-align white-text"-->
<!-- (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';" routerLink="packages"><i-->
<!-- class="material-icons left">apps</i>My Apps</div>-->
<!-- <div class="btn-flat waves-light waves-light full-width center-align white-text"-->
<!-- (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';" routerLink="tools"><i-->
<!-- class="material-icons left">build</i>Tools</div>-->
<div class="btn-flat waves-light waves-light full-width center-align white-text"
(click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';adbModal.openModal()"><i
class="material-icons left">input</i>ADB Commands</div>
<!-- <div class="btn-flat waves-light waves-light full-width center-align white-text"-->
<!-- (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';logcatModal.openModal()"><i-->
<!-- class="material-icons left">input</i>ADB Logcat</div>-->
<!-- <div class="btn-flat waves-light waves-light full-width center-align white-text"-->
<!-- *ngIf="isConnected()&&osPlatform === 'win32'"-->
<!-- (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';scrcpyModal.openModal();">-->
<!-- <i class="material-icons left">live_tv</i>Streaming</div>-->
<!-- <div class="btn-flat waves-light waves-light full-width center-align white-text" *ngIf="adbService.deviceIp"-->
<!-- (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';wifiModal.openModal()"><i-->
<!-- class="material-icons left">wifi</i>Wifi</div>-->
<!-- <div class="btn-flat waves-light waves-light full-width center-align white-text"-->
<!-- (click)="userMenu.style.display = 'none';userMenuBack.style.display = 'none';adbModal.openModal()"><i-->
<!-- class="material-icons left">input</i>ADB Commands</div>-->
</div>
<app-link *ngIf="appService.updateAvailable"
class="waves-effect waves-light btn-flat update-available link small-button warning" (click)="updateAvailable()"
text="Update"></app-link>
<i mz-tooltip class="material-icons white-text no-outline top-menu-bar-icon-down" position="bottom" tooltip="Menu"
(click)="userMenu.style.display = 'block';userMenuBack.style.display = 'block'">
arrow_drop_down
</i>
<!-- <i mz-tooltip class="material-icons white-text no-outline top-menu-bar-icon-down" position="bottom" tooltip="Menu"-->
<!-- (click)="userMenu.style.display = 'block';userMenuBack.style.display = 'block'">-->
<!-- arrow_drop_down-->
<!-- </i>-->
<i mz-tooltip routerLink="/webview" (click)="doBack()"
class="material-icons white-text no-outline" position="bottom" tooltip="Back">
arrow_back
@@ -109,12 +91,12 @@
arrow_forward
</i>
<i mz-tooltip (click)="scrcpyModal.openModal();" *ngIf="isConnected()&&osPlatform === 'win32'"
class="material-icons white-text no-outline top-menu-bar-icon" position="bottom"
class="material-icons white-text no-outline" position="bottom"
tooltip="Stream from your headset to your PC with ScrCpy.">
live_tv
</i>
<i mz-tooltip *ngIf="adbService.deviceIp" (click)="wifiModal.openModal()"
class="material-icons no-outline top-menu-bar-icon"
class="material-icons no-outline"
[ngClass]="{'green-text':adbService.wifiEnabled,'white-text':!adbService.wifiEnabled}" position="bottom"
tooltip="Enable wireless mode. (Experimental)">
wifi
@@ -146,26 +128,11 @@
tooltip="Device settings & tools">
build
</i>
<i mz-tooltip (click)="commandMenu.style.display = 'block';commandMenuBack.style.display = 'block'" class="material-icons white-text no-outline top-menu-bar-icon"
<i mz-tooltip (click)="commandMenu.style.display = 'block';commandMenuBack.style.display = 'block'"
class="material-icons white-text no-outline"
position="bottom" tooltip="Run ADB commands">
input
</i>
<!-- <i (click)="openDebugger()" id="open-debugger" mz-tooltip class="material-icons white-text top-menu-bar-icon"-->
<!-- position="bottom" tooltip="Open debugger">-->
<!-- bug_report-->
<!-- </i>-->
<!-- <i (click)="minimizeApp(); userMenu.style.display = 'none';userMenuBack.style.display = 'none'" mz-tooltip class="material-icons white-text no-outline" position="bottom"-->
<!-- tooltip="Minimize SideQuest.">-->
<!-- minimize-->
<!-- </i>-->
<!-- <i (click)="maximizeApp(); userMenu.style.display = 'none';userMenuBack.style.display = 'none'" mz-tooltip class="material-icons white-text no-outline" position="bottom"-->
<!-- tooltip="Toggle Maximize.">-->
<!-- aspect_ratio-->
<!-- </i>-->
<!-- <i (click)="closeAppModal.openModal(); userMenu.style.display = 'none';userMenuBack.style.display = 'none'" mz-tooltip class="material-icons white-text no-outline" position="bottom"-->
<!-- tooltip="Close SideQuest.">-->
<!-- close-->
<!-- </i>-->
</div>
<div id="connection-status-container">
<i mz-tooltip class="material-icons white-text no-outline connection-device-select pointer left"
@@ -174,13 +141,15 @@
position="bottom" tooltip="Select Device">
arrow_drop_down
</i>
<app-link class="waves-effect waves-light btn-flat update-available get-help link small-button warning left" *ngIf="!adbService.isReady"
text="Get Help" routerLink="/setup"></app-link>
<div id="connection-status" class="connection-status-unauthorized left" mz-tooltip
position="bottom" [ngClass]="adbService.connectionCss" [tooltip]="adbService.lastErrorMessage||'Device connection status.'">
<div class="connection-status-outer left">
<div id="connection-status" class="connection-status-unauthorized " mz-tooltip
position="bottom" [ngClass]="adbService.connectionCss" [tooltip]="adbService.lastErrorMessage||'Device connection status.'">
<div id="connection-status-message" [innerHTML]="appService.versionName+'&nbsp;&nbsp;'+adbService.deviceStatusMessage"></div>
</div>
<div id="connection-status-message" [innerHTML]="adbService.deviceStatusMessage"></div>
</div>
<div class="pure-material-button-contained slim get-help" *ngIf="!adbService.isReady" routerLink="/setup">Open Setup Instructions</div>
</div>
</div>
</div>
@@ -199,13 +168,6 @@
<br />
<span class="spinner-loading-message" [innerHTML]="dragAndDropService.message"></span>
</div>
<div class="apk-install" *ngIf="appService.isPackagesOpen">Manage the apps on your headset.<br>Click Show All to
see all apps including system apps.</div>
<div class="apk-install" *ngIf="appService.isSettingsOpen">Manage settings on your headset.</div>
<div class="apk-install" *ngIf="appService.isSetupOpen">Setup your headset with SideQuest.</div>
<div class="apk-install" *ngIf="appService.isTasksOpen">Manage tasks for installing, <br>downloading and uploading
from your headset.</div>
</div>
<div *ngIf="appService.showBrowserBar" class="beast-saber-buttons">
<a class="waves-effect waves-light synthrideerz"
@@ -177,26 +177,30 @@ virtual-scroller{
}
#connection-status-message {
text-align: left;
white-space: nowrap;
float: left;
margin-left: 30px;
margin-top: -2px;
margin-left: 10px;
display: inline-block;
vertical-align: middle;
margin-right: 10px;
color: white;
}
#connection-status-container{
position: absolute;
left: 10px;
top: 8px;
top: 6px;
-webkit-app-region: no-drag;
}
.connection-device-select{
vertical-align: top;
}
.connection-status-outer{
white-space: nowrap;
}
#connection-status {
width: 20px;
height: 20px;
border-radius: 10px;
display: inline-block;
vertical-align: middle;
}
.connection-status-connected {
background-color: #4caf50;
@@ -1,305 +1,402 @@
<div class="container text-dark-theme">
<div *ngIf="!adbService.isReady" class="diagnostics-inner" >
<br>
<ng-container>
You are not currently connected.
</ng-container>
<div *ngIf="!adbService.isReady" class="diagnostics-inner white-text">
<br>You are not currently connected.
<br><br>
<button class="pure-material-button-contained" routerLink="/setup">Open Setup</button>
<div class="pure-material-button-contained" routerLink="/setup">Open Setup Instructions</div>
</div>
<ng-container *ngIf="adbService.isReady">
<h3 class="section-title">MTP ( Media Transfer Protocol )</h3>
<div class="switch">
<label>
Off
<input type="checkbox" class="disable-reviews" [checked]="adbService.diagnostics.usb && adbService.diagnostics.usb.is_mtp_enabled" (click)="adbService.toggleMTP()">
<span class="lever disable-reviews-switch"></span>
On
</label>
</div>
<h4 class="description-section">
This allows you to transfer files between your computer and your headset using your favourite file explorer. You may need to re-enable this when you re-connect your headset.
</h4>
<br>
<h4 class="section-title">Quality & Performance</h4>
<div class="section-container card z-depth-2">
<div class="row">
<div class="col s6">
<h5 class="section-title">Set CPU and GPU level</h5>
<h4 class="description-section">
This can improve performance for apps & games at the expense of quicker battery draining and your device may get a little hotter than normal but totally within limits.
</h4>
<p>
<label>
<input name="cpuGpuLevel" type="radio" value="app-app" [(ngModel)]="cpuGpuLevel" (click)="setGPU(GPU._app)"/>
<span>Set by App ( Default )</span>
</label>
</p>
<p>
<label>
<input name="cpuGpuLevel" type="radio" value="2-2" [(ngModel)]="cpuGpuLevel" (click)="setGPU(GPU._2)"/>
<span>Level 2</span>
</label>
</p>
<p>
<label>
<input name="cpuGpuLevel" type="radio" value="4-4" [(ngModel)]="cpuGpuLevel" (click)="setGPU(GPU._4)"/>
<span>Level 4</span>
</label>
</p>
<h5 class="section-title">Default Texture Size</h5>
<div class="description-section">
This will change how high quality some of the in game textures are rendered at.
</div>
<div class="inline margin-right">
<p>
<label>
<input name="textureSize" type="radio" value="1216-1344" [(ngModel)]="textureSize" (click)="setSSO(SSO._Quest1)"/>
<span>Default - Quest 1</span>
</label>
</p>
<p>
<label>
<input name="textureSize" type="radio" value="1440-1584" [(ngModel)]="textureSize" (click)="setSSO(SSO._Quest2)"/>
<span>Default - Quest 2</span>
</label>
</p>
<p>
<label>
<input name="textureSize" type="radio" value="512-563" [(ngModel)]="textureSize" (click)="setSSO(SSO._512)"/>
<span>512</span>
</label>
</p>
<p>
<label>
<input name="textureSize" type="radio" value="768-845" [(ngModel)]="textureSize" (click)="setSSO(SSO._768)"/>
<span>768</span>
</label>
</p>
<p>
<label>
<input name="textureSize" type="radio" value="1024-1127" [(ngModel)]="textureSize" (click)="setSSO(SSO._1024)"/>
<span>1024</span>
</label>
</p>
</div>
<div class="inline">
<p>
<label>
<input name="textureSize" type="radio" value="1280-1408" [(ngModel)]="textureSize" (click)="setSSO(SSO._1280)"/>
<span>1280</span>
</label>
</p>
<p>
<label>
<input name="textureSize" type="radio" value="1536-1690" [(ngModel)]="textureSize" (click)="setSSO(SSO._1536)"/>
<span>1536</span>
</label>
</p>
<p>
<label>
<input name="textureSize" type="radio" value="2048-2253" [(ngModel)]="textureSize" (click)="setSSO(SSO._2048)"/>
<span>2048</span>
</label>
</p>
<p>
<label>
<input name="textureSize" type="radio" value="2560-2816" [(ngModel)]="textureSize" (click)="setSSO(SSO._2560)"/>
<span>2560</span>
</label>
</p>
<p>
<label>
<input name="textureSize" type="radio" value="3072-3380" [(ngModel)]="textureSize" (click)="setSSO(SSO._3072)"/>
<span>3072</span>
</label>
</p>
</div>
<h3 class="section-title">Experimental Mode</h3>
<div class="switch">
<label>
Off
<input type="checkbox" class="disable-reviews" [checked]="experimentalEnabled"
(click)="experimentalEnabled ? setExperimental(EXP.Off) : setExperimental(EXP.On);">
<span class="lever disable-reviews-switch"></span>
On
</label>
</div>
<h4 class="description-section">
This enables experimental features in your Oculus Quest such as Passthrough API support ( requires guardian to be enabled ).
</h4>
<br>
<h3 class="section-title">Refresh Rate</h3>
<h5 class="section-title">Refresh Rate</h5>
<h4 class="description-section">This will allow you to change to 90Hz refresh rate for 90fps support in games on Quest 2.</h4>
<p>
<label>
<input name="refreshRate" type="radio" value="60" [(ngModel)]="refreshRate" (click)="setRR(RR._60)"/>
<span>60Hz</span>
</label>
</p>
<p>
<label>
<input name="refreshRate" type="radio" value="72" [(ngModel)]="refreshRate" (click)="setRR(RR._72)"/>
<span>72Hz ( Default )</span>
</label>
</p>
<p>
<label>
<input name="refreshRate" type="radio" value="90" [(ngModel)]="refreshRate" (click)="setRR(RR._90)"/>
<span>90Hz</span>
</label>
</p>
<p>
<label>
<input name="refreshRate" type="radio" value="120" [(ngModel)]="refreshRate" (click)="setRR(RR._120)"/>
<span>120Hz</span>
</label>
</p>
</div>
<div class="col s6">
<p>
<label>
<input name="group1" type="radio" value="60" [(ngModel)]="refreshRate" (click)="setRR(RR._60)"/>
<span>60Hz</span>
</label>
</p>
<p>
<label>
<input name="group1" type="radio" value="72" [(ngModel)]="refreshRate" (click)="setRR(RR._72)"/>
<span>72Hz ( Default )</span>
</label>
</p>
<p>
<label>
<input name="group1" type="radio" value="90" [(ngModel)]="refreshRate" (click)="setRR(RR._90)"/>
<span>90Hz</span>
</label>
</p>
<p>
<label>
<input name="group1" type="radio" value="120" [(ngModel)]="refreshRate" (click)="setRR(RR._120)"/>
<span>120Hz</span>
</label>
</p>
<h5 class="section-title">
Set FFR ( Fixed Foveated Rendering ) level
</h5>
<h4 class="description-section">
This will allow you to change to 90Hz refresh rate for 90fps support in games on Quest 2.<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.
</h4><br>
<h3 class="section-title">Proximity Sensor</h3>
<h4 class="description-section">
This will change how the view is rendered in the outer edges of the viewscreen for each eye. Higher is better
performance, lower is better quality.
</h4>
<div class="button-section">
<div class="pure-material-button-contained spaced flat active" (click)="disableProximity()">Disable Proximity Sensor</div>
</div>
<h4 class="description-section">
This disables the proximity sensor effectively keeping your quest awake when not on your head ( requires restart to re-enable ).
</h4><br>
<h3 class="section-title">Guardian</h3>
<div class="switch">
<label>
Off
<input type="checkbox" class="disable-reviews" [checked]="!guardianEnabled" (click)="guardianEnabled ? setGuardian(GU.ON) : setGuardian(GU.OFF)">
<span class="lever disable-reviews-switch"></span>
On
</label>
<p>
<label>
<input name="fixedFoveatedRendering" type="radio" value="0" [(ngModel)]="fixedFoveatedRendering" (click)="setFFR(FFR.OFF)"/>
<span>Off</span>
</label>
</p>
<p>
<label>
<input name="fixedFoveatedRendering" type="radio" value="1" [(ngModel)]="fixedFoveatedRendering" (click)="setFFR(FFR.LOW)"/>
<span>Low</span>
</label>
</p>
<p>
<label>
<input name="fixedFoveatedRendering" type="radio" value="2" [(ngModel)]="fixedFoveatedRendering" (click)="setFFR(FFR.MEDIUM)"/>
<span>Medium ( Default )</span>
</label>
</p>
<p>
<label>
<input name="fixedFoveatedRendering" type="radio" value="3" [(ngModel)]="fixedFoveatedRendering" (click)="setFFR(FFR.HIGH)"/>
<span>High</span>
</label>
</p>
<p>
<label>
<input name="fixedFoveatedRendering" type="radio" value="4" [(ngModel)]="fixedFoveatedRendering" (click)="setFFR(FFR.HIGH_TOP)"/>
<span>High Top</span>
</label>
</p>
<h5 class="section-title">Chromatic Aberration</h5>
<h4 class="description-section">
This will enable/disable chromatic aberration.
</h4>
<p>
<label>
<input name="chromaticAberration" type="radio" value="1" [(ngModel)]="chromaticAberration" (click)="setCa(CA.ON)"/>
<span>On ( Default )</span>
</label>
</p>
<p>
<label>
<input name="chromaticAberration" type="radio" value="0" [(ngModel)]="chromaticAberration" (click)="setCa(CA.OFF)"/>
<span>Off</span>
</label>
</p>
<p>
<label>
<input name="chromaticAberration" type="radio" value="-1" [(ngModel)]="chromaticAberration" (click)="setCa(CA.APP)"/>
<span>App Selected</span>
</label>
</p>
</div>
</div>
</div>
<h4 class="description-section">
This will enable/disable the guardian.
</h4><br>
<h4 class="section-title">Streaming & Video</h4>
<h3 class="section-title">Set CPU and GPU level</h3>
<div class="section-container card z-depth-2">
<div class="row">
<div class="col s6">
<h5 class="section-title">Tetiana's Presets</h5>
<h4 class="description-section">
Quickly set the video capture resolution while also using 60 FPS and 10Mbps bitrate capture settings too.
</h4>
<div class="button-section">
<div class="pure-material-button-contained spaced flat active" (click)="setTetianasPreset(TP._FHD)">Full HD ( 1920 x 1080 )</div>
<div class="pure-material-button-contained spaced flat active" (click)="setTetianasPreset(TP._SQUARE)">Square ( 1600 x 1600 )</div>
</div>
<h5 class="section-title">Video Capture Size</h5>
<h4 class="description-section">
This changes the resolution of captured videos on the Quest
</h4>
<p>
<label>
<input name="videoCaptureSize" type="radio" value="640-480" [(ngModel)]="videoCaptureSize" (click)="setCR(CR._480)"/>
<span>640 x 480</span>
</label>
</p>
<p>
<label>
<input name="videoCaptureSize" type="radio" value="1280-720" [(ngModel)]="videoCaptureSize" (click)="setCR(CR._720)"/>
<span>1280 x 720</span>
</label>
</p>
<p>
<label>
<input name="videoCaptureSize" type="radio" value="1920-1080" [(ngModel)]="videoCaptureSize" (click)="setCR(CR._1080)"/>
<span>1920 x 1080</span>
</label>
</p>
<p>
<label>
<input name="videoCaptureSize" type="radio" value="1024-1024" [(ngModel)]="videoCaptureSize" (click)="setCR(CR._1024)"/>
<span>1024 X 1024 ( Default )</span>
</label>
</p>
<p>
<label>
<input name="videoCaptureSize" type="radio" value="1600-1600" [(ngModel)]="videoCaptureSize" (click)="setCR(CR._1600)"/>
<span>1600 X 1600</span>
</label>
</p>
<!-- <h5 class="section-title">Full Rate Capture</h5>-->
<!-- <h4 class="description-section">-->
<!-- This will enable/disable the full rate capture for videos recorded i.e. 60/72fps rather than 30fps.-->
<!-- </h4>-->
<!-- <div class="switch">-->
<!-- <label>-->
<!-- Off-->
<!-- <input type="checkbox" class="disable-reviews" [checked]="fullRateCaptureEnabled" (click)="fullRateCaptureEnabled ? setFullRate(GU.OFF) : setFullRate(GU.ON)">-->
<!-- <span class="lever disable-reviews-switch"></span>-->
<!-- On-->
<!-- </label>-->
<!-- </div>-->
</div>
<div class="col s6">
<h5 class="section-title">Video Capture FPS</h5>
<h4 class="description-section">
This changes the frame rate of captured videos on the Quest
</h4>
<p>
<label>
<input name="captureFps" type="radio" value="24" [(ngModel)]="captureFps" (click)="setCaptureFPSRate(FPS._24)"/>
<span>24fps</span>
</label>
</p>
<p>
<label>
<input name="captureFps" type="radio" value="30" [(ngModel)]="captureFps" (click)="setCaptureFPSRate(FPS._30)"/>
<span>30fps</span>
</label>
</p>
<p>
<label>
<input name="captureFps" type="radio" value="60" [(ngModel)]="captureFps" (click)="setCaptureFPSRate(FPS._60)"/>
<span>60fps</span>
</label>
</p>
<h5 class="section-title">Video Capture Bitrate</h5>
<h4 class="description-section">
This changes the quality of captured videos on the Quest
</h4>
<p>
<label>
<input name="captureBitrate" type="radio" value="5000000" [(ngModel)]="captureBitrate" (click)="setCaptureBitrate(BR._5K)"/>
<span>5mbps</span>
</label>
</p>
<p>
<label>
<input name="captureBitrate" type="radio" value="10000000" [(ngModel)]="captureBitrate" (click)="setCaptureBitrate(BR._10K)"/>
<span>10mbps</span>
</label>
</p>
<p>
<label>
<input name="captureBitrate" type="radio" value="15000000" [(ngModel)]="captureBitrate" (click)="setCaptureBitrate(BR._15K)"/>
<span>15mbps</span>
</label>
</p>
<p>
<label>
<input name="captureBitrate" type="radio" value="20000000" [(ngModel)]="captureBitrate" (click)="setCaptureBitrate(BR._20K)"/>
<span>20mbps</span>
</label>
</p>
</div>
</div>
</div>
<h4 class="section-title">Experimental & Miscellaneous </h4>
<div class="section-container card z-depth-2">
<h5 class="section-title">Experimental Mode</h5>
<h4 class="description-section">
This enables experimental features in your Oculus Quest such as Passthrough API support ( requires guardian to be enabled ).
</h4>
<div class="switch">
<label>
Off
<input type="checkbox" class="disable-reviews" [checked]="experimentalEnabled"
(click)="experimentalEnabled ? setExperimental(EXP.Off) : setExperimental(EXP.On);">
<span class="lever disable-reviews-switch"></span>
On
</label>
</div>
<h5 class="section-title">MTP ( Media Transfer Protocol )</h5>
<h4 class="description-section">
This allows you to transfer files between your computer and your headset using your favourite file explorer. You may need to re-enable this when you re-connect your headset.
</h4>
<div class="switch">
<label>
Off
<input type="checkbox" class="disable-reviews" [checked]="adbService.diagnostics.usb && adbService.diagnostics.usb.is_mtp_enabled" (click)="adbService.toggleMTP()">
<span class="lever disable-reviews-switch"></span>
On
</label>
</div>
<h5 class="section-title">Proximity Sensor</h5>
<h4 class="description-section">
This disables the proximity sensor effectively keeping your quest awake when not on your head ( requires restart to re-enable ).
</h4>
<div class="button-section">
<div class="pure-material-button-contained spaced flat active" (click)="disableProximity()">Disable Proximity Sensor</div>
</div>
<h5 class="section-title">Guardian</h5>
<h4 class="description-section">
This will enable/disable the guardian.
</h4>
<div class="switch">
<label>
Off
<input type="checkbox" class="disable-reviews" [checked]="!guardianEnabled" (click)="guardianEnabled ? setGuardian(GU.ON) : setGuardian(GU.OFF)">
<span class="lever disable-reviews-switch"></span>
On
</label>
</div>
<p>
<label>
<input name="group5" type="radio" value="app-app" [(ngModel)]="cpuGpuLevel" (click)="setGPU(GPU._app)"/>
<span>Set by App ( Default )</span>
</label>
</p>
<p>
<label>
<input name="group5" type="radio" value="2-2" [(ngModel)]="cpuGpuLevel" (click)="setGPU(GPU._2)"/>
<span>Level 2</span>
</label>
</p>
<p>
<label>
<input name="group5" type="radio" value="4-4" [(ngModel)]="cpuGpuLevel" (click)="setGPU(GPU._4)"/>
<span>Level 4</span>
</label>
</p>
<h4 class="description-section">
This can improve performance for 2D apps & games at the cost of draining your battery quicker and your device may get a little hotter than normal but totally within limits.
</h4><br>
<h3 class="section-title">Default Texture Size</h3>
<div class="description-section">
This will change how high quality some of the in game textures are rendered at.
</div>
<p>
<label>
<input name="group6" type="radio" value="1216-1344" [(ngModel)]="textureSize" (click)="setSSO(SSO._Quest1)"/>
<span>Default - Quest 1</span>
</label>
</p>
<p>
<label>
<input name="group6" type="radio" value="1440-1584" [(ngModel)]="textureSize" (click)="setSSO(SSO._Quest2)"/>
<span>Default - Quest 2</span>
</label>
</p>
<p>
<label>
<input name="group6" type="radio" value="512-563" [(ngModel)]="textureSize" (click)="setSSO(SSO._512)"/>
<span>512</span>
</label>
</p>
<p>
<label>
<input name="group6" type="radio" value="768-845" [(ngModel)]="textureSize" (click)="setSSO(SSO._768)"/>
<span>768</span>
</label>
</p>
<p>
<label>
<input name="group6" type="radio" value="1024-1127" [(ngModel)]="textureSize" (click)="setSSO(SSO._1024)"/>
<span>1024</span>
</label>
</p>
<p>
<label>
<input name="group6" type="radio" value="1280-1408" [(ngModel)]="textureSize" (click)="setSSO(SSO._1280)"/>
<span>1280</span>
</label>
</p>
<p>
<label>
<input name="group6" type="radio" value="1536-1690" [(ngModel)]="textureSize" (click)="setSSO(SSO._1536)"/>
<span>1536</span>
</label>
</p>
<p>
<label>
<input name="group6" type="radio" value="2048-2253" [(ngModel)]="textureSize" (click)="setSSO(SSO._2048)"/>
<span>2048</span>
</label>
</p>
<p>
<label>
<input name="group6" type="radio" value="2560-2816" [(ngModel)]="textureSize" (click)="setSSO(SSO._2560)"/>
<span>2560</span>
</label>
</p>
<p>
<label>
<input name="group6" type="radio" value="3072-3380" [(ngModel)]="textureSize" (click)="setSSO(SSO._3072)"/>
<span>3072</span>
</label>
</p><h3 class="section-title">Chromatic Aberration</h3>
<p>
<label>
<input name="group2" type="radio" value="1" [(ngModel)]="chromaticAberration" (click)="setCa(CA.ON)"/>
<span>On ( Default )</span>
</label>
</p>
<p>
<label>
<input name="group2" type="radio" value="0" [(ngModel)]="chromaticAberration" (click)="setCa(CA.OFF)"/>
<span>Off</span>
</label>
</p>
<p>
<label>
<input name="group2" type="radio" value="-1" [(ngModel)]="chromaticAberration" (click)="setCa(CA.APP)"/>
<span>App Selected</span>
</label>
</p>
<h4 class="description-section">
This will enable/disable chromatic aberration.
</h4><br>
<h3 class="section-title">Full Rate Capture</h3>
<div class="switch">
<label>
Off
<input type="checkbox" class="disable-reviews" [checked]="fullRateCaptureEnabled" (click)="fullRateCaptureEnabled ? setFullRate(GU.OFF) : setFullRate(GU.ON)">
<span class="lever disable-reviews-switch"></span>
On
</label>
<h4 class="section-title">SideQuest Stuff </h4>
<div class="section-container card z-depth-2">
<h5 class="section-title">SideQuest Folders</h5>
<h4 class="description-section">
This changes the resolution of captured videos on the Quest
</h4>
<div class="button-section">
<div class="pure-material-button-contained spaced flat active" (click)="appService.openFolder(folder.MAIN)">Open Main App Folder</div>
<div class="pure-material-button-contained spaced flat active" (click)="appService.openFolder(folder.APK_BACKUPS)">Open APK Backup Folder</div>
<div class="pure-material-button-contained spaced flat active" (click)="appService.openFolder(folder.ADB)">Open ADB Folder</div>
</div>
<h5 class="section-title">SideQuest Debugger</h5>
<h4 class="description-section">
Open the SideQuest chromium dev tools.
</h4>
<div class="button-section">
<div class="pure-material-button-contained spaced flat active" (click)="openDebugger()">Open SideQuest Debugger</div>
</div>
</div>
<h4 class="description-section">
This will enable/disable the full rate capture for videos recorded i.e. 60/72fps rather than 30fps.
</h4><br>
<h3 class="section-title">
Set FFR ( Fixed Foveated Rendering ) level
</h3>
<p>
<label>
<input name="group3" type="radio" value="0" [(ngModel)]="fixedFoveatedRendering" (click)="setFFR(FFR.OFF)"/>
<span>Off</span>
</label>
</p>
<p>
<label>
<input name="group3" type="radio" value="1" [(ngModel)]="fixedFoveatedRendering" (click)="setFFR(FFR.LOW)"/>
<span>Low</span>
</label>
</p>
<p>
<label>
<input name="group3" type="radio" value="2" [(ngModel)]="fixedFoveatedRendering" (click)="setFFR(FFR.MEDIUM)"/>
<span>Medium ( Default )</span>
</label>
</p>
<p>
<label>
<input name="group3" type="radio" value="3" [(ngModel)]="fixedFoveatedRendering" (click)="setFFR(FFR.HIGH)"/>
<span>High</span>
</label>
</p>
<p>
<label>
<input name="group3" type="radio" value="4" [(ngModel)]="fixedFoveatedRendering" (click)="setFFR(FFR.HIGH_TOP)"/>
<span>High Top</span>
</label>
</p>
<h4 class="description-section">
This will change how the view is rendered in the outer edges of the viewscreen for each eye. Higher is better
performance, lower is better quality. This gets reset when you reboot the device.
</h4><br>
<h3 class="section-title">Set Video Capture Size</h3>
<p>
<label>
<input name="group4" type="radio" value="640-480" [(ngModel)]="videoCaptureSize" (click)="setCR(CR._480)"/>
<span>640 x 480</span>
</label>
</p>
<p>
<label>
<input name="group4" type="radio" value="1280-720" [(ngModel)]="videoCaptureSize" (click)="setCR(CR._720)"/>
<span>1280 x 720</span>
</label>
</p>
<p>
<label>
<input name="group4" type="radio" value="1920-1080" [(ngModel)]="videoCaptureSize" (click)="setCR(CR._1080)"/>
<span>1920 x 1080</span>
</label>
</p>
<p>
<label>
<input name="group4" type="radio" value="1024-1024" [(ngModel)]="videoCaptureSize" (click)="setCR(CR._1024)"/>
<span>1024 X 1024 ( Default )</span>
</label>
</p>
<h4 class="description-section">
This changes the resolution of captured videos on the Quest
</h4><br>
<h3 class="section-title">SideQuest Folders</h3>
<div class="button-section">
<div class="pure-material-button-contained spaced flat active" (click)="appService.openFolder(folder.MAIN)">Open Main App Folder</div>
<div class="pure-material-button-contained spaced flat active" (click)="appService.openFolder(folder.APK_BACKUPS)">Open APK Backup Folder</div>
<div class="pure-material-button-contained spaced flat active" (click)="appService.openFolder(folder.ADB)">Open ADB Folder</div>
</div>
<h4 class="description-section">
This changes the resolution of captured videos on the Quest
</h4><br>
<h3 class="section-title">SideQuest Debugger</h3>
<div class="button-section">
<div class="pure-material-button-contained spaced flat active" (click)="openDebugger()">Open SideQuest Debugger</div>
</div>
<h4 class="description-section">
Open the SideQuest chromium dev tools.
</h4><br>
<div class="side-quest-version">
@@ -10,4 +10,11 @@
.description-section{
font-size: 0.9rem;
line-height: 1.5em;
}
.section-container{
padding: 20px 40px 30px;
//border: 1px solid white;
//border-radius: 5px;
background: #1a1d3c;
}
@@ -41,20 +41,12 @@ enum SSO {
_Quest1,
_Quest2,
}
enum SVR {
_1024,
_1536,
}
enum CR {
_480,
_720,
_1080,
_1024,
}
enum SVB {
_5Mbps,
_15Mbps,
_25Mbps,
_1600,
}
enum RR {
_60,
@@ -63,6 +55,22 @@ enum RR {
_90,
_120,
}
enum FPS {
_24,
_30,
_60,
}
enum BR {
_2K,
_5K,
_10K,
_15K,
_20K,
}
enum TP {
_FHD,
_SQUARE,
}
@Component({
selector: 'app-headset-settings',
templateUrl: './headset-settings.component.html',
@@ -80,17 +88,19 @@ export class HeadsetSettingsComponent implements OnInit {
videoCaptureSize: string;
cpuGpuLevel: string;
textureSize: string;
captureFps: string;
captureBitrate: string;
FFR = FFR;
SVR = SVR;
SVB = SVB;
SSO = SSO;
GU = GU;
CA = CA;
CR = CR;
GPU = GPU;
FR = GU;
RR = RR;
EXP = EXP;
BR = BR;
FPS = FPS;
TP = TP;
constructor(public adbService: AdbClientService, public appService: AppService, private statusService: StatusBarService) {
this.appService.resetTop();
appService.webService.isWebviewOpen = false;
@@ -116,7 +126,8 @@ export class HeadsetSettingsComponent implements OnInit {
await this.getString('debug.oculus.refreshRate', '72', 'refreshRate');
await this.getString('debug.oculus.forceChroma', '1', 'chromaticAberration');
await this.getString('debug.oculus.foveation.level', '2', 'fixedFoveatedRendering');
// await this.getString('debug.oculus.forceChroma', '1', 'videoCaptureSize');
await this.getString('debug.oculus.capture.fps', '24', 'captureFps');
await this.getString('debug.oculus.capture.bitrate', '5000000', 'captureBitrate');
await this.getDoubleString('debug.oculus.capture.width', 'debug.oculus.capture.height', '1024', '1024', 'videoCaptureSize');
await this.getDoubleString('debug.oculus.cpuLevel', 'debug.oculus.gpuLevel', 'app', 'app', 'cpuGpuLevel');
await this.getDoubleString('debug.oculus.textureWidth', 'debug.oculus.textureHeight', '1440', '1584', 'textureSize');
@@ -209,14 +220,81 @@ export class HeadsetSettingsComponent implements OnInit {
})
.catch(e => this.statusService.showStatus(e, true));
}
setFullRate(fullRate: GU) {
this.runAdbCommand('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0))
.then(() => {
this.statusService.showStatus('Full Rate Capture set OK!!');
return this.getBool('fullRateCaptureEnabled', 'debug.oculus.fullRateCapture');
setCaptureFPSRate(fps: FPS) {
let value = 0;
switch (fps) {
case FPS._24:
value = 24;
break;
case FPS._30:
value = 30;
break;
case FPS._60:
value = 60;
break;
}
this.runAdbCommand('setprop debug.oculus.capture.fps ' + value)
.then(async () => {
this.statusService.showStatus('Capture FPS set OK!!');
await this.getString('debug.oculus.capture.fps', '24', 'captureFps');
})
.catch(e => this.statusService.showStatus(e, true));
}
setCaptureBitrate(bitrate: BR) {
let value = 0;
switch (bitrate) {
case BR._5K:
value = 5000000;
break;
case BR._10K:
value = 10000000;
break;
case BR._15K:
value = 15000000;
break;
case BR._20K:
value = 20000000;
break;
}
this.runAdbCommand('setprop debug.oculus.capture.bitrate ' + value)
.then(() => {
this.statusService.showStatus('Capture Bit Rate set OK!!');
return this.getString('debug.oculus.capture.bitrate', '5000000', 'captureBitrate');
})
.catch(e => this.statusService.showStatus(e, true));
}
setTetianasPreset(tp: TP) {
let width = 1920;
let height = 1080;
switch (tp) {
case TP._FHD:
width = 1920;
height = 1080;
break;
case TP._SQUARE:
width = 1600;
height = 1600;
break;
}
this.runAdbCommand('setprop debug.oculus.capture.width ' + width)
.then(() => this.runAdbCommand('setprop debug.oculus.capture.height ' + height))
.then(() => this.runAdbCommand('setprop debug.oculus.capture.fps 60'))
.then(() => this.runAdbCommand('setprop debug.oculus.capture.bitrate 10000000'))
.then(async () => {
this.statusService.showStatus('Capture settings set OK!!');
await this.getString('debug.oculus.capture.bitrate', '5000000', 'captureBitrate');
await this.getString('debug.oculus.capture.fps', '24', 'captureFps');
await this.getDoubleString(
'debug.oculus.capture.width',
'debug.oculus.capture.height',
'1024',
'1024',
'videoCaptureSize'
);
})
.catch(e => this.statusService.showStatus(e, true));
console.log(this.videoCaptureSize);
}
setGuardian(guardian: GU) {
this.runAdbCommand('setprop debug.oculus.guardian_pause ' + (guardian === GU.ON ? 0 : 1))
.then(() => {
@@ -326,28 +404,9 @@ export class HeadsetSettingsComponent implements OnInit {
})
.catch(e => this.statusService.showStatus(e, true));
}
setSVB(svb: SVB) {
let value = 5000000;
switch (svb) {
case SVB._5Mbps:
value = 5000000;
break;
case SVB._15Mbps:
value = 15000000;
break;
case SVB._25Mbps:
value = 25000000;
break;
}
this.runAdbCommand('setprop debug.oculus.videoBitrate ' + value)
.then(() => {
this.statusService.showStatus('Video Bitrate set OK!!');
})
.catch(e => this.statusService.showStatus(e, true));
}
setCR(svr: CR) {
let width = 1280;
let height = 720;
let width = 1024;
let height = 1024;
switch (svr) {
case CR._480:
width = 640;
@@ -365,6 +424,10 @@ export class HeadsetSettingsComponent implements OnInit {
width = 1024;
height = 1024;
break;
case CR._1600:
width = 1600;
height = 1600;
break;
}
this.runAdbCommand('setprop debug.oculus.capture.width ' + width)
.then(() => this.runAdbCommand('setprop debug.oculus.capture.height ' + height))
@@ -1,8 +1,9 @@
<div class="container">
<div *ngIf="!isConnected()">
<h4 class="text-dark-theme">
No device connected...</h4>
<div *ngIf="!isConnected()" class="white-text">
<br>You are not currently connected.
<br><br>
<div class="pure-material-button-contained" routerLink="/setup">Open Setup Instructions</div>
</div>
<div *ngIf="isConnected()">
<div class="row">