Use the phony package to override the packages you want to remove.

1, define the phony package and override
QCOM_OVERRIDE_PACKAGES := \
  SystemUI \
  LatinIME \
  SoundRecorder \
  SysuiDarkTheme \
  getlogapk \
  SnapdragonGallery \
  SnapdragonCamera
LOCAL_MODULE := override_packages
LOCAL_MODULE_TAGS := optional
LOCAL_INIT_RC := bugreport.rc
PACKAGES.$(LOCAL_MODULE).OVERRIDES := $(strip $(QCOM_OVERRIDE_PACKAGES))
include $(BUILD_PHONY_PACKAGE)

2, include override_packages in your device.mk

PRODUCT_PACKAGES += override_packages

This is the most clean way to remove unwanted packages. 


在 2019年5月8日星期三 UTC+8上午3:35:42,Raghul R写道:
>
> Dear friends,
>
>                    I am trying to remove system applications from my 
> source.i am trying two methods to remove system apps
> Method1:
> Opened package/app/Android.mk and put ifeq (0,1) on start line endif on 
> the end line...it is working but that app depends any other app means it 
> cause an error..
> Method2:
> Opened device/qcom/common/base.mk and command(#) the product packages 
> name what I want to remove....it is not working
> Plz give solution about this problem....is there any other methods to 
> remove system app mean kindly explain that,let me know....
>
> Thanks advance
> Regards, 
> Raghul.R
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-porting/562720bc-8b57-48da-9a75-017baf582d5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to