blob: e6edccee82d10e845e77cfbedae864c88bf7e81b [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*
Jeff Sharkey9a497642020-04-23 13:15:10 -060011adb shell setprop apexd.status '""'
Jeff Sharkeyacc3b582019-12-07 11:52:32 -070012adb shell setprop ctl.restart apexd
Jeff Sharkeyeea49d32019-12-11 17:45:38 -070013adb shell rm -rf /system/priv-app/MediaProvider
14adb shell rm -rf /system/priv-app/MediaProviderGoogle
Jeff Sharkeyacc3b582019-12-07 11:52:32 -070015adb shell start