Add MediaProvider CLI

Implement Command-line Interface for MediaProvider.
In order to issue MediaProvider CLI commands allowed users (shell and
root) should open 'content://media/cli' for reading and supply the
command and the arguments in the query part of the URI in the following
format: "?cmd=command[+arg1+[arg2+[arg3...]]]".

Bug: -
Test: build and install MediaProvider APEX module
Test: adb unroot
 adb shell /apex/com.android.mediaprovider/bin/media_provider \
   help
 adb shell /apex/com.android.mediaprovider/bin/media_provider \
   version
 adb shell /apex/com.android.mediaprovider/bin/media_provider \
   list
 adb shell /apex/com.android.mediaprovider/bin/media_provider \
   list --all
 adb shell /apex/com.android.mediaprovider/bin/media_provider \
   list --allowlist
 adb shell /apex/com.android.mediaprovider/bin/media_provider \
   info
 adb shell /apex/com.android.mediaprovider/bin/media_provider \
   set <autority>
 adb shell /apex/com.android.mediaprovider/bin/media_provider \
   unset

Change-Id: I70113241003f120d46fc7e02c348c99880082b96
9 files changed