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

Patch 1 #120

Closed
wants to merge 6 commits into from
Closed

Patch 1 #120

wants to merge 6 commits into from

Conversation

tarek-sat
Copy link
Contributor

@tarek-sat tarek-sat commented May 29, 2024

Hello,

On my phone: OPPO Reno5 with android 13
the USSD class name is "androidx.appcompat.app.e", for both the waiting dialog and the result dialog
as a solution, we should skip the waiting dialog by detecting the content text if it exists, to understand me see the log:


onAccessibilityEvent: [type] 32 [class] androidx.appcompat.app.e [package] com.android.phone [time] 264995246 [text] [Running USSD code…]
onAccessibilityEvent
onAccessibilityEvent: [type] 32 [class] androidx.appcompat.app.e [package] com.android.phone [time] 264995246 [text] [Running USSD code…]
onAccessibilityEvent: [type] 32 [class] androidx.appcompat.app.e [package] com.android.phone [time] 264995246 [text] [Running USSD code…]
onAccessibilityEvent
onAccessibilityEvent
onAccessibilityEvent
onAccessibilityEvent: [type] 32 [class] com.android.phone.MMIDialogActivity [package] com.android.phone [time] 264995264 [text] [Phone Services]
onAccessibilityEvent: [type] 32 [class] com.android.phone.MMIDialogActivity [package] com.android.phone [time] 264995264 [text] [Phone Services]
onAccessibilityEvent: [type] 32 [class] com.android.phone.MMIDialogActivity [package] com.android.phone [time] 264995264 [text] [Phone Services]
onAccessibilityEvent
onAccessibilityEvent
onAccessibilityEvent: [type] 32 [class] androidx.appcompat.app.e [package] com.android.phone [time] 264998136 [text] [Crédit 303.67DA. Appels en national GRATUITS illimités, Bonus internet :21637.03 Mo. SMS autres : 30 au 050624, OK]
onAccessibilityEvent
onAccessibilityEvent: [type] 32 [class] androidx.appcompat.app.e [package] com.android.phone [time] 264998136 [text] [Crédit 303.67DA. Appels en national GRATUITS illimités, Bonus internet :21637.03 Mo. SMS autres : 30 au 050624, OK]
onAccessibilityEvent: [type] 32 [class] androidx.appcompat.app.e [package] com.android.phone [time] 264998136 [text] [Crédit 303.67DA. Appels en national GRATUITS illimités, Bonus internet :21637.03 Mo. SMS autres : 30 au 050624, OK]

@tarek-sat
Copy link
Contributor Author

I think it would be better to add a variable that allows users to add their classes and skip waiting dialogs
like the map:
map.put("accepted_class",new HashSet<>(Arrays.asList("android.app.AlertDialog", "color.support.v7.app.AlertDialog", "androidx.appcompat.app.e")));
map.put("skipped_text",new HashSet<>(Arrays.asList("[Running USSD code…]", "[Other USSD MSG...]")));

Copy link
Owner

@romellfudi romellfudi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your idea is awesome, however, we couldn't set a message filter due to device language.

@tarek-sat tarek-sat closed this Jul 30, 2024
@tarek-sat tarek-sat deleted the patch-1 branch July 30, 2024 08:16
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

Successfully merging this pull request may close these issues.

2 participants