seemoo-lab / AirGuard

Protect yourself from being tracked 🌍 by AirTags 🏷 and Find My accessories 📍
Apache License 2.0
1.96k stars 110 forks source link

[Bug] Constant crashes since update #173

Closed tsievert closed 3 months ago

tsievert commented 6 months ago

I just updated the app to 2.2 via the Google app store. When I open the app I can click through the steps to give permissions and opt-in or out of data collection, but as soon as I hit "Done" the app crashes. I tried a force stop and clearing the cache, but it just keeps crashing.

I used the previous version without any issues a few months ago.

Pixel 6a Android 14

C9Glax commented 3 months ago

Related. Pixel 6, Android 14 AirGuard 2.3 from F-Droid

App no longer opens after Update.

type: crash
osVersion: google/oriole/oriole:14/AP2A.240805.005.F1/2024080600:user/release-keys
package: de.seemoo.at_tracking_detection:45
process: de.seemoo.at_tracking_detection
processUptime: 17034 + 225 ms
installer: com.machiav3lli.fdroid

java.lang.RuntimeException: Unable to start activity ComponentInfo{de.seemoo.at_tracking_detection/de.seemoo.at_tracking_detection.ui.MainActivity}: android.view.InflateException: Binary XML file line #30 in de.seemoo.at_tracking_detection:layout/activity_main: Binary XML file line #30 in de.seemoo.at_tracking_detection:layout/activity_main: Error inflating class androidx.fragment.app.FragmentContainerView
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4004)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4184)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114)
    at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:231)
    at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:152)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:93)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2602)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8623)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
    at com.android.internal.os.ExecInit.main(ExecInit.java:50)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:369)
Caused by: android.view.InflateException: Binary XML file line #30 in de.seemoo.at_tracking_detection:layout/activity_main: Binary XML file line #30 in de.seemoo.at_tracking_detection:layout/activity_main: Error inflating class androidx.fragment.app.FragmentContainerView
Caused by: android.view.InflateException: Binary XML file line #30 in de.seemoo.at_tracking_detection:layout/activity_main: Error inflating class androidx.fragment.app.FragmentContainerView
Caused by: java.lang.RuntimeException: Exception inflating de.seemoo.at_tracking_detection:navigation/main_navigation line 172
    at K1.I.b(Unknown Source:133)
    at B.b.a(Unknown Source:1789)
    at T4.l.getValue(Unknown Source:20)
    at androidx.navigation.fragment.NavHostFragment.g(Unknown Source:2)
    at androidx.navigation.fragment.NavHostFragment.onCreate(Unknown Source:0)
    at androidx.fragment.app.F.performCreate(Unknown Source:21)
    at androidx.fragment.app.m0.e(Unknown Source:50)
    at androidx.fragment.app.m0.k(Unknown Source:179)
    at androidx.fragment.app.e0.z(Unknown Source:1628)
    at androidx.fragment.app.e0.R(Unknown Source:91)
    at androidx.fragment.app.e0.y(Unknown Source:31)
    at androidx.fragment.app.FragmentContainerView.<init>(SourceFile:54)
    at androidx.fragment.app.S.onCreateView(SourceFile:3)
    at androidx.fragment.app.K.dispatchFragmentsOnCreateView(Unknown Source:8)
    at androidx.fragment.app.K.onCreateView(SourceFile:1)
    at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:957)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:885)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:849)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:1011)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:972)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:570)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:462)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:413)
    at k.y.h(Unknown Source:23)
    at k.j.setContentView(SourceFile:2)
    at de.seemoo.at_tracking_detection.ui.MainActivity.onCreate(Unknown Source:967)
    at android.app.Activity.performCreate(Activity.java:9013)
    at android.app.Activity.performCreate(Activity.java:8991)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1531)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3986)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4184)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114)
    at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:231)
    at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:152)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:93)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2602)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8623)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
    at com.android.internal.os.ExecInit.main(ExecInit.java:50)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:369)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: de.seemoo.at_tracking_detection.database.models.device.DeviceType
    at a.a.J(Unknown Source:273)
    at K1.I.c(Unknown Source:48)
    at K1.I.a(Unknown Source:96)
    at K1.I.a(Unknown Source:592)
    at K1.I.b(Unknown Source:40)
    ... 44 more
Caused by: java.lang.ClassNotFoundException: de.seemoo.at_tracking_detection.database.models.device.DeviceType
    at java.lang.Class.classForName(Native Method)
    at java.lang.Class.forName(Class.java:607)
    at java.lang.Class.forName(Class.java:512)
    at a.a.J(Unknown Source:206)
    ... 48 more
Caused by: java.lang.ClassNotFoundException: de.seemoo.at_tracking_detection.database.models.device.DeviceType
    ... 52 more
Rexelpitlum commented 3 months ago

Same here since upgrade on F-Droid from version 2.1.1 to 2.3. Crashes directly during startup.

Going back to previous F-Droid version 2.1.1 works again.

Device: Motorola G72 Android 13 with Patchlevel June '24

Gulp1n commented 3 months ago

I'm also having this issue, just downloaded 2.3 from F-Droid and after completing the onboarding the app crashes and does not open afterwards. I downgraded to 2.1.1 and 2.1, both suffered from the same issue.

Samsung a52s 5g Android 14 (default shipped by Samsung)

Andronym commented 3 months ago

Same here since update to v2.3. Previous versions v2.1 and v2.1.1 works without issues. Fairphone 4 /e/OS 2.2 Android 13

bigchipbag commented 3 months ago

Also an issue with Pixel 6 Pro, latest grapheneOS, using 2.3. Downgraded to 2.1.1 and it is working.

Sn0wfreezeDev commented 3 months ago

This is a duplicate of: https://github.com/seemoo-lab/AirGuard/issues/180 Please update to 2.3.1