-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Leak in MediaScannerConnection #26
Comments
Dang. That's another binder leak. Can you give me a link to the |
Thanks, here you can find the demo sources: https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis/content/ExternalStorage.java |
When passing an activity context, the service should automatically unbind when the activity is destroyed. MediaScannerConnection#mService should have been null. Could you provide a link to the heap dump so that I have a look? |
I'd like to do that but it looks like I can't share with any app (Inbox, GMail, beam transfer, upload on Google Drive, ...): is it stored in the private app space? |
Yes. This will be fixed in #27 . In the meantime, you can use |
Yep, I tried earlier to run that command, always getting "permission-denied" error or "read-only file system"... maybe because my device is encrypted? Let me know if you have any trouble getting the files. Thanks! |
@fasteque if |
It seems never call onServiceDisconnected method on MediaScannerConnection class when App exits. |
My code simply call the
scanFile
like theExternalStorage
official APIs demo.Found it while testing my app but I'm not able to reproduce it systematically.
The text was updated successfully, but these errors were encountered: