Can we implement the shell commands in Android.bp as we can do in Android.mk?

370 views
Skip to first unread message

atla praveen

unread,
Jun 24, 2020, 10:41:26 AM6/24/20
to Android Building

Hi Google,


1) Actually I have an Android.mk which consists of basic shell commands like "mkdir" and "cp". But in my service I am using Android.bp . So is there any way to implement shell commands in the Android.bp ? (Have to add in prebuilts)


My snippet:

         PREBUILT_FOLDER := vendor/
         LOCAL_POST_INSTALL_CMD :=
         mkdir -m 0770 -p out/target/product/$(PRODUCT_NAME)/data/vendor;
         cp $(OUT_VENDOR_FOLDER)/bin/hw/<vendor_service> $(PREBUILT_FOLDER); \


I am trying to find the equivalent implementation in Android.bp.


-> I have tried to use the androidmk command also to convert automatically from the android.mk to android.bp, but the above lines are not getting converted.


2) And is the tag "LOCAL_POST_INSTALL_CMD " also supported in Android.bp, as i want to execute the above commands after the binary is built?


Can you help with this ?

Reply all
Reply to author
Forward
0 new messages