summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2009-10-02 09:20:45 -0700
committerJean-Baptiste Queru <jbq@google.com>2009-10-02 09:20:45 -0700
commita2a9eeca1ab465ef6bfcc36282b537caa9c93347 (patch)
tree8104dd7ba9f25144744642756bc0434600b90079
parent5a30c843a939669d63b71dfc67296b285c2d922b (diff)
downloadprebuilt-open-a2a9eeca1ab465ef6bfcc36282b537caa9c93347.tar.gz
Scripts to handle htc prebuilts
-rw-r--r--.gitignore1
-rw-r--r--Android.mk33
-rwxr-xr-xextract-files.sh9
3 files changed, 43 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f5b82f3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+proprietary/*
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..06d01f3
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,33 @@
+ifeq ($(BOARD_USE_HTC_APPS),true)
+
+LOCAL_PATH:= $(call my-dir)
+
+###############################################################################
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := FieldTest
+LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE).apk
+LOCAL_MODULE_CLASS := APPS
+LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
+
+include $(BUILD_PREBUILT)
+
+###############################################################################
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := proprietary/debug_tool
+LOCAL_MODULE := debug_tool
+LOCAL_MODULE_CLASS := EXECUTABLES
+
+include $(BUILD_PREBUILT)
+
+###############################################################################
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := proprietary/htclogkernel
+LOCAL_MODULE := htclogkernel
+LOCAL_MODULE_CLASS := EXECUTABLES
+
+include $(BUILD_PREBUILT)
+
+endif # ifeq ($(BOARD_USE_HTC_APPS),true)
diff --git a/extract-files.sh b/extract-files.sh
new file mode 100755
index 0000000..ee23de1
--- /dev/null
+++ b/extract-files.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+mkdir -p proprietary
+
+adb pull /system/app/FieldTest.apk proprietary/FieldTest.apk
+adb pull /system/bin/debug_tool proprietary/debug_tool
+chmod 755 proprietary/debug_tool
+adb pull /system/bin/htclogkernel proprietary/htclogkernel
+chmod 755 proprietary/htclogkernel