GrapheneOS / os-issue-tracker

Issue tracker for GrapheneOS Android Open Source Project hardening work. Standalone projects like Auditor, AttestationServer and hardened_malloc have their own dedicated trackers.
https://grapheneos.org/
357 stars 21 forks source link

Old app does not work anymore after update #3146

Closed Sensor66 closed 9 months ago

Sensor66 commented 9 months ago

Two of my most used apps are off-line dictionaries, which I bought long ago and still have as APK: Duits_com.slovoed.noreg.van_dale.base_52a1.german_dutch.apk Engels_com.slovoed.noreg.van_dale.base_517b.english_dutch.apk

I just now updated GrapheneOS to build UQ1A.240105.002.2024012600.

Now both apps do not work anymore, in the middle of the program they crash. Attached is the crash report of one of them. Error in Duits 33f788f506c9.txt

After de-instinstallation the APK will not install anymore. No message is given.

matchboxbananasynergy commented 9 months ago

You need to make sure you're on the latest version of Vanadium.

Can you share a screen recording of you trying to install the app?

Sensor66 commented 9 months ago

You need to make sure you're on the latest version of Vanadium.

I am on version 121.0.6167.101.1, is that the latest?

Can you share a screen recording of you trying to install the app?

I don't know how to do it, but I will describe in detail.

What happened (at first) is that I would click on the APK, and then NOTHING would happen. No message, no install, nothing.

But now, some hours later, it's different: I click on the APK, then I get a message "Do you want to install this app?" I click Install. A screen shows up where I must allow to install from this source, which I select. Then I get a message "App not installed as app isn't compatible with your phone.

Could it be that the latest update is the update to Android 14 (U) ? And that that version does not support this APK anymore?

thestinger commented 9 months ago

@Sensor66 It could be that. Are you testing on the same Pixel 6a as the initial crash message?

thestinger commented 9 months ago

It sounds like these apps have a target API level before 23, which can no longer be installed normally on Android 14 but will keep working if already installed. See https://developer.android.com/about/versions/14/behavior-changes-all#minimum-target-api-level. It's possible to work around with adb install --bypass-low-target-sdk-block FILENAME.apk but it's not recommended since they're obsolete apps.

Sensor66 commented 9 months ago

@Sensor66 It could be that. Are you testing on the same Pixel 6a as the initial crash message?

Yes.

Sensor66 commented 9 months ago

It sounds like these apps have a target API level before 23, which can no longer be installed normally on Android 14 but will keep working if already installed. See https://developer.android.com/about/versions/14/behavior-changes-all#minimum-target-api-level. It's possible to work around with adb install --bypass-low-target-sdk-block FILENAME.apk but it's not recommended since they're obsolete apps.

This indeed works: this way I can re-install them. But alas, when installed they have the same behavior as before de-installation: the apps crash always at a certain point : when clicking to translate. This is a serious issue: afaik there are no other off-line high-quality translator apps Dutch English / Dutch German. I will have to go back to Android 13.

thestinger commented 9 months ago

@Sensor66 Will be making a new build fixing it. It will be coming soon.

Sensor66 commented 9 months ago

That would be magnificent!

thestinger commented 9 months ago

The issue was that the latest Vanadium build was unintentionally 64-bit only because it was made quickly to deal with an error that was reported in the previous Alpha channel release instead of the usual process. You're the first person to report any issue because this only impacts 32-bit only apps which use the WebView, and Pixel 7 and later don't have 32-bit app support.

thestinger commented 9 months ago

@Sensor66 You can open the app repository client, select Vanadium and use the menu to switch to Alpha to get the new release fixing this problem. You can switch back to Stable after installing the update (it won't downgrade it, it will just switch the channel for new updates going forward).

Sensor66 commented 9 months ago

@thestinger Just now I received the new Vanadium through the regular channel. Problem with the crashing apps is solved. Thanks a bunch!