Android 8.0 移除无用功能

Posted 王睿丶

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android 8.0 移除无用功能相关的知识,希望对你有一定的参考价值。

device/rockchip/common/BoardConfig.mk

@@ -220,7 +220,7 @@ BUILD_WITH_CRYPTO := false
 BOARD_USES_GENERIC_AUDIO ?= true

 # Wifi&Bluetooth
-BOARD_HAVE_BLUETOOTH ?= true
+BOARD_HAVE_BLUETOOTH ?= false
 BLUETOOTH_USE_BPLUS ?= false
 BOARD_HAVE_BLUETOOTH_BCM ?= false
 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR ?= device/rockchip/$(TARGET_BOARD_PLATFORM)/bluetooth
@@ -295,7 +295,7 @@ BOARD_IS_SUPPORT_NTFS ?= true
 BOARD_PPPOE_PASS_CTS ?= false

 # ethernet
-BOARD_HS_ETHERNET ?= true
+BOARD_HS_ETHERNET ?= false

 # Save commit id into firmware
 BOARD_RECORD_COMMIT_ID ?= false
@@ -309,7 +309,7 @@ CHARGER_DISABLE_INIT_BLANK ?= true
 BOARD_CHARGER_DISABLE_INIT_BLANK ?= true

 #stress test
-BOARD_HAS_STRESSTEST_APP ?= true
+BOARD_HAS_STRESSTEST_APP ?= false

 #boot optimization
 BOARD_WITH_BOOT_BOOST ?= false
@@ -353,8 +353,8 @@ BOARD_TEMPERATURE_SENSOR_SUPPORT ?= false
 BOARD_USB_HOST_SUPPORT ?= false
 BOARD_USB_ACCESSORY_SUPPORT ?= true
 BOARD_CAMERA_SUPPORT ?= false
-BOARD_BLUETOOTH_SUPPORT ?= true
-BOARD_BLUETOOTH_LE_SUPPORT ?= true
+BOARD_BLUETOOTH_SUPPORT ?= false
+BOARD_BLUETOOTH_LE_SUPPORT ?= false
 BOARD_WIFI_SUPPORT ?= true

device/rockchip/common/device.mk

@@ -44,8 +44,8 @@ else
   $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
 endif

-PRODUCT_AAPT_CONFIG ?= normal large xlarge hdpi xhdpi xxhdpi
-PRODUCT_AAPT_PREF_CONFIG ?= xhdpi
+PRODUCT_AAPT_CONFIG ?= normal large xlarge mdpi hdpi xhdpi xxhdpi
+PRODUCT_AAPT_PREF_CONFIG ?= hdpi

device\\rockchip\\common\\BoardConfig.mk

++ BOARD_HAVE_BLUETOOTH ?= false
++ BOARD_HS_ETHERNET ?= false
BOARD_HAS_STRESSTEST_APP ?= false
BOARD_BLUETOOTH_SUPPORT ?= false
BOARD_BLUETOOTH_LE_SUPPORT ?= false

以上是关于Android 8.0 移除无用功能的主要内容,如果未能解决你的问题,请参考以下文章

Android 8.0 移除系统APK

编译时让 LESS 移除无用的 ID

4.2Android Studio压缩你的代码和资源

4.2Android Studio压缩你的代码和资源

4.2Android Studio压缩你的代码和资源

MYSQL随笔十四 MySQL 8.0 移除的配置参数和状态变量