1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00
Commit Graph

509 Commits

Author SHA1 Message Date
LmeSzinc
190da3a1d0 Fix: Exe from registry may in lower case 2024-04-10 19:10:17 +08:00
LmeSzinc
0226dd5df3 Opt: Allow nemu_ipc to have a lower default screenshot interval 2024-04-10 13:55:02 +08:00
LmeSzinc
76e148f860 Fix: Auto redirect MuMu12 from 127.0.0.1:7555 to 127.0.0.1:16xxx 2024-04-10 13:47:12 +08:00
LmeSzinc
e34b19d625 Fix: duped std was opened twice 2024-04-09 21:28:20 +08:00
LmeSzinc
840014f039 Fix: [ALAS] DroidCast image orientation on MuMu12 2024-04-09 00:35:56 +08:00
LmeSzinc
22618fe46c Fix: Failed to init nemu_ipc on empty emulator path (#3616) 2024-04-08 22:04:33 +08:00
LmeSzinc
6bae27cacc Fix: File descriptor leak in nested CaptureNemuIpc call 2024-04-08 21:56:23 +08:00
LmeSzinc
65c826a70f Opt: Release nemu_ipc connection during wait 2024-04-08 05:23:14 +08:00
LmeSzinc
5623f10ee6 Opt: [ALAS] Brute force connect if auto didn't find any emulators 2024-04-08 05:08:47 +08:00
LmeSzinc
2a74c338a3 Opt: Limit screenshot and control combinations when using nemu_ipc 2024-04-08 04:32:33 +08:00
LmeSzinc
2ebe71b774 Add: NemuIpc method 2024-04-08 04:04:35 +08:00
LmeSzinc
2e81cb7dc1 Add: Click method nemu_ipc 2024-04-08 03:14:33 +08:00
LmeSzinc
54f06bc91e Add: nemu_ipc screenshot and control proxy 2024-03-28 21:41:53 +08:00
LmeSzinc
ad766df910 Chore: [ALAS] Cache prop nemud.app_keep_alive 2024-03-28 19:17:16 +08:00
LmeSzinc
71318a3228 Chore: [ALAS] Expose one Platform class 2024-03-28 19:17:16 +08:00
LmeSzinc
a144908e14 Add: [ALAS] Auto emulator start 2024-03-28 19:17:14 +08:00
LmeSzinc
06cd62f3ee Opt: [ALAS] Reuse image array to improve memory performance 2024-03-21 21:35:51 +08:00
LmeSzinc
6a23f82e6c Fix: [ALAS] Enhance auto device detection, ignore 127.0.0.1:7555 from MuMu 12 2024-03-21 19:34:08 +08:00
LmeSzinc
f076ba12ed Add: [ALAS] Proxy element props 2024-03-16 16:02:07 +08:00
LmeSzinc
39f4c9cac4 Fix: [ALAS] Limit the length of screenshot deque 2024-01-01 22:17:06 +08:00
SC23
17e41a8bff
Fix: GUILD DISPATCH (#3392)
* Fix_Gulid_DISPATCH

* Revert "Fix_Gulid_DISPATCH"

This reverts commit ba1f1f2ef5c3d56297f945e92ae2f73aaff8eb53.

* Fixed_Gulid_DISPATCH

* Fixed_GulidDISPATCH
2023-12-29 09:47:30 +08:00
LmeSzinc
10486b8b60 Dev: [ALAS] Show function calls on errors 2023-12-14 21:21:40 +08:00
LmeSzinc
638ccb5c7c Fix: [ALAS] Retry check_mumu_app_keep_alive() 2023-12-09 18:09:34 +08:00
LmeSzinc
208a6e9b61 Refactor: Use collections.Counter instead of poor implementation 2023-12-07 02:22:42 +08:00
LmeSzinc
35c109a648 Fix: Revised serial should starts with 127 2023-10-01 01:51:22 +08:00
LmeSzinc
f6c56e1940 Fix: Log unexpected droidcast response 2023-09-30 17:04:36 +08:00
LmeSzinc
0dcdab461e Fix: Wait DroidCast server startup 2023-09-26 21:50:29 +08:00
Torther
69df0c26e4
Upd: Screenshot method DroidCast_raw update (#2881)
* Upd: Screenshot method DroidCast_raw update

* Opt: Refactor module/device/method/droidcast.py for improved functionality

The module/device/method/droidcast.py has been refactored to improve its functionality and remove unnecessary code. Here are the key changes:

- Removed the unnecessary droidcast_raw_port attribute.
- Updated the droidcast_url method to use '/preview' as the default URL for DroidCast.
- Rename droidcast_init and droidcast_raw_init to droidcast_start and droidcast_raw_start.
- Add droidcast_init to reuse the common parts of droidcast_start and droidcast_raw_start.
- Removed the droidcast_raw_wait_startup method as it is no longer needed.
- Updated the droidcast_uninstall method to remove the deletion of DroidCast APK.

These changes aim to simplify the DroidCast class and improve its overall functionality.

* Opt: Refactor module/device/method/droidcast.py for improved functionality

The module/device/method/droidcast.py has been refactored to improve its functionality and remove unnecessary code. Here are the key changes:

- Removed the unnecessary droidcast_raw_port attribute.
- Updated the droidcast_url method to use '/preview' as the default URL for DroidCast.
- Rename droidcast_init and droidcast_raw_init to droidcast_start and droidcast_raw_start.
- Add droidcast_init to reuse the common parts of droidcast_start and droidcast_raw_start.
- Removed the droidcast_raw_wait_startup method as it is no longer needed.
- Updated the droidcast_uninstall method to remove the deletion of DroidCast APK.

These changes aim to simplify the DroidCast class and improve its overall functionality.

* Fix: Droidcast cannot start due to port occupation
2023-09-25 18:51:56 +08:00
LmeSzinc
8987c9253b Add: Disable multi-instances on phone cloud environment 2023-08-28 17:30:46 +08:00
LmeSzinc
ae8172e580 Fix: Revise serial as fool-proof 2023-08-28 00:03:41 +08:00
LmeSzinc
a06061c2c5 Fix: Handle serial startswith "127.0.0.1." as a fool-proof 2023-08-23 12:39:30 +08:00
LmeSzinc
b40850200b Fix: Raise error if app_keep_alive is enabled in MuMu 12 2023-08-05 17:56:31 +08:00
LmeSzinc
98a29c88cd Fix: Disconnected the wrong offline device 2023-08-05 17:55:20 +08:00
LmeSzinc
a53f6cf9e7 Fix: Temp fix for MuMu 12 before DroidCast updated (#2952) 2023-08-03 00:17:31 +08:00
LmeSzinc
33bcd116a8 Fix: No orientation handle in MaaTouch 2023-08-01 19:28:36 +08:00
LmeSzinc
f18a7b1828 Add: Support BlueStacks Hyper-V Android 11 (Rvc64) 2023-06-09 00:26:22 +08:00
LmeSzinc
18cba1f9d0 Chore: Remove the use of np.int 2023-05-30 10:28:51 +08:00
LmeSzinc
8ceb15dafc Add: [CN] Channel server com.bilibili.blhx.dl 2023-05-27 22:46:30 +08:00
LmeSzinc
f98137108f Fix: Exact match instead of keywords to ignore random package names 2023-05-26 11:55:09 +08:00
LmeSzinc
3a9db10d70 Fix: Handle bugs in adbutils>=1.0 2023-05-23 00:09:39 +08:00
LmeSzinc
250145fd7f Fix: Prevent MaaTouch stream from being deleted 2023-05-23 00:09:25 +08:00
LmeSzinc
f59ac5885f Fix: Compatible with old and new adbutils 2023-05-16 23:41:00 +08:00
LmeSzinc
eb8c948198 Opt: Screenshot method fallback to auto if ascreencap unavailable 2023-04-04 03:07:12 +08:00
LmeSzinc
e295f08811 Fix: Missing init() call in uiautomator2 retries (#2424) 2023-03-31 00:48:35 +08:00
xausky
6c6511db60 Fix: Fix lanuch game in no physical keys device 2023-03-05 12:04:32 +08:00
LmeSzinc
61f2f4013d Fix: Handle empty cmdline in proc_list_uiautomator2() 2023-03-01 18:13:49 +08:00
LmeSzinc
19784c7a14 Fix: Handle chinese : in serial 2023-02-26 01:18:50 +08:00
LmeSzinc
d94cf3f2e0 Fix: Disconnect offline devices before connecting 2023-02-19 20:42:34 +08:00
LmeSzinc
4866862652 Fix: Accept first 720x1280 screenshots 2023-02-16 21:15:14 +08:00
LmeSzinc
9861cbd449 Opt: No screenshot timer prints (#2051) 2023-02-16 21:12:41 +08:00
LmeSzinc
5fb26cf565 Opt: Re-use State.deploy_config when getting adb_binary 2023-02-11 16:26:17 +08:00
LmeSzinc
45aab15ed5 Opt: Add DroidCast_raw link 2023-02-11 15:20:28 +08:00
LmeSzinc
b128375a22
Merge pull request #2220 from Azusachan/master
Add support for Bluestacks 5 Pie64 instances
2023-02-08 11:46:56 +08:00
Azusa Nakano
b45149e283 Add support for Bluestacks 5 Pie64 instances
Fix #2188 by matching either Nougat64 or Pie64 at the same time. Note that this creates a problem such that when first Nougat64 and Pie64 co-exists, the engine would fail to match Pie64.
2023-02-08 14:28:23 +11:00
LmeSzinc
bfb5004dc1 Fix: Catch ReadTimeout in DroidCast_raw 2023-02-08 01:54:22 +08:00
LmeSzinc
278077f5b9 Opt: Faster resolution_uiautomator2() 2023-02-08 01:53:04 +08:00
LmeSzinc
3d174b19cb Opt: Auto-select the fastest screenshot method 2023-02-08 01:42:04 +08:00
LmeSzinc
8d06ce4987 Fix: Handle Runtime error raised by uiautoamtor2 2023-02-07 19:20:16 +08:00
LmeSzinc
835eb1e475 Fix: Too many clicks on SUBMARINE_READY in OpSi battles 2023-02-04 17:26:42 +08:00
LmeSzinc
36e1f01cb7 Add: Control method MaaTouch 2023-02-02 01:47:48 +08:00
LmeSzinc
cdff9f61fc Fix: Mumu6 failed on ADB screenshot 2023-01-26 21:47:53 +08:00
LmeSzinc
27ba7c1cfe Refactor: Benchmark settings based on test scenes 2023-01-25 17:07:57 +08:00
LmeSzinc
c9539b88fd Fix: Catch connection hijack when connecting adb server 2023-01-25 14:51:12 +08:00
LmeSzinc
5fd923d1c6 Fix: Skip adb connect on android serial 2023-01-25 14:49:41 +08:00
LmeSzinc
5693f2499e Fix: Add minimal delay to ADB click 2023-01-25 01:36:54 +08:00
LmeSzinc
a5c0b2abb9 Merge branch 'master' into dev 2023-01-25 00:21:30 +08:00
LmeSzinc
965c46f800 Add: Screenshot method DroidCast_raw 2023-01-25 00:21:07 +08:00
LmeSzinc
a0fe83699a Upd: Tips for pure black screenshots from MuMu X 2023-01-18 17:32:42 +08:00
LmeSzinc
21fe98d2f5 Refactor: Catching truncated image 2023-01-18 01:05:54 +08:00
LmeSzinc
29758051dd Refactor: Abstract resolution_check_uiautomator2() 2023-01-18 00:33:32 +08:00
SarContDeli
73b5154505
Fix: Unable to install minitouch in MuMu X (#2134) 2023-01-17 22:37:56 +08:00
SarContDeli
15d80175d3
Add: Start app by adb shell am start (#2124) 2023-01-16 22:32:55 +08:00
LmeSzinc
afbe0f628e Fix: If condition in dragging (fixed #2094) 2023-01-09 12:13:41 +08:00
LmeSzinc
e59c7f7fc0 Fix: Remove emulator calls before refactored 2023-01-09 00:16:48 +08:00
LmeSzinc
81106a4dda Fix: Resolution check for scrcpy 2023-01-07 02:43:52 +08:00
LmeSzinc
6c768de2a5 Fix: Different return of command not found (#2088) 2023-01-06 20:38:11 +08:00
LmeSzinc
9963f4f4e2 Fix: Missing retry_sleep import in DroidCast 2023-01-04 17:33:29 +08:00
LmeSzinc
4dc37ef4ca Merge branch 'master' into dev 2023-01-03 23:27:17 +08:00
LmeSzinc
44f6e35fac
Merge pull request #2066 from LmeSzinc/bug_fix
Bug fix
2023-01-03 23:18:53 +08:00
LmeSzinc
f0da5fcf76 Fix: Netcat loopback on BlueStacks Pie 2023-01-03 22:55:40 +08:00
LmeSzinc
264a34683f Merge branch 'bug_fix' into dev 2023-01-03 03:19:36 +08:00
LmeSzinc
b727752e45 Fix: Set timeout on socket objects 2023-01-03 03:18:58 +08:00
LmeSzinc
9efc45ed32 Opt: Change Mumu X screenshot tips to scrcpy 2023-01-03 02:47:18 +08:00
LmeSzinc
332f6b87d3 Merge branch 'master' into dev 2023-01-01 17:17:53 +08:00
LmeSzinc
82917619e9 Fix: Typo in 63ad648f 2023-01-01 17:16:56 +08:00
LmeSzinc
63ad648ff6 Fix: Disable u2 float window (#2059) 2023-01-01 15:32:53 +08:00
LmeSzinc
37e0d70e0d Opt: Stop scrcpy server during wait 2023-01-01 02:36:28 +08:00
LmeSzinc
2285b716cf Refactor: Faster device retrying 2022-12-29 19:22:55 +08:00
LmeSzinc
1d96582c1f Fix: Catch _scrcpy_stream_loop_thread died 2022-12-29 18:57:04 +08:00
LmeSzinc
b3d8fd4f1a Fix: Locking scrcpy screenshot and control 2022-12-29 18:20:09 +08:00
LmeSzinc
d18b13d760 Fix: Catch av import error 2022-12-29 13:37:49 +08:00
LmeSzinc
a3604d8100 Add: Screenshot method scrcpy
Control via scrcpy is supported but not exposed because swipes ended at the middle
2022-12-29 12:49:11 +08:00
LmeSzinc
687079290a Add: Basic platform interfaces 2022-12-23 17:16:15 +08:00
LmeSzinc
5436287550 Fix: Disconnect offline device before connecting 2022-12-20 22:07:11 +08:00
LmeSzinc
1ef1bac26f Fix: Disconnect offline device before connecting 2022-12-20 00:03:59 +08:00
LmeSzinc
e18758360b Opt: Retry black screenshots at startup 2022-12-07 20:13:55 +08:00
LmeSzinc
4c1b7ecf3c Opt: DroidCast help messages 2022-12-07 12:27:25 +08:00
LmeSzinc
c51350caac Add: DroidCast screenshot 2022-12-04 23:53:43 +08:00
LmeSzinc
85fbbcbc42 Opt: Faster local emulator connection on uiautomator2 2022-12-04 23:31:31 +08:00
LmeSzinc
f577f21e8d
Merge pull request #1915 from SaiCateDoan/emu
Opt: Independent option to restart emulator daily
2022-12-02 00:10:13 +08:00
SarContDeli
6a4d3b5da5 Opt: Independent option to restart emulator daily 2022-12-01 15:20:14 +08:00
SarContDeli
e6cd0043cf
Fix: Error 10054 when install uiautomator2 (#1878) 2022-11-21 23:14:02 +08:00
LmeSzinc
59b7730daf Refactor: Move out AdbDeviceWithStatus 2022-11-06 17:10:21 +08:00
LmeSzinc
5c70364353 Refactor: Abstract CampaignStatus class and fix task balancer in Raid 2022-10-30 14:49:04 +08:00
LmeSzinc
3182175ec2 Fix: command "nc" not found on Android 9 emulators 2022-10-30 02:11:52 +08:00
SarContDeli
7029375ca3 Fix: UnicodeDecodeError when getting serial 2022-10-17 22:09:58 +08:00
LmeSzinc
87bf8ec7ee
Merge pull request #1657 from SaiCateDoan/maa
Add: Submodule AlasMaaBridge (experimental)
2022-10-06 14:16:43 +08:00
LmeSzinc
b161f14532 Fix: Connecting device over http 2022-09-30 12:18:25 +08:00
LmeSzinc
4dd2a5a8b5 Refactor: Move del_cached_property to module.base.decorator 2022-09-25 00:31:42 +08:00
SarContDeli
764e216c98 Add: First executable prototype 2022-09-17 16:02:06 +08:00
LmeSzinc
be0c1b666b Fix: Missing BlueStacks 5 hyper-v CN support (#1604)
- Opt: Add help text when mis-using serials of BlueStacks hyper-v
2022-09-10 00:48:53 +08:00
LmeSzinc
d8f4986d64 Merge branch 'master' into dev 2022-09-03 14:59:36 +08:00
LmeSzinc
d17a39ebae Fix: Optimizations for NC screenshot methods broke the non-NCs 2022-09-02 21:56:51 +08:00
LmeSzinc
f1ef87ca50 Merge branch 'master' into dev
# Conflicts:
#	module/device/emulator.py
2022-09-02 00:13:11 +08:00
LmeSzinc
2540f6fd1f
Merge pull request #1588 from LmeSzinc/bug_fix
Bug fix
2022-09-02 00:06:09 +08:00
LmeSzinc
3c108303e5 Opt: Faster remove_shell_warning() and lower CPU usage in *_nc screenshot methods 2022-09-01 23:03:06 +08:00
SarContDeli
ab9f6dfcc7 Fix: Unexpected None from detect_emulator(Fix #1580) 2022-08-31 11:25:27 +08:00
LmeSzinc
34e72e7e51 Opt: Faster remove_shell_warning() and lower CPU usage in *_nc screenshot methods 2022-08-29 22:59:34 +08:00
SarContDeli
e5d2bad60b Fix: Restart the emulator after startup timeout 2022-08-24 23:54:59 +08:00
Horizon101011
3c9c63c27a Opt: Sort import 2022-08-19 01:54:44 +08:00
Horizon101011
4f25c799b8 Fix: No module winreg (temporary) 2022-08-19 01:42:11 +08:00
LmeSzinc
302a7caa29 Add: Event entrance of Operation Convergence (event_20220818_cn) 2022-08-18 23:46:57 +08:00
SarContDeli
ac5466e5dc Upd: Modified some options for restart emulator 2022-08-17 20:22:11 +08:00
SarContDeli
0207dd2bcb Opt: Split task_kill() from emulator_kill() 2022-08-05 16:55:51 +08:00
SarContDeli
938b95a145 Fix: The emulator will also be shut down when closing Alas 2022-08-05 09:53:33 +08:00
SarContDeli
df26bc4e7a Opt: Refactored some code of emulator.py 2022-08-05 09:53:33 +08:00
SarContDeli
f1c78de429 Add: Emulator auto detect of Bluestacks 5 2022-08-05 09:53:31 +08:00
SarContDeli
3d6d777413 Add: Emulator auto detect and restart(experimental) 2022-08-05 09:53:28 +08:00
LmeSzinc
6702ec234a Fix: Catch server hot fix and restart game immediately
- Pretty Timer print
2022-07-31 23:34:40 +08:00
Quadro
db169546a9
Fix: Clear shell warnings with loose match (#1454)
* Update adb.py

* Update utils.py

* Update adb.py

* Update utils.py

Co-authored-by: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com>
2022-07-31 23:03:56 +08:00
LmeSzinc
d32856cb90 Fix: Remove shell warnings (#1425) 2022-07-30 01:51:26 +08:00
LmeSzinc
5eceb6623d Del: Remove aScreenCap support over http, just no plan 2022-07-16 15:04:13 +08:00
LmeSzinc
7d14b5c446 Fix: Restart minitouch service at every startup
- Remove `-p` argument in screencap when connect over http
2022-07-04 00:44:53 +08:00
LmeSzinc
a80fbb45e4 Fix: Coordinate calculation when orientation==1 and device over http
- Fix RuntimeError: There is no current event loop in thread
2022-07-04 00:44:53 +08:00
LmeSzinc
591a1a9535 Add: Minitouch over 2022-07-04 00:44:53 +08:00
LmeSzinc
ec66a28bbd Add: adb shell over atx agent 2022-07-04 00:44:52 +08:00
LmeSzinc
620e6510bc Refactor: Split out ConnectionAttr and refactor minitouch command builder
- Upgrade uiautomator2 to 2.16.17 to fix bugs
- Use numpy.frombuffer() since numpy.fromstring() is deprecated
2022-07-04 00:44:44 +08:00
LmeSzinc
a9d3cc2743 Fix: Wait minitouch initialized (#1244) 2022-06-26 01:03:41 +08:00
LmeSzinc
a46b50edd7 Fix: adb shell is executed before device connect 2022-06-23 22:59:15 +08:00
LmeSzinc
16b016c0c6
Merge pull request #1240 from n0k0m3/patch_emulator
Fix nc server loopback IP for AVD (fix #1236)
2022-06-23 02:10:40 +08:00
n0k0m3
8f96b30b45 Fix nc server loopback IP for AVD
Avoid using hostname loopback on linux

use ro.hardware.audio.primary instead of ro.product.board

Newer Android Studio use ranchu board

reduce adb_shell calls

Move AVD detection to detect_device()

use cached_property for is_avd

Linting
2022-06-22 12:10:51 -04:00
LmeSzinc
2321db0849 Opt: Set Emulator.PackageName if auto package detect worked for faster startup 2022-06-22 22:58:11 +08:00
LmeSzinc
ef82bb801e Opt: Faster is_port_using() on startup
From 1s to almost 0ms
2022-06-22 19:31:33 +08:00
LmeSzinc
8543ed5e03 Fix: Use environ variable ANDROID_ADB_SERVER_PORT (#1233) 2022-06-21 02:13:57 +08:00
n0k0m3
23ca75d15e Rename ascreencap dist 2022-06-20 13:57:53 -04:00
n0k0m3
f41f2458c3 Add ascreencap for android 8 (oreo) and 9 (pie) 2022-06-20 11:47:15 -04:00
LmeSzinc
c177c23697 Fix: Use adb reverse on BlueStacks hyper-v 2022-06-16 21:00:11 +08:00
LmeSzinc
96012c4333 Fix: *_nc methods on virtual network (#1202) 2022-06-12 01:05:45 +08:00
LmeSzinc
412f6385e1 Fix: Device auto detection on LDPlayer 2022-06-11 23:10:25 +08:00
cangular
53910a728c
Add: adb restart (#1167)
* Add files via upload

* some addition on one device and muti

* Update connection.py

remove some redundant

* name change

* more name change

* no need to de serial check

* some rollback

* add adb restart gui and some minor update

* make adb gui independent from game manager

* pep 8

* add detect device

* remove ds_store

* add to alas-emulator

add to alas-emulator

* rm DS_Store

* Delete .DS_Store

* some add on
2022-06-11 23:09:47 +08:00
LmeSzinc
27212529c0 Opt: Log unexpected ascreencap screenshots 2022-06-07 23:02:12 +08:00
LmeSzinc
db58202263 Fix: Cleanup after subprocess.Popen.communicate() 2022-06-07 01:35:53 +08:00
LmeSzinc
25a4162d27 Fix: Add LDPlayer serial auto switching
- Opt: Show help text for wrong serial
2022-06-05 06:38:43 +08:00
LmeSzinc
210fc5bded Fix: *_nc screenshot method failed because of bugs in adb reverse
https://issuetracker.google.com/issues/37066218
2022-06-05 02:15:16 +08:00
hgjazhgj
2c961f6dab Fix: Utf-8 in BlueStacks Hyper-V connection 2022-06-03 16:19:57 +08:00
LmeSzinc
2555588740 Opt: Show unexpected screenshot in ascreencap 2022-06-03 01:29:38 +08:00
hgjazhgj
bc8d5caf05 Opt: BlueStacks Hyper-V connection improvement 2022-06-02 16:14:49 +08:00
LmeSzinc
32d8492c89 Fix: Catch ConnectionResetError in iter_device() 2022-06-02 01:58:41 +08:00
LmeSzinc
500c8204a3 Fix: Add retry to Connection methods 2022-05-15 00:04:36 +08:00
LmeSzinc
6c526a273b Fix: Orientate regex (#1071) 2022-05-13 22:59:22 +08:00
LmeSzinc
d9332a7325 Add: Hierarchy button support 2022-05-01 22:10:40 +08:00
LmeSzinc
49a2ec6519 Fix: Handle AdbError: unknown host service 2022-04-23 22:24:27 +08:00
LmeSzinc
211a398911 Add: [TW] MyCard channel server com.hkmanjuu.azurlane.gp.mc
- Fix: Package name detection in lower/upper case
2022-04-20 00:05:50 +08:00
LmeSzinc
618fa52bcb Opt: Merge Emulator.PackageName and Emulator.Server into one dropdown 2022-04-19 01:00:07 +08:00
LmeSzinc
beabf938fc Opt: Add auto device detection and auto package detection, should be foolproof
- Add: Real-time server change
2022-04-19 01:00:07 +08:00
Egor Nats
6eac8ae259 Opt: Imports isorted 2022-04-14 16:37:54 -03:00
hgjazhgj
867d3d2bbd Fix: Add timeout to ADB and aScreencap screenshot 2022-04-14 11:12:08 +08:00
LmeSzinc
6614ec795a Opt: Reduce config read/write at WSA startup 2022-04-14 00:48:23 +08:00
LmeSzinc
d2f56c5af8 Opt: Lower stuck timer in battle to 3min 2022-04-14 00:17:00 +08:00
hgjazhgj
0f96eb3bbc Fix: add [at]wraps to retry_wrapper
to display actual function name in benchmark log output
2022-04-13 16:53:37 +08:00
LmeSzinc
c251ef98b3 Opt: Show possible devices and packages when user had a wrong input 2022-04-12 20:17:24 +08:00
SaarChaffee
303dd90fdc change CRLF to LF 2022-04-09 23:31:09 +08:00
hgjazhgj
4ebfa21873 Fix: reconnect when device offline 2022-04-09 01:20:48 +08:00
LmeSzinc
5ba2f5c5ac Add: Faster screenshot methods ADB_nc and aScreenCap_nc
- Allow config names when creating Device instances
- Add "Ultra Fast" level in performance test
2022-03-23 21:27:08 +08:00
LmeSzinc
69995df7b2 Fix: Rotate screenshots only when there're not 1280x720 (#964) 2022-03-20 16:22:33 +08:00
SarContDeli
4785c361f6 Fix: Improved the logic of getting package name on WSA 2022-03-19 00:39:00 +08:00
SarContDeli
3e3a199c66 Add:When using WSA, the screenshot method and control method will be locked to uiautomator2 2022-03-18 23:52:33 +08:00
SarContDeli
b12edf27ca Fix:a A hint when trying to use '127.0.0.1:58526' but not 'wsa-0' as serial 2022-03-18 23:25:39 +08:00
SarContDeli
22d1cb98f6 Fix:Optimized logic for resize the display on wsa-0 2022-03-18 18:43:44 +08:00
SarContDeli
86bacf6243 Fix:StopIteration detection of get_main_activity_name is added
Fix:Display detection of wsa-0 has been improved
2022-03-17 19:45:33 +08:00
SarContDeli
357b5cb1c9 Fix:display_resize_wsa has an argument(display) of the wrong type: str -> int 2022-03-17 18:00:00 +08:00
saicatedoan
12fe5d9a92 Modified the way to realize the WSA solution
Fix:A rare situation caused the game to shut down during restart in WSA solution
2022-03-17 14:06:33 +08:00
saicatedoan
ebf0bc45b6 Add: WSA solution on display 0 (experimental) 2022-03-17 14:06:13 +08:00
LmeSzinc
1ad23dbe90 Fix: Watch device orientate when starting app
- Opt: Skip screen size check at the first screenshot when game is not started
2022-03-06 19:18:35 +08:00
LmeSzinc
022acd336a Fix: Handle BrokenPipeError in minitouch
- Fix: Remove cached session globally when disconnecting to ADB
- Fix: Typo in del_cached_property()
2022-03-06 15:01:57 +08:00
LmeSzinc
d586e5563a Fix: Handle screen rotation 2022-03-05 13:33:24 +08:00
LmeSzinc
be8269b555 Fix: Stuck in minitouch init
- Fix: Handle AdbError(closed)
2022-03-05 09:22:45 +08:00
LmeSzinc
bf87a69c17 Fix: Deleting a cached property will calculate it 2022-03-05 09:22:45 +08:00
Ala
42d345a70c render annotations in english 2022-02-20 15:23:31 +08:00
Ala
2eda0a66a6 适配 vmos pro 的adb截图 2022-02-20 10:09:38 +08:00
LmeSzinc
6cfa57c9b9 Opt: Better help text for app start/stop (#932) 2022-02-12 18:27:04 +08:00
LmeSzinc
27a666daab Fix: Safely delete minitouch_builder 2022-02-10 02:28:43 +08:00
LmeSzinc
5348c6f58f Fix: Spaces around package name cause inequality 2022-02-07 23:38:14 +08:00
LmeSzinc
8bd650d02c Fix: Handle errors of error handling in device connection 2022-02-07 22:53:43 +08:00
LmeSzinc
1916d8b1e1 Fix: Handle AdbTimeout 2022-02-06 18:57:24 +08:00
LmeSzinc
b3e1715d04 Fix: ADB Image pre-process on MuMu (#920) 2022-02-06 17:32:19 +08:00
LmeSzinc
3a35df69fd Fix: Minor issues when running Alas on AidLux+VMOS
- Redundant "" in pip_install
- Hide Hermit after accessibility service turned on
2022-02-06 01:29:17 +08:00
LmeSzinc
95d4da328b Add: Image de-dithering 2022-02-05 17:10:37 +08:00
LmeSzinc
36d805fea7 Fix: Minor issues when running Alas on AidLux+VMOS
- Rename function names in research_optimizer to avoid tests
- Remove watch_memory decorator and psutil dependency
- Fix typo of Hermit
2022-02-04 00:47:34 +08:00
LmeSzinc
7b0981fd48 Add: Screenshot interval in non-combat to help reduce CPU 2022-02-02 00:46:06 +08:00
LmeSzinc
df310b9d09 Opt: Remove unnecessary use of drags, fallback to swipe+click if drag is a must 2022-02-01 21:49:57 +08:00
LmeSzinc
7c4dfd8948 Fix: Accessibility service handing in different languages 2022-01-30 22:52:07 +08:00
LmeSzinc
1b1968dab4 Opt: Don't stop app if HandleError disabled 2022-01-27 17:11:46 +08:00
LmeSzinc
e95a145653 Add: Hermit, another control method
- Add: Dump hierarchy via ADB and uiautomator2
- Fix: Device screenshot saving
2022-01-27 16:57:25 +08:00
LmeSzinc
25076cf5e5 Fix: Not enough values to unpack in app_current_adb() 2022-01-25 21:47:39 +08:00
LmeSzinc
65f166ad12 Refactor: Use numpy image cache instead of pillow image 2022-01-23 23:03:55 +08:00
LmeSzinc
6df7684a37 Opt: Show help message when having bad port 2022-01-22 23:02:06 +08:00
LmeSzinc
bb68096cfc Fix: Handle adb disconnect, add delay between retries 2022-01-22 23:02:03 +08:00
LmeSzinc
8374174d55 Refactor: module/device, separate all screenshot method and control methods
- Better screenshot and control retries, handle common exceptions
2022-01-22 17:42:47 +08:00
LmeSzinc
803e7a5813 Opt: Show exceptions under retry decorator 2022-01-13 17:47:17 +08:00
LmeSzinc
5dc207bb69 Del: Modifying CombatScreenshotInterval is not allowed anymore 2022-01-11 21:09:04 +08:00
LmeSzinc
26cee178a9 Opt: Show empty screenshots 2022-01-05 20:34:57 +08:00
LmeSzinc
342bed6255 Opt: Show minitouch init messages 2022-01-04 01:23:29 +08:00
LmeSzinc
afd44097b2 Fix: Typo in bf5316 2021-12-18 23:54:27 +08:00
LmeSzinc
bf53167572 Opt: ADB screenshots loader
Try other loaders if loader fixed but unable to parse
2021-12-18 23:33:11 +08:00
LmeSzinc
b6b1700407 Fix: Replace retrying with retry 2021-12-06 10:01:19 +08:00
LmeSzinc
c5599fb011 Fix: Screenshot retry decorator 2021-12-06 01:25:30 +08:00
LmeSzinc
7a0c566a9e Fix: Map swipe optimize should use local map view to generate blacklist
- Opt: Take less screenshots during swipe, reuse local view object as possible
- Refactor: handle_boss_appear_refocus()
- Fix: Update swipe box area in map, avoid clicking auto search
2021-11-22 18:09:38 +08:00
LmeSzinc
501467ed4c Opt: Reduce swipes become clicks when game is randomly stuck (#743)
Optimise the swipe path so that it ends on land
2021-11-17 22:28:19 +08:00
LmeSzinc
e984859ad6 Add: Goto main page when task queue is empty
- Refactor: Task waiting
- Fix: Saving config twice in nested multiset wrapper
2021-11-14 01:10:36 +08:00
Tiefeng Wei
4eca5f6b6f change: move import winreg from head to def 2021-11-12 23:39:53 +08:00
LmeSzinc
963437acb4 Opt: Use absolute ADB path
- AzurLaneUncensored failed to push when using relative path
2021-11-09 22:17:20 +08:00
LmeSzinc
377f5be445 Fix: [CN] Increase timeout of pushing AzurLaneUncensored files 2021-11-08 20:44:29 +08:00
muyeyifeng
60c1884416 Add: Bluestacks5 Hyper-v method
Add: find_bluestacks5_hyperv method
Fix: Serial help document
2021-11-05 10:34:55 +08:00
LmeSzinc
3098aa31aa Fix: Stop scheduler if a task failed 3 or more times
- Add: Clear click record
- Opt: Check the type of user setting and display invalid settings
2021-11-03 20:46:34 +08:00
LmeSzinc
366774db57 Opt: Recommend best method in benchmark 2021-10-26 17:44:11 +08:00
LmeSzinc
dd7b389797 Add: Semi-auto, Opsi semi-auto and benchmark
- Add: dependency prettytable
- Fix: Running an Alas module directly
- Del: Remove all assets in daemon module, because it's redundant
2021-10-25 18:49:56 +08:00
LmeSzinc
2122852ba5 Opt: Help text for BlueStacks Hyper-V auto connection
- Refactor: find_bluestacks_hyperv()
2021-10-24 12:30:51 +08:00
FishMagic
a827a0ce2e
Read Bluestacks4 Hyper-V Beta Realtime ADB port 2021-10-24 11:24:45 +08:00
LmeSzinc
a964f4e068 Merge branch 'master' into app 2021-10-23 14:53:06 +08:00
vlziw9y8
55b9cc59e7
Fix invalid warning when do first adb connect 2021-10-23 14:09:13 +08:00
LmeSzinc
9043a0d684 Refactor: Upgrade uiautomator2 to 2.16.7 2021-09-29 18:06:32 +08:00
LmeSzinc
019ce4f1dd Del: Remove the use of tinydb and notifypy 2021-09-26 05:00:10 +08:00
LmeSzinc
61cbe75527 Refactor: More accurate exceptions and add friendly advices 2021-09-16 12:09:00 +08:00
LmeSzinc
abdfbb713a Refactor: Rename auto search configs
- Refactor device/app configs
- Fix: Research finish detection
2021-09-15 23:50:30 +08:00
LmeSzinc
46d8d2fadb Refactor: Rename main configs
- Faster chapter selection and page_campaign
- Rename some old Chinglish variables in map info
2021-09-15 23:32:31 +08:00
LmeSzinc
67dfb7b83c Add drag log and fix ValueError in insert_swipe 2021-09-14 14:56:28 +08:00
LmeSzinc
a0d823bcd0 Rename configs in device, and research 2021-09-14 14:43:14 +08:00
SaigyoujiYukon
c9820e5ff3 跳过尝试连接emulator
connect连的是ip+端口,应该连不上emulator-55xx吧(
2021-08-21 18:33:41 +08:00
LmeSzinc
f1f190a2ad Fix: Raise error if clicking between 2 buttons 2021-07-16 21:33:33 +08:00
LmeSzinc
7a39232b41 Fix: Add ADB connection retry 2021-06-09 09:45:31 +08:00
Fernando Ayats
dc31a05e0b Linux compatibility 2021-05-30 17:54:25 +02:00
LmeSzinc
322cdddf6e Opt: Clean minitouch swipe way points 2021-02-25 18:08:17 +08:00
LmeSzinc
2d48654def Merge branch 'master' into dev 2021-02-20 17:35:56 +08:00
whoamikyo
7bf5499fc2 Opt: Minor improvements on toast notifications 2021-02-19 19:59:46 -03:00
LmeSzinc
5b8fa84db2 Fix: Delete nearing swipe way points, to prevent AL treats it as click 2021-02-18 16:46:03 +08:00
LmeSzinc
c22bf91e39 Fix: win10toast_persist import
For compatibility with older Alas, users who don't enable notifications don't need to import win10toast_persist.
2021-02-11 18:04:24 +08:00
whoamikyo
95c1008e5a Added: added toast notifications support to windows 10 2021-02-11 06:24:16 -03:00
LmeSzinc
02c67c468a Fix: Limit the setting of combat screenshot interval to 1.0s at max when enable auto search (#333)
to avoid missing the detection of page switching
2021-02-08 01:52:53 +08:00
LmeSzinc
7506a1bc28 Fix: Trigger device stuck detection in semi auto
- Add disable_stuck_detection to disable that
2021-01-09 18:33:10 +08:00