added ability to manually connect to wifi
This commit is contained in:
@@ -135,7 +135,7 @@ export class AdbClientService {
|
|||||||
return this.deviceStatus === ConnectionStatus.CONNECTED;
|
return this.deviceStatus === ConnectionStatus.CONNECTED;
|
||||||
}
|
}
|
||||||
runAdbCommand(adbCommandToRun, skipSettingResponse?: boolean) {
|
runAdbCommand(adbCommandToRun, skipSettingResponse?: boolean) {
|
||||||
if (this.deviceStatus !== ConnectionStatus.CONNECTED) {
|
if (this.deviceStatus !== ConnectionStatus.CONNECTED && !adbCommandToRun.startsWith('adb connect ')) {
|
||||||
return Promise.reject('Adb command failed - No device connected!');
|
return Promise.reject('Adb command failed - No device connected!');
|
||||||
}
|
}
|
||||||
if (!skipSettingResponse) {
|
if (!skipSettingResponse) {
|
||||||
|
|||||||
@@ -293,7 +293,6 @@ export class HeadsetSettingsComponent implements OnInit {
|
|||||||
);
|
);
|
||||||
})
|
})
|
||||||
.catch(e => this.statusService.showStatus(e, true));
|
.catch(e => this.statusService.showStatus(e, true));
|
||||||
console.log(this.videoCaptureSize);
|
|
||||||
}
|
}
|
||||||
setGuardian(guardian: GU) {
|
setGuardian(guardian: GU) {
|
||||||
this.runAdbCommand('setprop debug.oculus.guardian_pause ' + (guardian === GU.ON ? 0 : 1))
|
this.runAdbCommand('setprop debug.oculus.guardian_pause ' + (guardian === GU.ON ? 0 : 1))
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
<div class="inner-app-container">
|
<div class="inner-app-container">
|
||||||
<div *ngIf="!isConnected()">
|
<div *ngIf="!isConnected()">
|
||||||
<br>You are not currently connected.
|
<br>You are not currently connected. You can try entering your quest IP, if Wireless ADB is enabled then it will connect.
|
||||||
<br><br>
|
<br><br>
|
||||||
<div class="pure-material-button-contained" routerLink="/setup">Open Setup Instructions</div>
|
<div class="pure-material-button-contained spaced" routerLink="/setup">Open Setup Instructions</div>
|
||||||
|
<div class="pure-material-button-contained spaced" (click)="wifiConnectModal.openModal()">Enter IP to connect</div>
|
||||||
|
<br><br>
|
||||||
|
<ng-container *ngIf="adbService.deviceIp">
|
||||||
|
Last known device IP: {{adbService.deviceIp}}
|
||||||
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="isConnected()">
|
<div *ngIf="isConnected()">
|
||||||
<div class="screen-description">Enable wifi mode to install apps wirelessly. You must be connected with USB to enable wifi mode.</div>
|
<div class="screen-description">Enable wifi mode to install apps wirelessly. You must be connected with USB to enable wifi mode.</div>
|
||||||
@@ -23,3 +28,24 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<mz-modal #wifiConnectModal [fixedFooter]="true">
|
||||||
|
<mz-modal-header>
|
||||||
|
<h4>Enter Quest Wifi IP</h4>
|
||||||
|
</mz-modal-header>
|
||||||
|
<mz-modal-content>
|
||||||
|
If you previously enable Wireless ADB on your headset then you can enter the IP to connect here.
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
<div class="button-section">
|
||||||
|
<div class="input-field">
|
||||||
|
<input id="adbCommand" type="text" [(ngModel)]="connectWifiIp" placeholder="IP address like 192.168..." />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
</mz-modal-content>
|
||||||
|
<mz-modal-footer>
|
||||||
|
<div class="pure-material-button-contained flat active spaced" (click)="wifiConnectModal.closeModal(); ">Close</div>
|
||||||
|
<div class="pure-material-button-contained spaced" (click)="wifiConnectModal.closeModal(); connectManualWifi()">Connect</div>
|
||||||
|
</mz-modal-footer>
|
||||||
|
</mz-modal>
|
||||||
|
|||||||
@@ -9,9 +9,13 @@ import { StatusBarService } from '../status-bar.service';
|
|||||||
styleUrls: ['./wireless-connection.component.scss'],
|
styleUrls: ['./wireless-connection.component.scss'],
|
||||||
})
|
})
|
||||||
export class WirelessConnectionComponent implements OnInit {
|
export class WirelessConnectionComponent implements OnInit {
|
||||||
|
connectWifiIp: string;
|
||||||
constructor(public adbService: AdbClientService, appService: AppService, private statusService: StatusBarService) {
|
constructor(public adbService: AdbClientService, appService: AppService, private statusService: StatusBarService) {
|
||||||
appService.webService.isWebviewOpen = false;
|
appService.webService.isWebviewOpen = false;
|
||||||
appService.resetTop();
|
appService.resetTop();
|
||||||
|
if (adbService.deviceIp) {
|
||||||
|
this.connectWifiIp = adbService.deviceIp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {}
|
ngOnInit() {}
|
||||||
@@ -40,4 +44,8 @@ export class WirelessConnectionComponent implements OnInit {
|
|||||||
// }
|
// }
|
||||||
return isConnected;
|
return isConnected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
connectManualWifi() {
|
||||||
|
this.adbService.runAdbCommand('adb connect ' + this.connectWifiIp + ':5555', true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "SideQuest",
|
"name": "SideQuest",
|
||||||
"productName": "SideQuest",
|
"productName": "SideQuest",
|
||||||
"version": "0.10.30",
|
"version": "0.10.31",
|
||||||
"description": "A open app store for mobile android based VR devices such as the Levovo Mirage, Oculus Go, Oculus Quest, Vive Focus.",
|
"description": "A open app store for mobile android based VR devices such as the Levovo Mirage, Oculus Go, Oculus Quest, Vive Focus.",
|
||||||
"repository": "https://github.com/SideQuestVR/SideQuest.git",
|
"repository": "https://github.com/SideQuestVR/SideQuest.git",
|
||||||
"license": "UNLICENCED",
|
"license": "UNLICENCED",
|
||||||
|
|||||||
Reference in New Issue
Block a user