summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-10-28 14:11:01 -0700
committerd34d <clark@cyngn.com>2015-10-28 14:11:01 -0700
commit66a1d0d715c0f3421d44a2556c3368ed75809b59 (patch)
tree3564c405d5a27a38898d2ffe307861a0215ea146 /cmds
parent2a7b426c032b907f163c4be81c68fac63c1541a2 (diff)
downloadframeworks_native-66a1d0d715c0f3421d44a2556c3368ed75809b59.zip
frameworks_native-66a1d0d715c0f3421d44a2556c3368ed75809b59.tar.gz
frameworks_native-66a1d0d715c0f3421d44a2556c3368ed75809b59.tar.bz2
installd: Use -f (force overwrite) for aapt
When re-creating resource apks for themes, aapt will fail if the apk already exists unless we use -f Change-Id: If2c3a634aa3ca061009aa6892530d643f8f67e9f
Diffstat (limited to 'cmds')
-rw-r--r--cmds/installd/commands.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/installd/commands.cpp b/cmds/installd/commands.cpp
index 84066dd..3b8cc0e 100644
--- a/cmds/installd/commands.cpp
+++ b/cmds/installd/commands.cpp
@@ -1724,6 +1724,7 @@ static void run_aapt(const char *source_apk, const char *internal_path,
"-I", common_res_path,
"-r", resapk_str,
"-x", pkgId_str,
+ "-f",
(char*)NULL);
} else {
execl(AAPT_BIN, AAPT_BIN, "package",
@@ -1734,6 +1735,7 @@ static void run_aapt(const char *source_apk, const char *internal_path,
"-I", FRAMEWORK_RES,
"-r", resapk_str,
"-x", pkgId_str,
+ "-f",
(char*)NULL);
}
ALOGE("execl(%s) failed: %s\n", AAPT_BIN, strerror(errno));