redefine properly the android api in CMakeList instead of redefining the api for each project. Cleaning CMake flags to prevent obsolete cache value from being used. Temporarily duplicated sanitizer flags definition while we can't get them properly from cache
Camera2 sanitizer
2019-11-14 18:21:38.571 8012-8027/org.linphone.tester I/liblinphone_tester: [Camera2 Capture] libmsandroidcamera2 plugin loaded 2019-11-14 18:21:38.571 8012-8027/org.linphone.tester I/liblinphone_tester: [Camera2 Capture] Detecting cameras 2019-11-14 18:21:38.571 8012-8027/org.linphone.tester I/org.linphone.tester: ================================================================= 2019-11-14 18:21:38.574 8012-8027/org.linphone.tester I/org.linphone.tester: ==8012==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x007f76a4e440 in thread T0 2019-11-14 18:21:38.805 8012-8027/org.linphone.tester I/org.linphone.tester: #0 0x7f61dcce1b (/data/app/org.linphone.tester-1/lib/arm64/libclang_rt.asan-aarch64-android.so+0x9ce1b) 2019-11-14 18:21:38.805 8012-8027/org.linphone.tester I/org.linphone.tester: #1 0x7f5b57ca07 (/data/app/org.linphone.tester-1/lib/arm64/libmsandroidcamera2.so+0x13a07)