summaryrefslogtreecommitdiff
path: root/deploy.sh
blob: e6edccee82d10e845e77cfbedae864c88bf7e81b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
set -e

# Build both our APK and APEX combined together
./build/soong/soong_ui.bash --make-mode -j64 MediaProviderLegacy com.google.android.mediaprovider

# Push our updated APEX to device, then force apexd to remount it
adb shell stop
adb remount
adb sync
adb shell umount /apex/com.android.mediaprovider*
adb shell setprop apexd.status '""'
adb shell setprop ctl.restart apexd
adb shell rm -rf /system/priv-app/MediaProvider
adb shell rm -rf /system/priv-app/MediaProviderGoogle
adb shell start