NOTICE: This content was originally posted to an older blog, then imported here. Some formatting may be lost, links may be dead, and images may be missing.
Originally filed under project Tutorials, tagged Android, Good news, Developer tools, Code.
How-To SU
Guidelines for problem-free su usage
I have released an article and sample code detailing the best ways to call su, as well as common problems and how to avoid them. If you are an app developer making su calls, this is meant for you to read.
It originates from a lot of reversing and going through code of root using apps that would randomly crash (either with SuperSU or Superuser) and working with a fair number of developers to solve these problems in their apps. The goal is to make all root app developers aware of these issues, so these problems will be avoided in new apps and updates to existing ones.
Article: How-To SU