Rebase to master when repo went private

This commit is contained in:
Your Name
2020-08-17 13:31:05 +01:00
commit fe20b27432
345 changed files with 28876 additions and 0 deletions
@@ -0,0 +1,8 @@
.button-section{
margin-top: 1em;
margin-bottom: 3em;
}
.side-quest-version{
position:relative;
text-align: right;
}
@@ -0,0 +1,255 @@
<div class="container"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="side-quest-version">
SideQuest Version: {{appService.versionName}}
</div>
<div class="row">
<div class="col s12">
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
SideQuest Folders</div>
<div class="button-section">
<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}"
(click)="appService.openFolder(folder.MAIN)">
Open Main App Folder
</div>
<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}"
(click)="appService.openFolder(folder.APK_BACKUPS)">
Open APK Backup Folder
</div>
<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}"
(click)="appService.openFolder(folder.ADB)">
Open ADB Folder
</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Pavlov Settings</div>
<div class="button-section">
<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}"
(click)="setPavlovPermission()">Grant Pavlov Permissions</div>&nbsp;&nbsp;&nbsp;&nbsp;
<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}"
(click)="changePavlov.openModal()">Change Pavlov Name </div>&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Chromatic Aberration</div>
This will enable/disable chromatic aberration.
<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)="setCa(CA.APP)">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)="setCa(CA.APP)">App Selected</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)="setCa(CA.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)="setCa(CA.OFF)">Off</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Guardian</div>
This will enable/disable the guardian.
<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)="setGuardian(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)="setGuardian(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>
If there is a text input field focussed on your headset you can paste / type text in here to have SideQuest type
it out on your headset. Good for long passwords you don't want to have to type on a virtual keyboard.
<div class="button-section">
<div class="input-field ">
<input id="devicePaste"
[ngClass]="{'input-dark-theme':appService.currentTheme === 'dark','input-light-theme':appService.currentTheme === 'light'}"
[type]="isPassword?'password':'text'" [(ngModel)]="textToSend" />
<label for="devicePaste"
[ngClass]="{'label-dark-theme':appService.currentTheme === 'dark','label-light-theme':appService.currentTheme === 'light'}">Text
to Paste</label>
</div>
<div class="switch">
<label>
Text
<input type="checkbox" [(ngModel)]="isPassword" />
<span class="lever"></span>
Password
</label>
</div>
<div class="waves-effect waves-light btn paste-text-button right pink-button" (click)="pasteToDevice()"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}">
Send</div>
</div>
<br><br>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Set FFR ( Fixed Foveated Rendering ) level
</div>
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.
<div class="button-section">
<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}"
(click)="setFFR(FFR.MEDIUM)">Default</div>
<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}"
(click)="setFFR(FFR.OFF)">Off</div>
<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}"
(click)="setFFR(FFR.LOW)">Low</div>
<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}"
(click)="setFFR(FFR.MEDIUM)">Medium</div>
<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}"
(click)="setFFR(FFR.HIGH)">High</div>
<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}"
(click)="setFFR(FFR.HIGH_TOP)">High Top</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Set Video Capture Size</div>
This changes the resolution of captured videos on the Quest
<div class="button-section">
<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}"
(click)="setCR(CR._480)">480</div>
<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}"
(click)="setCR(CR._720)">720</div>
<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}"
(click)="setCR(CR._1080)">1080</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Set CPU and GPU level</div>
This can improve performance for 2D apps & games.
<div class="button-section">
<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}"
(click)="setGPU(GPU._2)">Default</div>
<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}"
(click)="setGPU(GPU._2)">Level 2</div>
<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}"
(click)="setGPU(GPU._4)">Level 4</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Default Texture Size</div>
This will change how high quality some of the in game textures are rendered at.
<div class="button-section">
<div class="waves-effect waves-light btn set-sso 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)="setSSO(SSO._1024)">Default</div>
<div class="waves-effect waves-light btn set-sso 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)="setSSO(SSO._512)">512</div>
<div class="waves-effect waves-light btn set-sso 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)="setSSO(SSO._768)">768</div>
<div class="waves-effect waves-light btn set-sso 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)="setSSO(SSO._1024)">1024</div>
<div class="waves-effect waves-light btn set-sso 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)="setSSO(SSO._1280)">1280</div>
<div class="waves-effect waves-light btn set-sso 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)="setSSO(SSO._1536)">1536</div>
<div class="waves-effect waves-light btn set-sso 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)="setSSO(SSO._2048)">2048</div>
<div class="waves-effect waves-light btn set-sso 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)="setSSO(SSO._2560)">2560</div>
<div class="waves-effect waves-light btn set-sso 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)="setSSO(SSO._3072)">3072</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
Capture Video Bitrate ( Go Only )</div>
This will increase the quality of captured videos on Oculus Go.
<div class="button-section">
<div class="waves-effect waves-light btn set-svb 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)="setSVB(SVB._5Mbps)">Default</div>
<div class="waves-effect waves-light btn set-svb 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)="setSVB(SVB._5Mbps)">5Mbps</div>
<div class="waves-effect waves-light btn set-svb 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)="setSVB(SVB._15Mbps)">15Mbps</div>
<div class="waves-effect waves-light btn set-svb 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)="setSVB(SVB._25Mbps)">25Mbps</div>
</div>
<!-- <div class="section-title" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">Video Recording Resolution ( Go Only )</div>-->
<!-- This will increase the resolution of captured videos on Oculus Go.-->
<!-- <div class="button-section">-->
<!-- <div class="waves-effect waves-light btn set-svr 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)="setSVR(SVR._1024)">Default</div>-->
<!-- <div class="waves-effect waves-light btn set-svr 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)="setSVR(SVR._1024)">1024</div>-->
<!-- <div class="waves-effect waves-light btn set-svr 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)="setSVR(SVR._1536)">1536</div>-->
<!-- </div>-->
<!-- <div class="section-title" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">Destroy The World</div>-->
<!-- Click this to release all the goblins and endanger the future of humanity. Do not do this!-->
<!-- <div class="button-section">-->
<!-- <div class="switch">-->
<!-- <label>-->
<!-- Bad-->
<!-- <input type="checkbox" [(ngModel)]="appService.hideNSFW" (change)="setHideNSFW()"/>-->
<!-- <span class="lever"></span>-->
<!-- Safe-->
<!-- </label>-->
<!-- </div>-->
<!-- </div>-->
</div>
</div>
</div>
<mz-modal #changePavlov [fixedFooter]="true">
<mz-modal-header>
<h4>Change Pavlov Name</h4>
</mz-modal-header>
<mz-modal-content>
Enter a name to set in Pavlov
<br />
<div class="input-field repo-url">
<input id="repoUrl" type="text" [(ngModel)]="pavlovName" />
<label for="repoUrl">Name</label>
</div>
</mz-modal-content>
<mz-modal-footer>
<button mz-button [flat]="true" mz-modal-close>Close</button>
<button mz-button class="pink-button" mz-modal-close (click)="setPavlovName()">Save</button>
</mz-modal-footer>
</mz-modal>
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ToolsComponent } from './tools.component';
describe('ToolsComponent', () => {
let component: ToolsComponent;
let fixture: ComponentFixture<ToolsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ToolsComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ToolsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,260 @@
import { Component, OnInit } from '@angular/core';
import { AppService, FolderType } from '../app.service';
import { AdbClientService } from '../adb-client.service';
import { LoadingSpinnerService } from '../loading-spinner.service';
import { StatusBarService } from '../status-bar.service';
import { RepoService } from '../repo.service';
enum FFR {
OFF,
LOW,
MEDIUM,
HIGH,
HIGH_TOP,
}
enum GPU {
_2,
_4,
}
enum GU {
ON,
OFF,
}
enum CA {
APP,
OFF,
ON,
}
enum SSO {
_512,
_768,
_1024,
_1280,
_1536,
_2048,
_2560,
_3072,
}
enum SVR {
_1024,
_1536,
}
enum CR {
_480,
_720,
_1080,
}
enum SVB {
_5Mbps,
_15Mbps,
_25Mbps,
}
@Component({
selector: 'app-tools',
templateUrl: './tools.component.html',
styleUrls: ['./tools.component.css'],
})
export class ToolsComponent implements OnInit {
folder = FolderType;
isPassword: boolean;
textToSend: string;
_textToSend: string[];
FFR = FFR;
SVR = SVR;
SVB = SVB;
SSO = SSO;
GU = GU;
CA = CA;
CR = CR;
GPU = GPU;
pavlovName;
constructor(
public appService: AppService,
public adbService: AdbClientService,
private spinnerService: LoadingSpinnerService,
private statusService: StatusBarService,
public repoService: RepoService
) {
this.appService.resetTop();
appService.webService.isWebviewOpen = false;
appService.isSettingsOpen = true;
}
ngOnInit() {
this.appService.setTitle('Device Settings & Tools');
}
setFFR(ffr: FFR) {
let value: number = 0;
switch (ffr) {
case FFR.LOW:
value = 1;
break;
case FFR.MEDIUM:
value = 2;
break;
case FFR.HIGH:
value = 3;
break;
case FFR.HIGH_TOP:
value = 4;
break;
}
this.adbService.runAdbCommand('adb shell debug.oculus.foveation.level ' + value).then(() => {
this.statusService.showStatus('Fixed Foveated Rendering set OK!!');
});
}
setGPU(gpu: GPU) {
let value = gpu === GPU._2 ? 2 : 4;
this.adbService
.runAdbCommand('adb shell setprop debug.oculus.cpuLevel ' + value)
.then(() => this.adbService.runAdbCommand('adb shell setprop debug.oculus.gpuLevel ' + value))
.then(() => {
this.statusService.showStatus('CPU/GPU level 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!!');
});
}
setCa(ca: CA) {
this.adbService
.runAdbCommand('adb shell setprop debug.oculus.forceChroma ' + (ca === CA.ON ? 1 : ca === CA.APP ? -1 : 0))
.then(() => {
this.statusService.showStatus('Chromatic Aberration set OK!!');
});
}
setSSO(sso: SSO) {
let value: number = 0;
switch (sso) {
case SSO._512:
value = 512;
break;
case SSO._768:
value = 768;
break;
case SSO._1024:
value = 1024;
break;
case SSO._1280:
value = 1280;
break;
case SSO._1536:
value = 1536;
break;
case SSO._2048:
value = 2048;
break;
case SSO._2560:
value = 2560;
break;
case SSO._3072:
value = 3072;
break;
}
this.adbService
.runAdbCommand('adb shell setprop debug.oculus.textureWidth ' + value)
.then(() => this.adbService.runAdbCommand('adb shell setprop debug.oculus.textureHeight ' + value))
.then(() => {
this.statusService.showStatus('Texture Resolution set OK!!');
});
}
setSVB(svb: SVB) {
let value: number = 5000000;
switch (svb) {
case SVB._5Mbps:
value = 5000000;
break;
case SVB._15Mbps:
value = 15000000;
break;
case SVB._25Mbps:
value = 25000000;
break;
}
this.adbService.runAdbCommand('adb shell setprop debug.oculus.videoBitrate ' + value).then(() => {
this.statusService.showStatus('Video Bitrate set OK!!');
});
}
setCR(svr: CR) {
let width: number = 1280;
let height: number = 720;
switch (svr) {
case CR._480:
width = 640;
height = 480;
break;
case CR._720:
width = 1280;
height = 720;
break;
case CR._1080:
width = 1920;
height = 1080;
break;
}
this.adbService
.runAdbCommand('adb shell setprop debug.oculus.capture.width ' + width)
.then(() => this.adbService.runAdbCommand('adb shell setprop debug.oculus.capture.height ' + height))
.then(() => {
this.statusService.showStatus('Capture Resolution set OK!!');
});
}
setSVR(svr: SVR) {
let value: number = 1024;
switch (svr) {
case SVR._1024:
value = 1024;
break;
case SVR._1536:
value = 1536;
break;
}
this.adbService.runAdbCommand('adb shell setprop debug.oculus.videoResolution ' + value).then(() => {
this.statusService.showStatus('Video Resolution set OK!!');
});
}
setPavlovPermission() {
return this.adbService
.setPermission('com.vankrupt.pavlov', 'android.permission.RECORD_AUDIO')
.then(() => this.adbService.setPermission('com.vankrupt.pavlov', 'android.permission.READ_EXTERNAL_STORAGE'))
.then(() => this.adbService.setPermission('com.vankrupt.pavlov', 'android.permission.WRITE_EXTERNAL_STORAGE'));
}
setPavlovName() {
this.adbService.adbCommand('shell', {
serial: this.adbService.deviceSerial,
command: 'echo ' + this.pavlovName + ' > /sdcard/pavlov.name.txt',
});
}
pasteToDevice() {
this._textToSend = this.textToSend.split('');
this.textToSend = '';
this.spinnerService.setMessage('Setting Text...');
this.spinnerService.showLoader();
this.inputCharacters()
.then(() => {
this.statusService.showStatus('Text sent to the device!!');
this.spinnerService.hideLoader();
})
.catch(e => {
this.statusService.showStatus(e.toString(), true);
this.spinnerService.hideLoader();
});
}
inputCharacters() {
let character = this._textToSend.shift();
return this.adbService.runAdbCommand('adb shell input text "' + character + '"').then(() => {
if (this._textToSend.length) {
return this.inputCharacters();
}
});
}
setHideNSFW() {
if (this.appService.hideNSFW) {
localStorage.setItem('hideNSFW', 'true');
} else {
localStorage.removeItem('hideNSFW');
}
}
}