Question

I am using Python for Android and SL4A to write an Android app. My question is: can you get root access from Python for Android? And, if so, how?

Was it helpful?

Solution

I solved my own question. I ended up finding https://code.google.com/p/android-scripting/issues/detail?id=184 and using the suu and sush binaries given in the answers. Worked perfectly!

EDIT: Timeskip update, here's the new issue link since SL4A moved to GitHub. Not sure how well this works with Magisk, since I personally haven't used SL4A in quite a while.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top