summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
author Ivan Chiang <chiangi@google.com> 2021-04-19 14:06:53 +0800
committer Ivan Chiang <chiangi@google.com> 2021-04-19 14:26:35 +0800
commit71da3d852f5adbc246c5f33e8a8fb559dc2391c9 (patch)
tree25b5d7b773d4c929029410911a2ddf4a06f22b6d /deploy.sh
parent7b46e42667482723cc1e1a34513e622eeb5ebc4f (diff)
Update the deploy.sh
When APEX compression is enabled, it will mount the decompressed apex that is locate on data/apex. Remove the existed one to update the new apex. Test: deploy.sh Bug: 185734139 Change-Id: Idb95bcdeded4aa189b2e6484392b4760439d7ba5
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index e6edccee8..cc1be8e2e 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -8,6 +8,8 @@ adb shell stop
adb remount
adb sync
adb shell umount /apex/com.android.mediaprovider*
+adb shell rm -rf /data/apex/active/com.android.mediaprovider*
+adb shell rm -rf /data/apex/decompressed/com.android.mediaprovider*
adb shell setprop apexd.status '""'
adb shell setprop ctl.restart apexd
adb shell rm -rf /system/priv-app/MediaProvider