added support for bonelab and fixed bug in paste text to device.

This commit is contained in:
Shane Harris
2022-10-18 14:40:51 +02:00
parent 15a2006b13
commit 8665dcc848
3 changed files with 24 additions and 2 deletions
@@ -345,6 +345,16 @@
</label> </label>
</div> </div>
<h5 class="section-title">BONELAB Mods</h5>
<div class="divider header-divider-margin margin-bottom"></div>
<h4 class="description-section">
This will enable mods inside BONELAB on your quest.
</h4>
<div class="button-section">
<div class="pure-material-button-contained spaced flat active" (click)="enableBonelabMods()">Enable BONELAB Mods</div>
</div>
<h5 class="section-title">Proximity Sensor</h5> <h5 class="section-title">Proximity Sensor</h5>
<div class="divider header-divider-margin margin-bottom"></div> <div class="divider header-divider-margin margin-bottom"></div>
<h4 class="description-section"> <h4 class="description-section">
@@ -269,6 +269,18 @@ export class HeadsetSettingsComponent implements OnInit {
}) })
.catch(e => this.statusService.showStatus(e, true)); .catch(e => this.statusService.showStatus(e, true));
} }
enableBonelabMods() {
this.runAdbCommand(
'echo https://blrepo.laund.moe/repository.json > ' +
'/sdcard/Android/data/com.StressLevelZero.BONELAB/files/repositories.txt'
)
.then(() => {
this.statusService.showStatus('Enabled BONELAB mods OK!!');
})
.catch(e => {
this.statusService.showStatus(e, true);
});
}
setFullRate(fullRate: GU) { setFullRate(fullRate: GU) {
console.log('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0)); console.log('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0));
this.runAdbCommand('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0)) this.runAdbCommand('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0))
@@ -470,7 +482,7 @@ export class HeadsetSettingsComponent implements OnInit {
} }
inputCharacters() { inputCharacters() {
let character = this._textToSend.shift(); let character = this._textToSend.shift();
return this.runAdbCommand('adb shell input text "' + character + '"').then(() => { return this.runAdbCommand('input text "' + character + '"').then(() => {
if (this._textToSend.length) { if (this._textToSend.length) {
return this.inputCharacters(); return this.inputCharacters();
} }
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "SideQuest", "name": "SideQuest",
"productName": "SideQuest", "productName": "SideQuest",
"version": "0.10.32", "version": "0.10.33",
"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",