I have successfully rooted my Nexus4 and am trying to receive the root access in java via the RootTools.jar extension.
When I call RootTools.isRootAvailable()
I receive true
but when calling RootTools.isAccessGiven()
which should actually give me root access I receive false
??
I have also logged in the device via adb shell
and executed the commands su
and id
which returns
uid=0(root) gid=0(root) groups=1003(graphics), 1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0
So why am I not able get the root access in java?