Android 13 Build

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android 13 Build

2,365 Views
MJD
Contributor II

Hi,

Could someone please guide me on how to add apps like WhatsApp, Quora, etc., to my Android 13 build?
I have attached the user guide which i have used to build Android 13.

0 Kudos
Reply
6 Replies

2,326 Views
MJD
Contributor II

Hi,
I have tried copying .apk file and added details in Android.mk file, but still i am not able to see whatsapp in my build.

lab3@daikokunw-Server:~/A13/android_build/vendor/nxp/fsl-proprietary/apks$ cat Android.mk
###############################################################################
# tflitecamerademo and WhatsApp
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

# tflitecamerademo
LOCAL_MODULE := tflitecamerademo
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_VENDOR_MODULE := true
LOCAL_CERTIFICATE := platform
LOCAL_SRC_FILES := tflitecamerademo.apk
include $(BUILD_PREBUILT)

# WhatsApp
include $(CLEAR_VARS)
LOCAL_MODULE := WhatsApp
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_VENDOR_MODULE := true
LOCAL_CERTIFICATE := platform
LOCAL_SRC_FILES := WhatsApp.apk
include $(BUILD_PREBUILT)

MJD_0-1703660601686.png

Please share me any reference guide to add apk(s) in my Android 13 Build.

0 Kudos
Reply

2,254 Views
Harvey021
NXP TechSupport
NXP TechSupport

The APK must be displayed under the corresponding board of device/nxp, otherwise it will just be built but will not be placed in the image.

device/nxp$ grep tflitecamera . -inr
./imx9/evk_93/evk_93.mk:432:    tflitecamerademo
./imx8m/evk_8mq/evk_8mq.mk:443:                    tflitecamerademo
./imx8m/evk_8mp/evk_8mp.mk:520:                    tflitecamerademo
./imx8m/evk_8mn/evk_8mn.mk:409:                    tflitecamerademo
./imx8q/mek_8q/mek_8q.mk:596:                    tflitecamerademo

 

Regards

Harvey

0 Kudos
Reply

2,244 Views
MJD
Contributor II

Hi @Harvey021 ,


This is how my files look like and Android.mk 
lab3@daikokunw-Server:~/A13/android_build/vendor/nxp/fsl-proprietary/apks$ ls
Android.mk imx-app-keystore.jks tflitecamerademo.apk WhatsApp.apk
lab3@daikokunw-Server:~/A13/android_build/vendor/nxp/fsl-proprietary/apks$ cat Android.mk
###############################################################################
 1 ###############################################################################
2 # tflitecamerademo and WhatsApp
3 LOCAL_PATH := $(call my-dir)
4
5 include $(CLEAR_VARS)
6
7 # tflitecamerademo
8 LOCAL_MODULE := tflitecamerademo
9 LOCAL_MODULE_CLASS := APPS
10 LOCAL_MODULE_TAGS := optional
11 LOCAL_BUILT_MODULE_STEM := package.apk
12 LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
13 LOCAL_VENDOR_MODULE := true
14 LOCAL_CERTIFICATE := platform
15 LOCAL_SRC_FILES := tflitecamerademo.apk
16 include $(BUILD_PREBUILT)
17
18 # WhatsApp
19 include $(CLEAR_VARS)
20 LOCAL_MODULE := WhatsApp
21 LOCAL_MODULE_CLASS := APPS
22 LOCAL_MODULE_TAGS := optional
23 LOCAL_BUILT_MODULE_STEM := package.apk
24 LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
25 LOCAL_VENDOR_MODULE := true
26 LOCAL_CERTIFICATE := PRESIGNED
27 LOCAL_SRC_FILES := WhatsApp.apk
28 LOCAL_PRIVILEGED_MODULE := true
29 LOCAL_USES_LIBRARIES := com.sec.android.app.multiwindow org.apache.http.legacy androidx.window.extensions androidx.window.sidecar
30 LOCAL_DEXPREOPT_DEPENDENCIES := out/target/product/evk_8mp/obj/JAVA_LIBRARIES/com.sec.android.app.multiwindow_intermediates/dexpreopt.config
31 LOCAL_DEXPREOPT_GENERATE_DEXPREOPT_CONFIG := true
32 include $(BUILD_PREBUILT)

lab3@daikokunw-Server:~/A13/android_build/vendor/nxp/fsl-proprietary/apks$


lab3@daikokunw-Server:~/A13/android_build/device/nxp$ grep tflitecamera . -inr
./imx8ulp/evk_8ulp/evk_8ulp.mk:438: tflitecamerademo
./imx8ulp/watch_8ulp/watch_8ulp.mk:440:# tflitecamerademo
./imx9/evk_93/evk_93.mk:446: tflitecamerademo
./imx8q/mek_8q/mek_8q.mk:541: tflitecamerademo
./imx8m/evk_8mn/evk_8mn.mk:393: tflitecamerademo
./imx8m/evk_8mq/evk_8mq.mk:415: tflitecamerademo
./imx8m/evk_8mp/evk_8mp.mk:490: tflitecamerademo
lab3@daikokunw-Server:~/A13/android_build/device/nxp$ grep WhatsApp . -inr
lab3@daikokunw-Server:~/A13/android_build/device/nxp$ ls
automation_config common imx6dq imx6sl imx6sx imx7d imx7ulp imx8m imx8q imx8ulp imx9 MODULE_LICENSE_APACHE2 NOTICE verity
lab3@daikokunw-Server:~/A13/android_build/device/nxp$

-Werror -fexceptions -D'OVXLIB_API=__attribute__((visibility("default")))' -Wno-unused-parameter -Wno-implicit-fallthrough -frtti -DANDROID_SDK_VERSION=33 -DGIT_STRING='33ff4eaf'
[ 93% 188/202] including vendor/nxp-opensource/nxp-mwifiex/mxm_wifiex/wlan_src/mapp/mlanconfig/Android.mk ...
[ 93% 189/202] including vendor/nxp/fsl-codec/Android.mk ...
[ 94% 190/202] including vendor/nxp/fsl-proprietary/apks/Android.mk ...
[ 94% 191/202] including vendor/nxp/fsl-proprietary/bcm/Android.mk ...
[ 95% 192/202] including vendor/nxp/fsl-proprietary/fsl-dpu/Android.mk ...
[ 95% 193/202] including vendor/nxp/fsl-proprietary/gpu-viv/Android.mk ...
[ 96% 194/202] including vendor/nxp/fsl-proprietary/isp/Android.mk ...
[ 96% 195/202] including vendor/nxp/fsl-proprietary/test/Android.mk ...
[ 97% 196/202] including vendor/nxp/imx-g2d-pxp/g2d/Android.mk ...
[ 97% 197/202] including vendor/nxp/imx_android_mm/CactusPlayer/Android.mk ...
[ 98% 198/202] including vendor/nxp/imx_android_mm/codec2/store/registry/Android.mk ...
[ 98% 199/202] including vendor/nxp/linux-firmware-imx/firmware/Android.mk ...
[ 99% 200/202] including out/soong/late-evk_8mp.mk ...
[ 99% 201/202] finishing build rules ...
[100% 202/202] writing build rules ...
No need to regenerate ninja file
Starting ninja...
FAILED: ninja: 'out/target/product/evk_8mp/obj/JAVA_LIBRARIES/com.sec.android.app.multiwindow_intermediates/dexpreopt.config', needed by 'out/target/common/obj/APPS/WhatsApp_intermediates/enforce_uses_libraries.status', missing and no known rule to make it
17:45:20 ninja failed with: exit status 1

#### failed to build some targets (42 seconds) ####

lab3@daikokunw-Server:~/A13/android_build$

 


Can u plz tell me, What changes do i need to do? 

Tags (2)
0 Kudos
Reply

134 Views
Beginner1122
Contributor II

I have followed the android 13 guide and When I make my kernel file of imx8mm by running this command after lunch : 
./imx-make.sh bootloader kernel -j4 2>&1 | tee build-log.txt
it give me this error , please help me in resolving this i am stuck on it for days:

rmt@rmt-pc:/media/rmt/Harddrive/imx-android-13.0.0_1.0.0/android_build$ make -j4 2>&1 | tee -a build-log.txt
build/make/core/soong_config.mk:209: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
build/make/core/soong_config.mk:210: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
TARGET_PRODUCT=invsom_8mm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.8.0-47-generic-x86_64-Ubuntu-22.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=TQ2A.230505.002
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl external/mesa3d vendor/nxp-opensource/imx/power hardware/google/pixel hardware/google/camera vendor/nxp-opensource/imx/camera vendor/partner_gms
============================================
[ 0% 1/444] compile out/host/linux-x86/bin/go/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a

.

.

.

 

98% 731/745] including vendor/opengapps/build/modules/TrichromeLibrary/Android.mk ...
[ 98% 732/745] including vendor/opengapps/build/modules/Turbo/Android.mk ...
[ 98% 733/745] including vendor/opengapps/build/modules/Tycho/Android.mk ...
[ 98% 734/745] including vendor/opengapps/build/modules/Velvet/Android.mk ...
[ 98% 735/745] including vendor/opengapps/build/modules/Videos/Android.mk ...
[ 98% 736/745] including vendor/opengapps/build/modules/VideosPano/Android.mk ...
[ 98% 737/745] including vendor/opengapps/build/modules/Wallet/Android.mk ...
[ 99% 738/745] including vendor/opengapps/build/modules/Wallpapers/Android.mk ...
[ 99% 739/745] including vendor/opengapps/build/modules/WebViewGoogle/Android.mk ...
[ 99% 740/745] including vendor/opengapps/build/modules/YouTube/Android.mk ...
[ 99% 741/745] including vendor/opengapps/build/modules/YouTubeLeanback/Android.mk ...
[ 99% 742/745] including vendor/opengapps/build/modules/talkback/Android.mk ...
[ 99% 743/745] including out/soong/late-invsom_8mm.mk ...
[ 99% 744/745] finishing build rules ...
[100% 745/745] writing build rules ...
FAILED:
system/sepolicy/Android.mk:1: error: writing to readonly directory: "rmt@rmt-pc"
10:50:03 ckati failed with: exit status 1

#### failed to build some targets (06:34 (mm:ss)) ####

0 Kudos
Reply

2,338 Views
Harvey021
NXP TechSupport
NXP TechSupport

You can refer to these apk(s) from vendor/nxp/fsl-proprietary/apks

 

Regards

Harvey

0 Kudos
Reply

2,257 Views
MJD
Contributor II

Please share me any reference guide to add apk(s) in my Android 13 Build.

0 Kudos
Reply