fixed the launch app button
This commit is contained in:
@@ -160,17 +160,21 @@ export class AdbClientService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
launchApp(packageName) {
|
launchApp(packageName) {
|
||||||
return this.adbCommand('shell', {
|
return this.runAdbCommand(
|
||||||
serial: this.deviceSerial,
|
`adb shell monkey -p ${packageName} -c com.oculus.intent.category.VR -c android.intent.category.LAUNCHER -vvv 3`
|
||||||
command: 'dumpsys package ' + packageName + " | grep -A 1 'filter' | head -n 1 | cut -d ' ' -f 10",
|
|
||||||
}).then(res =>
|
|
||||||
res
|
|
||||||
? this.adbCommand('shell', {
|
|
||||||
serial: this.deviceSerial,
|
|
||||||
command: 'am start -n ' + res.trim(),
|
|
||||||
})
|
|
||||||
: Promise.reject('Could not find activity name for ' + packageName)
|
|
||||||
);
|
);
|
||||||
|
//
|
||||||
|
// return this.adbCommand('shell', {
|
||||||
|
// serial: this.deviceSerial,
|
||||||
|
// command: 'dumpsys package ' + packageName + " | grep -A 1 'filter' | head -n 1 | cut -d ' ' -f 10",
|
||||||
|
// }).then(res =>
|
||||||
|
// res
|
||||||
|
// ? this.adbCommand('shell', {
|
||||||
|
// serial: this.deviceSerial,
|
||||||
|
// command: 'am start -n -a com.example.ACTION_NAME ' + res.trim(),
|
||||||
|
// })
|
||||||
|
// : Promise.reject('Could not find activity name for ' + packageName)
|
||||||
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
installMultiFile(filepath) {
|
installMultiFile(filepath) {
|
||||||
|
|||||||
Reference in New Issue
Block a user