GrapheneOS / os-issue-tracker

Issue tracker for GrapheneOS Android Open Source Project hardening work. Standalone projects like Auditor, AttestationServer and hardened_malloc have their own dedicated trackers.
https://grapheneos.org/
351 stars 19 forks source link

System Crash - Related to Google Services #3668

Open pylon690 opened 3 months ago

pylon690 commented 3 months ago

I recently loaded GOS on a new Google Pixel 6a, and now I've been getting system crashes continuously, like every couple of minutes. It's quite frustrating because it often happens when making phone calls. Sometimes the screen just turns black, sometimes the phone reboots (with the GOS logo showing up on the screen). I previously had GOS on another device (also a pixel 6a) and this was not an issue. I really don't know what to do, because my phone is rendering essentially useless if I can't rely on it to stay on for multiple minutes at a time.

Some probably wrong intuitions about what might have caused this behaviour:

I would appreciate any help.

Here is the log:

type: crash
osVersion: google/bluejay/bluejay:14/AP2A.240605.024/[2024062000](tel:2024062000):user/release-keys
uid: 1000 (u:r:system_server:s0)
cmdline: system_server
processUptime: 207s

signal: 4 (SIGILL), code 1 (ILL_ILLOPC), faultAddr cecb0b06d48c
threadName: binder:5472_1A

backtrace:
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (art::InternTable::Insert(art::ObjPtr<art::mirror::String>, unsigned int, bool, unsigned long)+3276, pc 39048c)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (art::String_intern(_JNIEnv*, _jobject*) (.__uniq.211321754789976184382062795672362477106)+48, pc 38f670)
    /system/framework/arm64/boot.oat (art_jni_trampoline+88, pc 941a8)
    /system/framework/arm64/boot.oat (java.lang.Class.getPackageName+280, pc 1caae8)
    /system/framework/arm64/boot-framework.oat (com.android.internal.util.AnnotationValidations.validate+64, pc 7c71f0)
    /system/framework/arm64/boot-framework.oat (android.app.AsyncNotedAppOp.<init>+216, pc 2f3ae8)
    /system/framework/oat/arm64/services.odex (com.android.server.appop.AppOpsService.collectAsyncNotedOp+380, pc 34d0ec)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (nterp_helper+5848, pc 6c2318)
    /system/framework/services.jar (com.android.server.appop.AppOpsService.noteOperationUnchecked+1198, pc 389892)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (nterp_helper+5720, pc 6c2298)
    /system/framework/services.jar (com.android.server.appop.AppOpsService.noteOperationImpl+280, pc 3893c8)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (nterp_helper+5720, pc 6c2298)
    /system/framework/services.jar (com.android.server.appop.AppOpsService.-$$Nest$mnoteOperationImpl+0, pc 3891d8)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (nterp_helper+2020, pc 6c1424)
    /system/framework/services.jar (com.android.server.appop.AppOpsService$CheckOpsDelegateDispatcher.$r8$lambda$9t8iLhni7XlJaYUbHyUsLY8CxCM+0, pc 38753c)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (nterp_helper+2020, pc 6c1424)
    /system/framework/services.jar (com.android.server.appop.AppOpsService$CheckOpsDelegateDispatcher$$ExternalSyntheticLambda1.apply+76, pc 387028)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (nterp_helper+9364, pc 6c30d4)
    /system/framework/services.jar (com.android.server.policy.AppOpsPolicy.noteOperation+68, pc 393f20)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (nterp_helper+11140, pc 6c37c4)
    /system/framework/services.jar (com.android.server.appop.AppOpsService$CheckOpsDelegateDispatcher.noteOperation+100, pc 3876e4)
    /system/framework/oat/arm64/services.odex (com.android.server.appop.AppOpsService.noteOperation+92, pc 7e63cc)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (nterp_helper+11140, pc 6c37c4)
    /system/framework/framework.jar (android.app.AppOpsManager.noteOpNoThrow+208, pc 1e4ff8)
    /system/framework/arm64/boot-framework.oat (android.app.AppOpsManager.noteOpNoThrow+64, pc 216020)
    /system/framework/oat/arm64/services.odex (com.android.server.am.BroadcastSkipPolicy.shouldSkipMessage+4192, pc 7acb70)
    /system/framework/oat/arm64/services.odex (com.android.server.am.BroadcastQueueModernImpl.enqueueBroadcastLocked+1156, pc 87e434)
    /system/framework/oat/arm64/services.odex (com.android.server.am.ActivityManagerService.broadcastIntentLockedTraced+21076, pc 865414)
    /system/framework/oat/arm64/services.odex (com.android.server.am.ActivityManagerService.broadcastIntentLocked+312, pc 860168)
    /system/framework/oat/arm64/services.odex (com.android.server.am.ActivityManagerService.broadcastIntentWithFeature+556, pc 8660ac)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (nterp_helper+11140, pc 6c37c4)
    /system/framework/framework.jar (android.app.ContextImpl.sendBroadcastMultiplePermissions+128, pc 1ffe64)
    /system/framework/oat/arm64/services.odex (com.android.server.TelephonyRegistry.broadcastServiceStateChanged+2024, pc 2d5a68)
/system/framework/oat/arm64/services.odex (com.android.server.TelephonyRegistry.notifyServiceStateForPhoneId+2224, pc 2de7f0)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (nterp_helper+4016, pc 6c1bf0)
    /system/framework/framework.jar (com.android.internal.telephony.ITelephonyRegistry$Stub.onTransact+2328, pc 14e3b0)
    /system/framework/arm64/boot-framework.oat (android.os.Binder.execTransactInternal+720, pc 5929b0)
    /system/framework/arm64/boot-framework.oat (android.os.Binder.execTransact+552, pc 592538)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (art_quick_invoke_stub+612, pc 3a4374)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+812, pc 3a2c8c)
    /apex/[com.android.art/lib64/libart.so](https://com.android.art/lib64/libart.so) (art::JNI<false>::CallBooleanMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+188, pc 674a8c)
    /system/lib64/libandroid_runtime.so (_JNIEnv::CallBooleanMethod(_jobject*, _jmethodID*, ...)+120, pc e4fb8)
    /system/lib64/libandroid_runtime.so (JavaBBinder::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+160, pc 19dea0)
    /system/lib64/[libbinder.so](https://libbinder.so/) (android::IPCThreadState::executeCommand(int)+1324, pc 51a4c)
    /system/lib64/[libbinder.so](https://libbinder.so/) (android::IPCThreadState::joinThreadPool(bool)+684, pc 509cc)
    /system/lib64/[libbinder.so](https://libbinder.so/) (android::PoolThread::threadLoop()+24, pc 50708)
    /system/lib64/[libutils.so](https://libutils.so/) (android::Thread::_threadLoop(void*)+244, pc 115d4)
    /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140, pc ed45c)
    /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204, pc 7679c)
    /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64, pc 67d50)
pylon690 commented 3 months ago

Quick update on my end: the problem seems to have been solved by uninstalling and then reinstalling google play services. I don't quite know why. Maybe because google play was attempting to reinstall apps that it remembered from my old phone, but I had already deleted them on my new phone. I'm not sure. Also the errors that I kept on getting (see above) didn't give me any indication that the problem was related to google services. I just arrived at this solution with pure trial and error.