This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Local media player is not loading SD CARD audio content in Android 6AO.1.1 & Jacinto6 EVM

Other Parts Discussed in Thread: DRA742

Hi,

As we are trying to load the audio files from SD Card, in LocalMediaPlayer, it is not loading the audio files.

I have analyzed the log and my understanding is, for internal storage, content resolver is fetching the audio content. But for the external storage(SD Card/USB ) content resolver couldnt fetch the content.

Please find the log as below

==================================================================================================================================================================

03-12 11:01:56.825   187  1251 I audio_hw_primary: out_write() open card 0 port 0
03-12 11:01:56.829   187  1251 W StreamHAL: Error from HAL stream in function get_presentation_position: Operation not permitted
03-12 11:01:58.157  5004  5004 D LMBService: onLoadChildren parentId=__ALBUMS__
03-12 11:01:58.169   966   966 D PagedListView: onLayout hasFocus: false, mLastItemCount: 4, itemCount: 4, focusedChild: null, firstBorn: android.widget.LinearLayout{af1e104 V.E...C.. ......I. 24,0-1368,726 #7f0b006c app:id/container}, isInTouchMode: true, mNeedsFocus: false

 

03-12 11:01:58.188  5004  5398 I LMBDataModel: uri => content://media/internal/audio/albums
03-12 11:01:58.188  5004  5398 I LMBDataModel: keyColumn =>78638153
03-12 11:01:58.189  5004  5398 I LMBDataModel: titleColumn => ui
03-12 11:01:58.189  5004  5398 I LMBDataModel: description => ui, null, null

 


03-12 11:01:58.202  5004  5398 I LMBDataModel: uri => content://media/external/audio/albums

03-12 11:01:58.218   966   966 D PagedListView: onLayout hasFocus: false, mLastItemCount: 4, itemCount: 4, focusedChild: null, firstBorn: android.widget.LinearLayout{af1e104 V.E...C.. ......ID 24,0-1368,726 #7f0b006c app:id/container}, isInTouchMode: true, mNeedsFocus: false
03-12 11:02:01.253   187   187 I audio_hw_primary: do_out_standby() close card 0 port 0

==================================================================================================================================================================

In order to resolve this, do we need to update any configuration in AFS.

Thanks in advance.

Best Regards,

Shareen Taj A

  • Hi,

    Please find my development environment as below

    CPU : DRA752-GP ES1.1
    Model: TI DRA742
    Board: DRA74x EVM REV G.0
    DRAM: 1.5 GiB

    Best Regards,
    Shareen Taj A
  • Hi,

    Could you capture couple of more data points?

    1) Test the behavior with music app.
    2) Test the behavior with external USB drive instead of sd card.

    Regards,
    Vishal

  • Hi Vishal,

    Please find my reply as below.

    1) Test the behavior with music app.

    => Music app is not available in 6AO.1.1 and I have copied from 6AO.1.0. But it is not loading the content from either USB or SD card


    2) Test the behavior with external USB drive instead of sd card.

    => Tried with USB, but it is not loading the content from USB in Local Media Player

  • I don't have access to a local setup at the moment, will try the same on my setup next week and update.
  • Hi,

    There are some additional steps needed for making apps to enable access to external storage. I think this started from Android M.

    1. The external storage needs to be defined as adoptable storage for enabling access to apps.
    2. When the external storage is defined as adoptable and then you connect the USB stick for first time follow the instructions below
      1. In the notification message, you would get a SETUP option when you connect first time
      2. A wizard is shown with two options, choose "Use as portable storage"
      3. Finish the wizard

    3. Now you should be able to see the USB drive contents in Music apps


    There are 2 ways to mark the storage as adoptable,

    1. Easier and short method, execute "sm set-force-adoptable true" command on console (one time command)
    2. Or, if you want the storage to be adoptable from build time, follow instructions for updating fstab file here

    Regards,
    Vishal