Gcam-Services-Provider: Crashes on Android 11 (Gcam >=7.5)
Pixel 4a, RattlesnakeOS, Android 11 (RP1A.201005.006.2020.10.06.13
)
Using the .apk files from https://www.apkmirror.com/apk/google-inc/camera, the 7.4.x
apk’s don’t crash but any of the 7.5.x
.apk files do (7.5.105.323030203
and 7.5.107.326355469
). I tried both the latest release of Gcam-Services-Provider and built from source with the same result.
This is what logcat outputs:
10-07 14:42:02.448 1637 1867 I ActivityManager: Start proc 10405:com.google.android.GoogleCamera/u0a190 for pre-top-activity {com.google.android.GoogleCamera/com.android.camera.CameraLauncher}
10-07 14:42:02.452 10405 10405 E id.GoogleCamer: Not starting debugger since process cannot load the jdwp agent.
10-07 14:42:02.469 10405 10405 I id.GoogleCamer: The ClassLoaderContext is a special shared library.
10-07 14:42:02.470 10405 10405 D nativeloader: classloader namespace configured for unbundled vendor apk. library_path=/data/app/~~gvlUQxdNGgx3EPXeRZgdJA==/com.google.android.GoogleCamera-_SUWbO4PLgFR_eiFLXQChQ==/lib/arm64:/data/app/~~gvlUQxdNGgx3EPXeRZgdJA==/com.google.android.GoogleCamera-_SUWbO4PLgFR_eiFLXQChQ==/base.apk!/lib/arm64-v8a:/vendor/lib64
10-07 14:42:02.481 10405 10405 D NetworkSecurityConfig: No Network Security Config specified, using platform default
10-07 14:42:02.481 10405 10405 D NetworkSecurityConfig: No Network Security Config specified, using platform default
10-07 14:42:02.490 10405 10405 W CAM_SearchIndexProv: Called onCreate
10-07 14:42:02.497 10405 10405 D AndroidRuntime: Shutting down VM
10-07 14:42:02.497 10405 10405 E AndroidRuntime: FATAL EXCEPTION: main
10-07 14:42:02.497 10405 10405 E AndroidRuntime: Process: com.google.android.GoogleCamera, PID: 10405
10-07 14:42:02.497 10405 10405 E AndroidRuntime: java.lang.RuntimeException: Unable to create application com.google.android.apps.camera.legacy.app.app.CameraApp: java.lang.SecurityException: Failed to find provider com.google.android.gsf.gservices for user 0; expected to find a valid ContentProvider for this authority
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6717)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.app.ActivityThread.access$1300(ActivityThread.java:237)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7656)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: Caused by: java.lang.SecurityException: Failed to find provider com.google.android.gsf.gservices for user 0; expected to find a valid ContentProvider for this authority
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:2373)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2357)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2340)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2282)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.content.IContentService$Stub$Proxy.registerContentObserver(IContentService.java:1229)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.content.ContentResolver.registerContentObserver(ContentResolver.java:2627)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.content.ContentResolver.registerContentObserver(ContentResolver.java:2615)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at lpr.b(PG:14)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at lpr.a(PG:69)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at lpr.a(PG:33)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at com.google.android.apps.camera.legacy.app.app.CameraApp.onCreate(PG:115)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6712)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: ... 8 more
10-07 14:42:02.497 10405 10405 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at com.android.server.content.ContentService.registerContentObserver(ContentService.java:355)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.content.IContentService$Stub.onTransact(IContentService.java:482)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.os.Binder.execTransactInternal(Binder.java:1154)
10-07 14:42:02.497 10405 10405 E AndroidRuntime: at android.os.Binder.execTransact(Binder.java:1123)
10-07 14:42:02.497 10405 10405 E AndroidRuntime:
10-07 14:42:02.499 1637 10427 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
10-07 14:42:02.499 1637 2395 W ActivityTaskManager: Force finishing activity com.google.android.GoogleCamera/com.android.camera.CameraLauncher
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: onActivityLaunchCancelled during UNKNOWN.
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: java.lang.Throwable: EventSequenceValidator#getStackTrace
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at com.google.android.startop.iorap.EventSequenceValidator.logWarningWithStackTrace(EventSequenceValidator.java:260)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at com.google.android.startop.iorap.EventSequenceValidator.onActivityLaunchCancelled(EventSequenceValidator.java:166)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at com.android.server.wm.LaunchObserverRegistryImpl.handleOnActivityLaunchCancelled(LaunchObserverRegistryImpl.java:166)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at com.android.server.wm.LaunchObserverRegistryImpl.lambda$lAGPwfsXJvBWsyG2rbEfo3sTv34(Unknown Source:0)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at com.android.server.wm.-$$Lambda$LaunchObserverRegistryImpl$lAGPwfsXJvBWsyG2rbEfo3sTv34.accept(Unknown Source:4)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:278)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:201)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at android.os.Handler.handleCallback(Handler.java:938)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at android.os.Handler.dispatchMessage(Handler.java:99)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at android.os.Looper.loop(Looper.java:223)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at android.os.HandlerThread.run(HandlerThread.java:67)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: at com.android.server.ServiceThread.run(ServiceThread.java:44)
10-07 14:42:02.519 1637 1854 D EventSequenceValidator: dec AccIntentStartedEvents to 1
10-07 14:42:02.622 3246 3246 W Choreographer: Frame time is 0.002495 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.656 3246 3246 W Choreographer: Frame time is 0.007022 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.689 3246 3246 W Choreographer: Frame time is 0.016748 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.722 3246 3246 W Choreographer: Frame time is 0.037457 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.722 5057 5057 W Choreographer: Frame time is 0.024332 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.789 3246 3246 W Choreographer: Frame time is 0.011106 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.836 15260 15305 I Heartbeat: Sending Heartbeat
10-07 14:42:02.853 15260 15305 I Heartbeat: Received Heartbeat with 16ms latency
10-07 14:42:02.905 3246 3246 W Choreographer: Frame time is 0.011732 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-07 14:42:02.956 623 623 E Layer : [Surface(name=Task=1635)/@0x72ffb49 - animation-leash#0] No local sync point found
10-07 14:42:02.956 623 623 E Layer : [Surface(name=Task=1)/@0xcda94d - animation-leash#0] No local sync point found
10-07 14:42:03.000 1637 1854 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{1241f23 u0 com.google.android.GoogleCamera/com.android.camera.CameraLauncher t1635 f}}
10-07 14:42:03.014 1637 1854 W ActivityTaskManager: Activity pause timeout for ActivityRecord{1241f23 u0 com.google.android.GoogleCamera/com.android.camera.CameraLauncher t1635 f}}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 18 (8 by maintainers)
For me something along these lines worked:
Compiling the app yourself is not necessary (but recommended anyways).
I mean, you could probably do it from the handset in a root shell in Terminal or Termux, as long as you’ve copied the apk to internal storage somewhere (for example, /sdcard/Download), then just
pm install --force-queryable /sdcard/Download/app-debug.apk
and be good to go. I know this is necroposting, but it’s still something folks are dealing with, and your release still works; just had a user do this to get Arnova82’s latest GCam 8.1 port working successfully without any GApps/microG installed on crDroid 7.5 (android 11) on a OnePlus 6T.@ProjectMoon Thanks for bringing this to my attention. I pushed a fix and created a new release.
your comment made me realize i should connect my phone to the pc and install apk using android studio, not sideloading it like i was until now. Thank you very much, now it works perfectly like it was before.
For all of you building the app from source, if you set
--force-queryable
as install flag in Android Studio, it will work again with version 7.5.Edit: Has anyone who is running into this issue has tried re-installing the services-provider?
I ran into this as well, and for the fun of it I installed microG services core as a user app on a ROM with no signature spoofing. All microG permissions and Google integrations are disabled. With microG installed, Google Camera 7.5 runs just fine. So there must be some new APIs that require implementation in this project.