NOTICE: This content was originally posted to Google+, then imported here. Some formatting may be lost, links may be dead, and images may be missing.
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.
Please share this post and help getting all root apps to behave :)
+Seunghyun Hyun To make it even better, a lot of people who have me in their circles are a: super super user user ;)