Opp: Use MediaStore to handle received file
getExternalStorageDirectory was deprecated in API level 29.
To improve user privacy, direct access to shared/external
storage devices is deprecated.
Use MediaStore to handle received file as alternative.
Now the files will be downloaded to the "Download" folder.
Bug: 149610220
Test: manual
Change-Id: I45b6fdb7ba7957d19ce3bf92c6c36711c8433c09
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 6dc6cab..0d92f88 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -82,8 +82,7 @@
android:supportsRtl="true"
android:usesCleartextTraffic="false"
android:directBootAware="true"
- android:defaultToDeviceProtectedStorage="true"
- android:requestLegacyExternalStorage="true">
+ android:defaultToDeviceProtectedStorage="true">
<uses-library android:name="javax.obex" />
<provider android:name=".opp.BluetoothOppProvider"
android:authorities="com.android.bluetooth.opp"