当前位置:网站首页>关于华为应用市场审核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" ,很复杂的心情,之前通管局会要求关闭这个,现在关掉后,华为测试又通不过,尴尬。
边栏推荐
- Synology system installation related file sharing
- ccs软件的使用(靠谱挣钱的app软件)
- Flask框架——Flask-Mail邮件
- AT4108 [ARC094D] Normalization
- [ARC092B] Two Sequences
- 简单理解精确率(Precision),召回率(Recall),准确率(Accuracy),TP,TN,FP,FN
- [VMware virtual machine installation mysql5.7 tutorial]
- JSON常用注解
- 戴墨镜的卡通太阳SVG动画js特效
- ESP32 反复重启问题 Arduino屏蔽断电探测器
猜你喜欢

业内人士真心话:只会测试没有前途的,我慌了......

电池包托盘有进水风险,存在安全隐患,紧急召回52928辆唐DM

Flask Framework - Sijax

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

js人均寿命和GDP散点图统计样式

高性能数据访问中间件 OBProxy(三):问题排查和服务运维

【VMware虚拟机安装mysql5.7教程】

激光雷达点云语义分割论文阅读小结

(一)Multisim安装与入门

selenium4+pyetsst+allure+pom进行自动化测试框架的最新设计
随机推荐
OFDM 十六讲 3- OFDM Waveforms
CF1677E Tokitsukaze and Beautiful Subsegments
LeetCode二叉树系列——144.二叉树的最小深度
Digital signal processing course lab report (what foundation is needed for digital signal processing)
(论文翻译]未配对Image-To-Image翻译使用Cycle-Consistent敌对的网络
BI-SQL丨WHILE
[ARC092D] Two Faced Edges
ARC115F Migration
LoRaWAN网关源码分析(V1.0.2)
Hello,World
创意loadingjs特效小点跳跃动画
Conversion between pytorch and keras (the code takes LeNet-5 as an example)
[VMware virtual machine installation mysql5.7 tutorial]
[Advanced ROS] Lecture 11 Robot co-simulation based on Gazebo and Rviz (motion control and sensors)
桌面软件开发框架大赏
Flask框架——Sijax
ccs软件的使用(靠谱挣钱的app软件)
权威推荐!腾讯安全DDoS边缘安全产品获国际研究机构Omdia认可
[论文翻译] Unpaired Image-To-Image Translation Using Cycle-Consistent Adversarial Networks
近两年激光雷达运动物体分割论文阅读小结