You need to install the Joomla! 4 version of the component (7.x) before uninstalling it. The Joomla! 3 version does not work correctly on Joomla! 4 since it was, you know, made for Joomla! 3.
That said, just because you have Joomla! 4 does not mean that you no longer need a security extension. Admin Tools can help you improve the security of your site, both for core Joomla! itself, and third party extensions. That's the whole point.
As the most recent example, AcyMailing had a security issue actively exploited between April and September 2023. Actively exploited, unless you had Admin Tools installed and configured with the default settings. The sites which were using Admin Tools' .htaccess Maker could not be hacked.
There have been plenty of instances in the past where Admin Tools stopped malicious file uploads, SQL injections, session poisoning, etc before the security issue was identified and fixed in Joomla itself, or a third party extension. If that was not the case, security software like Admin Tools would have no reason of existence.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!