blob: 5666be8b354acc9f9575c8133f3b6c379e292b76 [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
Ivan Chiang6d53ba42021-09-16 14:02:10 +08004MODULE_BUILD_FROM_SOURCE=true ./build/soong/soong_ui.bash --make-mode -j64 MediaProviderLegacy com.google.android.mediaprovider
Jeff Sharkeyacc3b582019-12-07 11:52:32 -07005
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