Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling JACK in android compilation

Does anybody know how to completely disable jack while compiling AOSP (Master)?

I've always had problems with jack, so I've just always turned it off by adding ANDROID_COMPILE_WITH_JACK := false in BoardConfig.mk (when compiling CyanogenMod). I'm now compiling aosp and it just seems to ignore this command.

Note: I'm not really trying to solve any jack related issues I have, I'm trying to turn it off.

like image 646
Carlyle Felix Avatar asked May 21 '26 04:05

Carlyle Felix


1 Answers

You can disable the JACK without to change any code.

make ANDROID_COMPILE_WITH_JACK:=false

Just do it when making the entire Android Project.

The magic is in build/make/combo/javac.mk:

ifndef ANDROID_COMPILE_WITH_JACK
# Defines if compilation with jack is enabled by default.
ANDROID_COMPILE_WITH_JACK := true
endif

And build/make/core/config.mk:

ifeq ($(ANDROID_COMPILE_WITH_JACK),true)
DEFAULT_JACK_ENABLED:=full
else
DEFAULT_JACK_ENABLED:=
endif

And build/make/core/clear_vars.mk:

LOCAL_JACK_ENABLED:=DEFAULT_JACK_ENABLED

It also indicates why your modification in a local module is in vain.

like image 97
Yan QiDong Avatar answered May 23 '26 18:05

Yan QiDong



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!