ingress-intel-total-conversion icon indicating copy to clipboard operation
ingress-intel-total-conversion copied to clipboard

Found 1 Fatal Exception Crash and 1 IllegalArgumentException from Testing

Open skngo1 opened this issue 3 months ago • 0 comments

Hi! I'm a student researcher currently working on a project in the area of Android app analysis. As a part of the work centered around Intents, I found 1 bug that resulted in a crash and 1 bug that was an IllegalArgumentException after analyzing logs/execution traces. Below are the relevant activities, traces, and adb commands that triggered the crashes.

These bugs may be hidden in unexposed Activities, but they are worth investigating into to prevent potential issues down the line and addressing to improve the overall robustness and quality. If anyone can be confirm these to be valid bugs first, I would appreciate it, and I can help provide more information as needed.

1. org.exarhteam.iitc_mobile/org.exarhteam.iitc_mobile.IITC_Mobile

Execution trace:

E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: org.exarhteam.iitc_mobile, PID: 9846
E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.exarhteam.iitc_mobile/org.exarhteam.iitc_mobile.IITC_Mobile}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference
E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)
E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
E AndroidRuntime: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:193)
E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6669)
E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference
E AndroidRuntime: 	at org.exarhteam.iitc_mobile.IITC_Mobile.a(IITC_Mobile.java:347)
E AndroidRuntime: 	at org.exarhteam.iitc_mobile.IITC_Mobile.onCreate(IITC_Mobile.java:279)
E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7136)
E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:7127)
E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
E AndroidRuntime: 	... 11 more

adb commands that triggers it:

adb shell su 0 am start -n "org.exarhteam.iitc_mobile/org.exarhteam.iitc_mobile.IITC_Mobile" 
adb shell am force-stop org.exarhteam.iitc_mobile
adb shell su 0 am start -n "org.exarhteam.iitc_mobile/org.exarhteam.iitc_mobile.IITC_Mobile"  -a "android.intent.action.VIEW"
adb shell am force-stop org.exarhteam.iitc_mobile
adb shell su 0 am start -n "org.exarhteam.iitc_mobile/org.exarhteam.iitc_mobile.IITC_Mobile"  -a "android.intent.action.VIEW" -d "https:.ingress.com"

2. org.exarhteam.iitc_mobile.prefs.PluginPreferenceActivity

Execution trace:

W WindowManager: Failed looking up window
W WindowManager: java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@eb33e35 does not exist
W WindowManager: 	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9113)
W WindowManager: 	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9104)
W WindowManager: 	at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1784)
W WindowManager: 	at android.os.BinderProxy.sendDeathNotice(Binder.java:688)
I WindowManager: WIN DEATH: null

adb commands that triggers it:

adb shell su 0 am start -n "org.exarhteam.iitc_mobile/org.exarhteam.iitc_mobile.prefs.PluginPreferenceActivity" 
adb shell am force-stop org.exarhteam.iitc_mobile
adb shell su 0 am start -n "org.exarhteam.iitc_mobile/org.exarhteam.iitc_mobile.prefs.PluginPreferenceActivity"  -d "www.google.com"
adb shell am force-stop org.exarhteam.iitc_mobile

skngo1 avatar Mar 15 '24 08:03 skngo1