当前位置:网站首页>关于华为应用市场审核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" ,很复杂的心情,之前通管局会要求关闭这个,现在关掉后,华为测试又通不过,尴尬。
边栏推荐
- OFDM 十六讲 3- OFDM Waveforms
- 自动化测试之数据驱动DDT详细篇
- Flask Framework - Flask-Mail Mail
- 近两年激光雷达运动物体分割论文阅读小结
- Web消息推送之SSE
- ML之PDP:基于FIFA 2018 Statistics(2018年俄罗斯世界杯足球赛)球队比赛之星分类预测数据集利用DT决策树&RF随机森林+PDP部分依赖图可视化实现模型可解释性之详细攻略
- There is a risk of water ingress in the battery pack tray and there is a potential safety hazard. 52,928 Tang DMs are urgently recalled
- pytorch学习记录(六):循环神经网络 RNN & LSTM
- MIMO雷达波形设计
- 开源工具推荐:高性能计算辅助工具MegPeak
猜你喜欢

以unity3d为例解读:游戏数据加密

开始学习C语言了

The way of programmers' cultivation: do one's own responsibilities, be clear in reality - lead to the highest realm of pragmatism

Huawei's 7-year-experienced software testing director, gives some advice to all friends who want to change careers to learn software testing

新时代背景下智慧城市的建设与5G技术有何关联

Flask框架——Flask-SQLite数据库

Jenkins自动化部署项目

ML之PDP:基于FIFA 2018 Statistics(2018年俄罗斯世界杯足球赛)球队比赛之星分类预测数据集利用DT决策树&RF随机森林+PDP部分依赖图可视化实现模型可解释性之详细攻略

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

LeetCode二叉树系列——199二叉树的右视图
随机推荐
3年软件测试经验面试要求月薪22K,明显感觉他背了很多面试题...
[ARC092D] Two Faced Edges
Flask框架——Flask-Mail邮件
人社部公布“数据库运行管理员”成新职业,OceanBase参与制定职业标准
CF1677E Tokitsukaze and Beautiful Subsegments
关于String的一些思考
20220729 Securities, Finance
AT4108 [ARC094D] Normalization
ARC117E Zero-Sum Ranges 2
Six-faced ant financial clothing, resisting the bombardment of the interviewer, came to interview for review
ECCV 2022 | 通往数据高效的Transformer目标检测器
(论文翻译]未配对Image-To-Image翻译使用Cycle-Consistent敌对的网络
sql中ddl和dml(sql与access的区别)
No-code development platform application visible permission setting introductory tutorial
记面试外包公司的一次经历,到底该不该去?
Study Notes - Becoming a Data Analyst in Seven Weeks "Week 2: Business": Business Analysis Metrics
新一代开源免费的终端工具,太酷了
【Advanced Mathematics】【7】Double Integral
ARC115F Migration
[论文翻译] Unpaired Image-To-Image Translation Using Cycle-Consistent Adversarial Networks