summaryrefslogtreecommitdiffstats
path: root/cmds/content/Android.mk
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2012-02-03 19:19:09 -0800
committerSvetoslav Ganov <svetoslavganov@google.com>2012-02-15 14:55:47 -0800
commit25872aa3ef189ae5506a923398af11ce5eb1a9b9 (patch)
treeece1cffcc342e5e7133ca42d33ce97bbf403f779 /cmds/content/Android.mk
parent91ec0b722f659bb5e4bcc64339f2fbbe30a31287 (diff)
downloadframeworks_base-25872aa3ef189ae5506a923398af11ce5eb1a9b9.zip
frameworks_base-25872aa3ef189ae5506a923398af11ce5eb1a9b9.tar.gz
frameworks_base-25872aa3ef189ae5506a923398af11ce5eb1a9b9.tar.bz2
Adding shell commands for modifying content.
1. Added methods to the ActivityManagerService remote interface that allow accessing content providers outside of an application. These methods are guarded by an internal signature protected permission which is given to the shell user. This enables a shell program to access content providers. 2. Implemented a shell command that takes as input as standart fagls with values and manipulates content via the content provider mechanism. Change-Id: I2943f8b59fbab33eb623458fa01ea61a077b9845
Diffstat (limited to 'cmds/content/Android.mk')
-rw-r--r--cmds/content/Android.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/cmds/content/Android.mk b/cmds/content/Android.mk
new file mode 100644
index 0000000..33fd664
--- /dev/null
+++ b/cmds/content/Android.mk
@@ -0,0 +1,31 @@
+# Copyright 2012 The Android Open Source Project
+
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-subdir-java-files)
+LOCAL_MODULE := content
+include $(BUILD_JAVA_LIBRARY)
+
+include $(CLEAR_VARS)
+ALL_PREBUILT += $(TARGET_OUT)/bin/content
+$(TARGET_OUT)/bin/content : $(LOCAL_PATH)/content | $(ACP)
+ $(transform-prebuilt-to-target)
+
+NOTICE_FILE := NOTICE
+files_noticed := bin/content
+
+# Generate rules for a single file. The argument is the file path relative to
+# the installation root
+define make-notice-file
+
+$(TARGET_OUT_NOTICE_FILES)/src/$(1).txt: $(LOCAL_PATH)/$(NOTICE_FILE)
+ @echo Notice file: $$< -- $$@
+ @mkdir -p $$(dir $$@)
+ @cat $$< >> $$@
+
+$(TARGET_OUT_NOTICE_FILES)/hash-timestamp: $(TARGET_OUT_NOTICE_FILES)/src/$(1).txt
+
+endef
+
+$(foreach file,$(files_noticed),$(eval $(call make-notice-file,$(file))))