Installation of VoLTE APK on GSIs fails

I am using the official /e/ GSI from 4/26 on a Mediatek phone, which works great except for VoLTE. When I try to install the IMS APK (either manually or through the PHH Treble Settings screen), it fails with this error in the Android debug log. I think the main issue is the “reconcile failed” step: “Reconcile failed: Package com.mediatek.ims has no signatures that match those in shared user android.uid.phone; ignoring!”

05-19 14:02:18.709 14660 16390 D DownloadManager: [9] Finished with status SUCCESS
05-19 14:02:18.733 14660 14673 W d.process.medi: Reducing the number of considered missed Gc histogram windows from 385 to 100
05-19 14:02:18.733 3041 3041 D PHH : Received download completed with intent Intent { act=android.intent.action.DOWNLOAD_COMPLETE flg=0x10 pkg=me.phh.treble.app (has extras) } null
05-19 14:02:18.753 3041 3041 D PHH : Got localURI = file:///storage/emulated/0/Android/data/me.phh.treble.app/files/Download/ims-3.apk
05-19 14:02:18.817 2311 2311 D NotificationRepository: updateNotification() called with: list = [3]
05-19 14:02:18.821 2311 2311 D NotificationRepository: updateNotification() called with: list = [3]
05-19 14:02:18.831 3041 3041 D PHH : Setting property persist.vendor.vilte_support to 0
05-19 14:02:18.835 3041 3041 W libc : Unable to set property “persist.vendor.vilte_support” to “0”: error code: 0x18
05-19 14:02:18.837 3041 3041 D PHH : Failed setting prop persist.vendor.vilte_support
05-19 14:02:18.837 3041 3041 D PHH : java.lang.RuntimeException: failed to set system property
05-19 14:02:18.837 3041 3041 D PHH : at android.os.SystemProperties.native_set(Native Method)
05-19 14:02:18.837 3041 3041 D PHH : at android.os.SystemProperties.set(SystemProperties.java:196)
05-19 14:02:18.837 3041 3041 D PHH : at me.phh.treble.app.Misc.safeSetprop(Misc.kt:20)
05-19 14:02:18.837 3041 3041 D PHH : at me.phh.treble.app.ImsSettingsFragment$onCreatePreferences$2$1.onReceive(ImsSettings.kt:135)
05-19 14:02:18.837 3041 3041 D PHH : at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1555)
05-19 14:02:18.837 3041 3041 D PHH : at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(Unknown Source:2)
05-19 14:02:18.837 3041 3041 D PHH : at android.os.Handler.handleCallback(Handler.java:883)
05-19 14:02:18.837 3041 3041 D PHH : at android.os.Handler.dispatchMessage(Handler.java:100)
05-19 14:02:18.837 3041 3041 D PHH : at android.os.Looper.loop(Looper.java:214)
05-19 14:02:18.837 3041 3041 D PHH : at android.app.ActivityThread.main(ActivityThread.java:7356)
05-19 14:02:18.837 3041 3041 D PHH : at java.lang.reflect.Method.invoke(Native Method)
05-19 14:02:18.837 3041 3041 D PHH : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-19 14:02:18.837 3041 3041 D PHH : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
05-19 14:02:18.856 2311 2311 D NotificationRepository: updateNotification() called with: list = [4]
05-19 14:02:18.863 2311 2311 I chatty : uid=10075(u0_a75) foundation.e.blisslauncher identical 1 line
05-19 14:02:18.870 2311 2311 D NotificationRepository: updateNotification() called with: list = [4]
05-19 14:02:18.871 737 737 I hwcomposer: [HWCDisplay] [Display_0 (type:1)] fps:6.480825,dur:2160.22,max:1927.85,min:14.93
05-19 14:02:19.062 1321 1365 E PackageManager: Adding duplicate shared id: 1001 name=com.mediatek.ims
05-19 14:02:19.065 1321 1365 W PackageManager: Reconciliation failed…
05-19 14:02:19.065 1321 1365 W PackageManager: com.android.server.pm.PackageManagerService$ReconcileFailure: Reconcile failed: Package com.mediatek.ims has no signatures that match those in shared user android.uid.phone; ignoring!
05-19 14:02:19.065 1321 1365 W PackageManager: at com.android.server.pm.PackageManagerService.reconcilePackagesLocked(PackageManagerService.java:16768)
05-19 14:02:19.065 1321 1365 W PackageManager: at com.android.server.pm.PackageManagerService.installPackagesLI(PackageManagerService.java:17215)
05-19 14:02:19.065 1321 1365 W PackageManager: at com.android.server.pm.PackageManagerService.installPackagesTracedLI(PackageManagerService.java:16504)
05-19 14:02:19.065 1321 1365 W PackageManager: at com.android.server.pm.PackageManagerService.lambda$processInstallRequestsAsync$14$PackageManagerService(PackageManagerService.java:14785)
05-19 14:02:19.065 1321 1365 W PackageManager: at com.android.server.pm.-$$Lambda$PackageManagerService$6_Yp7BSB4TgtrWSoFlODKgHIvZY.run(Unknown Source:6)
05-19 14:02:19.065 1321 1365 W PackageManager: at android.os.Handler.handleCallback(Handler.java:883)
05-19 14:02:19.065 1321 1365 W PackageManager: at android.os.Handler.dispatchMessage(Handler.java:100)
05-19 14:02:19.065 1321 1365 W PackageManager: at android.os.Looper.loop(Looper.java:214)
05-19 14:02:19.065 1321 1365 W PackageManager: at android.os.HandlerThread.run(HandlerThread.java:67)
05-19 14:02:19.065 1321 1365 W PackageManager: at com.android.server.ServiceThread.run(ServiceThread.java:44)
05-19 14:02:19.067 888 1408 E : Couldn’t opendir /data/app/vmdl1480143341.tmp: No such file or directory
05-19 14:02:19.067 888 1408 E installd: Failed to delete /data/app/vmdl1480143341.tmp: No such file or directory
05-19 14:02:19.070 1321 1399 E ActivityManager: Sending non-protected broadcast me.phh.treble.app.ImsInstalled from system uid 1000 pkg me.phh.treble.app
05-19 14:02:19.070 1321 1399 E ActivityManager: java.lang.Throwable
05-19 14:02:19.070 1321 1399 E ActivityManager: at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:14797)
05-19 14:02:19.070 1321 1399 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:15345)
05-19 14:02:19.070 1321 1399 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentInPackage(ActivityManagerService.java:15604)
05-19 14:02:19.070 1321 1399 E ActivityManager: at com.android.server.am.ActivityManagerService$LocalService.broadcastIntentInPackage(ActivityManagerService.java:18236)
05-19 14:02:19.070 1321 1399 E ActivityManager: at com.android.server.am.PendingIntentRecord.sendInner(PendingIntentRecord.java:432)
05-19 14:02:19.070 1321 1399 E ActivityManager: at com.android.server.am.PendingIntentRecord.sendWithResult(PendingIntentRecord.java:276)
05-19 14:02:19.070 1321 1399 E ActivityManager: at com.android.server.am.ActivityManagerService.sendIntentSender(ActivityManagerService.java:5424)
05-19 14:02:19.070 1321 1399 E ActivityManager: at android.content.IntentSender.sendIntent(IntentSender.java:193)
05-19 14:02:19.070 1321 1399 E ActivityManager: at android.content.IntentSender.sendIntent(IntentSender.java:157)
05-19 14:02:19.070 1321 1399 E ActivityManager: at com.android.server.pm.PackageInstallerService$PackageInstallObserverAdapter.onPackageInstalled(PackageInstallerService.java:1069)
05-19 14:02:19.070 1321 1399 E ActivityManager: at android.app.PackageInstallObserver$1.onPackageInstalled(PackageInstallObserver.java:35)
05-19 14:02:19.070 1321 1399 E ActivityManager: at com.android.server.pm.PackageInstallerSession$3.handleMessage(PackageInstallerSession.java:349)
05-19 14:02:19.070 1321 1399 E ActivityManager: at android.os.Handler.dispatchMessage(Handler.java:103)
05-19 14:02:19.070 1321 1399 E ActivityManager: at android.os.Looper.loop(Looper.java:214)
05-19 14:02:19.070 1321 1399 E ActivityManager: at android.os.HandlerThread.run(HandlerThread.java:67)
05-19 14:02:19.072 1321 1399 I DropBoxManagerService: add tag=system_server_wtf isTagEnabled=true flags=0x2

This is way deeper down the Android rabbit hole than I am familiar with, so I’m not sure how to proceed. Many some code signing issue in the /e/ GSI? Anyone have a clue how to proceed?

Will ask the developer to have a look at this log. May be we have some users in the community who can also help.

I checked with the developer who worked on the official /e/ GSI. He mentioned that we do have plans to add VoLTE to the GSI.
This development has to be planned and we will assign a timeline for it. Once we have an ETA for it I will share it on this forum.
An issue has been created for this to ease tracking.

Thanks! For what it’s worth, I can confirm that VoLTE works perfectly on the same phone with the upstream PHH Treble GSI from https://github.com/phhusson/treble_experimentations once I install the IMS APK at https://treble.phh.me/stable/ims-mtk-q.apk. Trying to install the same APK on the /e/ GSI fails with the error above in the package manager; I’m reasonably confident that it would work without further modifications if that APK just could be installed. Hopefully that makes debugging the issue easier.