codeskyblue / codeskyblue/uiautodev
启动uiauto.dev后会导致Android端AccessibilityService.getSystemService报空指针异常
- Dominant language
- Python
- Stars
- 538
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Description
启动uiautodev后,在Android端运行AccessibilityService服务,会导致accessibilityService.getSystemService(Context.WINDOW_SERVICE)空指针异常,二者是否存在冲突?
```
uiautodev version: 0.8.0
INFO: Started server process [17085]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:20242 (Press CTRL+C to quit)
INFO: 127.0.0.1:60104 - "GET /api/info HTTP/1.1" 200 OK
INFO: 127.0.0.1:60104 - "GET /api/android/list HTTP/1.1" 200 OK
INFO: 127.0.0.1:60104 - "GET /api/android/features HTTP/1.1" 200 OK
INFO: 127.0.0.1:60115 - "OPTIONS /api/android/ljaij75p5ls4u8in/screenshot/0?_t=1749607423580 HTTP/1.1" 200 OK
```
```
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with uiautodev 0.8.0 running and an Android AccessibilityService calling getSystemService(Context.WINDOW_SERVICE), then repeat with uiautodev stopped to isolate the interaction. The payload names no repository file or test; done means identifying the cause of the null service context and confirming that the call no longer raises a NullPointerException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100