pre-installing apps under /data/app

586 views
Skip to first unread message

Dan Raaka

unread,
May 13, 2010, 8:54:58 PM5/13/10
to android-platform
Currently with no additional work, non-default apps (like new apks)
will end up in /system/app after the building process. What needs to
be done in order to make sure the apks are pre-installed under /data/
app

-Dan

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

Armando Ceniceros

unread,
May 13, 2010, 9:04:44 PM5/13/10
to android-platform
Have you tried PRODUCT_COPY_FILES to /data target?

dan raaka

unread,
May 13, 2010, 10:32:14 PM5/13/10
to android-...@googlegroups.com
with this - what i found was that apk will appear in the userdata.img, however the apps don't appear in the homescreen app listing.

-Dan


TG

unread,
May 14, 2010, 1:09:39 AM5/14/10
to android-platform

add the below line in your app's Android.mk file

LOCAL_MODULE_TAGS:= sample

then execute command

lunch sdk-user

then build and run, the app will be installed in /data/apps.

hope this helps.

// Thote Gowda


On May 14, 7:32 am, dan raaka <danra...@gmail.com> wrote:
> with this - what i found was that apk will appear in the userdata.img,
> however the apps don't appear in the homescreen app listing.
>
> -Dan
>
> On Thu, May 13, 2010 at 6:04 PM, Armando Ceniceros <cenicero...@gmail.com>wrote:
>
>
>
>
>
> > Have you tried PRODUCT_COPY_FILES to /data target?
>
> > -----Original Message-----
> > From: Dan Raaka <danra...@gmail.com>
> > Sent: May 13, 2010 6:54 PM
> > To: android-platform <android-...@googlegroups.com>
> > Subject: pre-installing apps under /data/app
>
> > Currently with no additional work, non-default apps (like new apks)
> > will end up in /system/app after the building process. What needs to
> > be done in order to make sure the apks are pre-installed under /data/
> > app
>
> > -Dan
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@googlegroups.com<android-platform%2Bunsubscrib e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/android-platform?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@googlegroups.com<android-platform%2Bunsubscrib e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/android-platform?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/android-platform?hl=en.

danraaka

unread,
May 14, 2010, 2:52:07 PM5/14/10
to android-...@googlegroups.com
The module tags cannot be changed from user, I am making a device builds as opposed to something for the emulator.

-Dan

danraaka

unread,
May 14, 2010, 2:57:46 PM5/14/10
to android-...@googlegroups.com
Here is what my makefiles look like

#################/vendor/acme/apps/android.mk#################
include $(CLEAR_VARS)

LOCAL_MODULE := MyApp
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)

#################/vendor/acme/products/myapps.mk#################
# Add Apps and Services
PRODUCT_PACKAGES +=  MyApp

#################/vendor/acme/product/mydevice.mk#################
$(call inherit-product, vendor/acme/products/myapps.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)

# Overrides
PRODUCT_BRAND := acme
PRODUCT_NAME := mydevice

# Overrides
PRODUCT_PROPERTY_OVERRIDES += \
         ro.com.google.clientidbase=acme

#add from sdk - because I am building this for emulator
PRODUCT_COPY_FILES += \
        development/data/etc/vold.conf:system/etc/vold.conf \

# locales
PRODUCT_LOCALES := en_GB en_US

-Dan
Reply all
Reply to author
Forward
0 new messages