Skip to content

[com.tencent.mm] FCM registration fails on Huawei App Twin (user 128) with BadParcelableException #3780

Description

@largebatata

Affected app
Name: WeChat
Package id: com.tencent.mm

Describe the bug
FCM works correctly for the app in the owner profile (user 0), but fails for the same app running as a Huawei App Twin / cloned app in Android user 128.

When the cloned app is opened, it requests FCM registration through microG, but fails continuously every 60–90 seconds due to a BadParcelableException caused by ClassNotFoundException:
org.microg.gms.gcm.PushRegisterServiceKt$ensureCheckinIsUpToDate$resultData$1$1

As a result, no MCS/GCM connection is established for user 128, and FCM messages do not arrive when the cloned app process is not running.

To Reproduce

  1. Install and configure microG on a Huawei device supporting App Twin.
  2. Enable App Twin for WeChat (com.tencent.mm).
  3. Open the cloned app under user 128 and observe FCM registration in logcat.
  4. Registration repeatedly fails with BadParcelableException / ClassNotFoundException.
  5. Kill the cloned app process (without force-stopping).
  6. FCM messages do not arrive and the clone cannot be cold-started.

Expected behavior
microG should successfully handle FCM registration and message delivery for the cloned application under user 128, same as user 0.

System
Device: HUAWEI PLU-AL10
Android Version: 12 (API 31)

microG
microG Core version: 0.3.16.252432-hw

Additional context

  • Firebase receiver resolves correctly in both users (com.tencent.mm/com.google.firebase.iid.FirebaseInstanceIdReceiver).
  • Owner instance (user 0) works completely fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions