The launcher name on Android 11 is returned as com.android.settings instead of the actual launcher package name
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- mobile, testing-qa
调研方向
首先跟踪 getLauncherPackagename() 和 mDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT) 调用,然后在 Android 11 上使用 device.getCurrentPackageName() 重现设置检查。完成的标准是将 launcher package 识别为实际的 launcher,而不是 com.android.settings,并且 wait 以该 package 为目标。
由索引模型根据 Issue 内容生成。
描述
getLauncherPackagename() returns com.android.settings. So mDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT); doesn't really wait for the launcher package.
I believe this is due to the package visibility changes on Android 11.
Our test setup consisted of this check before starting with the tests:
String currentPackageName = device.getCurrentPackageName();
if (currentPackageName != null) {
assertEquals(packageName, currentPackageName);
}
This failed as currentPackageName returned as com.google.android.apps.nexuslauncher and getLauncherPackagename() returned com.android.settings.
- 主要语言
- Java
- 星标
- 9.3k
- 派生
- 3.6k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
android/testing-samples 的其他 Issue
-
Organic*未关闭
难度 1/5 1 小时以内 新手友好度 1/100
android/testing-samples#542 ·
-
难度 5/5 一周以上 新手友好度 1/100
android/testing-samples#541 ·
-
难度 5/5 一周以上 新手友好度 10/100
android/testing-samples#538 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 10/100
android/testing-samples#537 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 30/100
android/testing-samples#528 ·
查看 android/testing-samples 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
openhab/openhab-core#5847 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 88/100
apache/parquet-java#3820 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
beehive-lab/jllm#187 ·