[HOWTO] Fully integrate Google Apps (Market, Gmail, etc.) in ICS

1,482 views
Skip to first unread message

StefanS

unread,
Feb 13, 2012, 6:28:56 AM2/13/12
to andro...@googlegroups.com
Dear group,

this is the next post about one of the problems I had to solve for my version of ICS.

Many people wonder how they can integrate the Google Apps, which are not part of the Open Source part of Android into their build. It is relatively easy:
1) get Google Apps. I used gapps-ics-4.0.3-20120113.zip and additionally pulled some updated .apk's from my ICS phone
2) extract all apk files to device/common/app
3) for completeness, I also added the xml files from /system/etc/permissions and the jar files from /system/framework in the abovementioned file to the build. I extracted these into a folder called "system" in my device tree and added the following snippet to my devicename.mk:
====
PRODUCT_COPY_FILES += \
    $(LOCAL_PATH)/system/etc/permissions/features.xml:system/etc/permissions/features.xml \
    $(LOCAL_PATH)/system/etc/permissions/com.google.android.media.effects.xml:system/etc/permissions/com.google.android.media.effects.xml \
    $(LOCAL_PATH)/system/etc/permissions/com.google.android.maps.xml:system/etc/permissions/com.google.android.maps.xml \
    $(LOCAL_PATH)/system/framework/com.google.android.maps.jar:system/framework/com.google.android.maps.jar \
    $(LOCAL_PATH)/system/framework/com.google.android.media.effects.jar:system/framework/com.google.android.media.effects.jar
====
4) the Calendar/CalendarProvider which are part of the AOSP do not work with a Google account. Thus, I removed them from the build. There are two options:
  a) rename/delete the Android.mk files in packages/apps/Calendar/ and packages/providers/CalendarProvider/ or
  b) remove Calendar and CalendarProvider from build/target/product/generic_no_telephony.mk (not tested)

I also pulled the Google Docs and Google Plus apks from my phone, because they cannot be found on the market, but work fine. I think the GoogleLatinIME.apk can also be removed, because otherwise you have two software keyboards.

I hope that will help you to make more usable builds.

Stefan

Corvus

unread,
Feb 13, 2012, 8:44:15 AM2/13/12
to Android-x86
Good Job... This is what i did for Wetab.

I added too Catlog.apk in device/common/app so people can send us logs
easily

Corvus

On 13 feb, 12:28, StefanS <andr...@stefanseidel.info> wrote:
> Dear group,
>
> this is the next post about one of the problems I had to solve for my
> version of ICS.
>
> Many people wonder how they can integrate the Google Apps, which are not
> part of the Open Source part of Android into their build. It is relatively
> easy:
> 1) get Google Apps. I used gapps-ics-4.0.3-20120113.zip and additionally
> pulled some updated .apk's from my ICS phone
> 2) extract all apk files to device/common/app
> 3) for completeness, I also added the xml files from
> /system/etc/permissions and the jar files from /system/framework in the
> abovementioned file to the build. I extracted these into a folder called
> "system" in my device tree and added the following snippet to my *devicename
> *.mk:
> ====
> PRODUCT_COPY_FILES += \
>
> $(LOCAL_PATH)/system/etc/permissions/features.xml:system/etc/permissions/fe atures.xml
> \
>
> $(LOCAL_PATH)/system/etc/permissions/com.google.android.media.effects.xml:s ystem/etc/permissions/com.google.android.media.effects.xml
> \
>
> $(LOCAL_PATH)/system/etc/permissions/com.google.android.maps.xml:system/etc /permissions/com.google.android.maps.xml
> \
>
> $(LOCAL_PATH)/system/framework/com.google.android.maps.jar:system/framework /com.google.android.maps.jar
> \
>
> $(LOCAL_PATH)/system/framework/com.google.android.media.effects.jar:system/ framework/com.google.android.media.effects.jar

linnuxxy

unread,
Mar 1, 2012, 10:12:03 AM3/1/12
to Android-x86
can you run google music?

On Feb 13, 1:28 pm, StefanS <andr...@stefanseidel.info> wrote:
> Dear group,
>
> this is the next post about one of the problems I had to solve for my
> version of ICS.
>
> Many people wonder how they can integrate the Google Apps, which are not
> part of the Open Source part of Android into their build. It is relatively
> easy:
> 1) get Google Apps. I used gapps-ics-4.0.3-20120113.zip and additionally
> pulled some updated .apk's from my ICS phone
> 2) extract all apk files to device/common/app
> 3) for completeness, I also added the xml files from
> /system/etc/permissions and the jar files from /system/framework in the
> abovementioned file to the build. I extracted these into a folder called
> "system" in my device tree and added the following snippet to my *devicename
> *.mk:
> ====
> PRODUCT_COPY_FILES += \
>
> $(LOCAL_PATH)/system/etc/permissions/features.xml:system/etc/permissions/fe atures.xml
> \
>
> $(LOCAL_PATH)/system/etc/permissions/com.google.android.media.effects.xml:s ystem/etc/permissions/com.google.android.media.effects.xml
> \
>
> $(LOCAL_PATH)/system/etc/permissions/com.google.android.maps.xml:system/etc /permissions/com.google.android.maps.xml
> \
>
> $(LOCAL_PATH)/system/framework/com.google.android.maps.jar:system/framework /com.google.android.maps.jar
> \
>
> $(LOCAL_PATH)/system/framework/com.google.android.media.effects.jar:system/ framework/com.google.android.media.effects.jar

Matko Klaić

unread,
Dec 4, 2013, 4:04:33 AM12/4/13
to andro...@googlegroups.com
Dear Stefan,

can you tell us what is the procedure of installing gapps-ics. Is it just unpacking the package content in appropriate folder ?

Best,
Matko
Reply all
Reply to author
Forward
0 new messages