This commit is contained in:
Yutousama 2022-08-24 21:18:01 +08:00
commit 23bb4cfff7

View File

@ -219,8 +219,7 @@
}
$('#showPack').click(function () {
var dv = devices[0].split(/\s+/);
window.adb("adb -s "+dv[0]+" shell pm list package", (stdout, error) => {
window.adb("adb shell pm list package", (stdout, error) => {
if (error == true) {
log(stdout)
return;
@ -242,8 +241,7 @@
})
})
$('#showTopActivity').click(function () {
var dv = devices[0].split(/\s+/);
window.adb("adb -s "+dv[0]+" shell dumpsys window | findstr mCurrentFocus", (data, error) => {
window.adb("adb shell dumpsys window | findstr mCurrentFocus", (data, error) => {
log(data)
})
})