i realized after i posted that it might not be the best solution, i don't know if there is anything in here that will help you, but here's how they did it waaaay back when you had to do rooting via pc How to Root - Root for leak/OTA/stock 1.5 - XDA-Developers