blob: 22524c0ba74d3c21f93a53e16636467b9c3f76c6 [file] [log] [blame]
Narayan Kamathc5cc7062020-01-08 17:24:45 +00001set -e
Jeff Sharkeyacc3b582019-12-07 11:52:32 -07002
3# Build both our APK and APEX combined together
4./build/soong/soong_ui.bash --make-mode -j64 MediaProviderLegacy com.google.android.mediaprovider
5
6# Push our updated APEX to device, then force apexd to remount it
7adb shell stop
Jeff Sharkeye07f2272019-12-10 10:11:25 -07008adb remount
Jeff Sharkeyacc3b582019-12-07 11:52:32 -07009adb sync
10adb shell umount /apex/com.android.mediaprovider*
11adb shell setprop ctl.restart apexd
Jeff Sharkeyeea49d32019-12-11 17:45:38 -070012adb shell rm -rf /system/priv-app/MediaProvider
13adb shell rm -rf /system/priv-app/MediaProviderGoogle
Jeff Sharkeyacc3b582019-12-07 11:52:32 -070014adb shell start