删除无用APk

系统备份、cts测试相关、系统壁纸备份

build/make/target/product/base_system.mk

@@ -41,7 +41,6 @@ PRODUCT_PACKAGES += \ashmemd \atrace \audioserver \
-    BackupRestoreConfirmation \bcc \blank_screen \blkid \
@@ -59,8 +58,6 @@ PRODUCT_PACKAGES += \ContactsProvider \content \crash_dump \
-    CtsShimPrebuilt \
-    CtsShimPrivPrebuilt \debuggerd\device_config \dmctl \
@@ -261,7 +258,6 @@ PRODUCT_PACKAGES += \viewcompiler \voip-common \vold \
-    WallpaperBackup \watchdogd \wificond \wifi-service \
@@ -373,7 +369,6 @@ PRODUCT_PACKAGES_DEBUG := \# The set of packages whose code can be loaded by the system server.PRODUCT_SYSTEM_SERVER_APPS += \SettingsProvider \
-    WallpaperBackup

浏览器、日历、联系人、邮箱、Android键盘、初始化相关、快速搜索框

build/make/target/product/handheld_product.mk

@@ -22,18 +22,11 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/media_product.mk)# /product packagesPRODUCT_PACKAGES += \
-    Browser2 \
-    Calendar \Camera2 \
-    Contacts \DeskClock \
-    Email \Gallery2 \
-    LatinIME \Launcher3QuickStep \
-    OneTimeInitializer \Provision \
-    QuickSearchBox \Settings \SettingsIntelligence \StorageManager \

基本互动屏保、书签数据库、日历数据库、文件管理器、安卓彩蛋、短信管理服务、音乐音效控制、NFC、OSU帐号登录、代理配置、运营商对话框、系统跟踪、用户字典数据库

build/make/target/product/handheld_system.mk

@@ -32,45 +32,31 @@ $(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk)$(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk)PRODUCT_PACKAGES += \
-    BasicDreams \BlockedNumberProvider \Bluetooth \BluetoothMidiService \
-    BookmarkProvider \BuiltInPrintService \
-    CalendarProvider \cameraserver \CaptivePortalLogin \CertInstaller \clatd \clatd.conf \
-    DocumentsUI \DownloadProviderUi \
-    EasterEgg \ExternalStorageProvider \FusedLocation \InputDevices \KeyChain \librs_jni \ManagedProvisioning \
-    MmsService \MtpDocumentsProvider \
-    MusicFX \
-    NfcNci \
-    OsuLogin \
-    PacProcessor \PrintRecommendationService \PrintSpooler \ProxyHandler \screenrecord \
-    SecureElement \SharedStorageBackup \
-    SimAppDialog \Telecom \TelephonyProvider \TeleService \
-    Traceur \
-    UserDictionaryProvider \VpnDialogs \

壁纸选择器

build/make/target/product/mainline.mk

@@ -32,6 +32,5 @@ PRODUCT_PROPERTY_OVERRIDES += \PRODUCT_PACKAGES += \PhotoTable \
-    WallpaperPicker \

客制化书签主页

build/make/target/product/mainline_system.mk

@@ -30,7 +30,6 @@ PRODUCT_PACKAGES += \# ApplicationsPRODUCT_PACKAGES += \LiveWallpapersPicker \
-    PartnerBookmarksProvider \PresencePolling \RcsService \SafetyRegulatoryInfo \

HTML查看器

build/make/target/product/media_system.mk

@@ -29,7 +29,6 @@ PRODUCT_PACKAGES += \drmserver \ethernet-service \fsck.f2fs \
-    HTMLViewer \libfilterpack_imageproc \libwebviewchromium_loader \libwebviewchromium_plat_support \

计算器、音乐

device/rockchip/common/device.mk

@@ -60,8 +60,8 @@ endifPRODUCT_AAPT_CONFIG ?= normal large xlarge hdpi xhdpi xxhdpiPRODUCT_AAPT_PREF_CONFIG ?= xhdpi-PRODUCT_PACKAGES += \
-    ExactCalculator
+# PRODUCT_PACKAGES += \
+#     ExactCalculator######################################################### Kernel
@@ -1063,7 +1063,6 @@ else # tabletSoundRecorderifneq ($(strip $(BUILD_WITH_GOOGLE_GMS_EXPRESS)),true)PRODUCT_PACKAGES += \
-    Music \WallpaperPickerendif # tablet without GMS-Expressendif

device.mk 中包含了一些RK定制apk,通过

$(call inherit-product-if-exists, vendor/rockchip/common/device-vendor.mk)

引入编译,这个看你编译后设备上运行的apk,找到对应mk进行裁剪

4K视频播放器、街景测试、设备测试

vendor/rockchip/common/apps/apps.mk

@@ -45,8 +45,8 @@ PRODUCT_PACKAGES += \Rk3grVideoPlayerelseifneq ($(strip $(TARGET_BOARD_PLATFORM_PRODUCT)), box)
-PRODUCT_PACKAGES += \
-    Rk4kVideoPlayer
+# PRODUCT_PACKAGES += \
+#     Rk4kVideoPlayerendifendifendif
@@ -63,20 +63,20 @@ endifendif-ifeq ($(strip $(BOARD_HAS_STRESSTEST_APP)), true)
-    PRODUCT_PACKAGES += \
-    StressTest
+# ifeq ($(strip $(BOARD_HAS_STRESSTEST_APP)), true)
+#     PRODUCT_PACKAGES += \
+#     StressTest -ifneq ($(filter atv box, $(strip $(TARGET_BOARD_PLATFORM_PRODUCT))), )
-PRODUCT_PACKAGES += \
-    RKDeviceTest
+# ifneq ($(filter atv box, $(strip $(TARGET_BOARD_PLATFORM_PRODUCT))), )
+# PRODUCT_PACKAGES += \
+#     RKDeviceTest-else
-PRODUCT_PACKAGES += \
-    DeviceTest
+# else
+# PRODUCT_PACKAGES += \
+#     DeviceTest-endif
-endif
+# endif
+# endif

删除无用字体

字体相关介绍可参考

Android系统字体加载流程

Android 系统字体

10.0 和之前低版本还是有些差异的,可以查看编译 out 目录下 system\fonts 中所编译的字体文件

注释 frameworks/base/data/fonts/fonts.xml 中成对字体组

注释 external/noto-fonts/Android.mk 中不需要编译字体文件 .ttf .otf

字库文件说明 可到 字客网 进行详细查询


思源宋体
NotoSerif-Regular.ttf
NotoSerif-Bold.ttf
NotoSerif-Italic.ttf
NotoSerif-BoldItalic.ttf
阿德拉姆文
NotoSansAdlam-Regular.ttf
阿霍姆文
NotoSansAhom-Regular.otf
安那托利亚象形文字拉丁文
NotoSansAnatolianHieroglyphs-Regular.otf
NotoSansAvestan-Regular.ttf
巴厘文
NotoSansBalinese-Regular.ttf
NotoSansBamum-Regular.ttf
巴萨瓦赫文
NotoSansBassaVah-Regular.otf
巴塔克文
NotoSansBatak-Regular.ttf
拉丁文 孟加拉文
NotoSansBengali-Bold.otf
NotoSansBengali-Medium.otf
NotoSansBengali-Regular.otf
孟加拉文
NotoSansBengaliUI-Bold.otf
NotoSansBengaliUI-Medium.otf
NotoSansBengaliUI-Regular.otf
NotoSansBhaiksuki-Regular.otf
拉丁文
NotoSansBrahmi-Regular.ttf
爪哇文
NotoSansBuginese-Regular.ttf
布希德文
NotoSansBuhid-Regular.ttf
加拿大土著统一音节文字
NotoSansCanadianAboriginal-Regular.ttf
卡里亚文
NotoSansCarian-Regular.ttf
孟加拉文缅甸文
NotoSansChakma-Regular.otf
占文
NotoSansCham-Bold.ttf
NotoSansCham-Regular.ttf
切罗基文
NotoSansCherokee-Regular.ttf
希腊文
NotoSansCoptic-Regular.ttf
苏美尔-阿卡德楔形文字
NotoSansCuneiform-Regular.ttf
塞浦路斯文
NotoSansCypriot-Regular.ttf
德塞莱特文
NotoSansDeseret-Regular.ttf
古埃及象形文字
NotoSansEgyptianHieroglyphs-Regular.ttf
爱尔巴桑文
NotoSansElbasan-Regular.otf
埃塞俄比亚文
NotoSansEthiopic-Bold.ttf
NotoSansEthiopic-Regular.ttf
格拉哥里文
NotoSansGlagolitic-Regular.ttf
NotoSansGothic-Regular.ttf
NotoSansGujarati-Bold.ttf
NotoSansGujarati-Regular.ttf
NotoSansGujaratiUI-Bold.ttf
NotoSansGujaratiUI-Regular.ttf
NotoSansGurmukhi-Bold.ttf
NotoSansGurmukhi-Regular.ttf
NotoSansGurmukhiUI-Bold.ttf
NotoSansGurmukhiUI-Regular.ttf
NotoSansHanunoo-Regular.ttf
NotoSansHatran-Regular.otf
NotoSansImperialAramaic-Regular.ttf
NotoSansInscriptionalPahlavi-Regular.ttf
NotoSansInscriptionalParthian-Regular.ttf
NotoSansJavanese-Regular.ttf
NotoSansKaithi-Regular.ttf
NotoSansKannada-Bold.ttf
NotoSansKannada-Regular.ttf
NotoSansKannadaUI-Bold.ttf
NotoSansKannadaUI-Regular.ttf
NotoSansKayahLi-Regular.ttf
NotoSansKharoshthi-Regular.ttf
NotoSansKhmerUI-Bold.ttf
NotoSansKhmerUI-Regular.ttf
NotoSansLao-Bold.ttf
NotoSansLao-Regular.ttf
NotoSansLaoUI-Bold.ttf
NotoSansLaoUI-Regular.ttf
NotoSansLepcha-Regular.ttf
NotoSansLimbu-Regular.ttf
NotoSansLinearA-Regular.otf
NotoSansLinearB-Regular.ttf
NotoSansLisu-Regular.ttf
NotoSansLycian-Regular.ttf
NotoSansLydian-Regular.ttf
NotoSansMalayalam-Bold.otf
NotoSansMalayalam-Medium.otf
NotoSansMalayalam-Regular.otf
NotoSansMalayalamUI-Bold.otf
NotoSansMalayalamUI-Medium.otf
NotoSansMalayalamUI-Regular.otf
NotoSansMandaic-Regular.ttf
NotoSansManichaean-Regular.otf
NotoSansMarchen-Regular.otf
NotoSansMeeteiMayek-Regular.ttf
NotoSansMeroitic-Regular.otf
NotoSansMiao-Regular.otf
NotoSansMongolian-Regular.ttf
NotoSansMro-Regular.otf
NotoSansMultani-Regular.otf
NotoSansMyanmar-Bold-ZawDecode.ttf
NotoSansMyanmar-Regular-ZawDecode.ttf
NotoSansMyanmarUI-Bold-ZawDecode.ttf
NotoSansMyanmarUI-Regular-ZawDecode.ttf
NotoSansNabataean-Regular.otf
NotoSansNewa-Regular.otf
NotoSansNewTaiLue-Regular.ttf
NotoSansNKo-Regular.ttf
NotoSansOgham-Regular.ttf
NotoSansOlChiki-Regular.ttf
NotoSansOldItalic-Regular.ttf
NotoSansOldNorthArabian-Regular.otf
NotoSansOldPermic-Regular.otf
NotoSansOldPersian-Regular.ttf
NotoSansOldSouthArabian-Regular.ttf
NotoSansOldTurkic-Regular.ttf
NotoSansOriya-Bold.ttf
NotoSansOriya-Regular.ttf
NotoSansOriyaUI-Bold.ttf
NotoSansOriyaUI-Regular.ttf
NotoSansOsage-Regular.ttf
NotoSansOsmanya-Regular.ttf
NotoSansPahawhHmong-Regular.otf
NotoSansPalmyrene-Regular.otf
NotoSansPauCinHau-Regular.otf
NotoSansPhagsPa-Regular.ttf
NotoSansPhoenician-Regular.ttf
NotoSansRejang-Regular.ttf
NotoSansRunic-Regular.ttf
NotoSansSamaritan-Regular.ttf
NotoSansSaurashtra-Regular.ttf
NotoSansSharada-Regular.otf
NotoSansShavian-Regular.ttf
NotoSansSinhala-Bold.otf
NotoSansSinhala-Medium.otf
NotoSansSinhala-Regular.otf
NotoSansSinhalaUI-Bold.otf
NotoSansSinhalaUI-Medium.otf
NotoSansSinhalaUI-Regular.otf
NotoSansSoraSompeng-Regular.otf
NotoSansSundanese-Regular.ttf
NotoSansSylotiNagri-Regular.ttf
NotoSansSyriacEastern-Regular.ttf
NotoSansSyriacEstrangela-Regular.ttf
NotoSansSyriacWestern-Regular.ttf
NotoSansTagalog-Regular.ttf
NotoSansTagbanwa-Regular.ttf
NotoSansTaiLe-Regular.ttf
NotoSansTaiTham-Regular.ttf
NotoSansTaiViet-Regular.ttf
NotoSansTamil-Bold.otf
NotoSansTamil-Medium.otf
NotoSansTamil-Regular.otf
NotoSansTamilUI-Bold.otf
NotoSansTamilUI-Medium.otf
NotoSansTamilUI-Regular.otf
NotoSansTelugu-Bold.ttf
NotoSansTelugu-Regular.ttf
NotoSansTeluguUI-Bold.ttf
NotoSansTeluguUI-Regular.ttf
NotoSansThaana-Bold.ttf
NotoSansThaana-Regular.ttf
NotoSansTibetan-Bold.ttf
NotoSansTibetan-Regular.ttf
NotoSansTifinagh-Regular.ttf
NotoSansUgaritic-Regular.ttf
NotoSansVai-Regular.ttf
NotoSansYi-Regular.ttf
NotoNaskhArabic-Regular.ttf
NotoNaskhArabic-Bold.ttf
NotoNaskhArabicUI-Regular.ttf
NotoNaskhArabicUI-Bold.ttf
NotoSansArmenian-Regular.otf
NotoSansArmenian-Bold.otf
NotoSansArmenian-Medium.otf
NotoSansDevanagari-Regular.otf
NotoSansDevanagari-Bold.otf
NotoSansDevanagari-Medium.otf
NotoSansDevanagariUI-Regular.otf
NotoSansDevanagariUI-Bold.otf
NotoSansDevanagariUI-Medium.otf
NotoSansGeorgian-Regular.otf
NotoSansGeorgian-Bold.otf
NotoSansGeorgian-Medium.otf
NotoSansHebrew-Regular.ttf
NotoSansHebrew-Bold.ttf
NotoSansSymbols-Regular-Subsetted.ttf
NotoSansSymbols-Regular-Subsetted2.ttf
NotoSansThai-Regular.ttf
NotoSansThai-Bold.ttf
NotoSansThaiUI-Regular.ttf
NotoSansThaiUI-Bold.ttf
NotoSerifArmenian-Bold.otf
NotoSerifArmenian-Regular.otf
NotoSerifBengali-Bold.ttf
NotoSerifBengali-Regular.ttf
NotoSerifDevanagari-Bold.ttf
NotoSerifDevanagari-Regular.ttf
NotoSerifEthiopic-Bold.otf
NotoSerifEthiopic-Regular.otf
NotoSerifGeorgian-Bold.otf
NotoSerifGeorgian-Regular.otf
NotoSerifGujarati-Bold.ttf
NotoSerifGujarati-Regular.ttf
NotoSerifGurmukhi-Bold.otf
NotoSerifGurmukhi-Regular.otf
NotoSerifHebrew-Bold.ttf
NotoSerifHebrew-Regular.ttf
NotoSerifKannada-Bold.ttf
NotoSerifKannada-Regular.ttf
NotoSerifKhmer-Bold.otf
NotoSerifKhmer-Regular.otf
NotoSerifLao-Bold.ttf
NotoSerifLao-Regular.ttf
NotoSerifMalayalam-Bold.ttf
NotoSerifMalayalam-Regular.ttf
NotoSerifMyanmar-Bold.otf
NotoSerifMyanmar-Regular.otf
NotoSerifSinhala-Bold.otf
NotoSerifSinhala-Regular.otf
NotoSerifTamil-Bold.otf
NotoSerifTamil-Regular.otf
NotoSerifTelugu-Bold.ttf
NotoSerifTelugu-Regular.ttf
NotoSerifThai-Bold.ttf
NotoSerifThai-Regular.ttf

删除无用语言包

frameworks/base/core/res/res/values/locale_config.xml

删除其中不需要语音列表,注意以为一组,这里只保留了中文相关

<resources><string-array translatable="false" name="supported_locales"><item>en-US</item> <!-- English (United States) --><item>zh-Hans-CN</item> <!-- Chinese (Simplified, China) --><item>zh-Hans-HK</item> <!-- Chinese (Simplified, Hong Kong) --><item>zh-Hans-MO</item> <!-- Chinese (Simplified, Macau) --><item>zh-Hans-SG</item> <!-- Chinese (Simplified, Singapore) --><item>zh-Hant-HK</item> <!-- Chinese (Traditional, Hong Kong) --><item>zh-Hant-MO</item> <!-- Chinese (Traditional, Macau) --><item>zh-Hant-TW</item> <!-- Chinese (Traditional, Taiwan) --></string-array></resources>

这样修改后只是系统设置中系统–语音和输入法–语音–添加语音列表中只展示中文相关,

对应的资源文件并未删除依旧打包到了 system.img 中,依旧占用系统空间。接下来继续删除

frameworks/base/core/res/res/ 多余的资源文件夹,和刚刚的 locale_config.xml 保留对应

RK3326 android10.0(Q) 系统精简瘦身相关推荐

  1. Android 8.0 开机动画,RK3326 android10.0(Q) 开机logo+开关机动画替换

    RK3326 android10.0(Q) 开机logo+开关机动画替换 2020年08月14日 | 萬仟网移动技术 | 我要评论 开机logouboot和kernel阶段的logo分别为开机显示的第 ...

  2. RK3326 android10.0(Q) 开机logo+开关机动画替换

    开机logo uboot和kernel阶段的logo分别为开机显示的第一张和第二张logo图片, uboot logo源文件: kernel/logo.bmp kernel logo源文件: kern ...

  3. android10.0(Q) root QCOM-SM6125 user版本打开root权限

    推荐两个性能优化学习地址: Blog androidperformance MTK 6735/6739/6755/6763 android8.1 user版本打开root权限(adb root权限和 ...

  4. android10.0(Q) android11(R) 时区相关问题

    一.默认关闭自动更新时区 将自动更新时区开关 def_auto_time_zone 的值设置为 false. 文件路径:platform/frameworks/base/packages/Settin ...

  5. linux瘦身软件下载,Ubuntu系统清理瘦身

    Ubuntu系统清理瘦身 发布时间:2012-04-19 11:20:43来源:红联作者:empast 1.清理残余的配置文件. 1)在终端中执行 sudo synaptic,以便启动 Synapti ...

  6. android10.0 bootanimation系统高仿Iphone苹果开机动画

    android10.0系统高仿Iphone苹果开机动画 直接先上效果图 bootanimation.zip压缩前: part0(文件夹存放要播放的图片格式最好是png24) part1(文件夹) de ...

  7. spring boot项目精简瘦身打包

    1.背景介绍 当网络不是很给力的时候,一个大的jar包传输是费时的,往往存在修改1分钟,传包10分钟的尴尬时刻. 1)正常打包出来的jar 2)解压出来后的包大小98M 3)lib的jar包大小 综上 ...

  8. xp系统终极瘦身大全

    原文链接:http://www.xitongzhijia.net/xtjc/20121017/17507.html Windows xp系统的很多服务都是双刃剑,用不好就会带来诸多安全隐患.为此,要好 ...

  9. 精简瘦身Windows XP的方法

    Windows XP系统中包含许多对于普通用户用不上的功能,我们完全可以对XP来一次瘦身. 1.在各种软硬件安装妥当之后,其实XP需要更新文件的时候就很少了.删除系统备份文件吧:开始→运行→sfc.e ...

最新文章

  1. 记录爬取2470条数据
  2. R语言将数据列中的多种日期格式统一变化为一种固定格式实战:使用lubridate包中的parse_date_time函数
  3. 用JavaScript写Session的两种方法
  4. Android图片缓存之Lru算法
  5. Linux的文件权限(简单易懂)
  6. DOM中的navigate()函数
  7. 为什么使用hibernate
  8. geojson在线生成工具_logofree详解:LOGO设计在线生成
  9. Python基础——PyCharm版本——第八章、文件I/O(XML)
  10. Python中矩阵库Numpy基本操作
  11. opencv 叠加两张图_OpenCV基础篇之图片叠加
  12. linux文件系统 环形结构图,环形缓冲器(转)
  13. Netty 从源码的角度深入剖析 ByteBuffer
  14. 在构造函数中使用new时应注意的事项
  15. iirf有时有效,有时返回404错误的解决方法
  16. 一年总结:2016.7.9 - 2017.7.9
  17. 为防泄密 新加坡政府将断掉公务员的网络连接
  18. 如何构建企业内的 TiDB 自运维体系
  19. 千牛群发消息怎么发?推荐UiBot千牛群发消息机器人
  20. 招生难、管理难!教育如何实现零流失、高增长?教育行业如何玩转“私域流量”?...

热门文章

  1. Python按照不同的后缀把文件存入不同的文件夹下面(后缀分类)
  2. express 热更新
  3. 跨境电商的支付方式有哪些?
  4. WZOI-277白细胞计数
  5. Matlab绘图保存为.fig格式以使用,及.fig文件的加载与数据读取
  6. 爆笑囧人囧事 2009 大合集!
  7. 区块链技术培训—从技术小白到年薪百万区块链工程师的进阶之路
  8. 纳芯微携手企企通,打造全新数字化采购管理系统
  9. 读懂DeFi四大金融原语的演变:流动性、杠杆、风险和套利
  10. 金融产品的不可能三角:收益性、风险性、流动性