当前位置:网站首页>关于华为应用市场审核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" ,很复杂的心情,之前通管局会要求关闭这个,现在关掉后,华为测试又通不过,尴尬。
边栏推荐
- ARC115F Migration
- 3年软件测试经验面试要求月薪22K,明显感觉他背了很多面试题...
- 数字信号处理课程实验报告(数字信号处理需要什么基础)
- How awesome is the "12306" architecture?
- ddl and dml in sql (the difference between sql and access)
- 深入浅出零钱兑换问题——背包问题的套壳
- js人均寿命和GDP散点图统计样式
- 重保特辑|筑牢第一道防线,云防火墙攻防演练最佳实践
- What should I do if the sql server installation fails (what should I do if the sql server cannot be installed)
- OFDM Sixteen Lectures 3- OFDM Waveforms
猜你喜欢

跳槽前,把自己弄成卷王

(HR面试)最常见的面试问题和技巧性答复

戴墨镜的卡通太阳SVG动画js特效

创意loadingjs特效小点跳跃动画

Before quitting, make yourself a roll king

js男女身高体重关系图

“12306” 的架构到底有多牛逼

Teach you how to write an eye-catching software testing resume, if you don't receive an interview invitation, I will lose

接口自动化框架,lm-easytest内测版发布,赶紧用起来~

Flask Framework - Flask-Mail Mail
随机推荐
【Advanced Mathematics】【7】Double Integral
自动化测试之数据驱动DDT详细篇
Shell变量与赋值、变量运算、特殊变量、重定向与管渠
selenium4+pyetsst+allure+pom进行自动化测试框架的最新设计
Hello,World
43.【list的简单属性】
桌面软件开发框架大赏
Flask框架——Flask-SQLite数据库
Redis6.0 source code learning (5) ziplist
ARC115F Migration
开始学习C语言了
js人均寿命和GDP散点图统计样式
JSON常用注解
六面蚂蚁金服,抗住面试官的狂轰乱炸,前来面试复盘
跳槽前,把自己弄成卷王
新时代背景下智慧城市的建设与5G技术有何关联
svg波浪动画js特效代码
高性能数据访问中间件 OBProxy(三):问题排查和服务运维
SQL 改写系列七:谓词移动
Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates