不支持APK中文名称
- Dominant language
- Java
- Stars
- 5.4k
- Forks
- 620
- PR merge metrics
- No merged PRs in 30d
Description
apk的文件名带中文,然后安装时报错:
```shell
Traceback (most recent call last):
File "/workspace/project/park-here-android/freeline/freeline_core/task.py", line 123, in execute
self.task.execute()
File "/workspace/project/park-here-android/freeline/freeline_core/android_tools.py", line 44, in execute
self._install_apk()
File "/workspace/project/park-here-android/freeline/freeline_core/android_tools.py", line 69, in _install_apk
self.debug('start to install apk to device: {}'.format(' '.join(install_args)))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 146-147: ordinal not in range(128)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in freeline_core/android_tools.py at _install_apk and the debug call shown in the traceback, with freeline_core/task.py as the execution entry point. Reproduce installation with an APK whose filename contains Chinese characters and verify that the installation proceeds without UnicodeEncodeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100