How to hide BuddyPress from some subsite admins

I have installed BuddyPress on my multisite and applied the changes to wp-config.php to make it root on a secondary site following these steps.

But to prevent other subsite admins to activate the plugin, I would like to hide the plugin from the admin and the Plugins’ page for the rest of the subsite admins.

I found this thread Hide plugins from other admins, but not sure what to edit on the suggested code to adapt it to hide BuddyPress on my site for the other subsite admins. Could you hep me to achieve this?

Many thanks in advance!