fix: default parameter for exec cmd
- change: from bypass to block. Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
parent
54a5813d06
commit
fbbf0c12f4
4 changed files with 28 additions and 69 deletions
|
|
@ -291,14 +291,11 @@
|
|||
if (instance) {
|
||||
try {
|
||||
// bypass
|
||||
await adb.executeCmd('echo -n hurr > /sdcard/coffeevending/ignore_pass', {
|
||||
bypass: true
|
||||
});
|
||||
await adb.executeCmd('echo -n hurr > /sdcard/coffeevending/ignore_pass');
|
||||
} catch (e) {}
|
||||
|
||||
let result = await adb.executeCmd(
|
||||
'am start -n com.forthvending.coffeemain/com.forthvending.coffeemain.MainActivity',
|
||||
{ bypass: true }
|
||||
'am start -n com.forthvending.coffeemain/com.forthvending.coffeemain.MainActivity'
|
||||
);
|
||||
// if (result?.output) {
|
||||
// toast.success('Open app success!');
|
||||
|
|
@ -319,15 +316,13 @@
|
|||
|
||||
try {
|
||||
// bypass
|
||||
await adb.executeCmd('echo -n hurr > /sdcard/coffeevending/ignore_pass', {
|
||||
bypass: true
|
||||
});
|
||||
await adb.executeCmd('echo -n hurr > /sdcard/coffeevending/ignore_pass');
|
||||
} catch (e) {}
|
||||
|
||||
setTimeout(async () => {
|
||||
try {
|
||||
// bypass
|
||||
await adb.executeCmd('input tap 336 795', { bypass: true });
|
||||
await adb.executeCmd('input tap 336 795');
|
||||
} catch (e) {}
|
||||
}, 3000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue