Discussion:
[android-porting] Removing packages from AOSP build
Will Newton
2018-02-04 21:56:42 UTC
Permalink
Hi,

I'm trying to avoid including some packages in the build of my device but
not having much luck. I added a section like this to the Android.mk in my
device directory:

include
$(CLEAR_VARS)

LOCAL_PACKAGE_NAME :=
package-overrides

LOCAL_OVERRIDES_PACKAGES :=
\

Browser2
\

Calendar
\

Email
\

Music
\


SoundRecorder

include $(BUILD_PACKAGE)

But all the packages still get built and installed. Is there a way I can
make sure the packages are not included?

I've found various discussions of this online but none with a definitive
answer and the build process is complex in this area.

Thanks,
--
--
unsubscribe: android-porting+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Will Newton
2018-02-05 09:39:53 UTC
Permalink
Best place to edit is in the build folder to remove all the extra apps
https://android.googlesource.com/platform/build/+/master/target/product/core.mk
I could edit that file and it would do what I want, but it would be
forking upstream code for what seems to me like it should be a fairly
simple standard function. Is there a way to do this without having to
modify core Android code? i.e. do it in device/...

Thanks,
Post by Will Newton
Hi,
I'm trying to avoid including some packages in the build of my device but
not having much luck. I added a section like this to the Android.mk in my
include $(CLEAR_VARS)
LOCAL_PACKAGE_NAME := package-overrides
LOCAL_OVERRIDES_PACKAGES := \
Browser2 \
Calendar \
Email \
Music \
SoundRecorder
include $(BUILD_PACKAGE)
But all the packages still get built and installed. Is there a way I can
make sure the packages are not included?
I've found various discussions of this online but none with a definitive
answer and the build process is complex in this area.
Thanks,
--
--
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
For more options, visit https://groups.google.com/d/optout.
--
--
unsubscribe: android-porting+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Joey Troy
2018-02-05 13:09:19 UTC
Permalink
Will,

I get what your saying. I am not sure of any other way to not force the
install of the apps. Since it sounds like your making your own custom
release, it maybe best to do periodict repo merges to make sure you are
staying in sync with the project to edited repos you have.
Best place to edit is in the build folder to remove all the extra apps
https://android.googlesource.com/platform/build/+/master/target/product/core.mk
I could edit that file and it would do what I want, but it would be
forking upstream code for what seems to me like it should be a fairly
simple standard function. Is there a way to do this without having to
modify core Android code? i.e. do it in device/...
Thanks,
Post by Will Newton
Hi,
I'm trying to avoid including some packages in the build of my device
but
Post by Will Newton
not having much luck. I added a section like this to the Android.mk in
my
Post by Will Newton
include $(CLEAR_VARS)
LOCAL_PACKAGE_NAME := package-overrides
LOCAL_OVERRIDES_PACKAGES := \
Browser2 \
Calendar \
Email \
Music \
SoundRecorder
include $(BUILD_PACKAGE)
But all the packages still get built and installed. Is there a way I can
make sure the packages are not included?
I've found various discussions of this online but none with a definitive
answer and the build process is complex in this area.
Thanks,
--
--
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google
Groups
Post by Will Newton
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send
an
Post by Will Newton
For more options, visit https://groups.google.com/d/optout.
--
--
unsubscribe: android-porting+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Satish Patel
2018-02-08 05:10:21 UTC
Permalink
Hi,

Other alternative way would be,
- create a local manifest inside
.repo/local_manifests/<custom_manifest>.xml
- create tags to remove AOSP modules which you do not want for your build
- add entry for the modules, which you would like to replace instead

This will ensure along with standard AOSP, you stuff gets synced and *not
required AOSP* module will not come in to real picture :)

--
satish
Post by Joey Troy
Will,
I get what your saying. I am not sure of any other way to not force the
install of the apps. Since it sounds like your making your own custom
release, it maybe best to do periodict repo merges to make sure you are
staying in sync with the project to edited repos you have.
Best place to edit is in the build folder to remove all the extra apps
https://android.googlesource.com/platform/build/+/master/
target/product/core.mk
I could edit that file and it would do what I want, but it would be
forking upstream code for what seems to me like it should be a fairly
simple standard function. Is there a way to do this without having to
modify core Android code? i.e. do it in device/...
Thanks,
Post by Will Newton
Hi,
I'm trying to avoid including some packages in the build of my device
but
Post by Will Newton
not having much luck. I added a section like this to the Android.mk in
my
Post by Will Newton
include $(CLEAR_VARS)
LOCAL_PACKAGE_NAME := package-overrides
LOCAL_OVERRIDES_PACKAGES := \
Browser2 \
Calendar \
Email \
Music \
SoundRecorder
include $(BUILD_PACKAGE)
But all the packages still get built and installed. Is there a way I
can
Post by Will Newton
make sure the packages are not included?
I've found various discussions of this online but none with a
definitive
Post by Will Newton
answer and the build process is complex in this area.
Thanks,
--
--
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google
Groups
Post by Will Newton
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send
an
Post by Will Newton
For more options, visit https://groups.google.com/d/optout.
--
--
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
For more options, visit https://groups.google.com/d/optout.
--
Regards,
satish patel
--
--
unsubscribe: android-porting+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...