Skip to content

Commit

Permalink
use new stf-binaries to support Android 10+
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed May 11, 2021
1 parent 4725c09 commit 98aed06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/fetching.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ def get_stf_binaries() -> str:
Download from https://github.com/openatx/stf-binaries
Tag 0.2, support to Android P
Tag 0.3.0 use stf/@devicefarmer
"""
version = "0.2.1"
version = "0.3.0"
target_path = f"vendor/stf-binaries-{version}.zip"
mirror_download(
f"https://github.com/openatx/stf-binaries/archive/{version}.zip",
Expand Down
2 changes: 1 addition & 1 deletion device.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _init_binaries(self):

stf_zippath = fetching.get_stf_binaries()
zip_folder, _ = os.path.splitext(os.path.basename(stf_zippath))
prefix = zip_folder + "/node_modules/minicap-prebuilt/prebuilt/"
prefix = zip_folder + "/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/"
self._push_stf(prefix + abi + "/lib/android-" + sdk + "/minicap.so",
"/data/local/tmp/minicap.so",
mode=0o644,
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ tornado
requests
apkutils2
uiautomator2>=2.5.9
humanize

0 comments on commit 98aed06

Please sign in to comment.