当前位置:网站首页>关于华为应用市场审核App无法启动的问题
关于华为应用市场审核App无法启动的问题
2022-07-30 13:52:00 【上头丶削肾客】
华为换成鸿蒙系统后,有些跟其他厂商的Android系统不一样,最近更新上架的App,测试被华为提示应用出现无法启动的情况。网上搜了下资料,来看看受害者名单:
主要是说 gradle.properties中配置如下代码项:
android.injected.testOnly=false然后分析了下华为反馈的log,有一项很有意思:
Line 304: 07-22 18:28:26.106 W/BroadcastQueue( 1602): Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.xxx.xxxx flg=0x4000010 (has extras) } to com.huawei.deveco.automator/.service.receiver.InstallBroadcastReceiver
Line 308: 07-22 18:28:26.108 W/BroadcastQueue( 1602): Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.xxx.xxxx flg=0x4000010 (has extras) } to com.huawei.deveco.automator/com.huawei.deveco.keep.receiver.DaemonReceiver
Line 333: 07-22 18:28:26.125 I/ApplistMgr( 2891): Standby unprotected apps: [com.huawei.smarthome, com.huawei.contactscamcard, com.huawei.hifolder, com.huawei.vrservice, com.huawei.tips, com.huawei.hwvoipservice, com.huawei.android.remotecontroller, com.android.gallery3d, com.huawei.mycenter, com.huawei.contacts.sync, com.xy.smartmmsplugin.remote, com.huawei.numberidentity, com.android.storagemanager, com.huawei.android.totemweather, com.huawei.lives, com.android.localtransport, com.android.dreams.basic, com.huawei.hiskytone, com.android.simappdialog, com.huawei.scenepack, com.android.calculator2, com.android.hwmirror, com.huawei.compass, com.huawei.stylus.mpenzone, com.android.soundrecorder, com.huawei.ar.measure, com.android.wallpaperbackup, com.unionpay.tsmservice, com.huawei.notepad, com.huawei.deveco.automator, com.huawei.game.kitserver, com.huawei.hwdcallservice, com.huawei.mirror, com.huawei.calculator, com.huawei.hwdockbar, com.huawei.featurelayer.sharedfeature.xrkit, com.huawei.waudio, com.hua...
Line 383: 07-22 18:28:26.172 I/HwAddViewManager( 1602): addInterceptionList: start to insertOrUpdateCoreInterceptionList: {com.xxx.xxxx=61}Background execution not allowed: receiving Intent ....
出现这个问题的原因是 Android O版本以后google对隐式广播(Implicit Broadcast)的限制更加严格了,这就导致了apk在O版本之前的版本上好用,在之后的版本上达不到预期的效果。
分析:华为这里使用这个来启动待检测的App,因为O+版本,隐式广播的原因,导致启动失败。这里是测试软件的原因???
另外还有一段log
07-22 18:28:26.263 W/PackageParser(17587): Unknown element under <manifest>: queries at /data/app/com.xxx.xxxx-6Yj7vncVwZAbDUVA_qiijQ==/base.apk Binary XML file line #45
07-22 18:28:26.264 I/SiteCountryDataManager(10032): start parseGlobalSync isUIThread:false 260309E795465CD4391158ACBD7B5BB16913
07-22 18:28:26.264 I/SiteCountryDataManager(10032): [I/HwID_APK_log[6.6.0.312|6.6.0.304] [SDK 6.6.0.301]com.huawei.hwid.core/SiteCountryDataManager 10032:5928 SiteCountryDataManager.java:3093] HMS Core Apk start parseGlobalSync isUIThread:false 260309E795465CD4391158ACBD7B5BB16913
07-22 18:28:26.264 I/CommonUtils(10032): [I/HwID_APK_log[6.6.0.312|6.6.0.304] [SDK 6.6.0.301]com.huawei.hwid.core/CommonUtils 10032:5928 CommonUtils.java:201] isPhoneStillInLockMode is already false
07-22 18:28:26.264 I/SiteCountryDataManager(10032): [I/HwID_APK_log[6.6.0.312|6.6.0.304] [SDK 6.6.0.301]com.huawei.hwid.core/SiteCountryDataManager 10032:5928 SiteCountryDataManager.java:3103] start parseGlobalSync has over:
07-22 18:28:26.264 W/PackageParser(17587): No actions in intent filter at /data/app/com.xxx.xxxx-6Yj7vncVwZAbDUVA_qiijQ==/base.apk Binary XML file line #-1No actions in intent filter:
添加一行: android:exported="true"
<activity
android:name=".SplashActivity"
android:exported="true"
android:launchMode="singleTop"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>关于这个 android:exported="true" ,很复杂的心情,之前通管局会要求关闭这个,现在关掉后,华为测试又通不过,尴尬。
边栏推荐
- 无代码开发平台全部应用设置入门教程
- 【VMware虚拟机安装mysql5.7教程】
- 权威推荐!腾讯安全DDoS边缘安全产品获国际研究机构Omdia认可
- HCIP(第十五天) —— 交换机(一)
- 业内人士真心话:只会测试没有前途的,我慌了......
- CF1320E Treeland and Viruses
- ARC115F Migration
- eclipse连接SQL server数据库「建议收藏」
- 简单理解精确率(Precision),召回率(Recall),准确率(Accuracy),TP,TN,FP,FN
- The truth of the industry: I will only test those that have no future, and I panic...
猜你喜欢

ARC117E Zero-Sum Ranges 2

Six-faced ant financial clothing, resisting the bombardment of the interviewer, came to interview for review

pytorch与keras的相互转换(代码以LeNet-5为例)

Still saying software testing doesn't have a midlife crisis?9 years of test engineers were eliminated

LoRaWAN网关源码分析(V1.0.2)

无代码开发平台应用可见权限设置入门教程

selenium4+pyetsst+allure+pom进行自动化测试框架的最新设计

内容产品进化三板斧:流量、技术、产品形态

Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates

Jenkins自动化部署项目
随机推荐
CF338E Optimize!
二手手机销量突破3亿部,与降价的iPhone夹击国产手机
How awesome is the "12306" architecture?
网站添加能换装可互动的live 2d看板娘
记面试外包公司的一次经历,到底该不该去?
时间序列的数据分析(四):STL分解
Jenkins自动化部署项目
六面蚂蚁金服,抗住面试官的狂轰乱炸,前来面试复盘
sql中ddl和dml(sql与access的区别)
“12306” 的架构到底有多牛逼
The truth of the industry: I will only test those that have no future, and I panic...
重保特辑|拦截99%恶意流量,揭秘WAF攻防演练最佳实践
jsArray array copy method performance test 2207300823
ARC115F Migration
戴墨镜的卡通太阳SVG动画js特效
内容产品进化三板斧:流量、技术、产品形态
产品年度营销计划书
【ROS进阶篇】第十一讲 基于Gazebo和Rviz的机器人联合仿真(运动控制与传感器)
Still saying software testing doesn't have a midlife crisis?9 years of test engineers were eliminated
激光雷达点云语义分割论文阅读小结