Re-implemented the button to grant permissions using RootShell when possible