Skip to content

Instantly share code, notes, and snippets.

@eyal-lezmy
Last active May 6, 2024 12:56
Show Gist options
  • Save eyal-lezmy/33fab7689ee0d5f3dbe1 to your computer and use it in GitHub Desktop.
Save eyal-lezmy/33fab7689ee0d5f3dbe1 to your computer and use it in GitHub Desktop.
Avoid adding Android Packages and apps to your AOSP build
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := \
android-common \
LOCAL_SRC_FILES := \
$(call all-java-files-under, src) \
LOCAL_CERTIFICATE := shared
LOCAL_PACKAGE_NAME := RemoveApps
# It overrrides packages to avoid their addition to the ROM
LOCAL_OVERRIDES_PACKAGES := \
Browser \
Calculator \
Calendar \
CalendarProvider \
Email \
Exchange2 \
Gallery2 \
HoloSpiralWallpaper \
HTMLViewer \
Phone \
SharedStorageBackup \
SoundRecorder \
TelephonyProvider \
VideoEditor \
VoiceDialer \
VoicePlus \
include $(BUILD_PACKAGE)
#TODO: avoid an app and try BUILD_PHONY_PACKAGE
@s-serrano
Copy link

Hi @eyal-lezmy
Please, are you so kind to explain where I've to put this Android.mk file before to build Android?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment