Narayan Kamath | c5cc706 | 2020-01-08 17:24:45 +0000 | [diff] [blame] | 1 | set -e |
Jeff Sharkey | acc3b58 | 2019-12-07 11:52:32 -0700 | [diff] [blame] | 2 | |
| 3 | # Build both our APK and APEX combined together |
Ivan Chiang | 6d53ba4 | 2021-09-16 14:02:10 +0800 | [diff] [blame] | 4 | MODULE_BUILD_FROM_SOURCE=true ./build/soong/soong_ui.bash --make-mode -j64 MediaProviderLegacy com.google.android.mediaprovider |
Jeff Sharkey | acc3b58 | 2019-12-07 11:52:32 -0700 | [diff] [blame] | 5 | |
| 6 | # Push our updated APEX to device, then force apexd to remount it |
| 7 | adb shell stop |
Jeff Sharkey | e07f227 | 2019-12-10 10:11:25 -0700 | [diff] [blame] | 8 | adb remount |
Jeff Sharkey | acc3b58 | 2019-12-07 11:52:32 -0700 | [diff] [blame] | 9 | adb sync |
| 10 | adb shell umount /apex/com.android.mediaprovider* |
Ivan Chiang | 71da3d8 | 2021-04-19 14:06:53 +0800 | [diff] [blame] | 11 | adb shell rm -rf /data/apex/active/com.android.mediaprovider* |
| 12 | adb shell rm -rf /data/apex/decompressed/com.android.mediaprovider* |
Jeff Sharkey | 9a49764 | 2020-04-23 13:15:10 -0600 | [diff] [blame] | 13 | adb shell setprop apexd.status '""' |
Jeff Sharkey | acc3b58 | 2019-12-07 11:52:32 -0700 | [diff] [blame] | 14 | adb shell setprop ctl.restart apexd |
Jeff Sharkey | eea49d3 | 2019-12-11 17:45:38 -0700 | [diff] [blame] | 15 | adb shell rm -rf /system/priv-app/MediaProvider |
| 16 | adb shell rm -rf /system/priv-app/MediaProviderGoogle |
Jeff Sharkey | acc3b58 | 2019-12-07 11:52:32 -0700 | [diff] [blame] | 17 | adb shell start |