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

题意:在Harmony OS中禁止了哪些谷歌服务?(以下是我在我的安卓应用中使用的列表。)

问题背景:

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. 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.

我需要将我的Android APK文件上传到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

问题解决:

Your app has integrated 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. If you want your app to run on these phones, integrate Huawei Mobile Services (HMS).

您的应用已经集成了谷歌移动服务(GMS)。由于新的华为手机被禁止使用GMS,因此如果您的应用集成了GMS,它将无法在新华为手机上运行。如果您希望您的应用能在这些手机上运行,请集成华为移动服务(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. Then your app will use HMS Map Kit on Huawei phones, while using GMS Map Kit on Google Android phones.

如果您想在您的应用中使用地图服务,并且希望您的应用能在华为手机和谷歌Android手机上都运行,您可以同时集成GMS地图套件(GMS Map Kit)和HMS地图套件(HMS Map Kit)。这样,您的应用将在华为手机上使用HMS地图套件,而在谷歌Android手机上使用GMS地图套件。

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 KitMap KitLocation KitSite KitAppGallery Connect auth service

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 supports analysis of manual conversion, aiming to increase the conversion efficiency. It provides two conversion policies: Add HMS API and To HMS API. You can choose one as required.

您可以使用名为“HMS Core Toolkit”的IDE插件来帮助您分析代码中GMS的使用位置。HMS Core Toolkit支持手动转换的分析,旨在提高转换效率。它提供了两种转换策略:添加HMS API和转换为HMS API。您可以根据需要选择其中一种。

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. 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.

Converter 是一个代码转换工具,支持 Java 和 Kotlin 项目。这个工具可以帮助您快速将现有的 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)可以自动将应用调用的 GMS API 转换为 HMS API,可以选择“转换为 HMS API”(To HMS API)或“添加 HMS API”(Add HMS API)的转换策略。

Upload your app through AppGallery Connect.

通过 AppGallery Connect 上传您的应用。

how to create and release your app on HUAWEI Developer?

如何在华为开发者联盟(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.

注册并创建您的应用:注册并登录您的华为开发者账号,进入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.

设置发布信息:选择您的商业模式(免费或付费)、发布国家和地区,以及隐私声明的链接。

4. Submit for release: Confirm that all of the information provided is correct, and submit your app for review.

提交发布:确认所有提供的信息都是正确的,并提交您的应用以供审核。

  • 13
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

营赢盈英

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值