blob: cc1be8e2e342ead20597e4ff66e4e302fb940166 [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*
Ivan Chiang71da3d82021-04-19 14:06:53 +080011adb shell rm -rf /data/apex/active/com.android.mediaprovider*
12adb shell rm -rf /data/apex/decompressed/com.android.mediaprovider*
Jeff Sharkey9a497642020-04-23 13:15:10 -060013adb shell setprop apexd.status '""'
Jeff Sharkeyacc3b582019-12-07 11:52:32 -070014adb shell setprop ctl.restart apexd
Jeff Sharkeyeea49d32019-12-11 17:45:38 -070015adb shell rm -rf /system/priv-app/MediaProvider
16adb shell rm -rf /system/priv-app/MediaProviderGoogle
Jeff Sharkeyacc3b582019-12-07 11:52:32 -070017adb shell start