tree: c4359f0bc0f8caefa10f48049132b18ef147d562 [path history] [tgz]
  1. media_provider_cli_wrapper.sh
  2. README.md
cli/README.md

media_provider_cli_wrapper.sh is a thin wrapper script that exposes MediaProvider CLI. It's meant to be used similarly to other on-device shell binaries that expose CLIs to Android system services, such as am, pm, wm, ime etc.

For example:

adb shell media_provider version

On device media_provider binary is found in /apex/com.android.mediaprovider/bin/media_provider, which, at the moment, is NOT included in $PATH, so in order to run media_provider you need to provide the full path to the binary, e.g.:

adb shell /apex/com.android.mediaprovider/bin/media_provider version

If you find yourself using media_provider often you may consider settings up an alias, e.g.:

alias amp="adb shell /apex/com.android.mediaprovider/bin/media_provider"

or

adb root
adb remount
adb shell ln -s -t /system/bin /apex/com.android.mediaprovider/bin/media_provider