about creating configuration file and 'PRODUCT_COPY_FILES'

167 views
Skip to first unread message

Rick

unread,
May 11, 2010, 8:59:21 AM5/11/10
to android-platform
Hi all,

now I want to place some configuration files to the 'system/etc/
somedir' directory.

I know we can use 'PRODUCT_COPY_FILES' in makefile to copy file to the
'system' directory, like

PRODUCT_COPY_FILES := \
development/data/etc/vold.conf:system/etc/vold.conf \
frameworks/base/data/etc/android.hardware.camera.autofocus.xml:system/
etc/permissions/android.hardware.camera.autofocus.xml

But my direcory 'somedir' under path 'system/etc/' is not created at
first, and this is my question:
how to create this directory?

I know the system directory is read only, so it seems not possible to
create the directory in code.

Is there any ideas on this question?

Thanks for any response!!

BRs
Rick


--
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.

Fabio Fumi

unread,
May 25, 2012, 9:03:46 AM5/25/12
to android-...@googlegroups.com
Same question here... any help welcome !


On Tuesday, 11 May 2010 14:59:21 UTC+2, Rick wrote:
Hi all,

now I want to place some configuration files to the 'system/etc/
somedir' directory.

I know we can use 'PRODUCT_COPY_FILES' in makefile to copy file to the
'system' directory, like

PRODUCT_COPY_FILES := \
        development/data/etc/vold.conf:system/etc/vold.conf \
        frameworks/base/data/etc/android.hardware.camera.autofocus.xml:system/
etc/permissions/android.hardware.camera.autofocus.xml

But my direcory 'somedir' under path 'system/etc/' is not created at
first, and this is my question:
how to create this directory?

I know the system directory is read only, so it seems not possible to
create the directory in code.

Is there any ideas on this question?

Thanks for any response!!

BRs
Rick


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-platform@googlegroups.com.
To unsubscribe from this group, send email to android-platform+unsubscribe@googlegroups.com.

Fabio Fumi

unread,
May 30, 2012, 10:06:06 AM5/30/12
to android-...@googlegroups.com
Solved - Need to add complete path/filename in the target as well.

E.g.

PRODUCT_COPY_FILES += \
       $(LOCAL_PATH)/bcm/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
       $(LOCAL_PATH)/bcm/dhd.ko:root/lib/modules/dhd.ko \
       $(LOCAL_PATH)/bcm/fw4329.bin:system/etc/firmware/fw4329.bin \
       $(LOCAL_PATH)/bcm/4329_nvram.txt:system/etc/firmware/4329_nvram.txt

in my custom device/<brand>/<model>/full_<model>.mk will create system/etc/firmware and system/etc/wifi, both non existing after a base AOSP build.
Reply all
Reply to author
Forward
0 new messages