Need solution for system applications removal

98 views
Skip to first unread message

Raghul R

unread,
May 7, 2019, 3:35:42 PM5/7/19
to android...@googlegroups.com
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

Satish Patel

unread,
May 8, 2019, 12:42:23 PM5/8/19
to Raghul R, android-porting


On Wed, May 8, 2019 at 9:30 AM Raghul R <raghul...@gmail.com> wrote:
Thanks for your reply sathis....

Actually I tried that one.when I remove an app directory, that having some other apps dependency file so it make a error during build time.....please give some other ideas...
Have you also remove reference from "intermediate" directories ? 

Thanks & Regards
Raghul R

On Wed, May 8, 2019, 9:02 AM Satish Patel <tosati...@gmail.com> wrote:


On Wed, May 8, 2019 at 1:05 AM Raghul R <raghul...@gmail.com> wrote:
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
Refer build directory to find system app name and remove from there. Also remove all reference of system app from out directory before rebuilding the same 
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-porti...@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-porti...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/CALAxYqwEX92c15ef36H53Yd%3DPW7Qp4thO8pCT6%3D9kzqkohtiEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Regards,
satish patel


--
Regards,
satish patel

Satish Patel

unread,
May 8, 2019, 12:42:23 PM5/8/19
to raghul...@gmail.com, android-porting
On Wed, May 8, 2019 at 1:05 AM Raghul R <raghul...@gmail.com> wrote:
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
Refer build directory to find system app name and remove from there. Also remove all reference of system app from out directory before rebuilding the same 
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-porti...@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-porti...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/CALAxYqwEX92c15ef36H53Yd%3DPW7Qp4thO8pCT6%3D9kzqkohtiEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Regards,
satish patel

Raghul R

unread,
May 8, 2019, 12:42:34 PM5/8/19
to Satish Patel, android...@googlegroups.com
Thanks for your reply sathis....

Actually I tried that one.when I remove an app directory, that having some other apps dependency file so it make a error during build time.....please give some other ideas...

Thanks & Regards
Raghul R
On Wed, May 8, 2019, 9:02 AM Satish Patel <tosati...@gmail.com> wrote:

Raghul R

unread,
May 8, 2019, 12:42:34 PM5/8/19
to Satish Patel, android-porting
Where can I find intermediate directory in source. I can able to see only library intermediate in SHARED_ LIBRARY. Can you provide any reference link with  removal of reference from intermediate directory 

Yong Ma

unread,
Jul 15, 2019, 3:43:53 PM7/15/19
to android-porting
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写道:
Reply all
Reply to author
Forward
0 new messages