android_external_sshfs icon indicating copy to clipboard operation
android_external_sshfs copied to clipboard

[question] Is there anything in the code that would actually prevent this running on AOSP? (nexus 6, Android 5.0.1)

Open wyatt8740 opened this issue 9 years ago • 4 comments

Hi, I have been porting a lot of unix-y programs to my phone recently, and I'm wondering if this uses any features that would actually require a custom ROM, or if it was just developed primarily for cyanogen.

I really don't want to bother with flashing to cyanogen; I'd like to use it on my almost-stock android device. Cyanogen has a lot of stuff I don't need and/or want. I can build depended libraries, probably.

I've already compiled openSSL and gnuTLS, for example. I also think I am prepared to build glibc for it. Anything short of the kernel, basically.

wyatt8740 avatar Feb 01 '16 15:02 wyatt8740

I'm not sure. The first potential gotcha that comes to mind is FUSE.

Do you have FUSE available?

l3iggs avatar Feb 01 '16 15:02 l3iggs

I know it uses FUSE internally - I don't have any fuse-related commands, I don't think, but the internal emulated SD card is fuse mounted.

$ mount
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

At one point I did look at the source code for the program that mounts the SD card (it's a C program, what a pain in the butt to alter umask when it's hardcoded in), and I believe it used fuse library calls or something.

wyatt8740 avatar Feb 01 '16 18:02 wyatt8740

You don't have a fusermount command?

l3iggs avatar Feb 01 '16 18:02 l3iggs

Sorry for the late reply - no, I have no fusermount command.

wyatt8740 avatar Apr 26 '16 06:04 wyatt8740