aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2015-09-04 11:55:18 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2015-09-04 12:52:48 +0000
commit87374e6e75aeaf958881be4522063949ad557796 (patch)
tree343b597e0bc6cf3c16d2c3ca816d3ded7f90f928 /tools
parent4baefdc226efc9d446c9f5d24a03b799e24e661e (diff)
Make android_binary use a constant, hard-coded, checked-in debug key.
This is because apkbuilder uses $HOME/.android/debug.keystore by default, which does not exist when running within the sandbox, thus, it always generates a new debug key, and thus, "adb install -r" doesn't work. -- MOS_MIGRATED_REVID=102331570
Diffstat (limited to 'tools')
-rw-r--r--tools/android/BUILD12
-rw-r--r--tools/android/bazel_debug.keystorebin0 -> 2149 bytes
2 files changed, 12 insertions, 0 deletions
diff --git a/tools/android/BUILD b/tools/android/BUILD
index ab2dc6f51e..619e6f736b 100644
--- a/tools/android/BUILD
+++ b/tools/android/BUILD
@@ -136,6 +136,18 @@ py_test(
],
)
+# If needed, this file can be regenerated by (validity is 30 * 365 days):
+# keytool -genkeypair \
+# -alias androiddebugkey \
+# -dname "CN=Android Debug, O=Android, C=US" \
+# -keystore cica \
+# -sigalg SHA256withDSA \
+# -validity 10950
+filegroup(
+ name = "debug_keystore",
+ srcs = ["bazel_debug.keystore"],
+)
+
filegroup(
name = "srcs",
srcs = glob(["**"]),
diff --git a/tools/android/bazel_debug.keystore b/tools/android/bazel_debug.keystore
new file mode 100644
index 0000000000..723ba9a237
--- /dev/null
+++ b/tools/android/bazel_debug.keystore
Binary files differ