Skip to content
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

Found 1 Fatal Exception Crash and 1 IllegalArgumentException from Testing #718

Open
skngo1 opened this issue Mar 15, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@skngo1
Copy link

skngo1 commented Mar 15, 2024

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
@modos189 modos189 added the bug Something isn't working label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants