breautek commented on issue #314:
URL: 
https://github.com/apache/cordova-plugin-media/issues/314#issuecomment-934115631


   Thanks for the investigation @sc0ttdav3y 
   
   This matches my findings, the external root directory `/storage/emulated/0/` 
(or it may be a `/sdcard` path if your device has a real external storage) is 
no longer writable starting in API 29/30. API offered an escape hatch, but 
today you must target API 30.
   
   The problematic line is 
   
   
https://github.com/apache/cordova-plugin-media/blob/e29fcc6355d8a07413feea46fcc78f05b78ce52f/src/android/AudioPlayer.java#L112
   
   If external media is mounted (which virtually all phones have external media 
due to emulation, hence the `/storage/emulated` name), it will attempt to write 
to it's root directory.
   
   Personally, I'm not sure on the original rationale. We should never write to 
an external medium unless explicitly requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to