[X 2014 Original Android Development] bluscript:
Android Auto / Incompatible Device Error

I've continued researching the issue of Android Auto not working under CM13.

I've extracted logcats from the launch sequences of Android Auto under the following roms:

cm-13.0-20160422

Nexus Experience ROM 10.2

cm-12.1-20151117-SNAPSHOT

stock RETES 6.0 MPE24.49-24

All installs were clean and pristine with full wipes before and after. OpenGAPPs nano distributions were used on all but the stock rom (20160417 for CM13-based roms, 20160423 for CM12.1). Android Auto was installed as APK via ADB. In each case, Android Auto was only launched after an additional full reboot. This is the result:

cm-13.0: failed with IncompatibleDeviceActivity

NXROM 10.2: failed with IncompatibleDeviceActivity

cm-12.1: succeeded with CompanionTutorialActivity

stock: succeeded with CompanionTutorialActivity

I've studied the logcats but am not well-versed enough to pinpoint the exact problem. I would appreciate it if someone with more experience could take a look at them and let me know if something sticks out. If need be, I can deliver more data and perform more tests – just let me know! Thank you!

Logcat from cm13:

04-23 00:54:48.601 814 1599 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.projection.gearhead/.companion.SplashScreenActivity (has extras)} from uid 10023 on display 0
04-23 00:54:48.602 814 1116 E QCOM PowerHAL: Failed to acquire lock.
04-23 00:54:48.610 814 1116 E QCOM PowerHAL: Failed to acquire lock.
04-23 00:54:48.618 309 989 D audio_hw_primary: out_set_parameters: enter: usecase(0: deep-buffer-playback) kvpairs: routing=2
04-23 00:54:48.618 309 989 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-23 00:54:48.648 814 844 W BroadcastQueue: Permission Denial: broadcasting Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } from com.cyanogenmod.trebuchet (pid=1591, uid=10023) requires com.google.android.launcher.permission.RECEIVE_LAUNCH_BROADCASTS due to receiver com.google.android.gms/.icing.proxy.ApplicationLauncherReceiver
04-23 00:54:48.648 814 844 W BroadcastQueue: Permission Denial: broadcasting Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } from com.cyanogenmod.trebuchet (pid=1591, uid=10023) requires com.google.android.launcher.permission.RECEIVE_LAUNCH_BROADCASTS due to receiver com.google.android.googlequicksearchbox/com.google.android.apps.gsa.search.core.icingsync.ApplicationLaunchReceiver
04-23 00:54:48.684 814 1116 E QCOM PowerHAL: Failed to acquire lock.
04-23 00:54:48.698 309 989 D AudioFlinger: mixer(0xb2140000) throttle end: throttle time(41)
04-23 00:54:48.704 814 1848 I ActivityManager: Start proc 3060:com.google.android.projection.gearhead/u0a75 for activity com.google.android.projection.gearhead/.companion.SplashScreenActivity
04-23 00:54:48.805 3060 3060 I MultiDex: VM with version 2.1.0 has multidex support
04-23 00:54:48.806 3060 3060 I MultiDex: install
04-23 00:54:48.806 3060 3060 I MultiDex: VM has multidex support, MultiDex support library is disabled.
04-23 00:54:48.839 3060 3060 W Primes : No crash configurations were set, crash monitoring will turned off by default
04-23 00:54:48.839 3060 3060 W Primes : No network configurations were set, network monitoring will turned off by default
04-23 00:54:48.839 3060 3060 I Primes : Primes instance has been initialized.
04-23 00:54:48.895 3060 3060 D GH.CallAdapter: Creating a new CallAdapter.
04-23 00:54:48.914 814 1262 I ActivityManager: Start proc 3089:com.google.android.gms:car/u0a14 for service com.google.android.gms/.car.CarService
04-23 00:54:48.921 3060 3060 W GH.CallAdapter: There are only 1 in call services on the system partition. This means that the stock dialer is probably not using telecom. Using compat mode.
04-23 00:54:48.922 3060 3060 I GH.CallAdapter: Saving telecom compat prefs to SharedPreferences: true
04-23 00:54:48.925 3060 3060 I GH.CONFIG: groups:
04-23 00:54:48.928 3060 3060 I GH.CONFIG: everyone
04-23 00:54:48.950 3060 3060 V CAR.GH : onCreate completed
04-23 00:54:48.971 3089 3089 W System : ClassLoader referenced unknown path: /system/priv-app/PrebuiltGmsCore/lib/arm
04-23 00:54:48.983 3089 3089 I MultiDex: VM with version 2.1.0 has multidex support
04-23 00:54:48.983 3089 3089 I MultiDex: install
04-23 00:54:48.983 3089 3089 I MultiDex: VM has multidex support, MultiDex support library is disabled.
04-23 00:54:48.987 3060 3107 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
04-23 00:54:49.008 3060 3107 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.3_RB1__release_AU (I3193f6e94a)
04-23 00:54:49.008 3060 3107 I Adreno-EGL: OpenGL ES Shader Compiler Version: E031.28.00.02
04-23 00:54:49.008 3060 3107 I Adreno-EGL: Build Date: 10/09/15 Fri
04-23 00:54:49.008 3060 3107 I Adreno-EGL: Local Branch: mybranch15039904
04-23 00:54:49.008 3060 3107 I Adreno-EGL: Remote Branch: quic/LA.BF.1.1.3_rb1.2
04-23 00:54:49.008 3060 3107 I Adreno-EGL: Local Patches: NONE
04-23 00:54:49.008 3060 3107 I Adreno-EGL: Reconstruct Branch: NOTHING
04-23 00:54:49.010 3060 3107 I OpenGLRenderer: Initialized EGL, version 1.4
04-23 00:54:49.057 3089 3089 V JNIHelp : Registering com/google/android/gms/org/conscrypt/NativeCrypto's 254 native methods...
04-23 00:54:49.085 814 855 I ActivityManager: Displayed com.google.android.projection.gearhead/.companion.SplashScreenActivity: +401ms
04-23 00:54:49.104 3089 3089 I ProviderInstaller: Installed default security provider GmsCore_OpenSSL
04-23 00:54:49.136 2147 2147 D WearableService: callingUid 10014, callindPid: 2147
04-23 00:54:49.139 2161 3115 D LocationInitializer: Restart initialization of location
04-23 00:54:49.143 3089 3089 D ChimeraCfgMgr: Reading stored module config
04-23 00:54:49.150 2147 2147 D AuthorizationBluetoothService: Received GmsCore event: Intent { act=com.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.google.android.gms/.auth.be.proximity.authorization.bt.AuthorizationBluetoothService$AutoStarter }.
04-23 00:54:49.150 2147 3114 E MDM : [224] b.run: Couldn't connect to Google API client: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
04-23 00:54:49.162 3089 3113 D NativeLibraryUtils: Install completed successfully. count=14 extracted=0
04-23 00:54:49.162 2147 2147 V GLSActivity: AuthDelegateWrapperCreated with selected intent: Intent { cmp=com.google.android.gms/.auth.DefaultAuthDelegateService }
04-23 00:54:49.164 2147 2147 V GLSActivity: AuthDelegateWrapperCreated with selected intent: Intent { cmp=com.google.android.gms/.auth.DefaultAuthDelegateService }
04-23 00:54:49.269 3089 3089 D CAR.SERVICE: Connecting to CarCallService...
04-23 00:54:49.359 814 1288 W ActivityManager: Unable to start service Intent { act=local_bind cmp=com.google.android.gms/.car.InCallServiceImpl } U=0: not found
04-23 00:54:49.359 814 833 W ActivityManager: Unable to start service Intent { act=local_bind cmp=com.google.android.gms/.car.InCallServiceImpl } U=0: not found
04-23 00:54:49.367 3089 3102 D CAR.SERVICE: Package validated; name: com.google.android.projection.gearhead
04-23 00:54:49.367 3089 3104 D CAR.SERVICE: Package validated; name: com.google.android.projection.gearhead
04-23 00:54:49.421 3060 3132 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
04-23 00:54:49.431 3060 3132 W VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
04-23 00:54:49.449 3060 3132 W VideoCapabilities: Unsupported mime video/mp4v-esdp
04-23 00:54:49.462 3060 3132 I VideoCapabilities: Unsupported profile 4 for video/mp4v-es
04-23 00:54:49.466 3060 3132 W AudioCapabilities: Unsupported mime audio/x-ape
04-23 00:54:49.467 3060 3132 W AudioCapabilities: Unsupported mime audio/ffmpeg
04-23 00:54:49.468 3060 3132 W AudioCapabilities: Unsupported mime audio/dts
04-23 00:54:49.469 3060 3132 W AudioCapabilities: Unsupported mime audio/mpeg-L2
04-23 00:54:49.470 3060 3132 W AudioCapabilities: Unsupported mime audio/vnd.rn-realaudio
04-23 00:54:49.471 3060 3132 W AudioCapabilities: Unsupported mime audio/x-ms-wma
04-23 00:54:49.472 3060 3132 W VideoCapabilities: Unsupported mime video/divx
04-23 00:54:49.474 3060 3132 W VideoCapabilities: Unsupported mime video/x-flv
04-23 00:54:49.478 3060 3132 W VideoCapabilities: Unsupported mime video/vnd.rn-realvideo
04-23 00:54:49.479 3060 3132 W VideoCapabilities: Unsupported mime video/vc1
04-23 00:54:49.480 3060 3132 W VideoCapabilities: Unsupported mime video/ffmpeg
04-23 00:54:49.482 3060 3132 W VideoCapabilities: Unsupported mime video/x-ms-wmv
04-23 00:54:49.483 3060 3132 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
04-23 00:54:49.490 3060 3138 I OMXClient: Using client-side OMX mux.
04-23 00:54:49.803 309 309 W OMXNodeInstance: [32:qcom.encoder.avc] component does not support metadata mode; using fallback
04-23 00:54:49.803 3060 3138 E ACodec : [OMX.qcom.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -1010
04-23 00:54:49.803 3060 3138 W ACodec : do not know color format 0x7fa30c04 = 2141391876
04-23 00:54:49.804 3060 3138 W ACodec : do not know color format 0x7f000789 = 2130708361
04-23 00:54:49.810 3060 3138 I FFMPEGSoftCodec: Decoder will be in frame by frame mode
04-23 00:54:49.814 3060 3138 I ACodec : setupVideoEncoder succeeded
04-23 00:54:49.816 3060 3138 W ACodec : do not know color format 0x7f000789 = 2130708361
04-23 00:54:49.820 309 309 E OMXNodeInstance: getParameter(32:qcom.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
04-23 00:54:49.823 309 3149 E OMXNodeInstance: allocateBufferWithBackup(32:qcom.encoder.avc, Input:0 8@0xad637000) ERROR: BadParameter(0x80001005)
04-23 00:54:49.824 3060 3138 E ACodec : Failed to allocate buffers after transitioning to IDLE state (error 0x80000000)
04-23 00:54:49.824 3060 3138 E ACodec : signalError(omxError 0x80001001, internalError -2147483648)
04-23 00:54:49.824 3060 3137 E MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 5
04-23 00:54:49.825 3060 3136 W CAR.MEDIA: media encoder error
04-23 00:54:49.825 3060 3136 W CAR.MEDIA: android.media.MediaCodec$CodecException: start failed
04-23 00:54:49.825 3060 3136 W CAR.MEDIA:	at android.media.MediaCodec.native_start(Native Method)
04-23 00:54:49.825 3060 3136 W CAR.MEDIA:	at android.media.MediaCodec.start(MediaCodec.java:1885)
04-23 00:54:49.825 3060 3136 W CAR.MEDIA:	at com.google.android.projection.gearhead.companion.a.d.a(Unknown Source)
04-23 00:54:49.825 3060 3136 W CAR.MEDIA:	at com.google.android.projection.gearhead.companion.a.f.run(Unknown Source)
04-23 00:54:49.825 3060 3136 W CAR.MEDIA:	at java.lang.Thread.run(Thread.java:818)
04-23 00:54:50.165 814 844 I ActivityManager: Waited long enough for: ServiceRecord{fb5bb71 u0 com.android.calendar/.alerts.InitAlarmsService}
04-23 00:54:50.299 814 844 I ActivityManager: Waited long enough for: ServiceRecord{5c108e2 u0 com.android.email/.service.LegacyImapSyncAdapterService}
04-23 00:54:51.698 309 989 D audio_hw_primary: out_standby: enter: stream (0xb5ff6fc0) usecase(0: deep-buffer-playback)
04-23 00:54:51.744 814 1605 I ActivityManager: Killing 1613:com.android.printspooler/u0a61 (adj 15): empty #17
04-23 00:54:51.764 814 1605 I ActivityManager: Killing 2429:com.android.keychain/1000 (adj 15): empty #18
04-23 00:54:51.783 814 1605 I ActivityManager: Killing 2297:com.android.cellbroadcastreceiver/u0a6 (adj 15): empty #19
04-23 00:54:51.916 309 989 D hardware_info: hw_info_append_hw_type : device_name = speaker
04-23 00:54:52.852 3060 3132 W CAR.SERVICE: Not supported: no codec config
04-23 00:54:52.853 3060 3132 W CAR.SERVICE: device encoder failed in long iframe interval, trying short one
04-23 00:54:52.853 3060 3132 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
04-23 00:54:52.880 3060 3157 I OMXClient: Using client-side OMX mux.
04-23 00:54:52.894 309 1312 W OMXNodeInstance: [33:qcom.encoder.avc] component does not support metadata mode; using fallback
04-23 00:54:52.894 3060 3157 E ACodec : [OMX.qcom.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -1010
04-23 00:54:52.895 3060 3157 W ACodec : do not know color format 0x7fa30c04 = 2141391876
04-23 00:54:52.895 3060 3157 W ACodec : do not know color format 0x7f000789 = 2130708361
04-23 00:54:52.901 3060 3157 I FFMPEGSoftCodec: Decoder will be in frame by frame mode
04-23 00:54:52.906 3060 3157 I ACodec : setupVideoEncoder succeeded
04-23 00:54:52.908 3060 3157 W ACodec : do not know color format 0x7f000789 = 2130708361
04-23 00:54:52.912 309 3149 E OMXNodeInstance: getParameter(33:qcom.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
04-23 00:54:52.916 309 1310 E OMXNodeInstance: allocateBufferWithBackup(33:qcom.encoder.avc, Input:0 8@0xad039000) ERROR: BadParameter(0x80001005)
04-23 00:54:52.916 3060 3157 E ACodec : Failed to allocate buffers after transitioning to IDLE state (error 0x80000000)
04-23 00:54:52.916 3060 3157 E ACodec : signalError(omxError 0x80001001, internalError -2147483648)
04-23 00:54:52.917 3060 3156 E MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 5
04-23 00:54:52.918 3060 3155 W CAR.MEDIA: media encoder error
04-23 00:54:52.918 3060 3155 W CAR.MEDIA: android.media.MediaCodec$CodecException: start failed
04-23 00:54:52.918 3060 3155 W CAR.MEDIA:	at android.media.MediaCodec.native_start(Native Method)
04-23 00:54:52.918 3060 3155 W CAR.MEDIA:	at android.media.MediaCodec.start(MediaCodec.java:1885)
04-23 00:54:52.918 3060 3155 W CAR.MEDIA:	at com.google.android.projection.gearhead.companion.a.d.a(Unknown Source)
04-23 00:54:52.918 3060 3155 W CAR.MEDIA:	at com.google.android.projection.gearhead.companion.a.f.run(Unknown Source)
04-23 00:54:52.918 3060 3155 W CAR.MEDIA:	at java.lang.Thread.run(Thread.java:818)
04-23 00:54:53.200 317 406 I ThermalEngine: Sensor:chg_therm:34000 mC
04-23 00:54:54.199 814 832 I ActivityManager: Killing 2548:com.android.managedprovisioning/u0a13 (adj 15): empty #17
04-23 00:54:54.535 2161 2608 I CheckinService: Done disabling old GoogleServicesFramework version
04-23 00:54:55.633 814 2643 D NetlinkSocketObserver: NeighborEvent{elapsedMs=47425, 10.4.2.11, [00155D020300], RTM_NEWNEIGH, NUD_STALE}
04-23 00:54:55.947 3060 3132 W CAR.SERVICE: Not supported: no codec config
04-23 00:54:55.947 3060 3132 I CAR.SERVICE: check device capability result false iframe interval -1
04-23 00:54:55.986 814 1288 I ActivityManager: START u0 {cmp=com.google.android.projection.gearhead/.companion.IncompatibleDeviceActivity} from uid 10075 on display 0
04-23 00:54:55.987 814 1116 E QCOM PowerHAL: Failed to acquire lock.
04-23 00:54:56.010 814 2168 I ActivityManager: Killing 1279:com.android.settings/1000 (adj 15): empty #17
04-23 00:54:56.026 814 1086 D WifiService: Client connection lost with reason: 4
04-23 00:54:56.191 814 855 I ActivityManager: Displayed com.google.android.projection.gearhead/.companion.IncompatibleDeviceActivity: +150ms

The other logcats are attached below.