一、背景
最新发现系统内存不够,而且有些 APK 不需要
故,去掉android 8.1 高通平台自带的通讯录和camera apk
二、修改方法
From e40da3c47e761ded8d93c1b630287e2705165d42 Mon Sep 17 00:00:00 2001
Date: Fri, 27 Dec 2019 14:11:08 +0800
优化系统内存去掉通讯录和camera apk
modified: build/make/target/product/core.mk
modified: build/make/target/product/generic_no_telephony.mk
modified: build/make/target/product/sdk_base.mk
modified: packages/apps/Bluetooth/res/values/config.xml
modified: packages/apps/Settings/Android.mk
modified: vendor/qcom/proprietary/common/config/device-vendor.mk
(cherry picked from commit 3aa040bc49b0912123875bca2c7c93da65a916b9)
Change-Id: I2ea6d22589b33b93f22d8d62951007d8e983e5d5
---
diff --git a/build/make/target/product/core.mk b/build/make/target/product/core.mk
index ae853fd..f0a7d22 100755
--- a/build/make/target/product/core.mk
+++ b/build/make/target/product/core.mk
@@ -26,7 +26,6 @@
BookmarkProvider \
CaptivePortalLogin \
CertInstaller \
- Contacts \
ExternalStorageProvider \
FusedLocation \
InputDevices \
@@ -59,6 +58,7 @@
# CalendarProvider \
# DeskClock \
# ExactCalculator \
+# Contacts \
#ALIPAY END
diff --git a/build/make/target/product/generic_no_telephony.mk b/build/make/target/product/generic_no_telephony.mk
old mode 100644
new mode 100755
index de7af9d..61f2e0a
--- a/build/make/target/product/generic_no_telephony.mk
+++ b/build/make/target/product/generic_no_telephony.mk
@@ -20,7 +20,6 @@
PRODUCT_PACKAGES := \
Bluetooth \
BluetoothMidiService \
- Camera2 \
OneTimeInitializer \
SystemUI \
SysuiDarkThemeOverlay \
@@ -33,6 +32,7 @@
# Music \
# MusicFX \
# Provision \
+# Camera2 \
#ALIPAY END
diff --git a/build/make/target/product/sdk_base.mk b/build/make/target/product/sdk_base.mk
index 5904300..0e4c415 100755
--- a/build/make/target/product/sdk_base.mk
+++ b/build/make/target/product/sdk_base.mk
@@ -29,7 +29,6 @@
Dialer \
EmulatorSmokeTests \
GestureBuilder \
- Camera2 \
librs_jni \
libwnndict \
libWnnEngDic \
@@ -52,6 +51,7 @@
#PRODUCT_PACKAGES := \
# Mms \
+# Camera2 \
#ALIPAY END
diff --git a/packages/apps/Bluetooth/res/values/config.xml b/packages/apps/Bluetooth/res/values/config.xml
old mode 100644
new mode 100755
index 05448c5..a0f413b
--- a/packages/apps/Bluetooth/res/values/config.xml
+++ b/packages/apps/Bluetooth/res/values/config.xml
@@ -16,12 +16,12 @@
<bool name="profile_supported_a2dp">true</bool>
<bool name="profile_supported_a2dp_sink">false</bool>
<bool name="profile_supported_hdp">true</bool>
- <bool name="profile_supported_hs_hfp">true</bool>
+ <bool name="profile_supported_hs_hfp">false</bool>
<bool name="profile_supported_hfpclient">false</bool>
<bool name="profile_supported_hid">true</bool>
<bool name="profile_supported_opp">true</bool>
<bool name="profile_supported_pan">true</bool>
- <bool name="profile_supported_pbap">true</bool>
+ <bool name="profile_supported_pbap">false</bool>
<bool name="profile_supported_gatt">true</bool>
<bool name="pbap_include_photos_in_vcard">true</bool>
<bool name="pbap_use_profile_for_owner_vcard">true</bool>
diff --git a/packages/apps/Settings/Android.mk b/packages/apps/Settings/Android.mk
index 7fc2f51..f5e4c67 100755
--- a/packages/apps/Settings/Android.mk
+++ b/packages/apps/Settings/Android.mk
@@ -17,6 +17,8 @@
LOCAL_MODULE_TAGS := optional
LOCAL_USE_AAPT2 := true
+LOCAL_OVERRIDES_PACKAGES := SnapdragonCamera
+
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_STATIC_ANDROID_LIBRARIES := \
diff --git a/vendor/qcom/proprietary/common/config/device-vendor.mk b/vendor/qcom/proprietary/common/config/device-vendor.mk
index f2fe67d..9eb8788 100755
--- a/vendor/qcom/proprietary/common/config/device-vendor.mk
+++ b/vendor/qcom/proprietary/common/config/device-vendor.mk
@@ -2922,7 +2922,7 @@
MM_CAMERA += libmmcamera_tintless_algo
MM_CAMERA += libmmcamera_tintless_bg_pca_algo
MM_CAMERA += secure_camera_sample_client
-MM_CAMERA += SnapdragonCamera
+#MM_CAMERA += SnapdragonCamera
MM_CAMERA += PIPCamera
MM_CAMERA += AWBTestApp
三、搞定
网友评论