How to Include Exploits into ionic App?

Hi All , How to include root exploits in ionic application , I got to know it is possible to add exploits to Android Studio projects but the need to add those libraries to ionic Application ? Is there any way to do that ?