You can rename your non exported API and global variable with some random names that will make re-egineering harder
1. List the function and varaibles you want to rename in the file symbols_list.txt, you can list all symbol by issuing the command "strings your_lib.so"
2. Run the command : python3 generate_mapping.py symbols_list.txt
3. Once the renaming mappping list prepared, provide your source folder path in SOURCE_FOLDER present in apply_mapping.py
4. Run the command : python3 apply_mapping.py
5. Recompile your code
6. Now your .so file is ready to share.