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/
353 stars 20 forks source link

Bank app stopped working #2635

Closed spogulis closed 11 months ago

spogulis commented 11 months ago

Swedbank Latvia stopped working a few Graphene updates back on Pixel 6 Pro. Contacted the bank and they say everything is working fine on their end which reconciles with my experience on non-Graphene Android.

The app just doesn't launch mostly (freezes with a white or black screen). I was able to get to login screen a few times but cannot seem to reproduce it anymore. It was by forcing the app to quit and then deleting local storage data.

Changing exploit protection and other related settings does nothing. Previously the app worked only with exploit protection compatibility enabled.

Here's the error after Android says app is not responding and gives the options to wait, quit or see details:

type: ANR
osVersion: google/raven/raven:14/UP1A.231005.007/2023102300:user/release-keys
package: lv.swedbank.mobile:21541
process: lv.swedbank.mobile
installer: com.android.vending

activity: lv.swedbank.mobile/com.swedbank.mobile.app.MainActivity
cause: ANR Input dispatching timed out (b43b5cb lv.swedbank.mobile/com.swedbank.mobile.app.MainActivity (server) is not responding. Waited 5003ms for FocusEvent(hasFocus=true))
info: ANR in lv.swedbank.mobile (lv.swedbank.mobile/com.swedbank.mobile.app.MainActivity)
PID: 23312
Reason: Input dispatching timed out (b43b5cb lv.swedbank.mobile/com.swedbank.mobile.app.MainActivity (server) is not responding. Waited 5003ms for FocusEvent(hasFocus=true))
Parent: lv.swedbank.mobile/com.swedbank.mobile.app.MainActivity
ErrorId: 279acbbb-f725-43be-ba97-809856ec1999
Frozen: false
Load: 2.02 / 1.45 / 2.67
----- Output from /proc/pressure/memory -----
some avg10=0.00 avg60=0.00 avg300=0.00 total=11595807
full avg10=0.00 avg60=0.00 avg300=0.00 total=2926870
----- End output from /proc/pressure/memory -----
----- Output from /proc/pressure/cpu -----
some avg10=13.23 avg60=5.29 avg300=2.26 total=696883079
----- End output from /proc/pressure/cpu -----
----- Output from /proc/pressure/io -----
some avg10=0.39 avg60=0.20 avg300=0.05 total=23415418
full avg10=0.16 avg60=0.10 avg300=0.02 total=13419566
----- End output from /proc/pressure/io -----

CPU usage from 1ms to 15323ms later (2023-10-27 11:51:40.384 to 2023-10-27 11:51:55.706):
  63% 23460/lv.swedbank.mobile: 15% user + 48% kernel
  53% 23312/lv.swedbank.mobile: 3.3% user + 50% kernel / faults: 892 minor 9 major
  23% 1432/system_server: 12% user + 10% kernel / faults: 53041 minor 422 major
  10% 23098/com.google.android.gms: 7.8% user + 2.3% kernel / faults: 24398 minor 347 major
  4.9% 23341/com.reddit.frontpage: 3.9% user + 0.9% kernel / faults: 6086 minor 133 major
  3.8% 3461/com.android.systemui: 2.4% user + 1.4% kernel / faults: 20543 minor 357 major
  1.5% 23049/com.google.android.gms.persistent: 1.1% user + 0.3% kernel / faults: 1253 minor 171 major
  0% 3733/com.shannon.qualifiednetworksservice: 0% user + 0% kernel / faults: 2413 minor 2520 major
  0.9% 671/sugov:0: 0% user + 0.9% kernel
  0.7% 3754/com.android.networkstack.process: 0.5% user + 0.2% kernel / faults: 1579 minor 1481 major
28% TOTAL: 12% user + 15% kernel + 0.1% iowait + 0.3% irq + 0.3% softirq
CPU usage from 67ms to 432ms later (2023-10-27 11:51:40.450 to 2023-10-27 11:51:40.816):
  62% 23460/lv.swedbank.mobile: 17% user + 44% kernel
  52% 23312/lv.swedbank.mobile: 4.3% user + 48% kernel
    52% 23312/swedbank.mobile: 0% user + 52% kernel
  24% 1432/system_server: 3.5% user + 21% kernel / faults: 399 minor 14 major
    24% 23610/AnrAuxiliaryTas: 7% user + 17% kernel
  2.7% 50/rcuop/4: 0% user + 2.7% kernel
20% TOTAL: 4.2% user + 14% kernel + 0.3% iowait + 0.3% irq + 0.3% softirq
akc3n commented 11 months ago

~~It may seem that with their latest update, this app is not passing the Play Integrity check to pass with MEETS_DEVICE_INTEGRITY. https://github.com/GrapheneOS/os-issue-tracker/issues/1986~~

thestinger commented 11 months ago

Previously the app worked only with exploit protection compatibility enabled.

This only happens if an app has memory corruption bugs being triggered in regular use, which means it isn't working correctly on the stock OS either and it just isn't noticeable since it's not catching it.

spogulis commented 11 months ago

So this is non-fixable as I see the related Swedbank Lietuva issue has been closed without a solution.

And this error is not helpful I guess?

cause: ANR Input dispatching timed out (b43b5cb lv.swedbank.mobile/com.swedbank.mobile.app.MainActivity (server) is not responding. Waited 5003ms for FocusEvent(hasFocus=true))

spogulis commented 11 months ago

Whoops, didn't mean to close it myself.

AndrejsK commented 11 months ago

Disabling native code debugging fixed it for me: https://github.com/GrapheneOS/os-issue-tracker/issues/2578

akc3n commented 11 months ago

@spogulis This app is working and has been tested by multiple people whom have an account with said bank. I too have tested the app in terms of installation and launching it - had no issues.

So this is non-fixable as I see the related Swedbank Lietuva issue has been closed without a solution.

Suggest following the recommendations of how other users resolved this same issue.

Duplicate #2578