How to build AOSP Android 10.0 for Sony Xperia X



  • Hello, I understood from here:
    https://developer.sony.com/file/download/software-binaries-for-aosp-android-10-0-kernel-4-14-loire/
    that AOSP 10 is also availiable for Xperia X.

    So I have just followed all the steps described here:
    https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-android-10-0-0

    Now after this comand:

    source build/envsetup.sh && lunch
    

    what combo I need to pick? There is no combo for phone Xpera X (F5121) .

    If just picked the general "aosp_arm64-eng" I have received error "failed to build some targets":

    make -j$(nproc)
    
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=10
    TARGET_PRODUCT=aosp_arm64
    TARGET_BUILD_VARIANT=eng
    TARGET_BUILD_TYPE=release
    TARGET_ARCH=arm64
    TARGET_ARCH_VARIANT=armv8-a
    TARGET_CPU_VARIANT=generic
    TARGET_2ND_ARCH=arm
    TARGET_2ND_ARCH_VARIANT=armv8-a
    TARGET_2ND_CPU_VARIANT=generic
    HOST_ARCH=x86_64
    HOST_2ND_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-5.4.0-53-generic-x86_64-Linux-Mint-20
    HOST_CROSS_OS=windows
    HOST_CROSS_ARCH=x86
    HOST_CROSS_2ND_ARCH=x86_64
    HOST_BUILD_TYPE=release
    BUILD_ID=QQ3A.200805.001
    OUT_DIR=out
    ============================================
    wildcard(out/target/product/generic_arm64/clean_steps.mk) was changed, regenerating...
    [ 99% 12391/12392] finishing build rules ...
    FAILED: 
    external/wpa_supplicant_8/hostapd/Android.mk: error: "hostapd (EXECUTABLES android-arm64) missing lib_driver_cmd_simulated (STATIC_LIBRARIES android-arm64)" 
    You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
    external/wpa_supplicant_8/hostapd/Android.mk: error: "hostapd_nohidl (EXECUTABLES android-arm64) missing lib_driver_cmd_simulated (STATIC_LIBRARIES android-arm64)" 
    You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
    external/wpa_supplicant_8/wpa_supplicant/Android.mk: error: "wpa_supplicant (EXECUTABLES android-arm64) missing lib_driver_cmd_simulated (STATIC_LIBRARIES android-arm64)" 
    You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
    frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: "libwifi-hal (SHARED_LIBRARIES android-arm64) missing libwifi-hal-emu (STATIC_LIBRARIES android-arm64)" 
    You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
    frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: "libwifi-hal (SHARED_LIBRARIES android-arm) missing libwifi-hal-emu (STATIC_LIBRARIES android-arm)" 
    You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
    build/make/core/main.mk:1017: error: exiting from previous errors.
    15:18:48 ckati failed with: exit status 1
    
    #### failed to build some targets (02:02 (mm:ss)) ####
    
    

    Thank you for any help.
    Best Regards
    Neo


  • DeveloperWorld

    Hello Neo,

    Those files were released as a best effort for community but Android 10 is not officially supported for Xperia X
    If you want to give it a try you can check the bug tracker for the known bugs and progress

    Please post future questions on the bug tracker
    https://github.com/sonyxperiadev/bug_tracker/issues

    Best regards
    Alin


Log in to reply