Comments (5)
@bphd is that even possible?
MTP android host daemon runs under the user's permissions, I think the /storage/emulated/0/
is a limitations of those permissions, unless you manage to haxxor the daemon and run it as root, I don't think this issue is a feature that can be implemented under go-mtpfs
edit: it may be possible to maybe mount /
but only as read-only, just as some 'file explorer' enable.
from go-mtpfs.
Many apps have root capacities, that execute when you give root priviledges to the application. So it should ask for root and then let mount whatever path we want
from go-mtpfs.
That is true, apps CAN have root capacities, but it's not the point of my comment,
go-mtpfs is not an android app, and it doesn't matter if you run it as root on linux,
the MTP service that runs inside Android 'sandboxed' linux processes runs under the current logged-in user permissions unless you modify your android permissions manifests xmls or something, that's why I asked, is this issue even relevant to go-mtpfs?
My thinking is that your suggestion should go to AOSP, or Lineageos
Edit: I commented because this is something I would find useful too, but was surprised seeing this issue here
from go-mtpfs.
If it's not an Android app, then why you mount per default /storage/emulated/0/
that is indeed an Android path? And why not mounting /
per default if it's not an Android app, considering that outside of Android ecosystem it's generally easily done?
from go-mtpfs.
You're right that if upstream OSes would modify MTP behaviour that would resolve the problem from root, but maybe they wouldn't want because they don't consider root priviledges concerns and don't want to risk security. Where downstream, like in that project, we could add that without problems
from go-mtpfs.
Related Issues (20)
- the directory containing `libusb-1.0.pc' HOT 1
- Question: Installation HOT 1
- Cannot build on Fedora 31 HOT 1
- Errors on first read HOT 2
- cannot find package "github.com/hanwen/go-fuse/v2/fs" HOT 4
- Cannot build on Fedora 31: go get error message: libusb_set_debug is deprecated HOT 1
- Not updating file list for new files HOT 1
- Not able to list the devices. HOT 5
- Progress callback for SendObject and GetObject HOT 6
- failed to access mountpoint: Transport endpoint is not connected HOT 3
- What is the fastest way to get the total file count in a file tree?
- build fails, instructions not enough...
- Build broken for latest versions of go
- many errors
- panic: runtime error: slice bounds out of range [:-99] HOT 3
- Connection drops after a while HOT 2
- rmdir on a non-empty directory does "rm -rf" rather than fail with an error HOT 1
- Detects Samsung Galaxy A12 but "no storage device found". HOT 1
- Encrypted names
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-mtpfs.