I am trying to add sip calling capabilities to the generic aosp_x86_64-eng image.
I have downloaded, built and run on the emulator the AOSP image called aosp_x86_64-eng image. This works fine. Now I would like to add sip calling capabilities to it, mainly by plugging in the TeleService provided within the AOSP (found at packages/services/Telephony).
What I have tried:
Added only a few packages to aosp_x86_64.mk:
PRODUCT_PACKAGES +=
Telecom
TelephonyProvider
TeleService
- rebuilt & booted the image. No change observed (i.e. I couldn't find the sip options anywhere)
- Added product="emulator" to all .xml resource files in TeleService. Also using change at prev point.
- rebuilt & booted the image. No change observed (i.e. I couldn't find the sip options anywhere)
Inherited from aosp_base_telephony.mk without change at point 1:
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
couldn't build an image:
FAILED: build/make/core/main.mk:1204: warning: build/make/target/product/aosp_x86_64.mk produces files inside build/make/target/product/mainline_system.mks artifact path requirement. Offending entries: system/etc/apns-conf.xml system/etc/sysconfig/preinstalled-packages-platform-full-base.xml build/make/core/main.mk:1204: error: Build failed. 22:15:01 ckati failed with: exit status 1
Inherited from telephony.mk:
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
- rebuilt & booted the image. No change observed (i.e. I couldn't find the sip options anywhere)
I find it very difficult to understand the build system and why I can't observe any change even if I add packages to the images. I admit that this trial and error way of developing is bad, but I didn't find any relevant documentation on how to add packages that are already available to an emulator image.