RK3288[android 7.1]调试笔记 去掉通讯录APK

1 用#把路径为/packages/apps/Dialer/Android.mk的文件屏蔽掉此编译规则

wangxd@build-server-100:~/work/dsy/rk3288-Android-7.0/packages/apps/Dialer((4095f56...))$ git diff
diff --git a/Android.mk b/Android.mk
old mode 100644
new mode 100755
index 975d396..23a87ab
--- a/Android.mk
+++ b/Android.mk
@@ -1,73 +1,73 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_TAGS := optional
-
-incallui_dir := InCallUI
-contacts_common_dir := ../ContactsCommon
-phone_common_dir := ../PhoneCommon
-
-ifeq ($(TARGET_BUILD_APPS),)
-support_library_root_dir := frameworks/support
-else
-support_library_root_dir := prebuilts/sdk/current/support
-endif
-
-src_dirs := src \
-    $(incallui_dir)/src \
-    $(contacts_common_dir)/src \
-    $(phone_common_dir)/src
-
-res_dirs := res \
-    $(incallui_dir)/res \
-    $(contacts_common_dir)/res \
-    $(contacts_common_dir)/icons/res \
-    $(phone_common_dir)/res
-
-src_dirs += \
-    src-N \
-    $(incallui_dir)/src-N \
-    $(contacts_common_dir)/src-N \
-    $(phone_common_dir)/src-N
-
-LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
-LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
-    $(support_library_root_dir)/v7/cardview/res \
-    $(support_library_root_dir)/v7/recyclerview/res \
-    $(support_library_root_dir)/v7/appcompat/res \
-    $(support_library_root_dir)/design/res
-
-LOCAL_AAPT_FLAGS := \
-    --auto-add-overlay \
-    --extra-packages android.support.v7.appcompat \
-    --extra-packages android.support.v7.cardview \
-    --extra-packages android.support.v7.recyclerview \
-    --extra-packages android.support.design \
-    --extra-packages com.android.incallui \
-    --extra-packages com.android.contacts.common \
-    --extra-packages com.android.phone.common
-
-LOCAL_STATIC_JAVA_LIBRARIES := \
-    android-common \
-    android-support-v13 \
-    android-support-v4 \
-    android-support-v7-appcompat \
-    android-support-v7-cardview \
-    android-support-v7-recyclerview \
-    android-support-design \
-    com.android.vcard \
-    guava \
-    libphonenumber
-
-LOCAL_PACKAGE_NAME := Dialer
-LOCAL_CERTIFICATE := shared
-LOCAL_PRIVILEGED_MODULE := true
-
-LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
-
-LOCAL_SDK_VERSION := current
-
-include $(BUILD_PACKAGE)
-
-# Use the following include to make our test apk.
-include $(call all-makefiles-under,$(LOCAL_PATH))
+#LOCAL_PATH:= $(call my-dir)
+#include $(CLEAR_VARS)
+#
+#LOCAL_MODULE_TAGS := optional
+#
+#incallui_dir := InCallUI
+#contacts_common_dir := ../ContactsCommon
+#phone_common_dir := ../PhoneCommon
+#
+#ifeq ($(TARGET_BUILD_APPS),)
+#support_library_root_dir := frameworks/support
+#else
+#support_library_root_dir := prebuilts/sdk/current/support
+#endif
+#
+#src_dirs := src \
+#    $(incallui_dir)/src \
+#    $(contacts_common_dir)/src \
+#    $(phone_common_dir)/src
+#
+#res_dirs := res \
+#    $(incallui_dir)/res \
+#    $(contacts_common_dir)/res \
+#    $(contacts_common_dir)/icons/res \
+#    $(phone_common_dir)/res
+#
+#src_dirs += \
+#    src-N \
+#    $(incallui_dir)/src-N \
+#    $(contacts_common_dir)/src-N \
+#    $(phone_common_dir)/src-N
+#
+#LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
+#LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
+#    $(support_library_root_dir)/v7/cardview/res \
+#    $(support_library_root_dir)/v7/recyclerview/res \
+#    $(support_library_root_dir)/v7/appcompat/res \
+#    $(support_library_root_dir)/design/res
+#
+#LOCAL_AAPT_FLAGS := \
+#    --auto-add-overlay \
+#    --extra-packages android.support.v7.appcompat \
+#    --extra-packages android.support.v7.cardview \
+#    --extra-packages android.support.v7.recyclerview \
+#    --extra-packages android.support.design \
+#    --extra-packages com.android.incallui \
+#    --extra-packages com.android.contacts.common \
+#    --extra-packages com.android.phone.common
+#
+#
+#LOCAL_STATIC_JAVA_LIBRARIES := \
+#    android-common \
+#    android-support-v13 \
+#    android-support-v4 \
+#    android-support-v7-appcompat \
+#    android-support-v7-cardview \
+#    android-support-v7-recyclerview \
+#    android-support-design \
+#    com.android.vcard \
+#    guava \
+#    libphonenumber
+#
+#LOCAL_PACKAGE_NAME := Dialer
+#LOCAL_CERTIFICATE := shared
+#LOCAL_PRIVILEGED_MODULE := true
+#
+#LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(incallui_dir)/proguard.flags
+#
+#LOCAL_SDK_VERSION := current
+#
+#include $(BUILD_PACKAGE)
+#
+## Use the following include to make our test apk.
+#include $(call all-makefiles-under,$(LOCAL_PATH))

**2 用#把路径为/packages/apps/ContactsAndroid.mk的文件也要屏蔽掉此编译规则 **

wangxd@build-server-100:~/work/dsy/rk3288-Android-7.0/packages/apps/Contacts((15922c5...))$ git diff
diff --git a/Android.mk b/Android.mk
old mode 100644
new mode 100755
index f0fdce2..52e45fd
--- a/Android.mk
+++ b/Android.mk
@@ -1,52 +1,52 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_TAGS := optional
-
-contacts_common_dir := ../ContactsCommon
-phone_common_dir := ../PhoneCommon
-
-ifeq ($(TARGET_BUILD_APPS),)
-support_library_root_dir := frameworks/support
-else
-support_library_root_dir := prebuilts/sdk/current/support
-endif
-
-src_dirs := src $(contacts_common_dir)/src $(phone_common_dir)/src
-res_dirs := res res-aosp $(contacts_common_dir)/res $(contacts_common_dir)/icons/res $(phone_com
-asset_dirs := $(contacts_common_dir)/assets
-
-LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
-LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
-    $(support_library_root_dir)/v7/cardview/res
-LOCAL_ASSET_DIR := $(addprefix $(LOCAL_PATH)/, $(asset_dirs))
-
-LOCAL_AAPT_FLAGS := \
-    --auto-add-overlay \
-    --extra-packages com.android.contacts.common \
-    --extra-packages com.android.phone.common \
-    --extra-packages android.support.v7.cardview
-
-LOCAL_STATIC_JAVA_LIBRARIES := \
-    com.android.vcard \
-    android-common \
-    guava \
-    android-support-v13 \
-    android-support-v7-cardview \
-    android-support-v7-palette \
-    android-support-v4 \
-    libphonenumber
-
-LOCAL_PACKAGE_NAME := Contacts
-LOCAL_CERTIFICATE := shared
-LOCAL_PRIVILEGED_MODULE := true
-
-LOCAL_PROGUARD_FLAG_FILES := proguard.flags
-
-LOCAL_SDK_VERSION := current
-LOCAL_MIN_SDK_VERSION := 21
-
-include $(BUILD_PACKAGE)
-
-# Use the folloing include to make our test apk.
-include $(call all-makefiles-under,$(LOCAL_PATH))
+#LOCAL_PATH:= $(call my-dir)
+#include $(CLEAR_VARS)
+#
+#LOCAL_MODULE_TAGS := optional
+#
+#contacts_common_dir := ../ContactsCommon
+#phone_common_dir := ../PhoneCommon
+#
+#ifeq ($(TARGET_BUILD_APPS),)
+#support_library_root_dir := frameworks/support
+#else
+#support_library_root_dir := prebuilts/sdk/current/support
+#endif
+#
+#src_dirs := src $(contacts_common_dir)/src $(phone_common_dir)/src
+#res_dirs := res res-aosp $(contacts_common_dir)/res $(contacts_common_dir)/icons/res $(phone_co
+#asset_dirs := $(contacts_common_dir)/assets
+#
+#LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
+#LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
+#    $(support_library_root_dir)/v7/cardview/res
+#LOCAL_ASSET_DIR := $(addprefix $(LOCAL_PATH)/, $(asset_dirs))
+#
+#LOCAL_AAPT_FLAGS := \
+#    --auto-add-overlay \
+#    --extra-packages com.android.contacts.common \
+#    --extra-packages com.android.phone.common \
+#    --extra-packages android.support.v7.cardview
+#
+#LOCAL_STATIC_JAVA_LIBRARIES := \
+#    com.android.vcard \
+#    android-common \
+#    guava \
+#    android-support-v13 \
+#    android-support-v7-cardview \
+#    android-support-v7-palette \
+#    android-support-v4 \
+#    libphonenumber
+#
+#LOCAL_PACKAGE_NAME := Contacts
+#LOCAL_CERTIFICATE := shared
+#LOCAL_PRIVILEGED_MODULE := true
+#
+#LOCAL_PROGUARD_FLAG_FILES := proguard.flags
+#
+#LOCAL_SDK_VERSION := current
+#LOCAL_MIN_SDK_VERSION := 21
+#
+#include $(BUILD_PACKAGE)
+#
+## Use the folloing include to make our test apk.
+#include $(call all-makefiles-under,$(LOCAL_PATH))

你可能感兴趣的:(RK32887.0,调试笔记)