How to build android img for zero3w

Hi everyone,

Hi everyone, I want to compile zero3w for android, but the code lunch I downloaded from this tutorial at https://docs.radxa.com/zero/zero3/other-os/android/lowlevel-development doesn’t have zero3w in it. doesn’t have zero3w in it.

You're building on Linux

Lunch menu... pick a combo:
     1. PX30_Android11-user
     2. PX30_Android11-userdebug
     3. aosp_arm-eng
     4. aosp_arm64-eng
     5. aosp_blueline_car-userdebug
     6. aosp_bonito_car-userdebug
     7. aosp_car_arm-userdebug
     8. aosp_car_arm64-userdebug
     9. aosp_car_x86-userdebug
     10. aosp_car_x86_64-userdebug
     11. aosp_coral_car-userdebug
     12. aosp_crosshatch_car-userdebug
     13. aosp_flame_car-userdebug
     14. aosp_x86-eng
     15. aosp_x86_64-eng
     16. car_x86_64-userdebug
     17. qemu_trusty_arm64-userdebug
     18. rk3288_Android10-user
     19. rk3288_Android10-userdebug
     20. rk3288_Android11-user
     21. rk3288_Android11-userdebug
     22. rk3326_pie-user
     23. rk3326_pie-userdebug
     24. rk3326_q-user
     25. rk3326_q-userdebug
     26. rk3326_r-user
     27. rk3326_r-userdebug
     28. rk3326_rgo-user
     29. rk3326_rgo-userdebug
     30. rk3328_atv-user
     31. rk3328_atv-userdebug
     32. rk3328_box-user
     33. rk3328_box-userdebug
     34. rk3328_box_32-user
     35. rk3328_box_32-userdebug
     36. rk3399_Android10-user
     37. rk3399_Android10-userdebug
     38. rk3399_Android11-user
     39. rk3399_Android11-userdebug
     40. rk3399_RADXA_keyz_Android11-user
     41. rk3399_RADXA_keyz_Android11-userdebug
     42. rk3399_ROCKPI4B_Android11-user
     43. rk3399_ROCKPI4B_Android11-userdebug
     44. rk3399_ROCKPI4C_Android11-user
     45. rk3399_ROCKPI4C_Android11-userdebug
     46. rk3399_ROCKPI4C_Plus_Android11-user
     47. rk3399_ROCKPI4C_Plus_Android11-userdebug
     48. rk3399_ROCKPIFuhai_Android11-user
     49. rk3399_ROCKPIFuhai_Android11-userdebug
     50. rk3399_atv-user
     51. rk3399_atv-userdebug
     52. rk3399_mid-user
     53. rk3399_mid-userdebug
     54. rk3566_32bit-user
     55. rk3566_32bit-userdebug
     56. rk3566_eink-user
     57. rk3566_eink-userdebug
     58. rk3566_einkw6-user
     59. rk3566_einkw6-userdebug
     60. rk3566_r-user
     61. rk3566_r-userdebug
     62. rk3566_rgo-user
     63. rk3566_rgo-userdebug
     64. rk3568_r-user
     65. rk3568_r-userdebug
     66. rk356x_box-user
     67. rk356x_box-userdebug
     68. rk356x_box_32-user
     69. rk356x_box_32-userdebug
     70. rk356x_rock_3a_box-user
     71. rk356x_rock_3a_box-userdebug
     72. rk356x_rock_3a_r-user
     73. rk356x_rock_3a_r-userdebug
     74. rk356x_rock_3b_r-user
     75. rk356x_rock_3b_r-userdebug
     76. rk356x_rock_3c_r-user
     77. rk356x_rock_3c_r-userdebug
     78. rk356x_rock_cm3_r-user
     79. rk356x_rock_cm3_r-userdebug
     80. uml-userdebug

This is the result of performing a launch, and I can’t get the build to work according to the documentation, so what should I do?

Update to the latest version.

How to do it can be updated?

$ repo init -u https://github.com/radxa/manifests.git -b Android11_Radxa_rk12 -m rockchip-r-release.xml
$ repo sync -j4

The latest branch is Android11_Radxa_rk12.

I followed the above instructions and compiled AOSP after the update Error

error: declaration uses identifier '_FORTIFY_SOURCE', which is a reserved identifier [cert-dcl37-c,-warnings-as-errors]

error: declaration uses identifier '_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS', which is a reserved identifier [cert-dcl37-c,-warnings-as-errors]

note: this fix will not be applied because it overlaps with another fix

error: declaration uses identifier '__ANDROID_VNDK__', which is a reserved identifier [cert-dcl37-c,-warnings-as-errors]

note: this fix will not be applied because it overlaps with another fix

error: declaration uses identifier '__clang_analyzer__', which is a reserved identifier [cert-dcl37-c,-warnings-as-errors

@yanw What should I do?

I suggest you build a complete image.

make clean
./build.sh -AUCKu

I’ve re-downloaded the code and it’s still giving me this error. Have you tried running it?

It seems to be an environment problem. It is best to use docker.

Can you tell me how to install the environment using docker, your android documentation is all wrong!

I’m getting the same error. I’m building from a docker image based on ubuntu:20.04.

I also tried to use the dockerfile provided in the instructions linked on the first post. With that dockerfile I couldn’t create the docker image because the script is trying to copy some tool chain files which were not provided.

The issue is related to the 3G dongle support.

If you don’t need 3G dongle support you can edit device/rockchip/common/BoardConfig.mk and change BOARD_HAVE_DONGLE to false.

Once I made that change I was able to build properly.

Hi. Hey,
Can you share the Android image you created for Radxa Zero 3W with me. thank you.

you can find the image here

1 Like

links not working?

https://github.com/radxa/manifests/releases/download/Android11_Radxa_rk12_20231109/Radxa_ZERO_3W_3E_

Fixed

https://github.com/radxa/manifests/releases/download/Android11_Radxa_rk12_20231109/Radxa_ZERO_3W_3E_Android11_rkr12_20231109-gpt.zip

https://github.com/radxa/manifests/releases/download/Android11_Radxa_rk12_20231109/Radxa_ZERO_3W_3E_.Android11_rkr12_20231109-update.zip

First of all, thank you very much.
I downloaded the gpt extension from the link you gave, but I think it is corrupted. because when I try to get it in RVDevTol, it gives this error. can you look at it.

the version below works fine but does not have GPT. how can I install GPT afterwards?
https://mega.nz/file/Qj5zCYCQ#We27FOyQDs2p1MMmzuRL1m-TGjtPL037w_L4jTHaDE4

which os do you use, Flashing the update.img you should use “Upgrade Firmware”, and use “Download Image” to flash GPT format image.

the version below works fine but does not have GPT. how can I install GPT afterwards?
https://mega.nz/file/Qj5zCYCQ#We27FOyQDs2p1MMmzuRL1m-TGjtPL037w_L4jTHaDE4

Do you mean chatgpt app? you can download apk and use adb to install on it.

Do I need to select the loader part when using the download image part? If so, what should I install there?

Hello there,
I will proceed with the installation within the information you will provide. waiting for you.

I meant GPT, that is, how can I install the Android Store. but your drive is that way, but what should I choose loader when installing the firmware on the device.