Commit 46d473b
committed
fix: avoid android.os.strictmode.UnbufferedIoViolation by using BufferedInputStream
- Wrap InputStream with BufferedInputStream to ensure buffered I/O and
prevent UnbufferedIoViolation in Android 14 (SDK 34).
- Use try-with-resources to automatically close streams, improving resource management.
- Retain existing functionality for converting InputStream to a UTF-8 string.
This change ensures compliance with Android 14's stricter I/O policies.1 parent d2e72df commit 46d473b
File tree
1 file changed
+9
-6
lines changed- firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common
1 file changed
+9
-6
lines changedLines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
435 | 439 | | |
436 | | - | |
437 | 440 | | |
438 | 441 | | |
439 | 442 | | |
| |||
0 commit comments