Hi,
I'm trying to customize android by creating a new target product
definition, but I'm running into a few errors.
Here are the steps I've followed, if someone could correct me, or
offer some more insight into this, it would be great.
Step 01: Sync with android-1.5r2 repository:
Use the command :
$ mkdir
$ cd android
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b
android-1.5r2
$ repo sync
Step 02: Edit the file /build/target/product/AndroidProducts.mk and
add a new entry for mycustomdevice.mk
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/generic.mk \
$(LOCAL_DIR)/min_dev.mk \
$(LOCAL_DIR)/sdk.mk \
$(LOCAL_DIR)/sim.mk \
$(LOCAL_DIR)/generic_with_google.mk \
$(LOCAL_DIR)/mycustomdevice.mk
Step 03: In folder build/target/product, create a new file called
mycustomdevice.mk as follows:
# This is a custom product for a custom device.
# It includes the base Android platform.
# Product definition
PRODUCT_BRAND := mycustomdevice
PRODUCT_DEVICE := mycustomdevice
PRODUCT_NAME := mycustomdevice
PRODUCT_POLICY := android.policy_phone
PRODUCT_PROPERTY_OVERRIDES := \
ro.config.notification_sound=F1_New_SMS.ogg
# Product packages that will be included in the build
PRODUCT_PACKAGES := \
framework-res \
Settings \
SettingsProvider \
Launcher \
DownloadProvider \
MediaProvider \
UserDictionaryProvider \
PackageInstaller \
Bugreport \
LatinIME
Step 04: In folder build/target/board, copy the generic folder, and
rename it to mycustomdevice
Step 05: Build the new target
Execute the following command from the android top folder:
$ TARGET_PRODUCT=mycustomdevice make
That's a rough outline of the steps that I've found so far. But I get
the following error:
target thumb C++: libcameraservice <= frameworks/base/camera/
libcameraservice/CameraService.cpp
make: *** No rule to make target `out/target/product/mycustomdevice/
obj/lib/libcamera.so', needed by `out/target/product/mycustomdevice/
obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/
libcameraservice.so'. Stop.
Best regards,
Elvis
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---