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 Fatal Exception Crashes from Testing #563

Open
Mai-hh opened this issue Jun 3, 2024 · 0 comments
Open

Found Fatal Exception Crashes from Testing #563

Mai-hh opened this issue Jun 3, 2024 · 0 comments

Comments

@Mai-hh
Copy link

Mai-hh commented Jun 3, 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 a bug that resulted in crashes 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 Receiver, 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.

com.simplemobiletools.clock.App

Execution trace:

01-22 08:23:45.054 14701 14717 E AndroidRuntime: FATAL EXCEPTION: Thread-2
01-22 08:23:45.054 14701 14717 E AndroidRuntime: Process: com.simplemobiletools.clock, PID: 14701
01-22 08:23:45.054 14701 14717 E AndroidRuntime: java.lang.NullPointerException: Parameter specified as non-null is null: method c4.l.e, parameter timer
01-22 08:23:45.054 14701 14717 E AndroidRuntime: 	at com.simplemobiletools.clock.App$g.a(SourceFile:3)
01-22 08:23:45.054 14701 14717 E AndroidRuntime: 	at com.simplemobiletools.clock.App$g.j(Unknown Source:2)
01-22 08:23:45.054 14701 14717 E AndroidRuntime: 	at c3.g$b.a(Unknown Source:14)
01-22 08:23:45.054 14701 14717 E AndroidRuntime: 	at c3.g$b.b(Unknown Source:0)
01-22 08:23:45.054 14701 14717 E AndroidRuntime: 	at m3.d.c(Unknown Source:5)
01-22 08:23:45.054 14701 14717 E AndroidRuntime: 	at m3.d.a(Unknown Source:0)
01-22 08:23:45.054 14701 14717 E AndroidRuntime: 	at m3.c.run(Unknown Source:2)
01-22 08:23:45.054 14701 14717 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:920)
01-22 08:23:45.057   524 14720 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
01-22 08:23:45.058   524   554 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
01-22 08:23:45.058   524   554 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
01-22 08:23:45.064 14701 14717 I Process : Sending signal. PID: 14701 SIG: 9
01-22 08:23:45.069   524   556 I libprocessgroup: Successfully killed process cgroup uid 10162 pid 14701 in 0ms
01-22 08:23:45.070   524  1221 I ActivityManager: Process com.simplemobiletools.clock (pid 14701) has died: cch+5 CEM 
01-22 08:23:45.071   307   307 I Zygote  : Process 14701 exited due to signal 9 (Killed)
01-22 08:23:48.083   524  1735 I ActivityManager: Force stopping com.simplemobiletools.clock appid=10162 user=0: from pid 14729
01-22 08:23:48.089   836   836 D CarrierSvcBindHelper: No carrier app for: 0
01-22 08:23:48.250  1088  1632 E ActivityThread: Failed to find provider info for com.google.android.apps.wellbeing.api
01-22 08:23:50.148   524   554 D CompatibilityChangeReporter: Compat change id reported: 135634846; UID 10162; state: DISABLED
01-22 08:23:50.148   524   554 D CompatibilityChangeReporter: Compat change id reported: 177438394; UID 10162; state: DISABLED
01-22 08:23:50.148   524   554 D CompatibilityChangeReporter: Compat change id reported: 135772972; UID 10162; state: DISABLED
01-22 08:23:50.148   524   554 D CompatibilityChangeReporter: Compat change id reported: 135754954; UID 10162; state: ENABLED
01-22 08:23:50.148   524   555 D CompatibilityChangeReporter: Compat change id reported: 143937733; UID 10162; state: ENABLED
01-22 08:23:50.153   307   307 D Zygote  : Forked child process 14736
01-22 08:23:50.154   524   555 I ActivityManager: Start proc 14736:com.simplemobiletools.clock/u0a162 for broadcast {com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.HideTimerReceiver}
01-22 08:23:50.161  5485  5494 I adbd    : jdwp connection from 14736
01-22 08:23:50.168   524  1263 D CompatibilityChangeReporter: Compat change id reported: 168419799; UID 10162; state: DISABLED
01-22 08:23:50.172 14736 14736 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10162; state: ENABLED
01-22 08:23:50.184 14736 14736 V GraphicsEnvironment: ANGLE Developer option for 'com.simplemobiletools.clock' set to: 'default'
01-22 08:23:50.185 14736 14736 V GraphicsEnvironment: ANGLE GameManagerService for com.simplemobiletools.clock: false
01-22 08:23:50.185 14736 14736 V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
01-22 08:23:50.187 14736 14736 D NetworkSecurityConfig: No Network Security Config specified, using platform default
01-22 08:23:50.187 14736 14736 D NetworkSecurityConfig: No Network Security Config specified, using platform default
01-22 08:23:50.190 14736 14736 D WM-WrkMgrInitializer: Initializing WorkManager with default configuration.

adb command that triggers it:

#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.BootCompletedReceiver" 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.BootCompletedReceiver" 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.commons.receivers.SharedThemeReceiver" 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.commons.receivers.SharedThemeReceiver" 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.commons.receivers.SharedThemeReceiver" 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.commons.receivers.SharedThemeReceiver" 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.commons.receivers.SharedThemeReceiver"  -a "android.content.Intent"
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.AlarmReceiver" 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.AlarmReceiver" 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.AlarmReceiver" --ei alarm_id 2 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.AlarmReceiver" --ei alarm_id 2 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.AlarmReceiver" --ei alarm_id 3 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.AlarmReceiver" --ei alarm_id 3 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.HideAlarmReceiver" 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.HideAlarmReceiver" 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.HideAlarmReceiver" --ei alarm_id 2 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.HideAlarmReceiver" --ei alarm_id 2 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.HideTimerReceiver" 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.HideTimerReceiver" 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.HideTimerReceiver" --ei timer_id 2 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.HideTimerReceiver" --ei timer_id 2 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0
#!/bin/bash

adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.UpdateWidgetReceiver" 
echo adb shell su 0 am broadcast -n "com.simplemobiletools.clock/com.simplemobiletools.clock.receivers.UpdateWidgetReceiver" 
sleep 3.0
adb shell am force-stop com.simplemobiletools.clock
sleep 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant