changed scrcpy path for adb on linux

This commit is contained in:
Your Name
2020-08-17 13:31:49 +01:00
parent 26be1764d2
commit a0d77146ae
8 changed files with 60 additions and 45 deletions
+12 -1
View File
@@ -68,7 +68,18 @@
(click)="setGuardian(GU.OFF)">OFF</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Full Rate Capture</div>
This will enable/disable the full rate capture for videos recorded i.e. 60/72fps rather than 30fps.
<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)="setFullRate(GU.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)="setFullRate(GU.OFF)">OFF</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Paste Text to your device</div>
+6 -7
View File
@@ -66,6 +66,7 @@ export class ToolsComponent implements OnInit {
CA = CA;
CR = CR;
GPU = GPU;
FR = GU;
pavlovName;
constructor(
public appService: AppService,
@@ -111,6 +112,11 @@ export class ToolsComponent implements OnInit {
this.statusService.showStatus('CPU/GPU level set OK!!');
});
}
setFullRate(fullRate: GU) {
this.adbService.runAdbCommand('adb shell setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0)).then(() => {
this.statusService.showStatus('Guardian pause set OK!!');
});
}
setGuardian(guardian: GU) {
this.adbService.runAdbCommand('adb shell setprop debug.oculus.guardian_pause ' + (guardian === GU.ON ? 1 : 0)).then(() => {
this.statusService.showStatus('Guardian pause set OK!!');
@@ -250,11 +256,4 @@ export class ToolsComponent implements OnInit {
}
});
}
setHideNSFW() {
if (this.appService.hideNSFW) {
localStorage.setItem('hideNSFW', 'true');
} else {
localStorage.removeItem('hideNSFW');
}
}
}