Well, thanks to a lot of help and very useful topics here, I've come a long way. I now know how to build a pre-rooted rom. However, for my own convenience (I don't plan on releasing this) I would like to have my Gapps build in as well. But my attempt have been very frustrating so far. I really hope someone can help me out. What I've tried so far:
1) I've put my gapps in the appropriate folders in /vendor/mark/proprietary/..
2) In the /device/samsung/maguro/full-maguro.mk file I added some line (for convenience I'll only use a few apps)
This gave me an error complaining about prebuilt apk's, so:
3) I changed the PRODUCT_COPY_FILES to BUILT_PREBUILT
Unfortunately, this did not work either and just gave me a whole bunch of errors.
4) I tried several other small things, none of which worked. Finally I commented out a few lines in the /build/core/Makefile:
Strangely enough, when I tried this only with the Superuser.apk it succeeded, however, when I added the other apk's it again did not work.
Well, I really don't know what to try next. I think it should be possible, but I just cannot find a solution. Any help would be appreciated!
1) I've put my gapps in the appropriate folders in /vendor/mark/proprietary/..
2) In the /device/samsung/maguro/full-maguro.mk file I added some line (for convenience I'll only use a few apps)
Code:
<br />
PRODUCT_COPY_FILES += \<br />
vendor/mark/proprietary/app/Superuser.apk:system/app/Superuser.apk \<br />
vendor/mark/proprietary/app/CalendarGoogle.apk:system/app/CalendarGoogle.apk \<br />
vendor/mark/proprietary/app/ChromeBookmarksSyncAdapter.apk:system/app/ChromeBookmarksSyncAdapter.apk \<br />
etc etc etc<br />
3) I changed the PRODUCT_COPY_FILES to BUILT_PREBUILT
Code:
<br />
BUILT_PREBUILD += \<br />
vendor/mark/proprietary/app/Superuser.apk:system/app/Superuser.apk \<br />
vendor/mark/proprietary/app/CalendarGoogle.apk:system/app/CalendarGoogle.apk \<br />
vendor/mark/proprietary/app/ChromeBookmarksSyncAdapter.apk:system/app/ChromeBookmarksSyncAdapter.apk \<br />
etc etc etc<br />
4) I tried several other small things, none of which worked. Finally I commented out a few lines in the /build/core/Makefile:
Code:
<br />
<br />
#define check-product-copy-files<br />
#$(if $(filter %.apk, $(1)),$(error \<br />
# Prebuilt apk found in PRODUCT_COPY_FILES: $(1), use BUILD_PREBUILT instead!))<br />
#endef<br />
Well, I really don't know what to try next. I think it should be possible, but I just cannot find a solution. Any help would be appreciated!