Android system cropping

Reproduced: https://blog.csdn.net/kai_zone/article/details/77525035
Specific tailoring content:
1. build/target/product is the key mk file storage place for compiling products, here you can change the compilation content of each mk file Cut
base.mk file: remove unnecessary lib library files and bin files
core_minimal.mk: dmtracedump, Shell, HTMLViewer, screencap and other tools and apk etc.
core.mk: libnfc_ndef, mms-common nfc function library files and mms SMS function, etc.
embedded.mk: dumpstate, dumpsys
emulator.mk: camera.goldfish , camera.goldfish.jpeg , lights.goldfish , gps.goldfish etc.
full_base.mk: remove unnecessary library and apk
full_base_telephony.mk: remove apk and phone function
generic_no_telephony .mk: remove apk and unnecessary libraries
languages_full.mk, locales_full.mk: remove unnecessary language settings (res package size can be removed)
2. external/icu4c/stubdata/icu-data-default.txt: modify this file, remove the compiled icu.dat file size, remove unnecessary languages, and regenerate the desired dat file with the script
external/skia/Android.mk: remove the compilation of test
3. frameworks/base/data/etc/platform.xml: remove unnecessary attributes
frameworks/base/data/fonts/Android.mk: remove unnecessary font
frameworks /base/data/fonts/fallback_fonts.xml: remove unnecessary fonts
frameworks/base/data/fonts/fonts.mk: remove unnecessary fonts
4. frameworks/base/data/sounds/AllAudio.mk: remove unnecessary sound files (except for ui retention, others can be removed)
frameworks/base/data/videos/VideoPackage1.mk: Remove unnecessary video files
frameworks/native/data/etc/handheld_core_hardware.xml: Remove unnecessary attributes
frameworks /native/data/etc/tablet_core_hardware.xml: Remove unnecessary properties
frameworks/base/preloaded-classes: Cut unnecessary resource loading
5. init.rc: Cut unnecessary local services
system.prop: Cut unnecessary attribute content

Guess you like

Origin blog.csdn.net/weixin_38148680/article/details/126154570