I believe the program is registered as a superuser. I added the following line to the Manifest:
"AddPermission(android.permission.ACCESS_SUPERUSER)"
And I registered the program with the following code at startup:
---------------------------------------------------------------
Try
Dim Command, Runner As String
Dim StdOut, StdErr As StringBuilder
Dim Result As Int
Dim Ph As Phone
StdOut.Initialize
StdErr.Initialize
Runner = File.Combine(File.DirInternalCache, "runner")
Command = File.Combine(File.DirInternalCache, "command")
File.WriteString(File.DirInternalCache, "runner", "su < " & Command)
File.WriteString(File.DirInternalCache, "command", "modprobe cifs" & CRLF & "modprobe aufs" & CRLF & "exit")
Result = Ph.Shell("sh", Array As String(Runner), StdOut, StdErr)
If StdOut.tostring <> "" Then
Results.text = "Problems found in execution"
Else
Results.text = "Test Completed OK"
End If
Catch
Results.text = LastException
Log(LastException)
End Try
---------------------------------------------------------------
After the program started, I checked in SuperSU and it was registered. I also the permissions and it had superuser permission. I know it's possible to see the directory since other file managers is it. Any other thoughts from anyone ?
I'll be trying to use the shell command to get the directory, but it will be a lot more complicated since the "LS" command returns a lot of info.