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))
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值