AvinashReddy3108 / rclone-mount-magisk

A fork of @piyushgarg's 'rclone-mount', with fixes, updated binaries, x86 support, and more..
103 stars 16 forks source link

Suggestion: Compatibility with adoptable storage #3

Open Ahmedazim7804 opened 2 years ago

Ahmedazim7804 commented 2 years ago

i have adoptaable storage and the remotes were not mounting in /sdcard/Cloud or /storage/emulated/Cloud as it create folder and set permissions in DATA_MEDIA=/data/media which is device's real internal storage and lates tries to bind it on /mnt/runtime/emulated/0/ which is internal storage (Adopted sdcard) for rom.

however changing DATA_MEDIA=/data/media to DATA_MEDIA=/storage/emulated fix the problem and mount show up properly in sdcard.

if you could add a check for device to see if it has adopted storage or not than set the value of DATA_MEDIA accordingly, it will hopefully solve the problem.

AvinashReddy3108 commented 2 years ago

Interesting. (I never used Adoptable Storage on my devices) Would try my best to find a solution for this.