Android: how can execute a chmod on rooted devides

后端 未结 3 1104
余生分开走
余生分开走 2021-01-07 02:58

I would execute a command on my rooted Android 2.1 device

String path = \"/data/data/com.android.providers.settings/databases/settings.db\"; Runtime

3条回答
  •  遥遥无期
    2021-01-07 03:19

    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/

提交回复
热议问题