Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crash while launch #5934

Closed
clunyes opened this issue May 7, 2024 · 5 comments
Closed

App crash while launch #5934

clunyes opened this issue May 7, 2024 · 5 comments

Comments

@clunyes
Copy link

clunyes commented May 7, 2024

App will crash while launch in device MRD-AL00 android 9.0

Failed to find provider info for com.google.android.gsf.gservices
FATAL EXCEPTION: main
Process: com.google.android.gms.persistent, PID: 6033
java.lang.RuntimeException: Unable to create application co.g.App: java.lang.SecurityException: addOnPermissionsChangeListener: Neither user 10172 nor current process has android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS.
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6737)
	at android.app.ActivityThread.access$2000(ActivityThread.java:273)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2020)
	at android.os.Handler.dispatchMessage(Handler.java:112)
	at android.os.Looper.loop(Looper.java:216)
	at android.app.ActivityThread.main(ActivityThread.java:7625)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.SecurityException: addOnPermissionsChangeListener: Neither user 10172 nor current process has android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS.
	at android.os.Parcel.createException(Parcel.java:1959)
	at android.os.Parcel.readException(Parcel.java:1927)
	at android.os.Parcel.readException(Parcel.java:1877)
	at android.content.pm.IPackageManager$Stub$Proxy.addOnPermissionsChangeListener(IPackageManager.java:6303)
	at android.app.ApplicationPackageManager.addOnPermissionsChangeListener(ApplicationPackageManager.java:1600)
	at swc.a(:com.google.android.gms@19831019@19.8.31 (040400-284611645):12)
	at sfl.onCreate(:com.google.android.gms@19831019@19.8.31 (040400-284611645):167)
	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1162)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6717)
	... 8 more
Caused by: android.os.RemoteException: Remote stack trace:
	at android.app.ContextImpl.enforce(ContextImpl.java:2046)
	at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2074)
	at com.android.server.pm.PackageManagerService.addOnPermissionsChangeListener(PackageManagerService.java:6312)
	at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2357)
	at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4535)
Killing 5925:comxxxx.xxxxx/u0a325 (adj 0): depends on provider com.google.android.gms/.chimera.container.GmsModuleProvider in dying proc com.google.android.gms.persistent (adj 0)
classpath 'com.google.gms:google-services:4.3.15'

firebase version

api(platform("com.google.firebase:firebase-bom:32.3.1"))
api 'com.google.firebase:firebase-analytics-ktx'
api 'com.google.firebase:firebase-messaging-ktx'

anyway to adapt this phone?

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@lehcar09
Copy link

lehcar09 commented May 7, 2024

Hi @clunyes, thank you for reaching out. We're you able to reproduce the issue? Is there any chance you can share an MCVE/ code snippet to help us investigate the issue?

I notice that you're not using the latest Firebase SDK version. I would recommend updating to the latest Firebase SDK version to have the latest bug fixes that might be causing the issue and features.

Aside from that, I also recommend that you migrate your app to use KTX APIs from the main modules to ensure that you continue to get fixes and can take advantage of changes and new features when the KTX modules are no longer released. For context, the Kotlin extension (KTX) APIs in the KTX modules were deprecated. The Kotlin extensions (KTX) APIs were added to their respective main modules. You can now use the KTX APIs directly from the main modules when using Firebase BoM v32.5.0+ or main module versions listed in BoM v32.5.0+.

@clunyes
Copy link
Author

clunyes commented May 7, 2024

Hi @clunyes, thank you for reaching out. We're you able to reproduce the issue? Is there any chance you can share an MCVE/ code snippet to help us investigate the issue?

I notice that you're not using the latest Firebase SDK version. I would recommend updating to the latest Firebase SDK version to have the latest bug fixes that might be causing the issue and features.

Aside from that, I also recommend that you migrate your app to use KTX APIs from the main modules to ensure that you continue to get fixes and can take advantage of changes and new features when the KTX modules are no longer released. For context, the Kotlin extension (KTX) APIs in the KTX modules were deprecated. The Kotlin extensions (KTX) APIs were added to their respective main modules. You can now use the KTX APIs directly from the main modules when using Firebase BoM v32.5.0+ or main module versions listed in BoM v32.5.0+.

Hi @clunyes, thank you for reaching out. We're you able to reproduce the issue? Is there any chance you can share an MCVE/ code snippet to help us investigate the issue?

I notice that you're not using the latest Firebase SDK version. I would recommend updating to the latest Firebase SDK version to have the latest bug fixes that might be causing the issue and features.

Aside from that, I also recommend that you migrate your app to use KTX APIs from the main modules to ensure that you continue to get fixes and can take advantage of changes and new features when the KTX modules are no longer released. For context, the Kotlin extension (KTX) APIs in the KTX modules were deprecated. The Kotlin extensions (KTX) APIs were added to their respective main modules. You can now use the KTX APIs directly from the main modules when using Firebase BoM v32.5.0+ or main module versions listed in BoM v32.5.0+.

i'll try tomorro,thanks

@google-oss-bot
Copy link
Contributor

Hey @clunyes. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link
Contributor

Since there haven't been any recent updates here, I am going to close this issue.

@clunyes if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

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

No branches or pull requests

3 participants