Custom Encrypt Media Data For Android

hello, I want to try to add extra security by adding a new custom algorithm to the existing security mechanism. The algorithm is applied directly to the third_party/libsrtp/srtp/srtp.c file, and is built into *.jar and *.so files and it works. My question is, is it possible to implement a mechanism that can regulate the implementation of these additional algorithms so that they can change the enable/disable status of these additional algorithms freely?