Wear OS
Google Pixel Watch app will crash on Honor 20 Pro with HarmonyOS 2.0.0.
Logcat
2023-01-02 21:40:49.866 16383-16383/? E/PrivacyConsentApi: Exception while registering consent listener
equ: 17: API: Wearable.API is not available on this device. Connection failed with: epo{statusCode=API_UNAVAILABLE, resolution=null, message=null}
at erk.d(PG:1)
at ese.s(PG:7)
at ese.f(PG:2)
at ese.j(PG:21)
at ese.i(PG:1)
at androidx.wear.ambient.AmbientModeSupport$AmbientController.b(PG:1)
at etr.a(PG:1)
at etl.d(PG:6)
at etm.handleMessage(PG:38)
at android.os.Handler.dispatchMessage(Handler.java:110)
at exp.b(PG:1)
at exp.dispatchMessage(PG:1)
at android.os.Looper.loop(Looper.java:219)
at android.os.HandlerThread.run(HandlerThread.java:67)
2023-01-02 21:03:20.439 1568-2418/? E/ActivityTaskManager: START {hwFlg=0x10 cmp=com.google.android.wearable.app.cn/com.google.android.gms.wearable.consent.TermsOfServiceActivity (has extras)} result: -92
2023-01-02 21:03:20.441 14409-14409/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.google.android.apps.wear.companion, PID: 14409
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.apps.wear.companion/com.google.android.libraries.wear.companion.invisibleactivity.impl.InvisibleActivity}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.wearable.app.cn/com.google.android.gms.wearable.consent.TermsOfServiceActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4060)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4247)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2613)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8668)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.wearable.app.cn/com.google.android.gms.wearable.consent.TermsOfServiceActivity}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2118)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1746)
at android.app.Activity.startActivityForResult(Activity.java:5412)
at vp.b(PG:1)
at androidx.activity.result.ActivityResultRegistry.f(PG:13)
at qz.b(PG:4)
at hwu.b(PG:1)
at jcn.a(PG:39)
at hwv.a(PG:7)
at com.google.android.libraries.wear.companion.invisibleactivity.impl.InvisibleActivity.onCreate(PG:11)
at android.app.Activity.performCreate(Activity.java:8214)
at android.app.Activity.performCreate(Activity.java:8202)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4033)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4247)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2613)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8668)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
Debug
https://support.google.com/googlepixelwatch/answer/12652073?hl=en
To connect Google Pixel Watch, you need an Android phone running Android OS version 8.0 or higher. iOS phones are not currently supported.
https://www.androidauthority.com/harmony-os-2-android-1231446/
Huawei’s HarmonyOS 2.0 may be based on Android 10.
The pixel watch app crashes whenever I click “continue” (and also “Pair with emulator” option in the menu) on the setup page.
For more context, I’m using a Huawei P30 Pro running Harmony OS 2.0.0.268, which should be equivalent to Android 10.
https://support.google.com/wearos/answer/9266307
Watches that run Wear OS 3 are not compatible with the Wear OS app.
https://developer.android.com/training/wearables/creating-app-china
com.google.android.wearable.app.cn