关于华为应用市场审核App无法启动的问题

华为换成鸿蒙系统后,有些跟其他厂商的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 #-1

No 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" ,很复杂的心情,之前通管局会要求关闭这个,现在关掉后,华为测试又通不过,尴尬。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值