You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 36ed224bac
Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
1 year ago
..
README.md Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
media_provider_cli_wrapper.sh Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago

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