[2/2] omni: add OTA script do delete package cache
after flashing new image delete contents of /data/system/package_cache/
to make sure they are recreated. Outdated cache files are the
reason for the famous 'resource derps'
Change-Id: Iaf1f113a64242254b8fb33bc5b9fdef0c9fdb120
diff --git a/prebuilt/bin/clean_cache.sh b/prebuilt/bin/clean_cache.sh
new file mode 100755
index 0000000..5efbb42
--- /dev/null
+++ b/prebuilt/bin/clean_cache.sh
@@ -0,0 +1,10 @@
+#!/sbin/sh
+#
+# /system/bin/clean_cache.sh
+# During a firmware upgrade, this script deletes cache files
+# in /data/system/package_cache/*
+#
+
+if [ -d /data/system/package_cache/ ]; then
+ rm -fr /data/system/package_cache/*
+fi