You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off - thanks for this library! It's a huge improvement for me over calling 'adb' from my app in bash scripts.
I wanted to write a simple file explorer with this library and had a couple of questions:
Is there a way to detect a folder link / alias? For example /sdcard on my device is a symbolic link to another folder. But, RemoteFile.isDirectory() returns false.
I imagine there's a way to detect this using the mode but I haven't figured out exactly just yet. Any thoughts?
Is there a way to detect if a folder is read-only and can't be listed? Or, alternatively if I try to view a folder that doesn't exist I just get back 0 results -- same as an empty folder. I'm looking for some way to know that this isn't a valid folder or isn't one that the user has permission to view (JadbDevice.list())
The text was updated successfully, but these errors were encountered:
Hi!
Thanks for your appreciation. It was a long time since I made this so don't really know the answers here, but I'll try
You should be able to figure out if an entry is a symlink by looking at the mode. Don't remember by heart which bit this is, but it should be documented somewhere.
Again, this should be visible from the mode bits. Might be tricky to fully determine as it depends on your group and so on. You should really get a permission denied or similar when trying to list the files in there? Might be some weird behaviour in jadb or in the adb server that needs to be patched in the AOSP
Hi @vidstige,
First off - thanks for this library! It's a huge improvement for me over calling 'adb' from my app in bash scripts.
I wanted to write a simple file explorer with this library and had a couple of questions:
/sdcard
on my device is a symbolic link to another folder. But,RemoteFile.isDirectory()
returns false.I imagine there's a way to detect this using the
mode
but I haven't figured out exactly just yet. Any thoughts?JadbDevice.list()
)The text was updated successfully, but these errors were encountered: