简体   繁体   English

Harmony OS 中禁止了哪些谷歌服务(这是我在 android 应用程序中使用的列表。)

[英]What google services are banned in Harmony OS (here is a list that I have used in my android app.)

I need to upload my android apk file in harmony os and as google services are banned in this platform, I would have to use the alternative platform.我需要在 Harmony os 中上传我的 android apk 文件,并且由于该平台禁止谷歌服务,我将不得不使用替代平台。 Here is a list of google services that I have used.这是我使用过的谷歌服务列表。 Please help me to distinguish what google services would I need to override and recode for Harmony OS .请帮助我区分我需要为Harmony OS覆盖和重新编码哪些谷歌服务。

com.google.android.material
com.google.firebase
com.google.android.gms:play-services-auth
com.google.android.gms:play-services-maps
com.google.android.gms:play-services-location
com.google.android.libraries.places
com.google.code.gson
com.google.protobuf.nano:protobuf-javanano
  1. Your app has integrated GMS.您的应用已集成 GMS。 As new Huawei phones are banned from using GMS, you app, if with GMS integrated, will be unable to run on new Huawei phones.由于新的华为手机被禁止使用 GMS,如果您的应用程序集成了 GMS,将无法在新的华为手机上运行。 If you want your app to run on these phones, integrate Huawei Mobile Services (HMS) .如果您希望您的应用在这些手机上运行,请集成华为移动服务 (HMS)

If you want to use the map service in your app, and also want your app to run on both Huawei phones and Google Android phones, you can integrate both GMS Map Kit and HMS Map Kit. If you want to use the map service in your app, and also want your app to run on both Huawei phones and Google Android phones, you can integrate both GMS Map Kit and HMS Map Kit. Then your app will use HMS Map Kit on Huawei phones, while using GMS Map Kit on Google Android phones.然后,您的应用将在华为手机上使用 HMS Map 套件,而在 Google Android 手机上使用 GMS Map 套件。

In the list you provided, you use these GMS services:在您提供的列表中,您使用以下 GMS 服务:

com.google.firebase
com.google.android.gms:play-services-auth
com.google.android.gms:play-services-maps
com.google.android.gms:play-services-location
com.google.android.libraries.places

You can refer to the following Huawei mobile services:您可以参考以下华为移动服务:

Account Kit , Map Kit ,Location Kit , Site Kit , AppGallery Connect auth service Account Kit , Map Kit ,Location Kit , Site Kit , AppGallery Connect auth service

  1. You can use this IDE plug-in called HMS Core Toolkit to help you analyze where GMS is used in your code.您可以使用这个名为HMS Core Toolkit的 IDE 插件来帮助您分析 GMS 在代码中的使用位置。 HMS Core Toolkit supports analysis of manual conversion, aiming to increase the conversion efficiency. HMS Core Toolkit支持人工转换分析,旨在提高转换效率。 It provides two conversion policies: Add HMS API and To HMS API.它提供了两种转换策略:Add HMS API 和 To HMS API。 You can choose one as required.您可以根据需要选择一种。
  • Choose HMS > Convertor > New Conversion to start scanning, analysis, and conversion.选择HMS > Convertor > New Conversion ,开始扫描、分析和转换。

The Convertor is a code conversion tool supporting Java and Kotlin projects. Convertor是一款支持Java和Kotlin项目的代码转换工具。 This tool can help you quickly convert the existing Android app code for calling third-party APIs into the app code integrated with the HMS Core.该工具可以帮助您快速将现有的Android调用第三方API的应用代码转换为与HMS Core集成的应用代码。

New Conversion can automatically convert the GMS APIs called by apps into HMS APIs, using either the To HMS API or Add HMS API conversion policy. New Conversion可以使用To HMS API或Add HMS API转换策略自动将应用调用的GMS API转换为HMS API。

  1. Upload your app through AppGallery Connect .通过AppGallery Connect上传您的应用程序。
  • How to How to create and release your app on HUAWEI Developer?如何在华为开发者联盟创建和发布你的应用?
  1. Register and create your app: Register and sign in to your HUAWEI Developer account, go to AppGallery Connect, create a new app, and upload the APK.注册创建应用:注册并登录华为开发者帐号go到AppGallery Connect,新建应用,上传APK。
  2. Set basic information: Set languages and basic app information, such as app name, introduction, screenshots, and app category.设置基本信息:设置语言和基本应用信息,如应用名称、介绍、截图、应用类别。
  3. Set release information: Select your business model (free or premium), release countries and regions, and a link to the privacy statement.设置发布信息:Select 您的企业 model(免费或付费),发布国家和地区,以及隐私声明链接。
  4. Submit for release: Confirm that all of the information provided is correct, and submit your app for review.提交发布:确认所提供的所有信息均正确无误,然后提交您的应用以供审核。

Huawei phones are Android, not Harmony OS.华为手机是Android,不是鸿蒙操作系统。 However Huawei wearables are running on Harmony OS, which is not compatible with Android, so your APK will not work in this case.但是华为可穿戴设备运行的是鸿蒙操作系统,与 Android 不兼容,因此您的 APK 在这种情况下将无法运行。 You will need to rewrite your app from scratch for Harmony OS.您需要从头开始为 Harmony OS 重写您的应用程序。

From the list your provided, these use Google Mobile Services:从您提供的列表中,这些使用 Google 移动服务:

  • com.google.firebase com.google.firebase
  • com.google.android.gms:play-services-auth com.google.android.gms:play-services-auth
  • com.google.android.gms:play-services-maps com.google.android.gms:play-services-maps
  • com.google.android.gms:play-services-location com.google.android.gms:播放服务位置
  • com.google.android.libraries.places com.google.android.libraries.places

You have alternatives for each one through HMS Core.您可以通过 HMS Core 为每一个选项提供替代方案。 There are some wrapper libraries made by third parties, for example for maps and location, that make this migration easier.有一些由第三方制作的包装库,例如地图和位置,使迁移更容易。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我在Android应用中的Google地图上显示用户的当前位置时遇到问题。 谁能告诉我我该如何处理我的代码 - I have an issue displaying the user's current location on Google Maps in my Android app. Can anyone tell me what I need to do with my code 我想在我的Android应用中使用Google Play服务v8.1.0。 如果用户的设备没有Google Play服务v8.1.0,该怎么办? - I want to use google play service v8.1.0 in my android app. What to do if user's device doesn't have google play service v8.1.0? 我的联系人列表出现在我的android应用中。 单击名称后,如何将数字保存到字符串中? - I have the list of contacts appear in my android App. How is it possible that upon clicking on the name, it saves the number into a String? FCM:我已使用FCM接收有关我的应用程序的通知。 当我的应用程序处于前台时,它将所有通知分组,但不将其组合到后台时 - FCM: I have used FCM to receive notification for my app. When my app is in foreground it groups all notifications but not when app is in background 我的 android 应用程序中出现了联系人列表。 我想创建一个搜索框。 如何遍历列表视图并删除项目? - I have the list of contacts appear in my android App. I want to create a seachbox. How can I iterate through the list view and remove items? 我尝试将android和wamp连接起来作为我的应用程序的登录界面。 我没有得到输出 - I have tried to connect android and wamp for login interface for my app. I not getting the output 我的 Android 应用程序中有大约 1000 个不同的活动。 如何跳转到随机活动? - I have around 1000 different activities in my Android App. How can I jump to a random activity? 我正在写我的第一个Android应用程序。 我的.gitignore应该是什么样? - I'm writing my first Android app. What should my .gitignore look like? 我已经建立了一个简单的android应用。 在我的活动中,大多数按钮有效,但其他按钮无效 - I have build a simple android app. In my activity most of the buttons work but others don't 我已将应用程序上传到 google play 商店。 但它不支持设备华为和其他手机。 会是什么呢? 这是我的清单 - I have uploaded to google play store an app. But it doesn't support device Huawei and other mobile phones. What could it be? This is my manifest
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM