[android-building] Android envsetup.sh overrides pre-set TARGET_BUILD_TYPE env variable!

2022-01-04 Thread Abhayadev S
Hi, I am using a master build script to trigger the android build and the master script does the following steps, *source build/envsetup.sh && lunch * Now in my master script i was planning to export the TARGET_BUILD_TYPE as debug or release according to my other options. Now I see that the

Re: [android-building] Re: Run shell script before include $(BUILD_PREBUILT)

2021-12-28 Thread Abhayadev S
genrule&ss=android%2Fplatform%2Fsuperproject> > in > AOSP. > > - Dan > > On Tue, Dec 21, 2021 at 1:11 PM Abhayadev S wrote: > >> thanks Dan and Paulo... >> i will look in to how i can make use of the genrule >> do you see any official man page fo

Re: [android-building] product_config.mk syntax error ?

2021-12-28 Thread Abhayadev S
posted a removal of the second comma here: > https://android-review.googlesource.com/c/platform/build/+/1931200/ > > Thanks, > Dan > > > > On Tue, Dec 21, 2021 at 1:10 PM Abhayadev S wrote: > >> Hi, >> >> I see the following in the build/make/core/product_c

Re: [android-building] Re: Run shell script before include $(BUILD_PREBUILT)

2021-12-21 Thread Abhayadev S
thanks Dan and Paulo... i will look in to how i can make use of the genrule do you see any official man page for this... i am kind of lost in the google ! On Wednesday, December 15, 2021 at 1:19:48 AM UTC+5:30 phc@gmail.com wrote: > Hello, > The $(shell) inside you mk will for sure slo

[android-building] product_config.mk syntax error ?

2021-12-21 Thread Abhayadev S
Hi, I see the following in the build/make/core/product_config.mk ifeq (,$(filter eng userdebug,$(TARGET_BUILD_VARIANT)),) here ifeq has been give

[android-building] Headless Android ADB Vendor Key

2021-12-21 Thread Abhayadev S
Hi, I have a headless Android 10 device where i am trying to enable the adb by default on a "user" mode build. Also, I am trying to integrate a custom adb key and hoping to skip the usb/adb debugging confirmation on screen. I have tried to integrate a custom ADB KEYS as per the official steps h

[android-building] Run shell script before include $(BUILD_PREBUILT)

2021-11-08 Thread Abhayadev S
Hi, I need to run a shell script so that the libs and bins will be generated beofre Android can pick them up. A structure of the makefile i am trying to comeup is below, not sure if this is really possible.. any inputs are appreciated. LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCA

[android-building] Re: Editing Android device init.rc file

2021-10-08 Thread Abhayadev S
Hi, I think what you are trying to achieve is an init script. for that you need to have root level permissions. do you have access to the source of the device? some pointer to start with is https://android.googlesource.com/platform/system/core/+/master/init/README.md you can listen for system

Re: [android-building] post install step for cc_binary

2021-10-08 Thread Abhayadev S
gs -- it's meant to be used on build servers) to > $DIST_DIR (defaults to out/dist/) after a build, but you'd still need > something wrapping the build to put them where you wanted, so that may or > may not simplify things. > > - Dan > > On Mon, Oct 4, 2021 a

Re: [android-building] cc_binary module name and binary name

2021-10-08 Thread Abhayadev S
o that only one will ever be exported to Make > at a time, that can be chosen through PRODUCT_SOONG_NAMESPACES > (PRODUCT_PACKAGES would just have myBin in either case). > > - Dan > > On Mon, Oct 4, 2021 at 12:14 PM Abhayadev S wrote: > >> Hi, >> >> usually

[android-building] cc_binary module name and binary name

2021-10-04 Thread Abhayadev S
Hi, usually the name of the installed binary will be same as the module "name" but can we have 2 cc_binary modules defined to install a binary of same name but on a conditional PRODUCT_PACKAGES definition? like a/Android.bp will define cc_binary with name : mymodule and it shall install myBin

[android-building] post install step for cc_binary

2021-10-04 Thread Abhayadev S
Hi, I have a cc_binary module (name myBin) defined in in a/b/Android.bp which is building fine and installs the binary in to out//system/bin/myBin Now, every time the binary is built, i need to copy this binary in to another git repo project cloned in a/b/bins/ to keep the prebuilts so,