-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in-app upgrade using the APK file is not possible for Advanced Protection accounts - needs ADB for each upgrade #1671
Comments
possible fix with shizuku integration, which is basically a server where apps can call adb on your behalf |
would that work on stock Google Android 15 (or -insert latest monthly Pixel stock ROM update here-) with Advanced Protection accounts or does it need a custom ROM? Also.. the latest release info from Shizuku (currently v13.5.4 from March 10th, 2024) only mentions Android 14 beta 2 as latest working OS, not 15. |
Not much needs to be changed. It connects to a wireless debugging port that you open, and asks for the 6-digit code generated. From there, it connects to ADB, and starts a small server so any app can make a request to ADB via Shizuku. |
What is the UI that appears for you? like what happens when Grayjay tries to ask for permission to install apps? I'm trying to figure out if there is an easy way to detect that the user is not capable of enabling that permission. |
@kaidelorenzo according to this thread |
I don't think there is a way to detect the Advanced Protection, but if I recall correctly, the APK install does return an error. If an error is returned, then you can show a prompt asking if the user wants to fall back to Shizuku. Ideally, Shizuku would be the primary install method, and it uses the built-in package manager as a fallback. Then, if an error occurs with the package manager, there can be a popup prompting the user to install Shizuku. |
a screenshot of the error message in Grayjay would also be helpful |
It should be no different from hitting "cancel" normally, but @R-Adrian would know better. |
i have re-tested the issue and attempted to obtain screenshots ... but it seems this issue is no longer applicable, it seems Google has fixed the error (if it was an error) that prevented updating non-Google apps. TL;DR version = this issue probably needs to be closed, seems it was fixed by Google. (ROFL) Test 1: (well it was not exactly a proper downgrade because i was getting the dreaded failure message: Test 2: i think that the November 2024 Google Play system update is probably the common key here that allows in-app self-upgrades even on Advanced Protection accounts - when i had opened the issue i don't think that the November 2024 play system update was installed yet. Also, i think the error will keep showing with F-Droid because that screenshot above seems to be for a fresh installation, not an update to an already-installed one. This is still blocked by Advanced Protection. |
What happened?
Grayjay app detects that an update is available for the main app and shows a prompt to download / install it
but... the Google Account used on the device is configured as an Advanced Protection account (yes, with at least 2 WebAuthn / FIDO / FIDO2 hardware security keys)
even if Grayjay asks for rights to install APK files and the user tries to allow it, the device is not allowing APK installs by other apps because of the Advanced Protection account policy enforcement.
if the current user account on the Android device is an Advanced Protection account and the first (or second?) upgrade attempt from APK fails then Grayjay should not attempt to do upgrades via APK anymore and instead should show a message to do an upgrade via ADB instead.
This is because Android devices used with Advanced Protection accounts have these additional limits enforced;
https://support.google.com/accounts/answer/9764949
Note: i think that last line is a bit misleading... non-Google Play apps "will still be updated" (???) but updating them is not possible directly from APK installers. I have to use ADB for Grayjay APK app updates.
Grayjay Version
268
What plugins are you seeing the problem on?
not applicable
When do you experience the issue?
Are you using a VPN?
No
Relevant log output
Device: Pixel 7a,
OS: Android 15, December 2024 update (latest currently available)
The text was updated successfully, but these errors were encountered: