We added some resource into framework-res.apk by
PRODUCT_PACKAGE_OVERLAYS.
We created a project named ResourceTest under development/samples and
use Android.mk below to build it:

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := samples

# Only compile source java files in this apk.
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_INTERMEDIATE_SOURCES := ../R/com/android/internal/R.java

LOCAL_PACKAGE_NAME := ResourceTest

LOCAL_SDK_VERSION := current

include $(BUILD_PACKAGE)

# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))

It did work. However, I noticed there is R.class in out/target/common/
obj/APPS/ResourceTest_intermediates/classes.jar which is unexpected.

Can anybody tell me how to build this project successfully without
Internal.R.class included in apk.

Best regards.

James

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to