I've attached my customized networking settings to SE Android 4.2.2 code on Ubuntu 12.04 64bit.The compilation was failed, partial results were as follows:
Export includes file: external/e2fsprogs/lib/ext2fs/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2fs_intermediates/export_includes
Export includes file: external/e2fsprogs/lib/blkid/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_blkid_intermediates/export_includes
Export includes file: external/e2fsprogs/lib/uuid/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_uuid_intermediates/export_includes
Export includes file: external/e2fsprogs/e2fsck/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_profile_intermediates/export_includes
Export includes file: external/e2fsprogs/lib/et/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_com_err_intermediates/export_includes
Export includes file: external/e2fsprogs/lib/e2p/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_e2p_intermediates/export_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libfs_mgr_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libc_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libz_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libe2fsck_static_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2fs_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_blkid_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_uuid_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_profile_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_com_err_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libext2_e2p_intermediates/import_includes
Export includes file: system/core/init/Android.mk -- out/target/product/g18ref/obj/EXECUTABLES/init_intermediates/export_includes
Notice file: system/core/init/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//root/init.txt
Notice file: bionic/libc/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libc.a.txt
Notice file: external/zlib/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libz.a.txt
Export includes file: system/core/libmincrypt/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes
Export includes file: system/core/adb/Android.mk -- out/target/product/g18ref/obj/EXECUTABLES/adbd_intermediates/export_includes
Notice file: system/core/adb/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//root/sbin/adbd.txt
Notice file: system/core/libmincrypt/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libmincrypt.a.txt
Notice file: packages/providers/ApplicationsProvider/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/app/ApplicationsProvider.apk.txt
Export includes file: frameworks/base/core/jni/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/export_includes
Export includes file: frameworks/base/libs/androidfw/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libandroidfw_intermediates/export_includes
Export includes file: system/core/libnetutils/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libnetutils_intermediates/export_includes
Export includes file: frameworks/av/camera/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libcamera_client_intermediates/export_includes
Export includes file: frameworks/native/opengl/libs/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libETC1_intermediates/export_includes
Export includes file: hardware/libhardware_legacy/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/export_includes
Export includes file: external/skia/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libskia_intermediates/export_includes
Export includes file: external/sonivox/arm-wt-22k/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libsonivox_intermediates/export_includes
Export includes file: frameworks/av/media/libmedia/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libmedia_intermediates/export_includes
Export includes file: frameworks/av/media/libmedia_native/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libmedia_native_intermediates/export_includes
Export includes file: external/wpa_supplicant_8/wpa_supplicant/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libwpa_client_intermediates/export_includes
Export includes file: external/jpeg/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libjpeg_intermediates/export_includes
Export includes file: system/core/libusbhost/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libusbhost_intermediates/export_includes
Export includes file: external/harfbuzz/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libharfbuzz_intermediates/export_includes
Export includes file: frameworks/base/libs/hwui/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libhwui_intermediates/export_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libandroidfw_intermediates/import_includes
Export includes file: frameworks/opt/emoji/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libemoji_intermediates/export_includes
Export includes file: external/libpng/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libpng_intermediates/export_includes
Export includes file: external/giflib/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libgif_intermediates/export_includes
Export includes file: external/webp/src/dec/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libwebp-decode_intermediates/export_includes
Export includes file: external/webp/src/enc/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libwebp-encode_intermediates/export_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libemoji_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libjpeg_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libpng_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libgif_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libwebp-decode_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libwebp-encode_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libnetutils_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libcamera_client_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libETC1_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libwpa_client_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libsonivox_intermediates/import_includes
Export includes file: frameworks/av/media/libstagefright/foundation/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libstagefright_foundation_intermediates/export_includes
Export includes file: system/media/audio_utils/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libaudioutils_intermediates/export_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libstagefright_foundation_intermediates/import_includes
Export includes file: external/speex/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libspeexresampler_intermediates/export_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libspeexresampler_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libusbhost_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libharfbuzz_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libhwui_intermediates/import_includes
Export includes file: packages/apps/Bluetooth/jni/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libbluetooth_jni_intermediates/export_includes
Notice file: frameworks/base/core/jni/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libandroid_runtime.so.txt
Notice file: frameworks/base/libs/androidfw/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libandroidfw.so.txt
Notice file: external/skia/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libskia.so.txt
Notice file: external/freetype/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libft2.a.txt
Notice file: external/libpng/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libpng.a.txt
Notice file: external/giflib/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libgif.a.txt
Notice file: external/jpeg/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libjpeg.so.txt
Notice file: system/core/libnetutils/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libnetutils.so.txt
Notice file: frameworks/native/libs/ui/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libui.so.txt
Notice file: hardware/libhardware/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libhardware.so.txt
Notice file: external/liblzf/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/liblzf.a.txt
Notice file: frameworks/av/camera/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libcamera_client.so.txt
Notice file: hardware/libhardware_legacy/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libhardware_legacy.so.txt
Notice file: external/sonivox/arm-wt-22k/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libsonivox.so.txt
Notice file: frameworks/av/media/libstagefright/foundation/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libstagefright_foundation.so.txt
Notice file: frameworks/av/media/libmedia/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libmedia.so.txt
Notice file: external/speex/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libspeexresampler.so.txt
Notice file: external/harfbuzz/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libharfbuzz.so.txt
Notice file: frameworks/base/libs/hwui/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libhwui.so.txt
Export includes file: external/bluetooth/bluedroid/hci/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libbt-hci_intermediates/export_includes
Export includes file: hardware/libhardware_legacy/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libpower_intermediates/export_includes
Export includes file: external/bluetooth/bluedroid/utils/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/libbt-utils_intermediates/export_includes
Export includes file: external/bluetooth/bluedroid/gki/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_gki_intermediates/export_includes
Export includes file: external/bluetooth/bluedroid/bta/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_bta_intermediates/export_includes
Export includes file: external/bluetooth/bluedroid/stack/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_stack_intermediates/export_includes
Export includes file: external/tinyxml2/Android.mk -- out/target/product/g18ref/obj/STATIC_LIBRARIES/libtinyxml2_intermediates/export_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libpower_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libbt-hci_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/SHARED_LIBRARIES/libbt-utils_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_gki_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_bta_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libbt-brcm_stack_intermediates/import_includes
Import includes file: out/target/product/g18ref/obj/STATIC_LIBRARIES/libtinyxml2_intermediates/import_includes
Export includes file: external/bluetooth/bluedroid/main/Android.mk -- out/target/product/g18ref/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/export_includes
Notice file: hardware/libhardware_legacy/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/lib/libpower.so.txt
Notice file: packages/apps/Browser/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/app/Browser.apk.txt
logtags: out/target/common/obj/APPS/Browser_intermediates/src/src/com/android/browser/EventLogTags.java <= packages/apps/Browser/src/com/android/browser/EventLogTags.logtags
make: *** No rule to make target 'out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar', needed by 'out/target/common/obj/APPS/CTNetworkSettings_intermediates/classes-full-debug.jar'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: packages/apps/SoundRecorder/NOTICE -- out/target/product/g18ref/obj/NOTICE_FILES/src//system/app/SoundRecorder.apk.txt
I suspect my
android.mk must be wrong strongly. The file's content is as follows:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_JAVA_LIBRARIES := bouncycastle conscrypt telephony-common
LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 android-support-v13 jsr305
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := CTNetworkSettings
LOCAL_CERTIFICATE := platform
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))