Expected behavior
I expected I'll be able to open txt file sent from another device via bluetooth.
Actual behavior
When I opt to read the txt file with amaze text editor, the app crashes.
How to reproduce
- download the app, launch it and allow all permissions
- transfer a text file from another device via bluetooth.
- open the file immediately from the inbound history
- the app crashes
- Device: Tecno Camon CM
- Operating system: Android 7.0
- Software version: 3.2.1
Recording Of The Bug
Logcat Report
This is a logcat report of the crash
[04-24 10:40:54.585 17689:17711 E/AndroidRuntime]
FATAL EXCEPTION: Thread-2
Process: com.amaze.filemanager, PID: 17689
java.lang.SecurityException: Permission Denial: writing android.support.v4.content.FileProvider uri content://com.google.android.bluetooth.fileprovider/bluetooth/storage/6530-6433/bluetooth/casino.txt from pid=17689, uid=10194 requires the provider be exported, or grantUriPermission()
at android.os.Parcel.readException(Parcel.java:1683)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:188)
at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:151)
at android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:621)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1016)
at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:851)
at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:805)
at com.amaze.filemanager.activities.TextReader.getInputStream(TextReader.java:685)
at com.amaze.filemanager.activities.TextReader.access$400(TextReader.java:92)
at com.amaze.filemanager.activities.TextReader$4.run(TextReader.java:461)
at java.lang.Thread.run(Thread.java:761)
Posted on Utopian.io - Rewarding Open Source Contributors
Hey @kodeblacc! Thank you for the great work you've done!
We're already looking forward to your next contribution!
Fully Decentralized Rewards
We hope you will take the time to share your expertise and knowledge by rating contributions made by others on Utopian.io to help us reward the best contributions together.
Utopian Witness!
Vote for Utopian Witness! We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief.
Want to chat? Join us on Discord https://discord.me/utopian-io
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit