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

Oreo accessibility lifecycle issue #37

Closed
buFFalo94 opened this issue Dec 26, 2019 · 12 comments
Closed

Oreo accessibility lifecycle issue #37

buFFalo94 opened this issue Dec 26, 2019 · 12 comments
Labels
External dependency it depends in external features

Comments

@buFFalo94
Copy link

buFFalo94 commented Dec 26, 2019

On android Oreo OnServiceConnected is only called when you toggle on accessibility service for the first time thus the app will only work once, If you want to make it work again you'll need to reboot your device or to disable accessibility and enable it again

@romellfudi
Copy link
Owner

Mm... that happens when don't close correctly. You last action must be over() method

@buFFalo94
Copy link
Author

Oh sorry I tested on Pie
It's works on lollipop and Nougat
I've read on stackoverflow that it's happen on Oreo too

@buFFalo94
Copy link
Author

Even if you close it correctly, the next time it's won't work unless you reboot the phone or disabled and enable it again

@romellfudi
Copy link
Owner

M.mm...I don't think so, maybe it's a flag into library. Tell me only happens on Pie?

@buFFalo94
Copy link
Author

Yeah only pie

@romellfudi romellfudi added the bug Something isn't working label Dec 27, 2019
@buFFalo94
Copy link
Author

buFFalo94 commented Dec 27, 2019

I got more time to test on different phones running Pie, it's seems like a running some others but the issue persist on others.
Note that the issue does not seems to affect phones like Pixel which does not uses custom android OS

@romellfudi
Copy link
Owner

romellfudi commented Dec 27, 2019

Hi @buFFalo94 Please send me the log (tag: USSDService)
mmm... please use branch 'settings' instead of network library.

allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}

dependencies {
 implementation 'com.github.romellfudi.VoIpUSSD:ussd-library:RevSettings'
}

@romellfudi romellfudi added External dependency it depends in external features and removed bug Something isn't working labels Dec 27, 2019
@romellfudi romellfudi pinned this issue Jan 2, 2020
@romellfudi romellfudi unpinned this issue Jan 2, 2020
@romellfudi
Copy link
Owner

@buFFalo94, i test several times in my emulator (Android Pie - 9)and it works correctly.
Try to check the USSD class activity with the library that I have posted it before

@buFFalo94
Copy link
Author

buFFalo94 commented Jan 3, 2020

@buFFalo94, i test several times in my emulator (Android Pie - 9)and it works correctly.
Try to check the USSD class activity with the library that I have posted it before

Emulator never completely kill a process that's why it's seems to work
on actual device it's works too but if you clean up running apps accessibility service will stop to work until next phone reboot
You can make it work again without rebooting the phone by disabling and enabling again the accessibility service

@romellfudi
Copy link
Owner

On Samsung 8+ with Pie works very well, on Pixel which class name of ussd activity uses

@TigranSarkisian
Copy link

unfortunately still esxists on real device (sumsung s8 android 9)

@romellfudi
Copy link
Owner

@TigranSarkisian tell me the class name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External dependency it depends in external features
Projects
None yet
Development

No branches or pull requests

3 participants