Update tools/build_sample_apk.py
Fix allowed parameters for api level
Allow removal of META-INF to fail if it is not there
Don't pass guava if we are building the simple app (that does not use guava)
Bug: 148441055
Change-Id: I2e2ef61c16e55280f043e2ac7097ec97bab257f6
diff --git a/tools/apk_utils.py b/tools/apk_utils.py
index 69a9db9..9155657 100644
--- a/tools/apk_utils.py
+++ b/tools/apk_utils.py
@@ -10,7 +10,7 @@
def sign(unsigned_apk, signed_apk, keystore, quiet=False, logging=True):
utils.Print('Signing (ignore the warnings)', quiet=quiet)
cmd = ['zip', '-d', unsigned_apk, 'META-INF/*']
- utils.RunCmd(cmd, quiet=quiet, logging=logging)
+ utils.RunCmd(cmd, quiet=quiet, logging=logging, fail=False)
cmd = [
'jarsigner',
'-sigalg', 'SHA1withRSA',