GmsCore
GmsCore copied to clipboard
[de.tk.tkapp] TK App claims unexpected issue with Google Play Services
Affected app Name: TK App Package id: de.tk.tkapp
Describe the bug Starting with version 6.13.0. the app is not working with microG anymore. At startup of the app a window will appear with the message: "P2 - Request failed: An unexpected issue has occured with your Google Play Services.
Expected behavior The app starts without the error message.
System Android Version: 13 Custom ROM: /e/-os 2.4.1-t
microG microG Core version: 0.3.2.240913-22 (43f9740) microG Self-Check results: All ticked
I have the same issue on lineageos (using microG 0.3.3.240913), I think this is related to this news item for the latest version:
- We will offer you new TK App versions via in-app updates in the future.
The app seems to be trying to use the In-app updates service which is failing in an unexpected way because it is not implemented in microG.
To downgrade to an older version in Aurora use the update version code 318.
Excerpt from my log when starting the app:
11-10 23:58:20.449 V/WindowManager(1534): Finish Transition (#1329): created at 11-10 23:58:20.389 collect-started=0.073ms request-sent=8.067ms started=15.53ms ready=51.096ms sent=54.295ms finished=59.828ms
11-10 23:58:20.453 V/WindowManagerShell(2345): Track 0 became idle
11-10 23:58:20.453 V/WindowManagerShell(2345): All active transition animations finished
11-10 23:58:20.454 W/UserManagerService(1534): Requested status bar icon for non-badged user 0
11-10 23:58:20.455 D/CoreBackPreview(1534): Window{9cafbfa u0 de.tk.tkapp/de.tk.tkapp.start.StartActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@b93df9e, mPriority=0, mIsAnimationCallback=false}
11-10 23:58:20.458 D/ConnectivityService(1534): requestNetwork for uid/pid:10392/2345 asUid: 10561 activeRequest: null callbackRequest: 9209 [NetworkRequest [ REQUEST id=9210, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10392 RequestorPkg: com.android.systemui UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647
11-10 23:58:20.462 W/UserManagerService(1534): Requested status bar icon for non-badged user 0
11-10 23:58:20.463 W/UserManagerService(1534): Requested status bar icon for non-badged user 0
11-10 23:58:20.474 D/WifiNetworkFactory(1534): got request NetworkRequest [ REQUEST id=9210, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10392 RequestorPkg: com.android.systemui UnderlyingNetworks: Null] ]
11-10 23:58:20.475 D/UntrustedWifiNetworkFactory(1534): got request NetworkRequest [ REQUEST id=9210, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10392 RequestorPkg: com.android.systemui UnderlyingNetworks: Null] ]
11-10 23:58:20.475 D/OemPaidWifiNetworkFactory(1534): got request NetworkRequest [ REQUEST id=9210, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10392 RequestorPkg: com.android.systemui UnderlyingNetworks: Null] ]
11-10 23:58:20.475 D/ConnectivityService(1534): NetReassign [9210 : null → 112] [c 1] [a 5] [i 4]
11-10 23:58:20.475 D/MultiInternetWifiNetworkFactory(1534): got request NetworkRequest [ REQUEST id=9210, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10392 RequestorPkg: com.android.systemui UnderlyingNetworks: Null] ]
11-10 23:58:20.490 D/VRI[StartActivity](17727): visibilityChanged oldVisibility=true newVisibility=false
11-10 23:58:20.492 W/JobScheduler(1534): Job didn't exist in JobStore: ab91bfd #u0a561/231 de.tk.tkapp/androidx.work.impl.background.systemjob.SystemJobService
11-10 23:58:20.510 W/FeatureConnection(2555): getRegistrationTech: ImsRegistration is null
11-10 23:58:20.510 D/PhoneSwitcherNetworkRequstListener(2555): got request NetworkRequest [ REQUEST id=9210, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10392 RequestorPkg: com.android.systemui UnderlyingNetworks: Null] ]
11-10 23:58:20.548 D/ConnectivityService(1534): requestNetwork for uid/pid:10561/17727 activeRequest: null callbackRequest: 9211 [NetworkRequest [ REQUEST id=9212, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10561 RequestorPkg: de.tk.tkapp UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647
11-10 23:58:20.558 D/WifiNetworkFactory(1534): got request NetworkRequest [ REQUEST id=9212, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10561 RequestorPkg: de.tk.tkapp UnderlyingNetworks: Null] ]
11-10 23:58:20.559 D/UntrustedWifiNetworkFactory(1534): got request NetworkRequest [ REQUEST id=9212, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10561 RequestorPkg: de.tk.tkapp UnderlyingNetworks: Null] ]
11-10 23:58:20.559 D/OemPaidWifiNetworkFactory(1534): got request NetworkRequest [ REQUEST id=9212, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10561 RequestorPkg: de.tk.tkapp UnderlyingNetworks: Null] ]
11-10 23:58:20.560 D/MultiInternetWifiNetworkFactory(1534): got request NetworkRequest [ REQUEST id=9212, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10561 RequestorPkg: de.tk.tkapp UnderlyingNetworks: Null] ]
11-10 23:58:20.560 D/ConnectivityService(1534): NetReassign [9212 : null → 112] [c 2] [a 2] [i 7]
11-10 23:58:20.561 W/FeatureConnection(2555): getRegistrationTech: ImsRegistration is null
11-10 23:58:20.611 W/FeatureConnection(2555): getRegistrationTech: ImsRegistration is null
11-10 23:58:20.612 D/PhoneSwitcherNetworkRequstListener(2555): got request NetworkRequest [ REQUEST id=9212, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10561 RequestorUid: 10561 RequestorPkg: de.tk.tkapp UnderlyingNetworks: Null] ]
11-10 23:58:20.662 W/FeatureConnection(2555): getRegistrationTech: ImsRegistration is null
11-10 23:58:20.727 E/PlayCore(17727): UID: [10561] PID: [17727] AppUpdateService : onError(-9)
11-10 23:58:20.737 D/AST (20706): $30188
11-10 23:58:20.738 W/WindowOnBackDispatcher(17727): OnBackInvokedCallback is not enabled for the application.
11-10 23:58:20.738 W/WindowOnBackDispatcher(17727): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
11-10 23:58:20.753 D/CoreBackPreview(1534): Window{8da57aa u0 de.tk.tkapp/de.tk.login.ui.LoginActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@f586e7c, mPriority=0, mIsAnimationCallback=false}
11-10 23:58:20.764 I/AdrenoGLES-0(17727): QUALCOMM build : 82d27a90b3, I4ee8f6bced
11-10 23:58:20.764 I/AdrenoGLES-0(17727): Build Date : 07/12/23
11-10 23:58:20.764 I/AdrenoGLES-0(17727): OpenGL ES Shader Compiler Version: EV031.35.01.12
11-10 23:58:20.764 I/AdrenoGLES-0(17727): Local Branch :
11-10 23:58:20.764 I/AdrenoGLES-0(17727): Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.9.14.11.00.00.571.148
11-10 23:58:20.764 I/AdrenoGLES-0(17727): Remote Branch : NONE
11-10 23:58:20.764 I/AdrenoGLES-0(17727): Reconstruct Branch : NOTHING
11-10 23:58:20.764 I/AdrenoGLES-0(17727): Build Config : S P 10.0.7 AArch64
11-10 23:58:20.764 I/AdrenoGLES-0(17727): Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
11-10 23:58:20.778 I/AdrenoGLES-0(17727): PFP: 0x016dc094, ME: 0x00000000
11-10 23:58:20.802 I/Gralloc4(17727): Adding additional valid usage bits: 0x8202000
11-10 23:58:20.821 W/JobScheduler(1534): Job didn't exist in JobStore: f32f4c1 #u0a561/230 de.tk.tkapp/androidx.work.impl.background.systemjob.SystemJobService
11-10 23:58:20.834 I/Choreographer(17727): Skipped 39 frames! The application may be doing too much work on its main thread.
11-10 23:58:20.847 D/CoreBackPreview(1534): Window{7623202 u0 de.tk.tkapp/de.tk.login.ui.LoginActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@ae5bf67, mPriority=0, mIsAnimationCallback=false}
11-10 23:58:20.865 W/libperfmgr(571): NodeLooperThread is not running, cancel LAUNCH
11-10 23:58:20.867 W/libperfmgr(571): NodeLooperThread is not running, request INTERACTION
11-10 23:58:20.877 I/ActivityTaskManager(1534): Displayed de.tk.tkapp/de.tk.login.ui.LoginActivity for user 0: +2s207ms
My suspicion is E/PlayCore(17727): UID: [10561] PID: [17727] AppUpdateService : onError(-9)
I have the same problem, but microg is not installed as far as I know. I downloaded the TK app with Aurora.
Problem is not solved in TK app version 6.14.0 (Android 14, no custom ROM, app downloaded with Aurora).
Problem is not solved in TK app version 6.14.0 (Android 14, no custom ROM, app downloaded with Aurora).
I was in contact with TK support today. The app checks the installation source “to ensure the integrity of the app”. My only crime was also to have installed the app via the Aurora store.
I was in contact with TK support today. The app checks the installation source “to ensure the integrity of the app”. My only crime was also to have installed the app via the Aurora store.
Using my minutil script you can reinstall via adb any already installed app (without the need to have a new apk file) as if it were installed from Play Store; just by using: minutil.sh -i internal.app.name
The app does indeed check the installation source, but unfortunately that alone does not suffice (I had that issue a while ago).
On my device it already has the play store as installer (in the GUI it is printed as App installed from microG Companion):
FP5:/ $ pm list packages -i | grep tkapp
package:de.tk.tkapp installer=com.android.vending
If Aurora is set to use the root installer then the apps will automatically have the play store as installation source.
The code for Play Integrity was already merged and it will be in the version 0.3.6; so once it is released it may help with this problem. Although it still lack support for In-app updates.
If Aurora is set to use the root installer then the apps will automatically have the play store as installation source.
The main advantage of my script is that it works also withOUT root (if you run it through adb).
If Aurora is set to use the root installer then the apps will automatically have the play store as installation source.
Same happens with the Shizuku installer :) This is another in my opinion easier method for non rooted users
I have now tested various scenarios with the result that it is obviously not checked whether the app was installed from the Google Play Store, but whether you are logged in to Google when you start the app. The app installed from the Aurora Store starts without any problems if you are logged in to Google, the app installed from the Play Store does not start if you are not logged in to Google. (TK app 6.14.1, smartphone is not rooted, microg is not installed, I didn't use the minutil script.)
I just tried activating the toogle "microG Settings / Play Store services / Answer license verification requests" as well as "Enable on-demand asset delivery" and "Enable device information sync" as well as logging in with a google account "microG Settings / Google Accounts / Add Google account". And restarting my phone. Not too surprising same "P2 - Anfrage fehlgeschlagen" error. (de.tk.tkapp 6.14.1; microG Services 0.3.6.244735; LineageOS 21-20241211-microG-FP3; )
Probably fixed by #2759
Is there a how to, that describes how to build and test this? I would volunteer to give it a test 💙
I have now tested various scenarios with the result that it is obviously not checked whether the app was installed from the Google Play Store, but whether you are logged in to Google when you start the app. The app installed from the Aurora Store starts without any problems if you are logged in to Google, the app installed from the Play Store does not start if you are not logged in to Google. (TK app 6.14.1, smartphone is not rooted, microg is not installed, I didn't use the minutil script.)
So TK app forces you to have a Google account and be logged in while starting the app, right? This seems part of their strong security concept that in their own eyes needs (stated by the customer service) to be more restrictive than banking apps. Is there a way pretend being logged into Google to TK app?
I have now tested various scenarios with the result that it is obviously not checked whether the app was installed from the Google Play Store, but whether you are logged in to Google when you start the app. The app installed from the Aurora Store starts without any problems if you are logged in to Google, the app installed from the Play Store does not start if you are not logged in to Google. (TK app 6.14.1, smartphone is not rooted, microg is not installed, I didn't use the minutil script.)
So TK app forces you to have a Google account and be logged in while starting the app, right? This seems part of their strong security concept that in their own eyes needs (stated by the customer service) to be more restrictive than banking apps. Is there a way pretend being logged into Google to TK app?
I tried what you suggested (logged in into microg) but it did not work. So I think there is a lack of what microg offers and in addition to that you need to be logged into the account.
I have now tested various scenarios with the result that it is obviously not checked whether the app was installed from the Google Play Store, but whether you are logged in to Google when you start the app. The app installed from the Aurora Store starts without any problems if you are logged in to Google, the app installed from the Play Store does not start if you are not logged in to Google. (TK app 6.14.1, smartphone is not rooted, microg is not installed, I didn't use the minutil script.)
So TK app forces you to have a Google account and be logged in while starting the app, right? This seems part of their strong security concept that in their own eyes needs (stated by the customer service) to be more restrictive than banking apps. Is there a way pretend being logged into Google to TK app?
Yes, the TK app forces me to have a Google account and be logged in when I start the app. And unfortunately I don't know how I can tell the TK app to be logged in to Google.
With the newest updates Tk app seems to work again microG version 0.3.6.244735-dirty TK App: 7.2.1
@dbankmann I assume you built microg with #2759? If you have the apk, do you mind sharing them?
No, I did not. Just installed the latest /e/-os update for my Samsung Tab S5e. But it seems like latest e-os update contains a fix for TK app. https://gitlab.e.foundation/e/os/releases/-/releases . Couldn't track it to a specific commit. Maybe coming from upstream?
In Lineage 22 with the same microg (sans -dirty) and TK it does not, so I suspect /e/ picked something that worked.
Indeed eOS-Changelog lists it here at the bottom, so opened an issue for "my" CustomROM:
https://gitlab.com/CalyxOS/calyxos/-/issues/3048
Ok. Found it: https://gitlab.e.foundation/e/os/GmsCore/-/commit/b15226a675c03326d82ffca033483b4d9208de18 So, indeed #2759 fixes this issue.
@ale5000-git anything blocking to get #2759 merged ?
@mar-v-in I'd really appreciate it if you could take a look at #2759
The fix have been merged.
The App is working again for me 🥳 Tested with TK Version: 7.5.1 and MicroG: 0.3.7.250932 on CalyxOS 6.6.23
The TK app now works (if you are signed in to Google and have the toogles enabled in microG to enable access there), I can confirm that, but now the TK Ident app (that has worked previously) fails. Reported in https://github.com/microg/GmsCore/issues/2897. Does anyone also experience this? (if so, best just upvote.)