You shouldn't install prebuilt apps into the data partition. Use the vendor partition instead.On 24 Jul 2023, at 23:40, "[email protected]" <[email protected]> wrote:Hi,We're adding our own application codes in Android-13 AOSP
code and plan to build and install APK files to the specified directory in userdata partition during building AOSP code. We create Android.bp and add the following statements to it. //built explicitly put it in the data partition
local_module_path: { var: "TARGET_OUT_DATA", fixed: "/preinstall/app", },But, the build system is throwing out errors and can't install APK files under data/preinstall/app directory.[ 25% 1/4] regenerate globs
shard 250 of 1024[ 50% 2/4] regenerate globs shard 565 of 1024[ 75% 3/4] regenerate globs shard 581 of 1024[100% 4/4] analyzing Android.bp files and generating ninja file at out/soong/build.ninjaFAILED: out/soong/build.ninjacd "$(dirname
"out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && "$BUILDER" --top "$TOP" --soong_out
"out/soong" --out "out" -o out/soong/build.ninja --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env
out/soong/soong.environment.used.build Android.bpClang SA is not enablederror: vendor/bsp/proprietary/hlos/apps/SDK_Demo/app/src/main/Android.bp:27:22: unrecognized property "local_module_path"ninja: build stopped: subcommand
failed.13:33:54 soong bootstrap failed with: exit status 1And we tried Android.mk and add the following statements. It's able to build and install APK files to /data/preinstall/app directory.# and when built explicitly put it in the data
partitionLOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/preinstall/appWe're wondering how to use Android.bp to build and install APK file to the data/preinstall/app directory. We're looking forward to your suggestions to help us figure out this error.-- --
You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to
[email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building"
group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit
https://groups.google.com/d/msgid/android-building/9fc75912-6b07-4707-9279-1469f458342dn%40googlegroups.com.
--
--
You received this message because you are subscribed to the "Android Building"
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-building/c8ca3b19-ed1a-4938-8b41-a165d45ecb9e%40me.com.