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
.
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
Company plans to press ahead with its five-year globalisation strategy and said it will not back away from expansion. China's Huawei Technologies will continue to use its own operating system amid its inability to access Google's services and will use it to pursue an aggressive expansion strategy.
Can I use Google Search on the Huawei Browser? You can use HUAWEI Browser to open the home page of Google Search for searching.
No, the Huawei ban only affects products released after May 15, 2019. The Huawei P30 Pro launched on March 26, 2019, which means it can still feature Google apps.
Huawei's HarmonyOS already has 134,000 apps, over 4 million developers have signed on. Eligible devices that migrate to HarmonyOS 2.0 will retain apps and data (the exception being apps that rely on Google Play Services).
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.
In the list you provided, you use these GMS services:
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
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.
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.
Huawei phones are Android, not Harmony OS. However Huawei wearables are running on Harmony OS, which is not compatible with Android, so your APK will not work in this case. You will need to rewrite your app from scratch for Harmony OS.
From the list your provided, these use Google Mobile Services:
You have alternatives for each one through HMS Core. There are some wrapper libraries made by third parties, for example for maps and location, that make this migration easier.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With