我正在尝试将USB大容量存储设备挂载到我运行android东西的树莓派上。我偶然发现了 answer,它展示了如何使用命令行ADB shell挂载它。但问题是,每次设备启动时,我都必须运行这些命令。我想将U盘挂载到我的启动活动的onCreate()中。代码如下:
//Here is the mount drive function which I called in onCreate of my activity.
private void mountDrive() throws IOException, InterruptedException {
Process mPr