1. Refer to Android native copy ringtones
A
F:\project\a33\android\build\target\product\full_base.mk
# Get Some sounds
$ (call inherit-product-if-exists, frameworks/base/data/sounds/allaudio.mk)
b
Android\frameworks\base\data\sounds\allaudio.mk
Local_path: = Frameworks/base/data/sounds
Product_copy_files + = \
$ (local_path)/alarm_beep_01.ogg:system/media/audio/alarms/alarm_beep_01.ogg \
For modules is to take this approach, in the Project MK file declaration Modules.mk, and then create a new folder to copy the resources in
F:\project\a33\android\device\softwinner\astar-wifionly\modules\modules.mk
Product_copy_files + = \
$ (call find-copy-subdir-files,*,$ (Local_path)/modules,system/vendor/modules)
However, this approach can only be for resource-type files, try to copy the APK to the app (lazy-_-!) has been detected by the system failed
Instead, use the shell's CP copy Resource
Local_path: = device/softwinner/xxx/xxx
IFNEQ (, $ (out))
$ (Shell Mkdir-p $ (out)/system/app/)
$ (Shell CP-RF $ (Local_path)/app/*.apk $ (out)/system/app/)
endif
<android> how to quickly replicate customer-specific resources to out