GmsCore icon indicating copy to clipboard operation
GmsCore copied to clipboard

[de.tk.tkapp] TK App claims unexpected issue with Google Play Services

Open dbankmann opened this issue 1 year ago • 11 comments

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

dbankmann avatar Nov 09 '24 16:11 dbankmann

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.

benlorenz avatar Nov 10 '24 15:11 benlorenz

To downgrade to an older version in Aurora use the update version code 318.

adaschma avatar Nov 12 '24 12:11 adaschma

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)

Scrumplex avatar Nov 12 '24 23:11 Scrumplex

I have the same problem, but microg is not installed as far as I know. I downloaded the TK app with Aurora.

FrankSkp avatar Nov 26 '24 17:11 FrankSkp

Problem is not solved in TK app version 6.14.0 (Android 14, no custom ROM, app downloaded with Aurora).

FrankSkp avatar Dec 14 '24 16:12 FrankSkp

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.

tenchman avatar Dec 18 '24 13:12 tenchman

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

ale5000-git avatar Dec 18 '24 13:12 ale5000-git

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.

benlorenz avatar Dec 18 '24 18:12 benlorenz

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.

ale5000-git avatar Dec 18 '24 19:12 ale5000-git

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).

ale5000-git avatar Dec 18 '24 19:12 ale5000-git

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

D3SOX avatar Dec 18 '24 19:12 D3SOX

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.)

FrankSkp avatar Dec 28 '24 16:12 FrankSkp

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; )

adaschma avatar Dec 31 '24 10:12 adaschma

Probably fixed by #2759

ale5000-git avatar Jan 23 '25 03:01 ale5000-git

Is there a how to, that describes how to build and test this? I would volunteer to give it a test 💙

tobiasKaminsky avatar Jan 23 '25 10:01 tobiasKaminsky

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?

PhilippSchlesinger avatar Feb 24 '25 11:02 PhilippSchlesinger

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.

royalroot avatar Feb 25 '25 09:02 royalroot

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.

FrankSkp avatar Feb 25 '25 10:02 FrankSkp

With the newest updates Tk app seems to work again microG version 0.3.6.244735-dirty TK App: 7.2.1

dbankmann avatar Feb 28 '25 16:02 dbankmann

@dbankmann I assume you built microg with #2759? If you have the apk, do you mind sharing them?

werdahias avatar Feb 28 '25 17:02 werdahias

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?

dbankmann avatar Feb 28 '25 17:02 dbankmann

In Lineage 22 with the same microg (sans -dirty) and TK it does not, so I suspect /e/ picked something that worked.

werdahias avatar Feb 28 '25 17:02 werdahias

Indeed eOS-Changelog lists it here at the bottom, so opened an issue for "my" CustomROM:
https://gitlab.com/CalyxOS/calyxos/-/issues/3048

rugk avatar Feb 28 '25 21:02 rugk

Ok. Found it: https://gitlab.e.foundation/e/os/GmsCore/-/commit/b15226a675c03326d82ffca033483b4d9208de18 So, indeed #2759 fixes this issue.

dbankmann avatar Feb 28 '25 22:02 dbankmann

@ale5000-git anything blocking to get #2759 merged ?

werdahias avatar Mar 01 '25 12:03 werdahias

@ale5000-git anything blocking to get #2759 merged ?

Probably @mar-v-in is busy.

ale5000-git avatar Mar 01 '25 14:03 ale5000-git

@mar-v-in I'd really appreciate it if you could take a look at #2759

werdahias avatar Apr 04 '25 22:04 werdahias

The fix have been merged.

ale5000-git avatar Apr 14 '25 01:04 ale5000-git

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

RocketJannis avatar May 02 '25 10:05 RocketJannis

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.)

rugk avatar May 07 '25 12:05 rugk