I would execute a command on my rooted Android 2.1 device
String path = \"/data/data/com.android.providers.settings/databases/settings.db\"; Runtime
The RootTools library offers simple methods to check for root and issue root commands:
RootTools.isRootAvailable() List output = RootTools.sendShell(command);
http://code.google.com/p/roottools/