manifest.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <manifest xmlns:android="http://schemas.android.com/apk/res/android">
  2. <permissions>
  3. <!-- HMS-SDK引导升级HMS功能,访问OTA服务器需要网络权限 | HMS-SDK upgrade HMS Feature, access to OTA server requires network privileges -->
  4. <uses-permission android:name="android.permission.INTERNET" />
  5. <!-- HMS-SDK引导升级HMS功能,保存下载的升级包需要SD卡写权限 | HMS-SDK upgrade HMS Feature, save downloaded upgrade pack requires SD card Write permission -->
  6. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  7. <!-- 检测网络状态 | Detecting Network status -->
  8. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  9. <!-- 检测wifi状态 | Detecting WiFi status -->
  10. <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
  11. <!-- 获取用户手机的IMEI,用来唯一的标识设备。 | Gets the IMEI of the user's phone, used to uniquely identify the device. -->
  12. <uses-permission android:name="android.permission.READ_PHONE_STATE" />
  13. <!-- Android O版本调用安装需要使用该权限 -->
  14. <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
  15. <!-- 应用市场9.0版本必须使用该权限获取用户的服务地 -->
  16. <uses-permission
  17. android:name="com.huawei.appmarket.service.commondata.permission.GET_COMMON_DATA" />
  18. <uses-permission
  19. android:name="com.huawei.hwid.permission.gameservice.archive.access.provider" />
  20. <!-- push start -->
  21. <!-- 接收PUSH TOKEN的广播以及PUSH消息需要定义该权限 com.seasun.jxsj2.huawei 要替换上您应用的包名 -->
  22. <permission android:name="com.jmhy.huawei.permission.PROCESS_PUSH_MSG"
  23. android:protectionLevel="signatureOrSystem" />
  24. <permission android:name="com.jmhy.huawei.permission.PUSH_PROVIDER"
  25. android:protectionLevel="signatureOrSystem" />
  26. <permission android:name="com.jmhy.huawei.permission.PUSH_WRITE_PROVIDER"
  27. android:protectionLevel="signatureOrSystem" />
  28. <!-- 注意这里.permission.PASSBY_MSG是自身app的包名 + .permission.PROCESS_PUSH_MSG -->
  29. <uses-permission android:name="com.jmhy.huawei.permission.PROCESS_PUSH_MSG" />
  30. <uses-permission android:name="com.jmhy.huawei.permission.PUSH_PROVIDER" />
  31. </permissions>
  32. <application>
  33. <!-- HMSSdkAnalytics start -->
  34. <meta-data android:name="com.huawei.hms.client.service.name:hianalytics"
  35. android:value="hianalytics:4.0.2.300" />
  36. <meta-data android:name="com.huawei.hms.min_api_level:hianalytics:hianalytics"
  37. android:value="1" />
  38. <receiver android:name="com.huawei.hms.analytics.receiver.HiAnalyticsSvcEvtReceiver"
  39. android:exported="false">
  40. <intent-filter>
  41. <action android:name="com.huawei.hms.analytics.pps.event" />
  42. </intent-filter>
  43. </receiver>
  44. <!-- HMSSdkAnalytics end -->
  45. <!-- “xxx”用实际的应用ID替换,来源应用详情。 -->
  46. <meta-data android:name="com.huawei.hms.client.appid" android:value="appid=101935925" />
  47. <meta-data android:name="com.huawei.hms.client.cpid"
  48. android:value="cpid=890086000102291765" />
  49. <!-- Agconnect-credential start -->
  50. <!-- Agconnect-Core start -->
  51. <provider android:name="com.huawei.agconnect.core.provider.AGConnectInitializeProvider"
  52. android:authorities="com.jmhy.huawei.AGCInitializeProvider" android:exported="false" />
  53. <service android:name="com.huawei.agconnect.core.ServiceDiscovery"
  54. android:exported="false" />
  55. <!-- Agconnect-core end -->
  56. <!-- HMSSDK BASE start -->
  57. <meta-data android:name="com.huawei.hms.client.service.name:base"
  58. android:value="base:4.0.1.300" />
  59. <!-- SDK依赖的HMSCore的最低api level元数据 -->
  60. <meta-data android:name="com.huawei.hms.min_api_level:base:hmscore" android:value="1" />
  61. <activity android:name="com.huawei.hms.activity.BridgeActivity"
  62. android:configChanges="orientation|locale|layoutDirection|fontScale|screenSize|smallestScreenSize|screenLayout"
  63. android:excludeFromRecents="true" android:exported="false"
  64. android:hardwareAccelerated="true" android:theme="@android:style/Theme.Translucent">
  65. <meta-data android:name="hwc-theme"
  66. android:value="androidhwext:style/Theme.Emui.Translucent" />
  67. </activity>
  68. <activity android:name="com.huawei.hms.activity.EnableServiceActivity"
  69. android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|screenLayout"></activity>
  70. <!-- 接入HMSSDK 需要注册的activity | Access HMSSDK activity to be registered -->
  71. <activity android:name="com.huawei.updatesdk.service.otaupdate.AppUpdateActivity"
  72. android:configChanges="orientation|screenSize" android:exported="false"
  73. android:theme="@style/upsdkDlDialog">
  74. <meta-data android:name="hwc-theme"
  75. android:value="androidhwext:style/Theme.Emui.Translucent.NoTitleBar" />
  76. </activity>
  77. <!-- 接入HMSSDK 需要注册的activity | Access HMSSDK activity to be registered -->
  78. <activity android:name="com.huawei.updatesdk.support.pm.PackageInstallerActivity"
  79. android:configChanges="orientation|keyboardHidden|screenSize" android:exported="false"
  80. android:theme="@style/upsdkDlDialog">
  81. <meta-data android:name="hwc-theme"
  82. android:value="androidhwext:style/Theme.Emui.Translucent" />
  83. </activity>
  84. <provider android:name="com.huawei.hms.update.provider.UpdateProvider"
  85. android:authorities="${applicationId}.hms.update.provider" android:exported="false"
  86. android:grantUriPermissions="true"></provider>
  87. <!-- HMSSDK BASE end -->
  88. <!-- Update start -->
  89. <!-- Update end -->
  90. <!-- HMSSDKID start -->
  91. <activity android:name="com.huawei.hms.hwid.internal.ui.activity.HwIdSignInHubActivity"
  92. android:excludeFromRecents="true" android:exported="false"
  93. android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>
  94. <meta-data android:name="com.huawei.hms.client.service.name:hwid"
  95. android:value="hwid:4.0.1.300" />
  96. <meta-data android:name="com.huawei.hms.min_api_level:hwid:hwid" android:value="1" />
  97. <!-- HMSSDKID end -->
  98. <!-- iapSDK start -->
  99. <meta-data android:name="com.huawei.hms.client.service.name:iap"
  100. android:value="iap:4.0.2.300" />
  101. <!-- iapSDK end -->
  102. <!-- HMSSDK GAME start -->
  103. <meta-data android:name="com.huawei.hms.client.service.name:game"
  104. android:value="game:4.0.3.301" />
  105. <meta-data android:name="com.huawei.hms.jos.versioncode" android:value="40003301" />
  106. <service android:name="com.huawei.hms.jos.games.service.GameService"
  107. android:exported="true">
  108. <intent-filter>
  109. <action android:name="com.huawei.hms.games.service" />
  110. </intent-filter>
  111. </service>
  112. <provider android:name="com.huawei.hms.jos.games.archive.ArchiveRemoteAccessProvider"
  113. android:authorities="com.jmhy.huawei.hmssdk.jos.archive"
  114. android:exported="true"></provider>
  115. <activity
  116. android:name="com.huawei.appmarket.component.buoycircle.impl.delegete.BuoyBridgeActivity"
  117. android:configChanges="orientation|locale|screenSize|layoutDirection|fontScale"
  118. android:excludeFromRecents="true" android:exported="false"
  119. android:hardwareAccelerated="true" android:theme="@android:style/Theme.Translucent">
  120. <meta-data android:name="hwc-theme"
  121. android:value="androidhwext:style/Theme.Emui.Translucent" />
  122. </activity>
  123. <!-- HMSSdkOpendevice start -->
  124. <provider android:name="com.huawei.hms.aaid.InitProvider"
  125. android:authorities="com.jmhy.huawei.aaidinitprovider" android:exported="false" />
  126. <meta-data android:name="com.huawei.hms.client.service.name:opendevice"
  127. android:value="opendevice:4.0.1.301" />
  128. <meta-data android:name="com.huawei.hms.min_api_level:opendevice:push" android:value="1" />
  129. <!-- HMSSdkOpendevice end -->
  130. <!-- push start -->
  131. <receiver android:name="com.huawei.hms.support.api.push.PushMsgReceiver"
  132. android:permission="com.jmhy.huawei.permission.PROCESS_PUSH_MSG">
  133. <intent-filter>
  134. <!-- 必须, 用于接收通知栏消息点击事件 -->
  135. <action android:name="com.huawei.intent.action.PUSH_DELAY_NOTIFY" />
  136. <!-- 可选,兼容老的华为手机 -->
  137. <action android:name="com.huawei.intent.action.PUSH" />
  138. </intent-filter>
  139. </receiver>
  140. <receiver android:name="com.huawei.hms.support.api.push.PushReceiver"
  141. android:permission="com.jmhy.huawei.permission.PROCESS_PUSH_MSG">
  142. <intent-filter>
  143. <!-- 必须,用于接收token -->
  144. <action android:name="com.huawei.android.push.intent.REGISTRATION" />
  145. <!-- 必须, 用于接收透传消息 -->
  146. <action android:name="com.huawei.android.push.intent.RECEIVE" />
  147. <!-- 必须, 用于接收通知栏消息点击事件 此事件不需要开发者处理,只需注册就可以 -->
  148. <action android:name="com.huawei.intent.action.PUSH_DELAY_NOTIFY" />
  149. </intent-filter>
  150. </receiver>
  151. <!-- 接入HMSSDK PUSH模块需要注册该service,不需要开发者处理 -->
  152. <service android:name="com.huawei.hms.support.api.push.service.HmsMsgService"
  153. android:enabled="true" android:exported="true" android:process=":pushservice">
  154. <intent-filter>
  155. <action android:name="com.huawei.push.msg.NOTIFY_MSG" />
  156. <action android:name="com.huawei.push.msg.PASSBY_MSG" />
  157. </intent-filter>
  158. </service>
  159. <provider android:name="com.huawei.hms.support.api.push.PushProvider"
  160. android:authorities="com.jmhy.huawei.huawei.push.provider" android:exported="true"
  161. android:permission="com.jmhy.huawei.permission.PUSH_PROVIDER"
  162. android:readPermission="$com.jmhy.huawei.permission.PUSH_PROVIDER"
  163. android:writePermission="com.jmhy.huawei.permission.PUSH_WRITE_PROVIDER" />
  164. <meta-data android:name="com.huawei.hms.client.service.name:push"
  165. android:value="push:4.0.2.300" />
  166. <meta-data android:name="com.huawei.hms.min_api_level:push:push" android:value="1" />
  167. <!-- push end -->
  168. <!-- 自动初始化push start -->
  169. <meta-data android:name="push_kit_auto_init_enabled" android:value="true" />
  170. <!-- 自动初始化push end -->
  171. <provider
  172. android:name="com.huawei.updatesdk.fileprovider.UpdateSdkFileProvider"
  173. android:authorities="${applicationId}.updateSdk.fileProvider"
  174. android:exported="false"
  175. android:grantUriPermissions="true" />
  176. </application>
  177. </manifest>