Closed caofengbin closed 4 months ago
Attention: Patch coverage is 7.14286%
with 26 lines
in your changes are missing coverage. Please review.
Project coverage is 24.68%. Comparing base (
64c6f2b
) to head (c11fd22
). Report is 1 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
uiautomator2/__init__.py | 7.14% | 26 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
还是需要调整一下。
这个sdk版本是根据系统的版本来的,而不是根据sdk里面写的版本。
具体可以参考 https://developer.android.com/tools/adb#pm
https://stackoverflow.com/questions/16410167/how-do-i-use-adb-grant-or-adb-revoke
还是需要调整一下。
这个sdk版本是根据系统的版本来的,而不是根据sdk里面写的版本。
具体可以参考 https://developer.android.com/tools/adb#pm
https://stackoverflow.com/questions/16410167/how-do-i-use-adb-grant-or-adb-revoke
已经修改为通过adb shell getprop ro.build.version.sdk
的方式拿到系统版本号,再做判断
Android端6.0之后的系统,部分敏感权限系统强制要求运行时动态授权,会对用例执行产生干扰,需要自己处理。
参考Appium的启动参数autoGrantPermissions的实现原理,补齐相关能力。
appium-adb中的实现方式